As far as I can tell the problem is that Wicket expects me to
mutate the ComponentTag in onComponentTag(ComponentTag) but there is no
way for me to tell the ComponentTag to not render itself but render its
children.
A long time ago we discussed this entire thing and back then I
believe I was advised to override onComponentTag() and make it do
nothing because back then this method used to do the actual tag
rendering so if you didn't call super.onComponentTag() it would
magically not render (but its children would). Anyway, this is no
longer the case and I find myself left high and dry... err, sorta :)
Ideas?
Gili
On Wed, 09 Mar 2005 00:54:15 -0500, Gili wrote:
>
> This method is final. If you recall, I have this markup for my
>RoundCornerBorder:
>
><html xmlns:wicket>
> <body>
> <wicket:border>
> <div id="wicket-top">
> <div id="wicket-right">
> <div id="wicket-bottom">
> <div id="wicket-left">
> <div id="wicket-topLeft">
> <div id="wicket-topRight">
> <div id="wicket-bottomRight">
> <div id="wicket-bottomLeft">
> <div id="wicket-contents">
> <table id="wicket-width" border="0"
>width="100%">
> <tr>
> <td>
> <wicket:body/>
> </td>
> </tr>
> </table>
> </div>
> </div>
> </div>
> </div>
> </div>
> </div>
> </div>
> </div>
> </div>
> </wicket:border>
> </body>
></html>
>
> and if my RoundCornerBorder.getWidth().equals("100%") then I
>want to strip away the "wicket-width" tag but not its body. The problem
>is that as far as I can tell, the only way I can do this is by
>overriding renderComponentTag(ComponentTag) -- which is final -- and
>implement it as a no-op. Is there a cleaner way to do what I want? One
>extremely hackish/ugly way that I can see is overriding Tag.toString()
>to return "".
>
> Please help!
>
>Gili
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop