Re: Using RadioGroup inside a Grid

2011-07-26 Thread Stephan Windmüller
On 27.07.2011 01:25, Thiago H. de Paula Figueiredo wrote: >> Imagine a questionnaire with many statements (rows). For each statement >> you have to select if you agree with it or not on a scale from 1 to 10. >> For this I need a RadioGroup for each row. > Add add="scale" in your Grid then > .

Re: Call for translations

2011-07-26 Thread Tom van Dijk
Hey Igor, It may be a silly detail, but in Dutch, "Cancel" is "Annuleren", not "Afbreken" which is the translation of "Abort". Also, the "integer-format-exception" should not be "een heel getal" but "een geheel getal". This is the usual way the word "integer" is rendered in Dutch. Then, a

Re: Using RadioGroup inside a Grid

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 06:39:01 -0300, Stephan Windmüller wrote: Imagine a questionnaire with many statements (rows). For each statement you have to select if you agree with it or not on a scale from 1 to 10. For this I need a RadioGroup for each row. Add add="scale" in your Grid then . It

Re: Call for translations

2011-07-26 Thread Igor Drobiazko
You are right. Please feel free to provide better, human readable translations. On Wed, Jul 27, 2011 at 12:20 AM, nillehammer < tapestry.nilleham...@winfonet.eu> wrote: > Hi Igor, > > I have just checked the German translations in the properties you mentioned > and they as far as correctness of t

Re: Call for translations

2011-07-26 Thread nillehammer
Hi Igor, I have just checked the German translations in the properties you mentioned and they as far as correctness of translation is concerned look ok to me. Anyway translating to German wouldn't really have helped you, as you speak German yourself. ;-)) Apart from that I generally consider the

Call for translations

2011-07-26 Thread Igor Drobiazko
Dear community, I just checked the translations for the messages produced by Tapestry. It looks like a plenty of translations for various locales are missing. Please check out the following issue and help us by providing missing translations. https://issues.apache.org/jira/browse/TAP5-1590 Thank

Re: Form using both a zone and no zone.

2011-07-26 Thread nillehammer
Dragan Sahpaski 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 lines of > code, rarely any more). > Sa

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
On Tue, Jul 26, 2011 at 9:48 PM, nillehammer < tapestry.nilleham...@winfonet.eu> wrote: > > Thiago H. de Paula Figueiredo wrote: > > > > By the way, any event in Tapestry can be handled by using an annotation > in > > the method instead of relying on naming conventions. It's your choice. :) > > >

Re: Form using both a zone and no zone.

2011-07-26 Thread nillehammer
Thiago H. de Paula Figueiredo wrote: > > By the way, any event in Tapestry can be handled by using an annotation in > the method instead of relying on naming conventions. It's your choice. :) > That cannot be repeated often enough. I think it is better style to use a name that explains, what i

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 Nabb

Re: Form using both a zone and no zone.

2011-07-26 Thread dragan.sahpas...@gmail.com
I wasn't aware you had nested zones. Please paste the code here. It probably is the case that when the outer zone gets updated, tapestry changes the id of the inner zone, so if you wire the inner zone to the form using the zone paramter with a literal value of the id, than the form cannot find tha

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 archive at Na

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 Nabble.com. -

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
Hi, When you submit a form using ajax you can return a Link that will send a redirect read more in the doc here . When having two submit buttons you can identify which one is clicked by using the onSelected event.

Form using both a zone and no zone.

2011-07-26 Thread George Christman
Hello, I'm using the AjaxFormLoop component in my page. Nested within it is a select menu that contains an "Add New" option. When you click add new a popup box appears with an additional AddFormLoop component that contains all the options contained within the select menu. When you add a new row w

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
On Tue, Jul 26, 2011 at 3:49 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 26 Jul 2011 10:31:28 -0300, dragan.sahpas...@gmail.com < > dragan.sahpas...@gmail.com> wrote: > > Yes sure I agree, but I guess It cannot be done inside the BeanEditForm >> unless you introduce a

Re: Delete confirmation with beaneditform

2011-07-26 Thread TG
So how do I make use of these two files (.js and .java)? Delete ? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Delete-confirmation-with-beaneditform-tp4634451p4635174.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Tapestry Zone and Expired Session

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 11:29:31 -0300, George Christman wrote: Hi guys, where does AccessDeniedException exist? I guess it was just one fictional example . .. Thiago, love the mixin approach, not entirely sure how to create one though. To begin with, if you haven't yet, you need to underst

Re: Tapestry Zone and Expired Session

