Re: [Wicket-user] Joost uses Wicket

2007-03-17 Thread ZedroS Schwart
Regarding static content, is it such a big issue to have some wicket html pages with empty classes behind ? Thanks in advance ZedroS On 3/15/07, Ryan [EMAIL PROTECTED] wrote: It is definitely possible. First make sure you are running 1.2.5 or better (this will fix a bug where posts did not

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-17 Thread ZedroS Schwart
Thanks Jonathan for the tip. I've now read on the wiki about it and this detachable compound property model seems the best way to do (or even the Detachable BoundCompoundPropertyModel !) . I've just a question (a newbe one as usual lol) : how does wicket work with non detachable models ? They're

[Wicket-user] colored labels in validation error

2007-03-17 Thread Wouter de Vaal
Hi, Is there a wicket standard way to have input label have a special style (e.g. color: red) when the corresponding input field validation fails? Thanx, Wouter - Take Surveys. Earn Cash. Influence the Future of IT Join

Re: [Wicket-user] colored labels in validation error

2007-03-17 Thread Martijn Dashorst
field.add(new AttributeModifier(class, true, new Model() { public Object getObject(Component c) { return ((FormComponent)c).isValid() ? : error; } } ); Should work. Provided you do: .error { background-color : red; } in your stylesheet. Martijn On 3/17/07, Wouter de Vaal

Re: [Wicket-user] colored labels in validation error

2007-03-17 Thread Wouter de Vaal
Thanx. It works with the modification that getObject(Component c) is not a part of Model anymore in the wicket version that I use (a 2.0 snapshot). Wouter On 3/17/07, Martijn Dashorst [EMAIL PROTECTED] wrote: field.add(new AttributeModifier(class, true, new Model() { public Object

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-17 Thread Jonathan Locke
Non-detachable models probably are not the best way to work with a database. And since they can't be detached, your whole model stays in the session the whole time, while the detachable ones shrink to a few bytes (object header + id + transient slot) when they are detached by Wicket after

[Wicket-user] Trim user input

2007-03-17 Thread genepi
Hi, Is there a way to specify that user input in a text field component has to be trimmed from white spaces, before the field content is transfered in the model? I haven't found a AbstractTextComponent.setTrimmed(boolean trim) method. Neither a TrimStringConverter class... -- Pierre Métras --

Re: [Wicket-user] Trim user input

2007-03-17 Thread genepi
Hi again, Forget about it. I couldn't post a message and search the list at the same time. Wicket already trim input the way I need it... -- Pierre Métras -- View this message in context: http://www.nabble.com/Trim-user-input-tf3419902.html#a9531712 Sent from the Wicket - User mailing list

Re: [Wicket-user] Example 1.2.5 Tree problem

2007-03-17 Thread Ryan Holmes
I think this is WICKET-281: http://issues.apache.org/jira/browse/ WICKET-281 It's fixed but I'm not sure when 1.2.6 will be released. -Ryan On Mar 16, 2007, at 3:18 AM, Robert . wrote: Hi, I noticed a problem on the Tree pages of wicket-examples.1.2.5 If you do some actions on one of the

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-17 Thread Erik van Oosten
Still, if you know what you are doing non-detachable models may be appropriate. For example, I have used them for some slow-to-get database query results. But I also wrote my own custom cached page invalidator to make sure these results do not stay around for too long. Regards, Erik.

Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)

2007-03-17 Thread Eelco Hillenius
They are also good for when you work with value objects ('thin' representations of the your domain objects). Eelco On 3/17/07, Erik van Oosten [EMAIL PROTECTED] wrote: Still, if you know what you are doing non-detachable models may be appropriate. For example, I have used them for some

Re: [Wicket-user] Tapestry - Wicket | Action Service

2007-03-17 Thread Ryan Holmes
On Mar 16, 2007, at 5:46 AM, Robert . wrote: However what if I don't have a component and there is some javascript that wants to change the page? I'll try to write about this more in the other replies in this thread. What causes the JavaScript to change the page? Does it happen in

Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.

2007-03-17 Thread Ryan Holmes
DropDownChoice.setNullValid(true) And remember that for a null valid drop down choice, Wicket will look up a localized string with the key nullValid (rather than null) to represent the null option. Also see the JavaDocs for DropDownChoice and it's superclasses, plus this wiki page:

Re: [Wicket-user] HttpSessionStore vs SecondLevelCacheSessionStore(FilePageStore)

2007-03-17 Thread Johan Compagner
Those exceptions do happen when the browser terminates the connection So if you do an ajax request and then press the stop button? Or click on another link when the ajax request is still happening? Then the browser will close the connection and then you get that connection reset by peer johan