I'm unclear of what you actually want here... In the thread you state:
"I know the benefits of wicket:enclosure. What I need, however is a placeholder, which is what wicket:enclosure doesn't provide (instead it removes it's entire body along with self when the specified child is not visible). This makes it impossible to show a component after the page has been rendered without it. " Surely if you use the wicket:enclosure around a tr (something I have done in the past) then surely all you need is a little ajax to make the enclosure and its contents visible again? IIRC all you need to do is to add the list item to the target once you've set the visibility. Feel free to berate if I'm on the wrong track. Regards Andrew -----Original Message----- From: Jeremy Thomerson [mailto:[email protected]] Sent: 26 January 2009 15:27 To: [email protected] Subject: Re: Wicket placeholder for <tr> component causing invalid markup I agree 100% - that's the only clean solution I see. On Mon, Jan 26, 2009 at 9:25 AM, the_adam <[email protected]>wrote: > > > Jeremy Thomerson-5 wrote: > > > > The problem you're facing is clear - and you're right - wicket:enclosure > > won't work for you. Unfortunately, that closed-tag code for the > > placeholder > > is hard-coded in Component. > > > > Thanks for understanding :) Also, I've looked already in the Component > source and I realise that it can't be done as is, hence the thread. > > > Jeremy Thomerson-5 wrote: > > > > Hmmm.... Could you instead have a wrapping component inside of your TR > > and > > use that for the visibility swap? (...) Or don't use TR - use div's > (...) > > > > The wrapping component would be a solution, but it's rather an ugly > workaround and a code-expensive one (as of trading invocation of chainable > method for an additional container AND manual setting of a td colspan > property AND explicit visibility linking). > > I might have opened this thread in a wrong group - I was thinking about a > possibility of reimplementing the placeholder generation fragment of > Component#render(MarkupStream) method. Right now it is hardcoded into the > method and invoked if flag FLAG_PLACEHOLDER has been set to true. It could > delegate the generation to a different method which wouldn't be final. I > can > think of a few solutions, but since we've settled that my problem won't be > solved in a clean way with the current state of Wicket I will move this > discussion to developers group. > -- > View this message in context: > http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing- invalid-markup-tp21663544p21667320.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Jeremy Thomerson http://www.wickettraining.com .......................... CarbonNeutral? office Thomson.co.uk for Holidays, Flights, Hotels, customer reviews and over 2000 videos. Find us at www.thomson.co.uk, Sky 637 or on your high street. CONFIDENTIALITY NOTICE & DISCLAIMER This message, together with any attachments, is for the confidential and exclusive use of the intended addresses(s). If you receive it in error, please delete the message and its attachments from your system immediately and notify us by return e-mail. Do not disclose copy, circulate or use any information contained in this e-mail. (1) The content of this e-mail is to be read subject to our terms of business, as applicable. (2) E-mail may be intercepted or affected by viruses and we accept no responsibility for any interception or liability for any form of viruses introduced with this e-mail. (3) The sender shall remain solely accountable for any statements, representations or opinions that are clearly his or her own and not made in the course of employment. (4) For risk, protection and security purposes, we may monitor e-mails and take appropriate action. Registered Office: TUI Travel House, Crawley Business Quarter, Fleming Way, Crawley, West Sussex RH10 9QL TUI Travel PLC, Registered in England and Wales (Number 6072876) TUI Northern Europe Limited, Registered in England and Wales (Number 3490138) TUI UK Limited, Registered in England and Wales (Number 2830117) ; VAT Number: 233 3687 62 Thomsonfly Limited, Registered in England and Wales (Number 444359); VAT Number: 490 2120 79 Telephone: +44 (0)24 7628 2828 | Fax: +44 (0)24 7628 2844 | IT Helpdesk: +44 (0)20 7383 1555 | IT E-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
