Type Validator in 1.4??

2010-02-24 Thread Thierry Leveque
In versio 1.3, I used to use form.integer.TypeValidator in my property file to personalized error messages when a user enter a non numerical value in a integer field. How does this work now in 1.4? I always have a generic message like yy is not a valid int... Thanks Thierry

Re: Type Validator in 1.4??

2010-02-24 Thread Thierry Leveque
Vaynberg igor.vaynb...@gmail.comwrote: i believe it is ConversionException.type so ConversionException.Integer=bla blah -igor On Wed, Feb 24, 2010 at 8:37 AM, Thierry Leveque tleve...@gmail.com wrote: In versio 1.3, I used to use form.integer.TypeValidator in my property file

Re: Type Validator in 1.4??

2010-02-24 Thread Thierry Leveque
/Application.properties Regards, Peter 2010-02-24 18:58 keltezéssel, Thierry Leveque írta: It does not seems to work. I tried with [form name].ConversionException.Integer [field name].ConversionException.Integer ConversionException.Integer And all of them without the Integer at the end

setRequired( false ) does not work on Integer textfield?

2010-01-27 Thread Thierry Leveque
Here's what I have in my code: TextFieldInteger lAdaptingHitCountThreshold = new TextFieldInteger( AdaptingHitCountThreshold, new PropertyModelInteger( lMcsConfig, Adapting.HitCountThreshold ) ); lForm.add( lAdaptingHitCountThreshold.setRequired( false ) ); But when I execute it, if I do not

Re: setRequired( false ) does not work on Integer textfield?

2010-01-27 Thread Thierry Leveque
it an Integer not int On Wed, Jan 27, 2010 at 16:48, Thierry Leveque tleve...@gmail.com wrote: Here's what I have in my code: TextFieldInteger lAdaptingHitCountThreshold = new TextFieldInteger( AdaptingHitCountThreshold, new PropertyModelInteger( lMcsConfig, Adapting.HitCountThreshold

Re: setRequired( false ) does not work on Integer textfield?

