| Author |
How to give a h:inputHidden element an initial value and bind it to a backing bean?
|
Dave Alvarado
Ranch Hand
Joined: Jul 02, 2008
Posts: 434
|
|
Hi,
I'm using MyFaces 1.1.5 with Tomahawk 1.1.7. I have a dataTable and each row contains a commandLink that submits to a page requiring a single value. I have chosen to put this value in a hidden field, but I don't know how to bind the hidden field's value to to the backing bean's field. Here's what I have so far ...
Here, I want to bind the inputHidden to the backing bean field, "#{DriverTransactionReportController..licenseNumber}". Any ideas how I do this?
Thanks, - Dave
|
 |
yun hu
Greenhorn
Joined: Feb 18, 2010
Posts: 13
|
|
<h:commandLink action="#{DriverTransactionReportController.submit}">
<f:param name="param" value="#{currentRow.name}" />
</h:commandLink>
Get parameter from backing bean :
String obj = (String) context.getExternalContext().getRequestParameterMap().get(
"param");
|
 |
 |
|
|
subject: How to give a h:inputHidden element an initial value and bind it to a backing bean?
|
|
|