J
Janaka Perera
Hi All,
I tried to get a input parameter for the server side using the jsf
core libabray tag 'param' as shown in below with a <h:commandButton>,
but it never worked. The serverside variable was always null. All the
examples i saw on the internet was described using <h:commandLink>. So
when i check the 'param' tag using <h:commandLink> it worked. I got
the value in the serverside properly.
It there a way to use the <param> tag with <h:commandButton> as well.
or is it just for the <h:commandLink>?
Thanks
Janaka
Doesnt Work
<h:commandButton value=" [Remove Package] "
action="#{PackageManagementBean.deletePackage}">
<faram value="#{package.id}" name="packageIdParam"/>
</h:commandButton >
Working
<h:commandLink value=" [Remove Package] "
action="#{PackageManagementBean.deletePackage}">
<faram value="#{package.id}" name="packageIdParam"/>
</h:commandLink>
I tried to get a input parameter for the server side using the jsf
core libabray tag 'param' as shown in below with a <h:commandButton>,
but it never worked. The serverside variable was always null. All the
examples i saw on the internet was described using <h:commandLink>. So
when i check the 'param' tag using <h:commandLink> it worked. I got
the value in the serverside properly.
It there a way to use the <param> tag with <h:commandButton> as well.
or is it just for the <h:commandLink>?
Thanks
Janaka
Doesnt Work
<h:commandButton value=" [Remove Package] "
action="#{PackageManagementBean.deletePackage}">
<faram value="#{package.id}" name="packageIdParam"/>
</h:commandButton >
Working
<h:commandLink value=" [Remove Package] "
action="#{PackageManagementBean.deletePackage}">
<faram value="#{package.id}" name="packageIdParam"/>
</h:commandLink>