Re: [Wicket-user] Validation of RadioGroup, DropDownChoice etc.

2007-01-10 Thread Igor Vaynberg
afaik both of these should already support isrequired -igor On 1/10/07, jan_bar <[EMAIL PROTECTED]> wrote: Hi, it would be nice if setRequired(true) works on RadioGroup or DropDownChoice and similar controls. For instance, radio group with initial state that has no radio "checked", user is r

Re: [Wicket-user] Validation without form submit...

2006-11-16 Thread Igor Vaynberg
alrighty the problem is in page.renderpage() // First, give priority to IFeedback instances, as they have to // collect their messages before components like ListViews // remove any child components visitChildren(IFeedback.class, new IVisitor() {... ((

Re: [Wicket-user] Validation without form submit...

2006-11-16 Thread Erik Brakkee
On 11/15/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: could you attach the proper index.java or the quickstart? Oops, you're right. I attached the wrong file. Here is the complete zip again. -igor On 11/15/06, Erik Brakkee <[EMAIL PROTECTED] > wrote: > > On 11/14/06, Igor Vaynberg <[EMAI

Re: [Wicket-user] Validation without form submit...

2006-11-15 Thread Igor Vaynberg
could you attach the proper index.java or the quickstart? -igor On 11/15/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > just rename the .zip into .iamzip :) Ok, didn't think of that. Anyway, what do you think of the example. Is it a va

Re: [Wicket-user] Validation without form submit...

2006-11-15 Thread Igor Vaynberg
you dont gotta tell me, i guess they are trying to prevent the spread of viruses or some such. you could just use a better zip, i dont think they block rars -igor On 11/15/06, Johan Compagner <[EMAIL PROTECTED]> wrote: On 11/15/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: > > On 11/14/06, Ig

Re: [Wicket-user] Validation without form submit...

2006-11-15 Thread Johan Compagner
On 11/15/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > just rename the .zip into .iamzip :) thats a bit stupid that you have to do that by the way. johan - Take Sur

Re: [Wicket-user] Validation without form submit...

2006-11-15 Thread Erik Brakkee
On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: just rename the .zip into .iamzip :) Ok, didn't think of that. Anyway, what do you think of the example. Is it a valid example or am I solving the problem in the wrong way? -igor On 11/14/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: >

Re: [Wicket-user] Validation without form submit...

2006-11-14 Thread Igor Vaynberg
just rename the .zip into .iamzip :)-igorOn 11/14/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: On 11/13/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:> why dont you create a quickstart so one of the devs can walk the code and> see what is going on(second try, the mailing list does not like zip files)

Re: [Wicket-user] Validation without form submit...

2006-11-14 Thread Erik Brakkee
On 11/13/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > why dont you create a quickstart so one of the devs can walk the code and > see what is going on (second try, the mailing list does not like zip files) And, I have... . Take the wicket 1.2.2 quickstart application and unzip the archive int

Re: [Wicket-user] Validation without form submit...

2006-11-13 Thread Igor Vaynberg
why dont you create a quickstart so one of the devs can walk the code and see what is going on-igorOn 11/13/06, Erik Brakkee < [EMAIL PROTECTED]> wrote:If I understand correctly, this explains the problem but does not solve it. Anyway, I have a simple workaround to display the message asa Label or

Re: [Wicket-user] Validation without form submit...

2006-11-13 Thread Erik Brakkee
If I understand correctly, this explains the problem but does not solve it. Anyway, I have a simple workaround to display the message as a Label or some other component, overriding getModel() to return the appropriate information. That way I am certain that I am seeing the correct results. All it

Re: [Wicket-user] Validation without form submit...

2006-11-09 Thread Eelco Hillenius
These methods were introduce specially for situations where you have to render messages at some other page than the current. The messages are deleted right after they are rendered. Try it, I think it solves your problem. Eelco On 11/9/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: > No I didn't bec

Re: [Wicket-user] Validation without form submit...

2006-11-09 Thread Erik Brakkee
No I didn't because the scope of the messages is of the page only. What would be the correct point in the lifecycle of the page to use warn(), info(), or error()? Apparently I am too early in invoking these methods. On 11/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Did you try info/warn/error

Re: [Wicket-user] Validation without form submit...

2006-11-08 Thread Eelco Hillenius
Did you try info/warn/error on Session? Eelco On 11/8/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: > Hi, > > > I am still stuck with this problem. What I try to do is to use info(), > error(), and warn() to add messages to the page, and I want to do this > as soon as another page returns to my pa

Re: [Wicket-user] Validation without form submit...

2006-11-08 Thread Erik Brakkee
Hi, I am still stuck with this problem. What I try to do is to use info(), error(), and warn() to add messages to the page, and I want to do this as soon as another page returns to my page using setResponsePage(pageObject). Somehow, the messages I set in onAttach() or onBeforeRender are lost. An

Re: [Wicket-user] Validation message using FormComponent.setType

