You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by he...@dnbnor.no on 2006/02/03 10:59:38 UTC

[shale] Clay & Symbols

Hi

I have tried to do the following:

First define a component in clay-config.xml:

	<!-- base command button defining a common style class -->
	<component jsfid="myCommand" extends="commandButton">
		<attributes>
			<set name="styleClass" value="button" />
			<set name="action" value="@doaction" />
		</attributes>
	</component>

then in my somepage.xml do this:

    <component jsfid="/somepage.xml" extends="baseLayout">
        <symbols>
              <set name="bodyContent" value="/pages/somepage.html"/>
              <set name="managed-Bean-Name" value="pages$test" />
              <set name="doaction" value="save"/>
        </symbols>
    </component>

and then on somepage.html insert the myCommand component, however the symbol substitution does not seem to take place because the action does not happen. If i hardcode the action it works ok.


It would be really nice if this is possible.


Hermod



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org