The parameters Map does contain the url parameters - as well as context parameters set in the web.xml file and parameters set in scripts and <actions> elements in screen widgets.

So...

In web.xml:

<context-param>
  <param-name>myParameter</param-name>
  <param-value>Hello World</param-value>
</context-param>

In bsh script:

parameters.put("myParameter", "Hello World");

In screen widget:

<actions>
  <set field="parameters.myParameter" value="Hello World"/>
</actions>


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: user@ofbiz.apache.org
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]









Reply via email to