Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem passing parameters to a managed bean

Liron Golan
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a few parameters that i get on the URL which i want to pass to my managed bean. For some reason, the members are set to null in the bean.
The variables are not null in the URL though.

Here is the xhtml part:

<h:form id="mainForm">
<h:commandButton id="newConfig" value="New Configuration" action="#{ConfigStatusBean.createNewConfiguration}">
<f:param name="configLongName" value="#{param.configurationType}"/>
<f:param name="configOID" value="#{param.oid}"/>

And here is the faces_config part of ConfigStatusBean:


What am i doing wrong?


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic