Is this for Tap4.1 ?
name is a reserved parameter for TextField... there's no way to set it
yourself.

However, it's supposed to take its value from the id, so i would expect
it to work
as you describe...

What's the output when CustomComponent.html  is
<input jwcid="textField"></input> <span jwcid="@Insert" value="ognl:id"/>



Karthik N wrote:
> Hi,
>
> I have a scenario in which a custom component "wraps" a TextField
> component.
>
> CustomComponent.html
>
> <input jwcid="textField"></input>
>
> CustomComponent.jwc textfield snippet:
>
>    <component id="textField" type="TextField"
> inherit-informal-parameters="yes">
>        <binding name="id" value="id"/>
>        <binding name="name" value="name"/>
>        <binding name="displayName" value="displayName"/>
>        <binding name="value" value="value"/>
>        <binding name="onKeyPress" value="keyPressHandler"/>
>        <binding name="validators" value="validators"/>
>        <binding name="disabled" value="disabled"/>
>    </component>
>
>
> Page configuration of CustomComponent:
>
> <input type="text"  jwcid="[EMAIL PROTECTED]" />
>
> i find that the underlying TextField id honors the telNo2 prefix for the
> jwcid, but the name parameter of the TextField looks like textfield_xx
>
> my requirement is that i want the name parameter of the underlying
> textfield
> to be like telNo2_xx
>
> Any help will be most appreciated!
>


-- 
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]

Reply via email to