Do you tried :

<s:textfield id="stockTotal_%{house.id}" value="%{house.number}"/>

On Jan 29, 2008 12:32 PM, David Tercero <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
>   I'm  having troubles setting the id property in a textfield tag. I use
> the version 2.0.11
>
>   The case is I'm not able to introduce a variable value into the id
> property, I mean:
>
> <s:textfield>
>    <s:param name="id">stockTotal_${house.id}</s:param>
>    <s:param name="name">stockList[${house.id}].number</s:param>
>    <s:param name="value">${house.number}</s:param>
> </s:textfield>
>
>   I generate several textfields like this one and I need to reference it
> in
> javascript (that's because i need to set the id property). Using the param
> tag doesn't work for the id, but goes right for the name and value
> propertys.
>
>   I tried several ways but none of them seems to work.
>
> Any help would be appreciated.
> --
> View this message in context:
> http://www.nabble.com/Problem-setting-id-property-of-texfield-tag-tp15157521p15157521.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
RICHARD Julien,
UNILOG

Reply via email to