Problem including CSS with CSSPackageResource

2010-11-16 Thread Benjamin Lorenz
Hello, I need to dynamically include different style sheet files for different browser types. Trying to go with add(CSSPackageResource.getHeaderContribution("css/common.css")); from by BasePage.java, which is the base class all my pages inherit from (net.myself.myproject.BasePage.java) F

NonCachingImage for CSS?

2010-11-15 Thread Benjamin Lorenz
Hello, I am including dynamic images into my webapp, using code like this: add(new NonCachingImage("image", new AbstractReadOnlyModel() { @Override public Object getObject() { return new ImageResource(verify.getImage(), "jpg"); } })); Now, I also have a background

input type number

2010-11-10 Thread Benjamin Lorenz
Hello, how can I create input fields with input type number (html 5). With TextField, I get "must be applied to a tag with 'type' attribute matching 'text', not 'number'". But there's no NumberField in the Wicket API?! Please help! Best, Benjamin

label for & radio input don't match

2010-11-04 Thread Benjamin Lorenz
Hello, in the following code, the id of the radio input is changed by wicket, so that it does not match the "for" attribute of the corresponding label anymore. How can I make sure that this does not happen? Thanks, Benjamin Verkaufsunterlagen

Multiple submit buttons - CompoundPropertyModel not updated

2010-11-03 Thread Benjamin Lorenz
Hello, I have a problem with a form that shall have two submit buttons. One finally submits the form with all plausibility checks, etc... the other just opens up a search form, to lookup some data for inclusion in the form. This submit shall NOT do all the checks on e.g. .setRequired(true), etc