Mansour wrote:
I found it. I'll post it just in case someone needs it. I used "%{id}" instead of "${id}" and EL expression is evaluated immediately on the first load. I don't know why. I 'd love to hear explanation form someone. But it's working after all.

<s:hidden name="acc.id" value="%{id}" />

OK I am closer. I just put this:

<s:hidden name="acc.id" value="${id}" />

But, it works only sometimes. I notices that the values are set in the html only after I refresh the page !
Any one knows what going on ??




Mansour wrote:
I have this little problem. Basically I am trying to iterate through a list and dispaly the results in a column using tableTag:

<tt:table value="accountsList">
   <tt:column title="Account Name">
       <s:form action="getAccountById">
           <s:hidden name="id" />
               <s:a onclick="parentNode.submit();" href="javascript://">
               <s:property value="firstName" />
               <s:property value="lastName" />
           </s:a>
       </s:form>
   </tt:column>

This is giving me the expected results and things are ok. When I click the link it sets the "id" in teh next action. However, I don't want to use set id. I need to set an Account Id like this

           <s:hidden name="acc.id" />

but then if I do this, it will never obtain the id from the list I am iterating over.
Any idea?


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




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

Reply via email to