RE: Beaneditform with two submit buttons?
When you said Done, do you mean you have provided the source somewhere else? Would you mind sharing the URL? Wiki or otherwise? Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4978709.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Beaneditform with two submit buttons?
Any kind souls out here that can send me samples codes with beaneditor with two submit buttons that work? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4972166.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Beaneditform with two submit buttons?
On Mon, 07 Nov 2011 17:23:27 -0200, TG tapestry...@hotmail.com wrote: Any kind souls out here that can send me samples codes with beaneditor with two submit buttons that work? Not tested: form t:type=Form div t:type=BeanEditor object=xxx/ input type=submit t:type=Submit t:id=submit1/ input type=submit t:type=Submit t:id=submit2/ /form Cheers! -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Beaneditform with two submit buttons?
Hi Tapestry Guy, maybe you can go in the same direction as I went: I made a generic Event Submit mixin. Basically it takes a form id (client-side id that is) and a list of events. It observes these events thru prototype and when that event happens it will submit the form. This has the advantage that you can place it outside the form (anywhere on the page, really) and you are not limited to buttons. I use it to submit a form on enter for table filter fields. I hope this helps a little. If you are interested I will send you the code as-is but unfortunately I can't spare the time to annotate it and clean up calls to my own libs which would be necessary in order to add it to the tapestry wiki. Best Regards, Wulf -Original Message- From: TG [mailto:tapestry...@hotmail.com] Sent: Montag, 7. November 2011 20:23 To: users@tapestry.apache.org Subject: Re: Beaneditform with two submit buttons? Any kind souls out here that can send me samples codes with beaneditor with two submit buttons that work? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4972166.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Beaneditform with two submit buttons?
Wulf, would you mind share the codes? Thanks ! :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4972522.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Beaneditform with two submit buttons?
Done. As it turns out, the submitting component does need to be inside the form. I guess I wanted it to be able to submit any form but couldn't quite figure out how to ... In a few weeks I'll clean it up and post it to the wiki. -Original Message- From: TG [mailto:tapestry...@hotmail.com] Sent: Montag, 7. November 2011 22:40 To: users@tapestry.apache.org Subject: RE: Beaneditform with two submit buttons? Wulf, would you mind share the codes? Thanks ! :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4972522.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Beaneditform with two submit buttons?
Could you provide sample codes for that? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4968843.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Beaneditform with two submit buttons?
Hi Have you looked at https://github.com/apache/tapestry5/blob/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/BeanEditForm.java https://github.com/apache/tapestry5/blob/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanEditForm.tml regards Taha On Nov 6, 2011, at 9:26 PM, TG wrote: Could you provide sample codes for that? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4968843.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Beaneditform with two submit buttons?
I changed my codes to something like this - form t:id=form validate=object t:errors/ div class=t-beaneditor t:beaneditor t:id=editor object=service overrides=this t:parameter name=id ${service.id} /t:parameter /t:beaneditor div class=t-beaneditor-row input type=submit class=t-beaneditor-submit value=message:submit-label/ t:if test=cancel t:submit t:id=cancel mode=cancel value=message:cancel-label/ /t:if /div /div /form and I got the following error - The parameter element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace. Any idea? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4969022.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Beaneditform with two submit buttons?
You should add this: xmlns:p=tapestry:parameter to the root element in your .tml file, and use p:id instead of t:parameter name=id On Sun, Nov 6, 2011 at 6:12 PM, TG tapestry...@hotmail.com wrote: I changed my codes to something like this - form t:id=form validate=object t:errors/ div class=t-beaneditor t:beaneditor t:id=editor object=service overrides=this t:parameter name=id ${service.id} /t:parameter /t:beaneditor div class=t-beaneditor-row input type=submit class=t-beaneditor-submit value=message:submit-label/ t:if test=cancel t:submit t:id=cancel mode=cancel value=message:cancel-label/ /t:if /div /div /form and I got the following error - The parameter element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace. Any idea? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4969022.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Beaneditform with two submit buttons?
I changed it and also changed form t:id=form validate=service but I got Parameter(s) 'object' are required for org.apache.tapestry5.corelib.components.BeanEditForm, but have not been bound. What do I missed? Can you look at my codes again? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4969462.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Beaneditform with two submit buttons?
On Sat, 05 Nov 2011 21:27:56 -0200, TG tapestry...@hotmail.com wrote: Is it possible to have two submit buttons for this component? I would like to implement save (the page stays) and submit (done, and go to the welcome page). I don' think so, but you can use a Form with a BeanEditor and your submit buttons inside instead. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org