Set inherit-informal-parameters=true on the DirectLink. Yyou'll need to do this in your component spec, there's no way to set it on implicit components.

On Sun, 24 Sep 2006 13:58:27 +0200, Dobrin Ivanov <[EMAIL PROTECTED]> 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]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to