Thanks to David and Amine. It works. I should use <set field="partyId" from-field="parameters.partyId"/>.
William -----Original Message----- From: David E Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 5:08 PM To: [email protected] Subject: Re: sessionAttributes in screen widget Oh, BTW, sessionAttributes.partyId should get that attribute out if it exists. You can also try doing a label with ${sessionAttributes} in the widgets or in your FTL file to see what is in the session. -David David E Jones wrote: > > Not sure where you got that idea... If anyone said it on the mailing > lists they were wrong. > > Check out the UtilHttp.getCombinedMap(HttpServletRequest request, Set > namesToSkip) method. > > -David > > > William Perng wrote: >> I am not sure I understand ofbiz correctly. Please correct me, if I >> am wrong. I thought if I want to put the partyId in parameters Map, >> it has to be in the url. The ofbiz will automatically populate those >> parameters in url to parameters map. In our customized application, >> we need keep the partyId in session, since our page content will >> change base one this partyId in session attribute. >> >> >> -----Original Message----- >> From: Adrian Crum [mailto:[EMAIL PROTECTED] Sent: Wednesday, August >> 08, 2007 4:30 PM >> To: [email protected] >> Subject: Re: sessionAttributes in screen widget >> >> Why not just put the partyId in the parameters Map? >> >> William Perng wrote: >> >>> I put the partyId in session attribute, however, I am not able to use >>> the >>> following code to retrieve it in screen widget. <set field="partyId" >>> from-field="sessionAttributes.partyId"/> It works fine, if I put my >>> partyId in url and use parameters.partyId to read it. Could anyone >>> please >> help ? >>> Thanks >>> >>> William Perng >>> [EMAIL PROTECTED] >>> >>> >>> >>> >> >> >>
