it should work for panels (there is even a test case that) Juergen
On 8/30/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > It think that would make everything much more difficult to understand. > The alternative is that you pull the sections out to panels, and use > the markup inheritance in each panel. I don't know if markup > inheritence allready works for Panels, but that would be the way to do > stuff like this imo. > > Eelco > > On 8/30/05, Dzenan Ridjanovic <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > CategoryAddPanel extends CategoryPanel > > CategoryEditPanel extends CategoryPanel > > > > I would like to have 2 children: one for the table caption text and > > another for the additional field (appproved) in edit. > > The following does not work (it works for one child, either one, only): > > > > CategoryPanel.html: > > <html xmlns:wicket> > > <wicket:panel> > > <form wicket:id = "categoryForm"> > > <div class = "tbl"> > > <table> > > <caption> > > <wicket:child/> > > </caption> > > <tr> > > <th align = "right">Name:</th> > > <td wicket:id = "nameFeedback"> > > <input wicket:id = "name" type = "text" value = "?" size = > > "60"/> > > </td> > > </tr> > > <tr> > > <th align = "right">Description:</th> > > <td> > > <input wicket:id = "description" type = "text" value = > > "?" size = "80"/> > > </td> > > </tr> > > <tr> > > <wicket:child/> > > </tr> > > <tr> > > <th align = "right">Name Path</th> > > <td> > > <span wicket:id = "namePath"> > > Name Path > > </span> > > </td> > > </tr> > > <tr> > > <td> > > </td> > > <td> > > <input type = "submit" value = "Save"/> > > </td> > > </tr> > > </table> > > </div> > > </form> > > </wicket:panel> > > </html> > > > > CategoryAddPanel.html: > > <html xmlns:wicket> > > <wicket:panel> > > <wicket:extend> > > Category Add > > </wicket:extend> > > </wicket:panel> > > </html> > > > > CategoryEditPanel.html: > > <html xmlns:wicket> > > <wicket:panel> > > <wicket:extend> > > Category Edit > > </wicket:extend> > > <wicket:extend> > > <th align = "right">Approved?</th> > > <td> > > <input wicket:id = "approved" id = "approved" type = "checkbox"/> > > </td> > > </wicket:extend> > > </wicket:panel> > > </html> > > > > My question is: Can we add more than one child in markup inheritance? If > > no, it would be nice to be able to do it using the sequential > > positioning of <wicket:child/> and <wicket:extend> tags, or by using a > > unique id in those two tags. If yes, what is the rule? > > > > Dzenan > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
