* rc.china:
> 
> It seems that Lable use < s p a n > tag while TextField use < i n p u t > tag 
> and that they conflict. I have changed the code like this and it still does
> not work properly. Does anyone have any  workaround ? Thank you!
> 
> public class Login extends WebPage {
>       private int count = 0;
>       
>       Label label = null;
>       TextField textField = null;
> 
>       public Login() {
>               super();
>               
>               label = new Label("label", new PropertyModel(this, "count"));
>               label.setOutputMarkupId(true);
> 
>               textField = new TextField("label", new PropertyModel(this, 
> "count"));
>               textField.setOutputMarkupId(true);              

Add both components to the page and override isVisible() on your
components.
-- 
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to