I can send data to jsf app from an non-jsf ( a html page). But I cannot
get a value from jsf back to the html page from which I had sent the parameter.
As long as both pages are in the same WAR, this is easy. JSF session-scope managed beans are nothing but ordinary J2EE session objects which were constructed and initialized based on faces-config data instead of manual Java code. So just put the data into a session object.
Customer surveys are for companies who didn't pay proper attention to begin with.
ahmet temiz
Greenhorn
Joined: Apr 09, 2010
Posts: 10
posted
0
Tim Holloway wrote:As long as both pages are in the same WAR, this is easy. JSF session-scope managed beans are nothing but ordinary J2EE session objects which were constructed and initialized based on faces-config data instead of manual Java code. So just put the data into a session object.
thank you Tim
You mean I have to follow this procedure:
HTTPConnection con = new HTTPConnection("www.****");
HTTPResponse rsp = con.Get("/my/fie***");
You would only create an HTTPUrlRequest if the object was in some other webapp where a different session environment existed. And in that case, you would have to set up an encoding scheme to serialize the data in an HTTP-friendly form (text) on the external webapp and a corresponding decoding scheme on the client side. XML is popular for that.