Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting <f:param> value

843844Jun 28 2010 — edited Jun 30 2010
i want to set <f:param value=> dynamically.. so was trying out 2 solutions but but cannot work..
so any idea? blank head already >_<_
($param.row_id is passed from another page that process what row to delete --> process.jsp?row_id=123)
<a4j:commandButton value="Delete" title="Delete" action="#{myBean.myBeanAction}">
<f:param name="rowid" id="rid" value="" />
</a4j:commandButton>
__Method 1:_
<script language="javascript">
document.getElementById("rid").value = "${param.row_id}";
</script>
Error:*
script error stating getElementById("..") is null or not and object.


Method 2:*
<f:param name="rowid" id="rid" value="${param.row_id}" />
Error:*
org.apache.jasper.JasperException: /delete.jsp(55,4) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2010
Added on Jun 28 2010
11 comments
1,440 views