File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I preload bean for editing?

 
Dave Alvarado
Ranch Hand
Posts: 436
  • 0
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic