Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to give a h:inputHidden element an initial value and bind it to a backing bean?  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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");
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!