Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



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

How do I preload bean for editing?  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my JSF page, I'm trying to create one page for both the adding and editing of an object. So for example, on my JSF page I have

<hutputLabel for="featureDesc">
<hutputText id="featureDescLabel" value="Feature Desc:"/>
</hutputLabel>

and in my faces-config.xml file, I have

<managed-bean>
<managed-bean-name>FeatureDef</managed-bean-name>
<managed-bean-class>com.myco.nps.config.common.beans.FeatureDef</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>action</property-name>
<value>A</value>
</managed-property>
<managed-property>
<property-name>feature_name</property-name>
</managed-property>
<managed-property>
<property-name>feature_desc</property-name>
</managed-property>
</managed-bean>

My question is, let's say I'm on another JSF page and I click an "Edit" link. How do I preload the bean that I want to be edited?

- Dave
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!