I don't know how difficult that (panels in same markup) is. You're not the first to ask though. Juergen, if you're reading with us, what do you think of this RFE? Do you think it is doable or is it going to be a lot of work? I can see it can be convenient for several cases.
Eelco On 10/8/05, Arto Arffman <[EMAIL PROTECTED]> wrote: > If I understand it right, Panels are the easiest way to include conditional > blocks of html into a page. Well, I hate to make a html template for each > Panel separately. It would be nice if you could define the template inside > the page's template, like this: > > <html> > some normal stuff > <span wicket:id="somePanel"> > > <wicket:panel name="viewSomething> > <span wicket:id="something">Something comes here</span> > </wicket:panel> > > <wicket:panel name="editSomething> > <input type="text" wicket:id="something"> > </wicket:panel> > </span> > > And then you would create your panel like this: > Panel p = new Panel("somePanel", "viewSomething"); > p.add(new Label("something", mymodel)); > or > > Panel p = new Panel("somePanel", "editSomething"); > p.add(new TextField("something", mymodel)); ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user