2011-07-26 Thread antalk
AccesDeniedException comes from tapestry-spring-security (http://people.apache.org/~uli/tapestry-site/spring-security.html) which is what our company (sites) uses for identification. But you are free to choose whatever security framework you like or need. -- View this message in context: http://t

Re: Tapestry Zone and Expired Session

2011-07-26 Thread George Christman
Hi guys, where does AccessDeniedException exist? Thiago, love the mixin approach, not entirely sure how to create one though. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Zone-and-Expired-Session-tp4634714p4635001.html Sent from the Tapestry - User mailing list

Re: Tapestry Zone and Expired Session

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 10:57:22 -0300, antalk wrote: I'm using an onException method in a 'base' page class (from which all pages extend): You can easily turn this nice code into a mixin and not-so-easily apply it to all pages implementing a ComponentClassTransformWorker (get the MutableCom

Re: Tapestry Zone and Expired Session

2011-07-26 Thread antalk
I'm using an onException method in a 'base' page class (from which all pages extend): Object onException(Throwable cause) { if (cause.getCause() instanceof AccessDeniedException) { if (request.isXHR()) { return loginPa

Re: Tapestry Zone and Expired Session

2011-07-26 Thread George Christman
Thanks guys, I'd like to test both approaches. I like how Taha's approach at least gives the user a warning before automatically redirecting. However, I'm not sure how to get to the tap js file and would this break when making framework upgrades? -- View this message in context: http://tapestry.1

Re: Delete confirmation with beaneditform

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 10:31:28 -0300, dragan.sahpas...@gmail.com wrote: Yes sure I agree, but I guess It cannot be done inside the BeanEditForm unless you introduce a new component quite similar to it with this delete functionality. Again, just use Form and BeanEditor instead of BeanEditForm.

Re: Tapestry Zone and Expired Session

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 10:19:24 -0300, Josh Canfield wrote: I believe you can return a Link from the event handler and tapestry will redirect the whole page. A page instance or Class instance will work too. To check the lack of session, @Inject Request and check if getSession(false) returns

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
On Tue, Jul 26, 2011 at 3:26 PM, Taha Hafeez wrote: > Hi Dragan, > > IMHO copy-paste is never good. Think about any change in BeanEditForm > in the future. > Yes sure I agree, but I guess It cannot be done inside the BeanEditForm unless you introduce a new component quite similar to it with this

Re: Delete confirmation with beaneditform

2011-07-26 Thread Taha Hafeez
Hi Dragan, IMHO copy-paste is never good. Think about any change in BeanEditForm in the future. regards Taha On Tue, Jul 26, 2011 at 6:47 PM, dragan.sahpas...@gmail.com wrote: > Hi, > On Tue, Jul 26, 2011 at 2:13 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> On Tue, 26 J

Re: Tapestry Zone and Expired Session

2011-07-26 Thread Taha Hafeez
Hi I was facing the same problem. What I did is a hack but it works wonders for me In the tapestry.js file onSuccess : function(response, jsonResponse) { /* * When the page i

Re: Tapestry Zone and Expired Session

2011-07-26 Thread Josh Canfield
I believe you can return a Link from the event handler and tapestry will redirect the whole page. On Jul 26, 2011 6:15 AM, "George Christman" wrote: > Hello, I'm looking to redirect my page to the login page when the user tries > to render a Tapestry Zone with an expired session. Does anybody have

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
Hi, On Tue, Jul 26, 2011 at 2:13 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 26 Jul 2011 04:38:39 -0300, dragan.sahpas...@gmail.com < > dragan.sahpas...@gmail.com> wrote: > > Just customize the bean edit form by adding a delete button, by copying >> the entire tml and

Tapestry Zone and Expired Session

2011-07-26 Thread George Christman
Hello, I'm looking to redirect my page to the login page when the user tries to render a Tapestry Zone with an expired session. Does anybody have a good solution for this scenario? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Zone-and-Expired-Session-tp4634714p4

Re: Delete confirmation with beaneditform

2011-07-26 Thread Taha Hafeez
Hi Here is another example of a Confirm mixin https://github.com/tawus/tawus/blob/master/tawus-core/src/main/java/com/googlecode/tawus/mixins/Confirm.java https://github.com/tawus/tawus/blob/master/tawus-core/src/main/resources/com/googlecode/tawus/mixins/confirm.js regards Taha On Tue, Jul 26,

Re: Delete confirmation with beaneditform

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 08:31:58 -0300, TG wrote: Sorry I meant with Grid component not beaneditform, do you know what is the simplest way to provide confirmation dialog? Confirm or Cancel? In this case, the use of Grid does not difference. Just search the mailing list for "confirmation mixin"

Re: Delete confirmation with beaneditform

2011-07-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jul 2011 04:38:39 -0300, dragan.sahpas...@gmail.com wrote: Just customize the bean edit form by adding a delete button, by copying the entire tml and java class in your components package and make the needed changes. I use this approach and works for me. Hi! I'm sorry, but I

Delete confirmation with beaneditform

2011-07-26 Thread TG
Sorry I meant with Grid component not beaneditform, do you know what is the simplest way to provide confirmation dialog? Confirm or Cancel? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Delete-confirmation-with-beaneditform-tp4634451p4634451.html Sent from the Ta

Re: Using RadioGroup inside a Grid

2011-07-26 Thread Stephan Windmüller
On 25.07.2011 15:40, Thiago H. de Paula Figueiredo wrote: >> I am trying to use a RadioGroup inside a Grid component. Each selectable >> radio option should be displayed in its own column. > I don't know if it will work, but have you tried putting the Grid inside > the RadioGroup? If I understa

Re: Using RadioGroup inside a Grid

2011-07-26 Thread Stephan Windmüller
On 25.07.2011 15:14, Taha Hafeez wrote: > While trying to answer your question, I came up with an example. Enjoy !! Thanks for your suggestion, but this will not work in my case. I do not want a selection between _rows_ of a grid but between _columns_ of each row. Imagine a questionnaire with ma

Re: Issue with tapestry tutorial

2011-07-26 Thread nillehammer
Do you have the hibernate jars in your class path? - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-with-tapestry-tutorial-tp4633740p4634085.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Delete confirmation with beaneditform

2011-07-26 Thread dragan.sahpas...@gmail.com
Hi, On Tue, Jul 26, 2011 at 5:15 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, 25 Jul 2011 23:29:20 -0300, TG wrote: > > I use beaneditform to generate my CRUD UI and web tiers automagically. I >> would like to have Delete action prompt me to confirm or cancel the >>