L
Liming
Hello all,
I had a few pages coded using pure JSF and everythign worked fine till
today...because one of the step has to forward to a servlet first and
then the servlet forwad back to the next JSF pages.
The problem is this.
Original page1->forward to->page2 using
(context.getExternalContext().dispatch(url) )
and on page2, there is a backbutton (immediate="true" to skip
validation phase) and goes back to page1. Before, if user filled out
someting on page2, go back to page 1 and come back again, those values
would be there. Now it doesn't. Anything that skipped validation
phase/model update phase, teh value is cleaned up.
I looked at the servelt, it has this.
ViewHandler vh = context.getApplication().getViewHandler();
context.setViewRoot(vh.createView(context, page));
lifecycle.render(context);
I suppose this cleared up the incompleted form values everytime. How do
I get around this?
Why did context.getExternalContext().dispatch(url) in my back bean
worked? and now this new code in the servelt?
Also fyi, i tried to comment out the lifecycle.render() method and
replaced it with context.getExternalContext().dispatch(url), but the
page goes through an infinit loop.
thanks.
I had a few pages coded using pure JSF and everythign worked fine till
today...because one of the step has to forward to a servlet first and
then the servlet forwad back to the next JSF pages.
The problem is this.
Original page1->forward to->page2 using
(context.getExternalContext().dispatch(url) )
and on page2, there is a backbutton (immediate="true" to skip
validation phase) and goes back to page1. Before, if user filled out
someting on page2, go back to page 1 and come back again, those values
would be there. Now it doesn't. Anything that skipped validation
phase/model update phase, teh value is cleaned up.
I looked at the servelt, it has this.
ViewHandler vh = context.getApplication().getViewHandler();
context.setViewRoot(vh.createView(context, page));
lifecycle.render(context);
I suppose this cleared up the incompleted form values everytime. How do
I get around this?
Why did context.getExternalContext().dispatch(url) in my back bean
worked? and now this new code in the servelt?
Also fyi, i tried to comment out the lifecycle.render() method and
replaced it with context.getExternalContext().dispatch(url), but the
page goes through an infinit loop.
thanks.