Portlet - Portal Communication
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Portlet - Portal Communication




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Portlet - Portal Communication  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-06 12:20 AM

Hello All

We have JSR 168 portlet  which allows users to change their language in LDAP
 . Whole flow of portlet is Portlet Code --- >> PUMA SPI --->> LDAP .

It works great . but when user select language from drop down and press ok .
 it does not change to selected language for whole portal . if users press s
ubmit button with in portlet again then it will change language of whole por
tal .

after first click it change language in LDAP but to show in portal page and 
labels users has to click twice.. which is bugging lots of people and. can a
ny one has idea . why its is happeing ?

here is snipet of code we have in processAction method.

public void processAction(ActionRequest request, ActionResponse response)
throws PortletException, IOException
{
if(request.getParameter("prf_submit") != null)
{
String sLanguage = request.getParameter("language");
try
{
Context ctx = new InitialContext();
PortletServiceHome psh = (PortletServiceHome)ctx.lookup("portletservice/com.
ibm.portal.um.portletservice.PumaHome");
if(psh != null)
{
PumaHome service = (PumaHome)psh.getPortletService(com.ibm.portal.um.PumaHom
e.class);
PumaController pc = service. getController((HttpServletRequest)reques
t);
com.ibm.portal.um.User cUser = pc.getCurrentUser();
HashMap mAttr = new HashMap();
mAttr.put("preferredLanguage", sLanguage);
pc.setAttributes(cUser, mAttr);
}
}
catch(PumaException pe)
{
pe.printStackTrace();
}
catch(NameNotFoundException ex)


thanks in advance

palnil





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:47 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register