How to reset JSF 286 view

17 views
Skip to first unread message

Syed Imtiaz

unread,
Feb 10, 2015, 8:27:08 AM2/10/15
to portalw...@googlegroups.com
Hi,

My requirement is to reset portlet view to initial/default page when navigated back to portlet page.
At present navigation between portlets is retaining its state of view whatever left by user while navigating to other pages.
Please help how to achieve this. Thank you.

WebSphere Portal 8.0.0.1/ WAS 8.0.0.6

Regards,
Imtiaz Basha Syed.


Imtiaz Syed

unread,
Feb 10, 2015, 9:34:48 AM2/10/15
to portalw...@googlegroups.com
Hi,

Sorry forgot to mention that the home page for portlet I am using sessionScope to retain the page data when user comes back from the second facelet of the portlet. May be this leading the portlet not to invoke the managedBean's initialize method again and again.

Please help how to invoke managed bean from portlet's lifecycle methods otherwise. Thank you.

Thanks & Regards,
Syed Imtiaz Basha,
+91 - 9962373739

--
You received this message because you are subscribed to the Google Groups "Portal/WCMTechs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to portalwcmtech...@googlegroups.com.
To post to this group, send email to portalw...@googlegroups.com.
Visit this group at http://groups.google.com/group/portalwcmtechs.
For more options, visit https://groups.google.com/d/optout.

Rao Allada

unread,
Feb 10, 2015, 10:30:26 AM2/10/15
to Portal/WCMTechs
Do you want to try using cooperative portlets for navigating back to the home page since these are two different portlets so you have the opportunity to send the control over to the action phase (processAction) of the portlet on the home page? You can change the state of the portlet during action phase(I don't think you could do that during render phase doXXXX()).
--
Thanks,

Rao.

I don't remember or recall those that let me pass, my day and energies come to life when somebody or someone stops me, questions me or challenges me, it's those that shape me up and make me who I am.

Somi Varre

unread,
Feb 10, 2015, 1:48:57 PM2/10/15
to portalw...@googlegroups.com
Hi Syed,

Use preRender event on JSP or XHTML  and in FMB method (resetView() ) reset your values. This will reset your previous values. Let me know what you think.
<hx:scriptCollector id="baaccount_setup_scriptCollector1" preRender="resetView"> 

Thanks,
Somi.
--
Thanks & Regards
Somi
Mobile: 469-274-9795

Ravi Kota

unread,
Feb 10, 2015, 2:00:26 PM2/10/15
to Portal/wcmtechs
Default behavior of IBM portal maintains state, it is known fact from version 4.x. But you can still change this behavior in configuration I guess.

http://www-10.lotus.com/ldd/portalwiki.nsf/page.xsp?documentId=44CC76E24B54F57A85257D410032FCBA&action=openDocument

Regards,
Ravi
Thanks & Regards,
Ravi

"The Dream is not what you see in sleep...
Dream is the thing which does not let you sleep." - Abdul Kalaam

Imtiaz Syed

unread,
Feb 10, 2015, 2:31:29 PM2/10/15
to portalw...@googlegroups.com
Dear Ravi/Somi,

I appreciate your quick turnaround. I will try these and confirm if it satisfies the need.
In between I would like to ask if there is any way where I can invoke Face Managed Bean's method such as PostConstruct's initialize() method from doView() ?

Thanks & Regards,
Syed Imtiaz Basha,
+91 - 9962373739

Ravi Kota

unread,
Feb 10, 2015, 5:40:20 PM2/10/15
to Portal/wcmtechs
Syed, Sorry...I never tried and I'm not good at Faces. But what I remember was, Faces does not really contain portlet doView but Faces life cycle with 7phases I believe.

Regards,
Ravi

Kishore Reddipalli

unread,
Feb 10, 2015, 11:28:27 PM2/10/15
to portalw...@googlegroups.com
Hi,

In themes will be using a tag called <portal-navigation:navigationUrl> for url creation of pages. Add the attribute keepNavigationalState="false" which will remove the state.


Regards,
Kishore


Reply all
Reply to author
Forward
0 new messages