Hi Angelo, what kind of workflow you are referring to?
1. Order Page -> Click 2. Supplier page shows up (same browser tab) 3. User selects supplier -> Click 4. Order page shows up again + supplier is changed. 5. Order page is submitted or would you like this one: 1. Order Page -> Click 2. User types in supplier or selects it 3. Order Page is submitted The first flow is simply a Wizard / multi-page behavior. You need a special page to select the supplier. This page must know to redirect to the order page. Idea: just use the order record ID + order id to refer to. (OnActivate + Persistance) The second approach mentioned: Use Java Script. Just open a popup just like a date selector. An here you are done. It just sounds you are working on a Intranet (InHouse) application. Just look at some date picker implementation to get an idea. Maybe you like GWT + Gwt-Ext for this one. GWT-Ext has a editor field that has autocompletion and once you are into it you can generate such a form with ease. If you are into JavaScript, just open the popup, place an IFrame into it and use onClose (i am not sure about the event) to send the opening window a message or set the supplier at once. Many options harder to explain, check out the java script sites. There are tutorials for the date pickers where you can grab all those ideas needed from. Cheers, Martin (Kersten) -----Ursprüngliche Nachricht----- Von: Angelo Chen [mailto:[EMAIL PROTECTED] Gesendet: Montag, 3. März 2008 09:35 An: users@tapestry.apache.org Betreff: T5: How to handle lookup? Hi, I have this problem, say I have a OrderRec: public class OrderRec { private Long qty; private Long supplierID; private Long itemNo; // getters/setters omitted } now I have a Order page: public class Order { private OrderRec rec; // getter/setter... @InjectPage private OrderSupplier supplier; Object onActionFromSupplier() { supplier.setOrder(this); return supplier; } } <t:beaneditform t:id="rec"/> <t:actionLink t:id="supplier">supplier</t:actionLink> when user click the supplier link it will open another page where a supplier will be selected, and the supplier number should be assigned back to the orderRec in the Order page: public class OrderSupplier { @Persist private Order order; // getter/setter omitted Object onSuccess() { // there should be a way to assign the selected supllier number return order; } } what is the usual approach in this case? I'm lost here, any help will be highly appreciated, thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-How-to-handle-lookup--tp15799598p15799598.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]