Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem passing parameters to a managed bean  RSS feed

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

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}"/>
</h:commandButton>
</h:form>

And here is the faces_config part of ConfigStatusBean:
<managed-bean-scope>request</managed-bean-scope>

<managed-property>
<property-name>configLongName</property-name>
<value>#{requestScope.configLongName}</value>
</managed-property>
<managed-property>
<property-name>configOID</property-name>
<value>#{requestScope.configOID}</value>
</managed-property>

What am i doing wrong?

Thanks,

Liron.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!