The component specification (and the Component References) are pretty clear.
If informal parameters are allowed, they "flow" right through unless: 1) They match (caselessly) the name of a formal parameter 2) They match (caselessly) a reserved parameter name Since "target" isn't a formal parameter, or reserved parameter name, and DirectLink allows informal parameters, you know you are golden. Reserved parameter names are HTML attributes that the component generates itself, such as "href", that you don't want the developer to override by accident. For example, an HTML template may look like: <a href="#" jwcid="link">Go For It!</a> The href="#" part is a placehold, but necessary for the page to render properly in WYSIWYG mode. Since it conflicts with the href reserved parameter name, it is simply discarded. -- [EMAIL PROTECTED] http://tapestry.sf.net > Howard: > > I just learned a valuable "informal attribute" lesson. Part of my problem > resulted from having read the following in the "Formal vs Informal > Parameters section of the documentation: "In other cases, a Tapestry > component produces a known single HTML tag. For example, ActionLink, > DirectLink, PageLink and ServiceLink all produce an <a> tag." To my > untrained ear, that made it sound as though Tapestry would ignore the > 'target' attribute in the following: > > <a jwcid="linkNews" target="main"> > > As a result, I left the target parameter off thinking it wouldn't work and > that there must be some other way. I now see that wasn't true. I'm > therefore eating a tasty crow appetizer to remind me that, when something > doesn't work, (a) reassess what I believe to be true and (b) try the > obvious. > > Thanks for filling in the details. > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
