Forums Register Login

How do I preload bean for editing?

+Pie Number of slices to send: Send
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

<h:outputLabel for="featureDesc">
<h:outputText id="featureDescLabel" value="Feature Desc:"/>
</h:outputLabel>

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
I am Arthur, King of the Britons. And this is a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1657 times.
Similar Threads
Bean value doubt
Using Oracle sequence with JBOSS
Obtaining an instance of a Managed Bean declared with Application Level Scope
JSF action not getting called
When leaving a page need to set a boolean to false no matter
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:10:46.