On an interesting note, we had to do alot of this as well where the
variable came from another tag(s).
I stumbled across this: I found it a bit cleaner
bean:define id=onchangeCall function('1','2','nested:write property
=someProp/')/bean:define
nested:text onchange=%=onchangeCall% /
*** Though
Perhaps I made a mistake, but nested tags are available since Struts 1.1: I
think they are not available on Struts 1.02.
Best regards
Patrice
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 6:33 PM
Subject: Nested
I don't know nested tags on version 1.02 of Struts, and perhaps it's a
stupid question, but are you sure that it is possible to use scriplet values
on the onchange parameter of the tag: is rtexprvalue set to true for
this attribute, on the .tld file of the taglib ?
Patrice
- Original Message
I would try changing
nested:text onchange=makeEditDirty('a','b','%=variable%'); /
to
nested:text onchange='%=makeEditDirty('a','b',' + variable + ');%' /
Of course if 'variable' is a property of the object in the current iteration, you'd
change it to
nested:text
4 matches
Mail list logo