Re: Form using both a zone and no zone.

2011-07-27 Thread nillehammer
anation of which events are triggered when by each component. Each event gives you the possibility to hook in by providing a handler. And if that isn't enough, you can even trigger events of your choice yourself! Hope this was helpfull. - http://www.winfonet.eu -- View this message in

Re: Form using both a zone and no zone.

2011-07-27 Thread Thiago H. de Paula Figueiredo
On Wed, 27 Jul 2011 10:19:18 -0300, George Christman wrote: opps my save is backwards in my previous example @CommitAfter @OnEvent(value = EventConstants.SELECTED, component = "update") Object updatePurchaseRequest() { purchaseRequestState.setPurchaseRequest(getPurchaseRequest());

Re: Form using both a zone and no zone.

2011-07-27 Thread George Christman
()); return pageRenderLinkSource.createPageRenderLinkWithContext(Update.class, getPurchaseRequest().getId()); } Free Emb -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4638731.html Sent from the Tapestry - User mailing list archive at

Re: Form using both a zone and no zone.

2011-07-27 Thread George Christman
t onSelectedFromSave() { purchaseRequestState.setPurchaseRequest(getPurchaseRequest()); return pageRenderLinkSource.createPageRenderLinkWithContext(Update.class, getPurchaseRequest().getId()); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp46356

Re: Form using both a zone and no zone.

2011-07-27 Thread dragan.sahpas...@gmail.com
want to apologize to George for stealing his thread. I am glad to > discuss code styling matters, but perhaps we should open a new thread for > that. > > Cheers nillehammer > > > > > - > http://www.winfonet.eu > -- > View this message in context: > http

Re: Form using both a zone and no zone.

2011-07-26 Thread nillehammer
http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4636545.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To u

Re: Form using both a zone and no zone.

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 16:55:11 -0300, dragan.sahpas...@gmail.com wrote: Interesting, As I never had used annotations for event handlers in any project so far. I choose the name of the event to imply what is needed to be done in the method, which I prefer to keep it as short as possible (3-4 lin

Re: Form using both a zone and no zone.

2011-07-26 Thread dragan.sahpas...@gmail.com
www.winfonet.eu > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4636078.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --

Re: Form using both a zone and no zone.

2011-07-26 Thread nillehammer
at explains, what is realy done in the method rather than that it is jus an event handler. - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4636078.html Sent from the Tapestry - User mailing list arch

Re: Form using both a zone and no zone.

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 16:08:43 -0300, George Christman wrote: I wasn't aware of the onSelected method. Worked like a charm. Thanks guys. Actually, there's no onSelected method per se: the Submit component triggers the "selected" event. You could also handle it by declaring a method with

Re: Form using both a zone and no zone.

2011-07-26 Thread George Christman
Yup, tons of nested zones, but your exactly right, just resolved it moments ago with the attribute id. Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4635991.html Sent from the Tapestry - User mailing list archive at

Re: Form using both a zone and no zone.

2011-07-26 Thread dragan.sahpas...@gmail.com
; -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4635965.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > >

Re: Form using both a zone and no zone.

2011-07-26 Thread George Christman
I think I spoke to soon, I'm getting a different error with all the nested zones. Can't find zone. Any thoughts -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4635965.html Sent from the Tapestry - User mailing list

Re: Form using both a zone and no zone.

2011-07-26 Thread George Christman
I wasn't aware of the onSelected method. Worked like a charm. Thanks guys. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4635955.html Sent from the Tapestry - User mailing list archive at Nabbl

Re: Form using both a zone and no zone.

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 15:23:42 -0300, dragan.sahpas...@gmail.com wrote: Hi, Hi! When you submit a form using ajax you can return a Link that will send a redirect read more in the doc here . Even easier, y

Re: Form using both a zone and no zone.

2011-07-26 Thread dragan.sahpas...@gmail.com
tatic > > Now when saving to the database using the Save to Database button, I'd like > to just commit the object to the database and return page with context. > > I'm not sure how to get both functions out of the form. Any Ideas? > > -- > View this message in context:

Form using both a zone and no zone.

2011-07-26 Thread George Christman
ontext: http://tapestry.1045711.n5.nabble.com/Form-using-both-a-zone-and-no-zone-tp4635695p4635695.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.