You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrea Chiumenti <ki...@gmail.com> on 2007/01/31 17:15:17 UTC

help with component id

Hi,
I'm trying to get a component id:

The component is:

<component id="submit" type="Submit">
        <binding name="value" value="literal:addNew"/>
        <binding name="updateComponents" value="ognl:{id}"/>
        <binding name="action" value="ognl:addNewAction"/>
        <binding name="async" value="ognl:true"></binding>
    </component>

and I try to bind its id to another component
<binding name="submitFunction" value="ognl:components.submit.id"/>

The component is rendere into the page with id="Submit_0"

I wonder why it is rendered capitalized and why components.submit.id value
is "submit" (how can I get the rendered id  since that neither
components.submit.clientId works)?


Thx,
kiuma

Re: help with component id

Posted by andyhot <an...@di.uoa.gr>.
Hi,
http://tapestry.apache.org/tapestry4.1/usersguide/bindings.html

see the clientId binding


Andrea Chiumenti wrote:
> Hi,
> I'm trying to get a component id:
>
> The component is:
>
> <component id="submit" type="Submit">
>        <binding name="value" value="literal:addNew"/>
>        <binding name="updateComponents" value="ognl:{id}"/>
>        <binding name="action" value="ognl:addNewAction"/>
>        <binding name="async" value="ognl:true"></binding>
>    </component>
>
> and I try to bind its id to another component
> <binding name="submitFunction" value="ognl:components.submit.id"/>
>
> The component is rendere into the page with id="Submit_0"
>
> I wonder why it is rendered capitalized and why components.submit.id 
> value
> is "submit" (how can I get the rendered id  since that neither
> components.submit.clientId works)?
>
>
> Thx,
> kiuma
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org