nested:select and expression evaluation
Hi there I checked the tld for nested-el and it shows that the property onChange has the rtexprvalue is set to true. But I try to put some expression language value in there and it's not working: nested:iterate . indexId=idx nested-el:select onchange=changeProduct($idx) it's printing changeProduct($idx) instead of changeProduct(0) ... changeProduct(1) ... etc. Any ideas? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: nested:select and expression evaluation
-Original Message- From: Vinicius Caldeira Carvalho [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 12:21 PM To: Struts Users Mailing List Subject: nested:select and expression evaluation Hi there I checked the tld for nested-el and it shows that the property onChange has the rtexprvalue is set to true. But I try to put some expression language value in there and it's not working: nested:iterate . indexId=idx nested-el:select onchange=changeProduct($idx) it's printing changeProduct($idx) instead of changeProduct(0) ... changeProduct(1) ... etc. Any ideas? Off the top of my head it should be: nested-el:select onchange=changeProduct(${idx}) thanks - 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]
Re: nested:select and expression evaluation
try using the proper syntax ${myVariableGoesHere} notice the brackets around the variable name and the dollar sign at the beginning. On Mon, 27 Dec 2004 17:20:45 -0200, Vinicius Caldeira Carvalho [EMAIL PROTECTED] wrote: Hi there I checked the tld for nested-el and it shows that the property onChange has the rtexprvalue is set to true. But I try to put some expression language value in there and it's not working: nested:iterate . indexId=idx nested-el:select onchange=changeProduct($idx) it's printing changeProduct($idx) instead of changeProduct(0) ... changeProduct(1) ... etc. Any ideas? thanks - 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]