What is the error message? What exactly fails? At a first glance it
looks good to me.

Juergen

On 1/2/06, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a Page with one big form. The Form has different sections that I
> always want to render, but sometimes want to hide on the client side
> with the CSS visibility=hidden style.
>
> This is the html that WORKS:
>
> ...
> <form wicket:id="form">
>  <input wicket:id....
>  <input wicket:id....
>
>  <div id="panel">
>    <input type="text" wicket:id="name">
>    <input type="text" wicket:id="city">
>  </div>
> </form>
> ...
>
> I subclass the form an add the textFields directly to the form.
> Everything's fine.
>
> But when I give the <div> a wicket:id ...
> <div id="panel" wicket:id="panel">
>
> and add the name and city textFields to the panel and the panel to the
> form, the textFields fail to render.
> This is the code (inside the subclassed form's constructor)
>
> WebMarkupContainer panel = new WebMarkupContainer("panel");
> panel.add(new TextField("name", new PropertyModel(model, "name")));
> panel.add(new TextField("city", new PropertyModel(model, "city")));
> add(panel);
>
> What am I doing wrong?
>
> - Johannes.
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to