validate() form (Form.class) - how to validate form by hand?

2009-12-11 Thread Bernhard Michal
Hello everyone, How to run validation of form (Form.class) by hand? Form.class javadoc says: If you want you can call validate() to execute form validation, hasError() to find out whether validate() resulted in validation errors, and updateFormComponentModels() to update the models of nested

RE: Hippo's patch for wicket ids

2009-10-20 Thread Bernhard Michal
Works for me, your xpath must be wrong. Your syntax is ok. Either there is no a element (link) with attribute wicketpath=tablePanel_leftList_tableList_pojoList_18_nameCell_namePanel Link_name or there is no div tag inside an a element... -Original Message- From: Douglas Ferguson

RE: Localization of values coming from my Model

2009-10-19 Thread Bernhard Michal
: weather.sunny=Don't forget sunscreen! weather.raining=You might need an umbrella weather.snowing=Got your skis? weather.overcast=Best take a coat to be safe -Original Message- From: Bernhard Michal [mailto:michal.bernh...@tigra.cz] It doesn't seem correct

RE: Localization of values coming from my Model

2009-10-16 Thread Bernhard Michal
Why don't you use special model for each component? Because this is very specific thing - CompoundPropertyModel is not supposed for this kind of model value's processing stuff. For example for activeString: add(new Label(activeString, new AbstractReadOnlyModelString() { @Override public

RE: Localization of values coming from my Model

2009-10-16 Thread Bernhard Michal
- From: Bernhard Michal [mailto:michal.bernh...@tigra.cz] Why don't you use special model for each component? Because this is very specific thing - CompoundPropertyModel is not supposed for this kind of model value's processing stuff. For example for activeString: add(new Label(activeString

RE: Can Wicket automatically remove beginning and trailing spaces in a text field?

2009-10-02 Thread Bernhard Michal
Afaik there is no way to set this behavior by some flag. But 1) You can extend TextField to wrap it's model with model which on getObject() trim (ie. remove begging and trailing spaces) returning string if Model's type is Sting (in other cases it doesn't make sense)... when value is setted into

image html element's (img) src attribute processing

2009-09-24 Thread Bernhard Michal
Hello everyone. I noticed that wicket automatically translate url in img's src attribute in html to the right url regarding to changed url context. I mean when I've got eg. link img src=/img/someimage.png and that page is rendered in some context for example /appContext/ the src attribute is

RE: image html element's (img) src attribute processing

2009-09-24 Thread Bernhard Michal
obtain this changed url for static resources? You can create an resource reference to your image resource. http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wic ket/ResourceReference.html On Thu, Sep 24, 2009 at 6:13 AM, Bernhard Michal michal.bernh...@tigra.czwrote: Hello