Raul,

>> How are you saving the order in the session,
Well in my CreateOrderPage class I have a method :

public abstract Order getOrder();

and in my CreateOrder.page I inject the property using :
<property name="order" type="state" object="order"/>

>> are you using T4 or T3?
Using T4

>> Are you using a ASO definded in hivemodule.xml to declare your session
>> object?
Yes, I am.

>From my hivemodule.xml :

            <state-object name="OrderCart" scope="session">
                <create-instance class="java.util.TreeSet"/>
            </state-object>

            <state-object name="Order" scope="session">
                <create-instance class="net.pokkie.jupiter.model.order.Order
"/>
            </state-object>


On 2/8/06, Raul Raja Martinez <[EMAIL PROTECTED]> wrote:
>
> How are you saving the order in the session, are you using T4 or T3?
> Are you using a ASO definded in hivemodule.xml to declare your session
> object?
>
> Raul.
>
> Izak Wessels wrote:
> > Hello,
> >
> > In my application I am saving an "Order" into the user's session. An
> order
> > consists of an
> > "OrderCart" which contains a bunch of "OrderLineItem" objects. Now when
> the
> > user creates
> > a new order, a new "Order" object is being generated and saved as such
> in
> > the database,
> > but as soon as I add items to the "OrderCart" , then the "OrderItems"
> from
> > the previous order are still in the users session.
> >
> > So basically, I need to clear my "OrderCart" so that when a new order is
> > being created, that it keeps the correct "OrderLineItems" associated
> with
> > the corresponding order.
> >
> > Just a side note : In the "Managing Server Side State" on the Tapestry
> home
> > page, they
> > talk about setting the page to "Pristine State". Does that apply to my
> > situation?
> >
> > Thanks,
> >
> > -- Izak
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to