Thanks Jeremy, it worked for me :)
Also, thanks to you Belmont for your input. Fortunately we have single
war file, so i would escape from this limitation.
On May 2, 2:35 pm, "Belmont, Adam" <
ad...@atg.com> wrote:
> One thing about SessionEnumPropertyDescriptor.
>
> It adds properties to the HttpSession, not a session scoped Nucleus
> component.
>
> That means you'll not only see different values for different users (good),
> but you'll see different values as users change web applications.
>
> That may or may not be want you want. If all your jsps are in a single war
> file then you don't have to worry about the problem above.
>
> -- Adam
>
> _____
>
> From:
atg_...@googlegroups.com [mailto:
atg_...@googlegroups.com] On Behalf
> Of Jeremy Sears
> Sent: Friday, May 02, 2008 4:30 PM
> To:
atg_...@googlegroups.com
> Subject: [atg_tech:952] Re: Need to create transient property which ends
> with user session.
>
> In your first example, you try to use the SessionEnumPropertyDescriptor
> directly. That property descriptor implementation only works with
> enumerated properties. Try using the SessionPropertyDescriptor instead.
> Note that you need to specify the session attribute name where you are
> storing the property value.
>
> <item-descriptor name="contactInfo" display-property="address1"
> display-name-resource="itemDescriptorContactInfo">
> <property name="currentpreaddress" data-type="string"
> property-type="atg.repository.Session
>
> PropertyDescriptor">
> <attribute name="sessionAttributeName" value="currentpreaddress"/>
> </property>
>
> <property name="currentpostaddress" data-type="string"
> property-type="atg.repository.Session
>
> PropertyDescriptor">
> <attribute name="sessionAttributeName" value="currentpostaddress"/>
> </property>
>
> </item-descriptor>
>
> On Fri, May 2, 2008 at 4:11 PM,
abhigoel_...@yahoo.com
> smime.p7s
> 4KDownload