Re: onSelectedFrom is called too late

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 15:11:07 -0200, cordenier christophe wrote: I don't think CheckBox handles validation in its processSubmission method, AbstractTextField does but not the CheckBox component. Oops, you're right. I would implement a simple component to do that. -- Thiago H. de Paula Figu

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
I don't think CheckBox handles validation in its processSubmission method, AbstractTextField does but not the CheckBox component. 2010/2/4 Thiago H. de Paula Figueiredo > On Thu, 04 Feb 2010 13:21:23 -0200, cordenier christophe < > christophe.corden...@gmail.com> wrote: > > Well, sorry i though

Re: onSelectedFrom is called too late

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 13:21:23 -0200, cordenier christophe wrote: Well, sorry i thought you had a problem submit button identification because of "onSelectFrom is called to late". Then to your problem i have no solution, because as you said it the checkBox is not validated. There's a solu

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Of course, I can understand. So i come back to your first proposal and will vote for it if you post a JIRA ;) 2010/2/4 Stephan Windmüller > Am 04.02.2010 16:21, cordenier christophe wrote: > > I have only a design suggestion if you don't mind :) Why not simply put an >> intermediate screen to a

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 04.02.2010 16:21, cordenier christophe wrote: I have only a design suggestion if you don't mind :) Why not simply put an intermediate screen to alert that no email will be send to these user because of the lack of information. This would break the default validation workflow of my other pag

RE: onSelectedFrom is called too late

2010-02-04 Thread Alex Farrimond
: onSelectedFrom is called too late Well, sorry i thought you had a problem submit button identification because of "onSelectFrom is called to late". Then to your problem i have no solution, because as you said it the checkBox is not validated. I have only a design suggestion if you don't

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Well, sorry i thought you had a problem submit button identification because of "onSelectFrom is called to late". Then to your problem i have no solution, because as you said it the checkBox is not validated. I have only a design suggestion if you don't mind :) Why not simply put an intermediate s

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 04.02.2010 15:59, schrieb cordenier christophe: No i meant onValidateForm, i may be wrong but if your checkboxes are mapped to value, you have access all to those values. Yes, I have the values, but I need the component to display a the validation error next to the checkbox by using Form.r

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
No i meant onValidateForm, i may be wrong but if your checkboxes are mapped to value, you have access all to those values. Also you should have a look at volatile parameter of the Grid component, used when enclosed by a form. 2010/2/4 Stephan Windmüller > Am 04.02.2010 15:39, cordenier christoph

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 04.02.2010 15:39, cordenier christophe wrote: Why do you not simply intercept onSelectEvent and check user with email address in onValidateForm ? You mean onSelectFromSubmitButton, right? In onValidateForm I do not have access to the single checkbox components of my Grid. - Stephan ---

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Why do you not simply intercept onSelectEvent and check user with email address in onValidateForm ? 2010/2/4 Stephan Windmüller > Am 04.02.2010 15:28, schrieb cordenier christophe: > > > Just to be sure this does not work can you try also by moving your button >> at >> the top of the form ? >>

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 04.02.2010 15:28, schrieb cordenier christophe: Just to be sure this does not work can you try also by moving your button at the top of the form ? It is, actually. ;) - Stephan - To unsubscribe, e-mail: users-unsubscr...@

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Just to be sure this does not work can you try also by moving your button at the top of the form ? 2010/2/4 Stephan Windmüller > Am 04.02.2010 14:47, cordenier christophe wrote : > > > Have you tried by setting the 'defer' attribute of your submit button to >> false ? >> > > Good idea, but it d

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 04.02.2010 14:47, cordenier christophe wrote : Have you tried by setting the 'defer' attribute of your submit button to false ? Good idea, but it did not work. :( Regards Stephan - To unsubscribe, e-mail: users-unsubscr.

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Have you tried by setting the 'defer' attribute of your submit button to false ? 2010/2/4 Stephan Windmüller > Am 04.02.2010 14:37, schrieb cordenier christophe: > > > Sorry but I don't get your case, is it the user that have to check the row >> on which the action will be applied. Or must all

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 04.02.2010 14:37, schrieb cordenier christophe: Sorry but I don't get your case, is it the user that have to check the row on which the action will be applied. Or must all the checkboxes been checked to allow the submission ? One possible action is "Send e-mail to user", but this action is

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Sorry but I don't get your case, is it the user that have to check the row on which the action will be applied. Or must all the checkboxes been checked to allow the submission ? Regards, Christophe. Developer of wooki @wookicentral.com 2010/2/4 Stephan Windmüller > Am 04.02.2010 14:27, cordeni

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 04.02.2010 14:27, cordenier christophe wrote: On a page a Grid is displayed inside a form which contains a checkbox for each row (similar to [0]). When I submit the form using *one of the submit buttons* below, I want to check for each row if the action of the submit button is possible. Have

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Hi 2010/2/3 Stephan Windmüller > Hello! > > I have the following problem: > > On a page a Grid is displayed inside a form which contains a checkbox for > each row (similar to [0]). When I submit the form using *one of the submit > buttons* below, I want to check for each row if the action of the

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 04.02.2010 11:40, Stephan Windmüller wrote: Of course, I could remember the control names of each Field. But how do I restore the Field instance based on the control name? Is there a service for this? Okay, here is my solution for now: I created a class SimpleField which implements the Fie

Re: onSelectedFrom is called too late

2010-02-04 Thread Stephan Windmüller
Am 03.02.2010 17:13, Stephan Windmüller wrote: To achieve this, I extended the Checkbox component to allow validation for checkbox fields. This works, but it happens too early: At first all checkboxes are validated, _then_ the onSelectedFromSubmitButton is called and I do not know which action I