I did reply to authoer by mistake instead of reply.
Any ways...
Putting the gist of my message below for the forum.

I was able to reset initial view with 
                                FacesContext ctx = getFacesCTX(request,
response);
                                UIViewRoot newView = ctx
                                                .getApplication()
                                                .getViewHandler()
                                                .createView(ctx,
                                                                
"/jsp/html/UserRgnView.jsp");
                                ctx.setViewRoot(newView);

This snippet is in doView() of my portlet. I do not want it to get invoked
everytime doView() is called.
In a way I need to be able to differentiate between 'initial or postback'
request and a request from another portal page (from outside of my jsf
portlet app).
Presently I do it by setting a render parameter in my processAction and
accessing it in doView().
If this parameter is set, it means request is postback request, else it
means it is either initial request or request from outside of my jsf-portlet
app, then I force the initial view.
Any other approach or simple solution is appreciated.

-- 
View this message in context: 
http://www.nabble.com/How-to-Re-Initialize-JSF-Backing-Bean-on-Form-Submit-tf3918359.html#a11242268
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to