You just need to wrap the reference in an EL...heh, what's the right
name for ${}? Anyway, your input should look like:
<input type="button" value="修改" onClick="confirm1($
{arow.pool_id})">
The ${} tells the container to evaluate the contents as an expression
and write the result into the page. Hope that helps,
-t
On Mar 15, 2006, at 8:47 PM, He Shan wrote:
How to use the value of a property of a specific row?
For example:
<display:table id="arow" name="requestScope.results.rows"
pagesize="20" requestURI="/ipmanf/pool.do">
<display:column>
<form>
<input type="button" value="修改" onClick="confirm1
(arow.pool_id)">
//this doesnot work, no value of arow.pool_id is
transfered to the function
</form>
</display:column>
</display:table>
Note: confirm1(pool_id)is a javascript function I have defined,
(pool_id is a property of a row)
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user