can't get the TextField's Model

2013-04-07 Thread david.li
Hi,the code like this: form.add(new TextField(aaa,new PropertyModel(this, aaa))); form.add(new Button(btnaaa) { @Override public void onSubmit() { info(aaa); } }.setDefaultFormProcessing(false)); html: form wicket:id=form input type=text wicket:id=aaa/

Re: can't get the TextField's Model

2013-04-07 Thread david.li
Hi,Sven Meier,I want to achieve the function like this:there are some TextFields in the page.Some of TextFields need to check via the event whether the value entered. so when user enter the value,then click the button to verify the value. how to resolve it? - david -- View this message in

how to set radio

2013-04-05 Thread david.li
hello. I use the wicket RadioGroup in my project.the code like this: final RadioGroup group = new RadioGroup(group, new Model()); Radio monthRadio = new Radio(month, new Model()); monthRadio.add(new AjaxEventBehavior(onchange) {

radio button ajax behaviour

2013-03-01 Thread david.li
Hi,I am unable to apply ajax behavior to radio button. there are two radio button in radiogroup.but when click month radio button,i can't check this radio. java code: RadioGroup group=new RadioGroup(group); group.add(new Radio(week)); Radio monthRadio=new Radio(month);

Re: how to get the listview's dropdownchoice value

2012-11-20 Thread david.li
, Nov 20, 2012 at 10:19 AM, david.li lt; lxw_first@ gt; wrote: Through the ddlmodel.getObject() just get the value of the last DropDownChoice,but I want to get the value of the all DropDownChoice. - david -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how

how to get the listview's dropdownchoice value

2012-11-19 Thread david.li
the code like this: ListString selection = Arrays.asList(A, B); form.add(new ListView(lis, selection) { @Override protected void populateItem(ListItem item) { List list; if (item.getModelObject().equals(A)) { list =