Re: FW: using template directives with anchor tags
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Whoops. Please ignore my post. As Stefan pointed out, you need to use an <a> element to set the target on. I hadn't noticed a <span> tag was being used. I guess the question is, should Barracuda know to modify the tag to something that makes sense or would that be too much guesswork? The nice thing about Barracuda components is that they bind intelligently to lots of different tags. However, I guess this "intelligence" has a both real and practical limits. For instance, it might be reasonable to modify the target tag to <a> when binding a BLink to a <span> tag. However, I don't think it is reasonable if the target tag is a <div> or some other block-level element. Hmmm..... It would be hard to come up with general rules that people wouldn't find annoying in one case or another. probably better to just use BLink components on tags that actually handle it (of course, that requires some extra knowledge of the markup on the part of the Java coder). Jake At 03:59 PM 9/23/2003 -0500, you wrote: >This needs to be investigated. Christian, this doesn't have anything to >do with the fix I made to BAction (and BLink by inheritence) for >Barracuda-1.2.5. This seems to be a different problem. Check out the CVS >comments for BAction to see for yourself... >http://barracudamvc.org/viewcvs.cgi/Barracuda/src/org/enhydra/barracuda/core/comp/BAction.java > >Can anyone check this out today? I'm trying to get another release of >XMLC ready to go. > >Jake > >At 03:20 PM 9/23/2003 -0500, you wrote: >>We created a BLink which is returned by the IterativeModel >> BLink link = new BLink(); >> link.setTarget(filename); >> link.setText(filename); >> >>The template directive : >> >> <tr class="Dir::Iterate_Start.file Dir::Iterate_Next.file"> >> <td><SPAN >> class=Dir::Get_Data.file.link>[file]</SPAN></td></tr> >> >> <tr class="Dir::Iterate_End.file >> Dir::Discard"><td></td></tr> >> >>Here is the result: >><td><span>.BLink (@1dfd868)</span></td> >> >>Thanks, >>Scott >> >> >> >>_______________________________________________ >>Barracuda mailing list >>[email protected] >>http://barracudamvc.org/lists/listinfo/barracuda > >_______________________________________________ >Barracuda mailing list >[email protected] >http://barracudamvc.org/lists/listinfo/barracuda