Hi, I'm not sure I get what the issue might be, as (as I understand it) Wicket will leave the "id" tag alone, so you'd just set it in your component's HTML and it should get rendered intact?
/Gwyn On 23/08/05, flemming <[EMAIL PROTECTED]> wrote: > Hi there > > First I would like to say that I think Wicket Rocks. I am an old struts > guy, so I can really see the > advantages over struts. > > > However some things are of course more easy to do with Struts than wicket. > > In struts I have made a custom tag that gives me a panel with a headline > > ============================ > | show/hide btn div | > ============================ > <div id="divId"> | > diff content that can be hided or | > shown. | > </div> | > ============================ > > The show / hide functionality is implemented in javascript. > > Now the difficult thing for me is that I also want to make such a > component in Wicket. > > Can anybody tell me how I set the divId in the div? I want that when I > click show/hide button onclick="toogleShowHide(divId);" > > The javascript I have just included in head tag. But I need to make sure > that the divIds are the same within the same panel. > > > Or am I doing it a wrong way? or perhaps a more easy way to do it? > > > Regards > Flemming Boller > ------------------------------------------------------- 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user