2006-07-24 Thread Johan Compagner
it is still the same as the TypeValidator we had before:"TypeValidator" + "." + Classes.simpleName(type)So TypeValidator.DoubleOn 7/24/06, Renaut, Jonathan E CTR DISA GIG-CS <[EMAIL PROTECTED]> wrote: I need to check that the entry in a text field is a double.  I see that NumberValidato

Re: [Wicket-user] validation

2006-05-16 Thread Johan Compagner
We have a lot of standard validation classesfor the basic types the all start with the basic type name:NumberValidator or DateValidatorthose validators do all standaard stuff (min,max or range) and yes the property files are still used. And the are explaind in the javadoc:  * If that is not the cas

Re: [Wicket-user] Validation

2006-03-27 Thread Igor Vaynberg
t-user@lists.sourceforge.net Subject: RE: [Wicket-user] Validation   That is great.   However our client has some specific requirements towards the look of the selectbox and of course texts needs to be changed to our locale, I guess this is not possible without modification or extension of the p

RE: [Wicket-user] Validation

2006-03-27 Thread Nino Wael
?   -regards Nino     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 27. marts 2006 11:16 To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] Validation   That is great.   However our client has some specific requirements towards the look of the

RE: [Wicket-user] Validation

2006-03-27 Thread Nino Wael
@lists.sourceforge.net Subject: Re: [Wicket-user] Validation   yes, the palette takes care of everything for you. thats the point of encapsulation :) check out component reference in wicket examples for 1.2 -Igor On 3/27/06, Nino Wael <[EMAIL PROTECTED]> wrote: Well, because it was th

Re: [Wicket-user] Validation

2006-03-27 Thread Igor Vaynberg
TECTED]] On Behalf Of Igor Vaynberg Sent: 27. marts 2006 10:10 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Validation   why are you doing a round trip when you press > and < ? you can do this all nicely via some very basic _javascript_. see Palette component in extensi

RE: [Wicket-user] Validation

2006-03-27 Thread Nino Wael
do that for me?   -Regards Nino   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: 27. marts 2006 10:10 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Validation   why are you doing a round trip when you press > and < ? you

Re: [Wicket-user] Validation

2006-03-27 Thread Igor Vaynberg
why are you doing a round trip when you press > and < ? you can do this all nicely via some very basic _javascript_. see Palette component in extensions, it does exactly what you want and more.-Igor On 3/27/06, Nino Wael <[EMAIL PROTECTED]> wrote: Hi   Might be me which has'nt been

Re: [Wicket-user] validation in wicket framework

2006-03-22 Thread Johan Compagner
use a regexp see PatternValidator.johanOn 3/22/06, ketan gote <[EMAIL PROTECTED]> wrote: hi i am looking for validation of the username wich will take only character's. wating for reply... ketan

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Igor Vaynberg
TED]> wrote:> >> >> > I wonder if mine are blowing up because I've added ChoiceRenderers... > > > >> > >  From: Johan Compagner [mailto:[EMAIL PROTECTED] ]> > Sent: Thursday, March 09, 2006 9:06 AM> > To: wicket-user

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Johan Compagner
__>  From: Johan Compagner [mailto:[EMAIL PROTECTED] ]> > Sent: Thursday, March 09, 2006 9:06 AM> > To: wicket-user@lists.sourceforge.net> > Subject: Re: [Wicket-user] Validation of SingleSelectChoice components > >> >> >> > If you add a

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Martijn Dashorst
onder if mine are blowing up because I've added ChoiceRenderers... > > > >> > >  From: Johan Compagner [mailto:[EMAIL PROTECTED] ]> > Sent: Thursday, March 09, 2006 9:06 AM> > To: wicket-user@lists.sourceforge.net> > Subject: Re: [Wicket-user] Validation of SingleS

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Johan Compagner
_>  From: Johan Compagner [mailto:[EMAIL PROTECTED]]> > Sent: Thursday, March 09, 2006 9:06 AM> > To: wicket-user@lists.sourceforge.net> > Subject: Re: [Wicket-user] Validation of SingleSelectChoice components> >> >> >> > If you add a required validator to

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Joe Toth
AIL PROTECTED] > > Sent: Thursday, March 09, 2006 9:06 AM > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user] Validation of SingleSelectChoice components > > > > > > > > If you add a required validator to the radiochoice doesn't that work if > you d

RE: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Bennett, Timothy (JIS - Applications)
lto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 9:28 AMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Validation of SingleSelectChoice components what does a choicerenderer have to do with a required validator?johan On 3/9/06, Bennett, Timothy (JIS - Applications) &

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Johan Compagner
t: Thursday, March 09, 2006 9:06 AMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Validation of SingleSelectChoice components If you add a required validator to the radiochoice doesn't that work if you don't select anything?A dropdown is can be tricky because

RE: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Bennett, Timothy (JIS - Applications)
I wonder if mine are blowing up because I've added ChoiceRenderers... From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 9:06 AMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Validation of SingleSelectChoice components If yo

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Johan Compagner
If you add a required validator to the radiochoice doesn't that work if you don't select anything?A dropdown is can be tricky because there is most of the time a selection.So if the value of that is "" then required should also work fine. And by default our nothing selected values are "" so then th

