Hi,
I was a
struts programmer but now i am a
jsf programmer :-)
I was able to do the following with struts but no with jsf...
The following code in struts allowed me to have no 'get' and 'set' method in the javabean for a property (for example, the property 'name'):
In the
jsp, using the corresponding label to retrieve the 'name' property, returned value 'John'.
Is there something equivalent in JSF?
why would i not want to use a getter and a setter?
ok, i am integrating struts2 and icefaces in a application.
I want to continue using the Struts controller layer to redirect ICEFaces pages.
In struts.xml I describe the method of the class for the pass before going to my ICEFaces page:
In the method 'myMethod' i called to the 'setName' method for assign a value to the property 'name'.
The trace of the program in fact goes by that method and redirect to the ICEFaces page. But in this page, to try to recover the value of this property, retrieve a null value.
I guess it's because a ICEFaces page can not access the stack of struts.
So I want to use ICEfaces-JSF api to programmatically set the value of property in the method 'myMethod', pass the information on a framework to the other.