Hi Martino, After persiting the state to the client. It is able to hold the original values. Thanks. Sri.
Martino Piccinato wrote: > > Well, maybe you should post some code because it seems you are having some > specific problem in your pages/ASO persistence implementation and it's > impossible to figure out without seeing details > > On 4/1/07, tapuser <[EMAIL PROTECTED]> wrote: >> >> >> Thanks again. >> >> I am trying to implement Master-Detail pages ( Order List -> Item List). >> On >> oder List, I am trying to implement Edit/Add/View and Item List button. >> On >> clicking item list button, I am displaying Item List. On Item List I am >> implementing Add/Delelte/View/Edit Item. On Order Page, I am trying to >> edit >> only few fields. >> >> Could you please suggest any example? >> >> Thanks. >> Srini. >> >> >> Martino Piccinato wrote: >> > >> > Actually the situation you are describing is not completely clear to me >> it >> > seems you might want to do another >> > getOrder() on form rewinding and merge the additional/showed fields >> with >> > the >> > previously persisted fields or add hidden input field components for >> the >> > remaining fields but your case is not completely clear to me. >> > >> > On 3/31/07, tapuser <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Hi Martino, >> >> Thanks. It works. I am having another issue with an >> >> entity >> >> values. I have 10+ fields in Order Object. I am displaying only 5 >> fields >> >> in >> >> Order.html. I have Order.page file with 5 fields. In editOrder( >> >> IRequestCycle cycle) method, I am setting >> >> nextPage.setOrder(serviceManager.getOrder(id)). Order Object values >> are >> >> getting lost after I do form sumbit ( save method). In Save method, I >> am >> >> calling serviceManager.Save(getOrder()); >> >> Could you please give me some hints? Do I need to specify all the >> fileds >> >> in >> >> the page spec? >> >> >> >> Thanks. >> >> Sri. >> >> >> >> >> >> >> >> Martino Piccinato wrote: >> >> > >> >> > Yes is exactly the same, I quoted 4.1 documentation just because I'm >> >> > investigating 4.1 now >> >> > >> >> > This is 4.0 docs for it: >> >> > >> >> > http://tapestry.apache.org/tapestry4/UsersGuide/state.html#state.aso >> >> > >> >> > On 3/30/07, tapuser <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Hi Martino, >> >> >> Thanks for the reply. I am using Tapestry 4.0.2. >> Is >> >> ASO >> >> >> exist in 4.1+? >> >> >> >> >> >> Thanks. >> >> >> Sri >> >> >> >> >> >> >> >> >> Martino Piccinato wrote: >> >> >> > >> >> >> > properties persisted on a page (being client or session >> persisted) >> >> are >> >> >> > persisted just for that page (it's called "persistent PAGE >> >> >> properties"). >> >> >> > Just to give you an idea the key of the session attribute named >> used >> >> to >> >> >> > store the property contains the page name . It's intended to be >> so. >> >> >> > >> >> >> > Usually if you want to implement a shopping cart you'd have to >> use >> >> >> > Application Stato Objects, ASO, see documentation about ASO at >> >> >> > http://tapestry.apache.org/tapestry4.1/usersguide/state.html >> >> >> > >> >> >> > basically you just create whatever object you want to persist >> (e.g >> . >> >> >> your >> >> >> > shopping cart) , configure it as an ASO using >> >> >> > >> >> >> > tapestry.state.ApplicationObjects and then you can easily inject >> it >> >> >> > with an annotation in whatever page you need it. >> >> >> > >> >> >> > >> >> >> > >> >> >> > On 3/30/07, tapuser <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> Hi, >> >> >> >> I am new to Tapestry. I am facing a problem with >> >> Mater-Detail >> >> >> >> Pages >> >> >> >> [ >> >> >> >> Orders List -> Item List -> Item Edit/Add/Delete.] >> >> >> >> >> >> >> >> OrderList Page displays: >> >> >> >> >> >> >> >> OrderId - OrderNumber - ItemDetails >> >> >> >> 123 - ABC123 - Link to ItemDetails (OrderId is passed >> as >> >> >> >> parameter) >> >> >> >> >> >> >> >> >> >> >> >> ItemList Page Displays: >> >> >> >> >> >> >> >> Order Number: ABC123 >> >> >> >> ----------------------------- >> >> >> >> Add new item button >> >> >> >> >> >> >> >> ItemId - ItemName - Qty >> >> >> >> 1 - Book1 - 2 (link to item details for edit/delete) >> >> >> >> 2 - Book2 - 3 (link to item details) >> >> >> >> >> >> >> >> >> >> >> >> In OrderListPage.java: >> >> >> >> >> >> >> >> In viewItems() method: >> >> >> >> >> >> >> >> ItemListPage nextPage = (ItemListPage ) cycle >> >> >> >> .getPage("ItemListPage"); >> >> >> >> nextPage.setOrder(order); >> >> >> >> cycle.activate(nextPage); >> >> >> >> >> >> >> >> >> >> >> >> In ItemListPage.java: I am persisting the order object. >> >> >> >> >> >> >> >> @Persist("session") >> >> >> >> public abstract void setOrder(Order order); >> >> >> >> public abstract Order getOrder(); >> >> >> >> >> >> >> >> In ItemForm.java: I am persisting the order object. ( Don't how >> to >> >> >> access >> >> >> >> the persisted object in the previous page). >> >> >> >> >> >> >> >> @Persist("session") >> >> >> >> public abstract void setOrder(Order order); >> >> >> >> public abstract Order getOrder(); >> >> >> >> >> >> >> >> >> >> >> >> When I am saving Item, getOrder() is returning null. This value >> >> exists >> >> >> >> when >> >> >> >> I navigate to new Item Page. But it is getting lost while >> accessing >> >> >> save >> >> >> >> method in ItemForm.java. >> >> >> >> >> >> >> >> Please help... >> >> >> >> >> >> >> >> Thanks in advance... >> >> >> >> >> >> >> >> -Sri >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/Persisted-Object-with-session-scope-is-getting-lost-between-the-pages.-tf3490484.html#a9747985 >> >> >> >> Sent from the Tapestry - User mailing list archive at >> Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Persisted-Object-with-session-scope-is-getting-lost-between-the-pages.-tf3490484.html#a9749874 >> >> >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Persisted-Object-with-session-scope-is-getting-lost-between-the-pages.-tf3490484.html#a9763239 >> >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Persisted-Object-with-session-scope-is-getting-lost-between-the-pages.-tf3490484.html#a9773540 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Persisted-Object-with-session-scope-is-getting-lost-between-the-pages.-tf3490484.html#a9905779 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]