Re: [Wicket-user] Validation messages

2005-11-07 Thread Juergen Donnerstag
yes, that is a bug Juergen On 11/8/05, Ingram Chen <[EMAIL PROTECTED]> wrote: > I check out latest CVS HEAD, but find strange behavior: > > If a MyPage.properties as below: > > RequiredValidator = ${label} is required > myForm.bookId = Book ID > > then validation message work well and is "Book ID

Re: [Wicket-user] Validation messages

2005-11-07 Thread Juergen Donnerstag
It works on my side. I created unit tests and I think they are ok. I enabled logging for the package and it doesn't happen. I tested the formInput example and it works without changes. Did you update AbstractValidator as well? Juergen On 11/7/05, Sven Meier <[EMAIL PROTECTED]> wrote: > Hello Juer

Re: [Wicket-user] Validation messages

2005-11-07 Thread Sven Meier
Hello Juergen, maybe it shouldn't - but currently it does ;). I debugged the new algorithm of ComponentStringResourceLoader today. As I already suspected, the id of the validated component is duplicated in the prefixKey, since both DefaultValidatorResourceKeyFactory and ComponentStringResour

Re: [Wicket-user] Validation messages

2005-11-06 Thread Juergen Donnerstag
It shouldn't. I guess the important point is that ComponentStringResourceLoade does not get the FormComponent (text1) You don't start looking for text1 in the formComponents properties file, do you? You start with the parent component containing text1. A key text1 expresses that text1 is a child of

Re: [Wicket-user] Validation messages

2005-11-05 Thread Sven Meier
Hello Juergen, I've taken a short look on your code in the CVS : DefaultValidatorResourceKeyFactory.java: * public* String newKey(IValidator validator, FormComponent formComponent) { *return* formComponent.getId() + *"."* + Classes.name(validator.getClass()); } ComponentStringResourceLo

Re: [Wicket-user] Validation messages

2005-11-04 Thread Juergen Donnerstag
Repetition: Message retrieval for the following scenario - form->panel->textfield - is currently not supported Let's say that we have the following component hierarchy: APage ->BForm id="b" -->XPanel id="x" >RequiredTextField id="foo" -->YPanel id="y" >RequiredTextField id="foo"

Re: [Wicket-user] Validation messages

2005-10-29 Thread Sven Meier
I've opened a bug, see: http://sourceforge.net/tracker/index.php?func=detail&aid=1339904&group_id=119783&atid=684975 Sven Juergen Donnerstag wrote: Did you open a bug or RFE already? If not, please do so, otherwise there is always a risk that it'll be forgotten. Juergen On 10/27/05, Martijn

Re: Re: [Wicket-user] Validation messages

2005-10-28 Thread Juergen Donnerstag
Did you open a bug or RFE already? If not, please do so, otherwise there is always a risk that it'll be forgotten. Juergen On 10/27/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > +1, if it doesn't break stuff. > > Martijn > > > On 10/27/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > > >

Re: Re: [Wicket-user] Validation messages

2005-10-27 Thread Martijn Dashorst
+1, if it doesn't break stuff. MartijnOn 10/27/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: Would you please open a bug for it. Thanks.As long as long as no one else on the list is against fixing it thatway, I'll try and put it into 1.1.JuergenOn 10/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED

Re: Re: [Wicket-user] Validation messages

2005-10-27 Thread Juergen Donnerstag
Would you please open a bug for it. Thanks. As long as long as no one else on the list is against fixing it that way, I'll try and put it into 1.1. Juergen On 10/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >Looks to me you are right. We didn't think about a Panel being a child > >of a

AW: Re: [Wicket-user] Validation messages

2005-10-27 Thread sven
>Looks to me you are right. We didn't think about a Panel being a child >of a Form. I guess it was our assumption that FormComponents are >always a direct child of a Form. Nested panels inside the same form was the first thing I checked when evaluating Wicket. It's a very handy solution to break

Re: [Wicket-user] Validation messages

2005-10-26 Thread Juergen Donnerstag
Looks to me you are right. We didn't think about a Panel being a child of a Form. I guess it was our assumption that FormComponents are always a direct child of a Form. I'm currently not able to look into the code. Do we traverse up the component tree already, like you do? Isn't there a risk that

RE: [Wicket-user] Validation order

2005-08-02 Thread Igor Vaynberg
2, 2005 6:57 AM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Validation order > > There is actually no gueranteed ordering in the validation > process. Just what the HashMap (where the childs are nested > in) returns. > > For the ordering of the feedba

Re: [Wicket-user] Validation order

2005-08-02 Thread Eelco Hillenius
There is actually no gueranteed ordering in the validation process. Just what the HashMap (where the childs are nested in) returns. For the ordering of the feedback panel messages, you can provide a comparator to the FeedbackPanel. It is hard to come up with a schema for sorting that would wo