Troy Bull wrote:
I am trying to include a %= variable % type thing in an html:submit
tag and it doesn't evaluate the %= variable % is there a way to make
it evaluate this? Or is there a way to include dynamic contect in this
tag. In this case it is inside a loop and variable changes each time
through the loop.
Here is the actual code, the second line prints out the proper value.
bean:define id=key name=row property=userPrefId/bean:define
%= key %
html:submit onclick=setWKey('defaultFilter',%= key %);
value=Default/
and this renders as:
15
input type=submit value=Default
onclick=setWKey('defaultFilter',%= key %);
and I would like it to render as
15
input type=submit value=Default
onclick=setWKey('defaultFilter',15);
Thanks in advance.
Troy
If you want to specify an attribute value using a runtime expression,
you have to make the entire thing an expression:
onclick=%= setWKey('defaultFilter', + key + ); %
L.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]