« Return to Thread: How to display different input type in one column

Re: How to display different input type in one column

by newbie_to_wicket :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread






dropdown.html

<wicket:panel>
<select wicket:id="value">

</select>

</wicket:panel>

dropdown.java
DropDownChoice dp  = new DropDownChoice("value",.....);

add(dp);

textfieldpanel.html

textfieldpanel.java
TextField tf   = new TextField("value",,............);
add(tf)

where your are displaying (main html)


main java

if(... your condition)
{

DropDown dp  = new DropDown("value",...);
item.add(dp);

}

else{
TextFieldPanel tf =  new TextFieldPanel("value",..);
item.add(tf);

}





 « Return to Thread: How to display different input type in one column