2010-01-27 Thread Thierry Leveque
Oups... always create int even if we specify xs:integer in the xsd... Of course!!! Thierry On Wed, Jan 27, 2010 at 10:55, Thierry Leveque tleve...@gmail.com wrote: Yes... Thanks, that what I tought The problem is that my Pojo object is in fact created by Castor (from an xsd

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Thierry Leveque
for the FeedbackPanel to false until the form has been properly submitted with a press of a submit button work? /Stefan On Mon, Jul 6, 2009 at 8:42 PM, Thierry Leveque tleve...@gmail.commailto: tleve...@gmail.com wrote: Any following on that? Daniel, have you been able to solve your problem? Did you

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-07 Thread Thierry Leveque
On Mon, Jul 6, 2009 at 8:42 PM, Thierry Leveque tleve...@gmail.com mailto: tleve...@gmail.com wrote: Any following on that? Daniel, have you been able to solve your problem? Did you wrote your own behavior? I have the same requirement as you and I am trying to find

Re: Can I make AjaxFormSubmitBehavior submit raw form data but not validate it?

2009-07-06 Thread Thierry Leveque
Any following on that? Daniel, have you been able to solve your problem? Did you wrote your own behavior? I have the same requirement as you and I am trying to find a quick way to solve my problem. Can someone point me to some examples on how to write my own Ajax behavior? Thanks Thierry On

Forcing model update?

2009-05-06 Thread Thierry Leveque
Hi Is there a way to force the model to update even if the field value is not change? Why would I want to do that? Because I am using Castor (xml) object. And for element of type Int, the Castor objects have a boolean method like HasElementName. It is set to false until the value of the element

Problem with ListView embedded in another ListView

2009-04-23 Thread Thierry Leveque
Hi I have a ListView that is embedded inside another ListView. Both ListView are dynamic: Both have an Add and a Remove button. The ietms in both ListView are a series of form fields. The problem I have is only with my second ListView when I add more than one item without submitting the form.

Re: Problem with ListView embedded in another ListView

2009-04-23 Thread Thierry Leveque
? -igor On Thu, Apr 23, 2009 at 8:45 AM, Thierry Leveque tleve...@gmail.com wrote: Hi I have a ListView that is embedded inside another ListView. Both ListView are dynamic: Both have an Add and a Remove button. The ietms in both ListView are a series of form fields. The problem I

Re: Problem with ListView embedded in another ListView

2009-04-23 Thread Thierry Leveque
On Thu, Apr 23, 2009 at 9:57 AM, Thierry Leveque tleve...@gmail.com wrote: No, it is an AjaxFallbackLink Both ListView use AjaxFallbackLink to Add or Remove item. Thierry Sent from Montreal, Quebec, Canada On Thu, Apr 23, 2009 at 12:44, Igor Vaynberg igor.vaynb...@gmail.com wrote

Strange java.util.MissingResourceException on form validation

2009-04-20 Thread Thierry Leveque
Hi I have a really strange MissingResourceException when running my application. I have implemented my own IFormValidator. When I find an error I use this code: *lFormComponent.error( lFormComponent.getString( DuplicatePorts, new Model( new DuplicatePortsMessage( lFormComponent.getRawInput() )

Re: Strange java.util.MissingResourceException on form validation

2009-04-20 Thread Thierry Leveque
Thierry Sent from Montreal, Quebec, Canada On Mon, Apr 20, 2009 at 11:30, Thierry Leveque tleve...@gmail.com wrote: Hi I have a really strange MissingResourceException when running my application. I have implemented my own IFormValidator. When I find an error I use this code

Re: Validation of multiple textfield in a dynamic ListView

2009-04-17 Thread Thierry Leveque
On Fri, Apr 17, 2009 at 7:05 AM, Thierry Leveque tleve...@gmail.com wrote: Hi I have a validation problem that I can figure out how to do: I have build a dynamic table for the user to enter data into text fields. I am using the ListView component and some ajax behavior. Users can

Annoying ModificationWatcher Task... debug log line

2009-03-30 Thread Thierry Leveque
Hi, I am running my Wicket application in development mode and I am getting a line like: DEBUG ModificationWatcher Task org.apache.wicket.util.thread.Task - Run the job: org.apache.wicket.util.watch.modificationwatche...@d31f85 Every second or 2 in my log file. This is really annoying. Is there

Re: Annoying ModificationWatcher Task... debug log line

2009-03-30 Thread Thierry Leveque
...@gmail.comwrote: On Mon, Mar 30, 2009 at 12:44 PM, Thierry Leveque tleve...@gmail.com wrote: Every second or 2 in my log file. This is really annoying. Is there a way to remove that? change your logger configuration and set that package to info And what is this ModificationWatcher Task? the thing

Re: AutoCompleteTextField and accentuated characters

2009-03-24 Thread Thierry Leveque
= new String(input.getBytes(ISO-8859-1),UTF-8);* It is a patch but at least it is working fine now. Any better idea? Thierry On Mon, Mar 23, 2009 at 21:05, Thierry Leveque tleve...@gmail.com wrote: Well I was still perplex, because other fields, and even other ajax components seems to work

Re: AutoCompleteTextField and accentuated characters

2009-03-23 Thread Thierry Leveque
The problem is that with any other form fields, what is saved in my models is fine. All the accentuated characters are fine. If I output (in a log file for example) the content of a string field, I can see the accentuated character. But with the AutocompleteTextField, if I try to do that in the

Re: AutoCompleteTextField and accentuated characters

2009-03-23 Thread Thierry Leveque
Using Wicket 1.3.5? Mmmm, I will have to get the source code and check what is happening. Maybe it have something to do with the fact that I am under Mac OS X? But if it was the case, why all other fields are ok? I think I will also try with another ajax component. Thierry Sent from: Montreal

Re: AutoCompleteTextField and accentuated characters

2009-03-23 Thread Thierry Leveque
UTF-8 and not Mac Roman or ISO-8859-1 and not a mix. On Mon, Mar 23, 2009 at 11:33 AM, Thierry Leveque tleve...@gmail.com wrote: Using Wicket 1.3.5? Mmmm, I will have to get the source code and check what is happening. Maybe it have something to do with the fact that I am under Mac OS X

Re: AutoCompleteTextField and accentuated characters

2009-03-23 Thread Thierry Leveque
It is working!!! Thanks!!! But I hope this is standard on Linux server, because I don't think I will have access that on the server where I am hosting my web site. Do you know if there is another way to set that per web application? Thanks again! Thierry Sent from: Montreal Quebec Canada. On

Re: AutoCompleteTextField and accentuated characters

2009-03-23 Thread Thierry Leveque
Well I was still perplex, because other fields, and even other ajax components seems to work fine with the default Tomcat config. So I used the Firefox extension TamperData to see exactly what is sent by the browser. The difference is obvious: Other ajax components and normal submit link are doing