JSF参数传递方式说明
先说明一种:
-----------------------------------------
-
<
h:commandLink
?
value
=
"整理材料?"
?
action
=
"#{documentPressBackingBean.cleanDatum}"
?
target
=
"HideFrame"
>
??
-
?<
f:param
?
name
=
"documentArchiveId"
?
value
=
"#{pre.documentArchiveId}"
>
</
f:param
>
??
-
</
h:commandLink
>
??
-
<
h:outputLabel
?
styleClass
=
"icoArrange"
?
id
=
"show"
>
??
-
</
h:outputLabel
>
??
-
<
h:commandButton
?
value
=
"整理材料"
?
action
=
"#{documentPressBackingBean.cleanDatum}"
???
-
onclick
=
"this.form.target='HideFrame';"
?
style
=
"display:none"
>
??
-
<
x:updateActionListener
?
property
="#??
-
{documentPressBackingBean.documentArchiveId}"?value
=
"#{pre.documentArchiveId}"
?
/>
??
-
</
h:commandButton
>
??
------------------------------------------------
以下是其他方式:
JSF参数传递方式之一:f:param标签
页面到Bean的参数传递
页面中设置参数:
-
<h:form>??????
-
????????????<h:commandLink?value="Test2"
?action=
"#{paramBean.test}"
>??????
-
????????????????<f:param?name="name"
?value=
"zhang"
></f:param>??????
-
????????????