Pete Rutters

Greenhorn
+ Follow
since Oct 16, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pete Rutters

Full Ack! Though you allready got me on the your previous post.

What do you think of aproaching your idea from an other side?
I provide a interface (let's called it defaultable) that let you implement a function to store a deep copy of the bean into a backup property.
After the bean is injected the backuproutine is called. VoilĂ ! It still covers A, B, C and D.
Just not shure if the overhead would be to big.
11 years ago
JSF

Tim Holloway wrote:Actually, you would be better off simply caching the value within your bean. That can be done quite simply in POJO code:



Much obliged!
I think this should work. The downside is that you have to double all the relevant properties and it feels a little bit clumpsy. On the other side in I my case there aren't that much properties, so it still is practicable.

11 years ago
JSF

Tim Holloway wrote:Thanks, Pete! Welcome to the Ranch!

... However, since Managed Properties are automatically injected into JSF Managed beans, you don't have to read anything - they're written into the bean at construction time.



Thank you for the warm welcome

The bean was allready injected. In runtime some of the properties in the bean where changed. So what I want to do now, is to restore some of the inital values. Therefore I need a way to get those properties from the faces-config.xml.

At least that was the best shot I came on with.

11 years ago
JSF

Tim Holloway wrote:First you need to fix your display name. We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .



How did you know this wasn't my real name? Ok, ok.... request is out. ;)
11 years ago
JSF
Hi,

I want to programaticily read some default values from a managed bean property in a faces-config.xml. Is there a way to do so?

Thanks in advanced

El Gringo
11 years ago
JSF