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


wicket:panel
  wicket:container wicket:id=docchoice
tr class=odd
  th colspan=4Verkaufsunterlagen/th
/tr
tr class=odd
  td
input type=radio name=brochure id=brochureNo value=0 
wicket:id=0/
  /td
  td colspan=3
label for=brochureNoIch verzichte auf die gesetzlichen 
Verkaufsunterlagen/label
  /td
/tr
tr class=odd
  td
input type=radio name=brochure id=brochureYes value=1 
wicket:id=1/
  /td
  td colspan=3
label for=brochureYesIch mouml;chte die gesetzlichen 
Verkaufsunterlagen einsehen/label
  /td
/tr
  /wicket:container
/wicket:panel


public class OrderInputEnrichedDocumentsPanel extends Panel {

  public OrderInputEnrichedDocumentsPanel(String id, Form verifyForm) {
super(id);
RadioGroup docChoice = new RadioGroup(docchoice);
docChoice.add(new RadioOrderSecondQuery.Choice(0,
new ModelOrderSecondQuery.Choice(OrderSecondQuery.Choice.NO)));
docChoice.add(new RadioOrderSecondQuery.Choice(1,
new ModelOrderSecondQuery.Choice(OrderSecondQuery.Choice.YES)));
verifyForm.add(docChoice);
add(docChoice);
  }
}



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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..., but it DOES HAVE to 
update my CompoundPropertyModel values, to deal with the user's (partially) 
entered values so far.

I cannot get this together: setDefaultFormProcessing(false) will not update my 
models, setDefaultFormProcessing(true) will finally submit my form, also 
calling the form's onSubmit, which is not what I want. 

I am using an anonymous form class with the default onSubmit(), and an 
additionally attached Button, which has its own onSubmit().

Do you understand what I mean, and can anybody point me to the right direction? 
It seems to me like a very basic, fundamental thing to do, two form buttons, 
that deal - independently from each other - with the entered data, but it seems 
to be tricky nevertheless...

Thanks,
Benjamin



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org