Define the DirectLink in the spec and then read http://tapestry.apache.org/tapestry4/UsersGuide/spec.html#spec.component
Dobrin Ivanov wrote: > Hi, > > So I have a simple component with template usging > @DirectLink and @Rollover inside : > > ------------------------------------------------------ > <a jwcid="@DirectLink" listener="ognl:listener" > title="ognl:title" disabled="ognl:disabled" href="#"> > <span jwcid="@Rollover" image="ognl:image" > mouseOver="ognl:mouseOver" mouseOut="ognl:mouseOut" > disabled="ognl:disabledImage" border="0"/> > </a> > ------------------------------------------------------ > > The specification is: > ------------------------------------------------------ > <component-specification > class="workspace.web.components.ToolbarButton" > allow-body="no" > allow-informal-parameters="yes"> > > <parameter name="image" > type="org.apache.tapestry.IAsset" required="yes"/> > <parameter name="mouseOver" > type="org.apache.tapestry.IAsset" required="no"/> > <parameter name="mouseOut" > type="org.apache.tapestry.IAsset" required="no"/> > <parameter name="disabledImage" > type="org.apache.tapestry.IAsset" required="no"/> > <parameter name="disabled" type="boolean" > required="no"/> > <parameter name="title" type="java.lang.String" > required="no"/> > <parameter name="listener" > type="org.apache.tapestry.IActionListener" > required="no"/> > > > </component-specification> > ------------------------------------------------------ > > Additionaly I want to be able to add the class > informal parameter to the <a>: > > <span jwcid="@ToolbarButton" class="a_clear"/> > > Is there a way to this? (Without custom rendering, > because I want to use the @DirectLink and @Rollover) > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
