You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by kent lai <ma...@virtuallyonline.net> on 2007/10/12 08:44:26 UTC
wicket enclosure around a list
Hi,
I was trying to use wicket enclosure on a list. The html look as below
<wicket:enclosure>
<table>
<tr wicket:id="list">
<td><a href="#" wicket:id="link"><span wicket:id="ref-number">
[ref number]</span></a></td>
</tr>
</table>
</wicket:enclosure>
But I keep getting an error that says wicket enclosure has to
declare a child. I added wicket:child="list" to the tag, but I still
get the same error.
list is a ListView derived class.
I could work around this with a wicket:container, and hide the
entire table if the list is not visible, but I would really like to
use wicket:enclosure as it is cleaner.
Any ideas?
Thanks
Kent
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket enclosure around a list
Posted by kent lai <ma...@virtuallyonline.net>.
Seems like it is <wicket:enclosure child="id">
Anything else, like <wicket:enclosure id="id">, <wicket:enclosure
wicket:id="id"> and <wicket:enclosure wicket:child="id"> does not work
I can understand that the one with id, wicket:id does not work, but I
am wondering why the one with wicket:child not work?
After all, i do qualitify all my id with wicket:id, even for
wicket:container, and that works.
On 12 Oct 2007, at 3:40 PM, Gwyn Evans wrote:
> On Friday, October 12, 2007, 7:44:26 AM, kent
> <ma...@virtuallyonline.net> wrote:
>
>> Hi,
>> I was trying to use wicket enclosure on a list. The html
>> look as below
>
>> <wicket:enclosure>
>> <table>
>> <tr wicket:id="list">
>> <td><a href="#"
>> wicket:id="link"><span wicket:id="ref-number">
>> [ref number]</span></a></td>
>> </tr>
>> </table>
>> </wicket:enclosure>
>
>> But I keep getting an error that says wicket enclosure has to
>> declare a child. I added wicket:child="list" to the tag, but I still
>> get the same error.
>> list is a ListView derived class.
>
>> I could work around this with a wicket:container, and hide
>> the
>> entire table if the list is not visible, but I would really like to
>> use wicket:enclosure as it is cleaner.
>
>> Any ideas?
>
> From http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html, it would
> appear that:
>
> "If there are more then one wicket components directly underneath the
> enclosure you have to specify which one controls the visibility by
> providing its id to the enclosure tag"
>
> i.e. <wicket:enclosure id="list">
>
> /Gwyn
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket enclosure around a list
Posted by kent lai <ma...@virtuallyonline.net>.
Ah thanks!
I was too impatient in my reading :(
On 12 Oct 2007, at 3:40 PM, Gwyn Evans wrote:
> On Friday, October 12, 2007, 7:44:26 AM, kent
> <ma...@virtuallyonline.net> wrote:
>
>> Hi,
>> I was trying to use wicket enclosure on a list. The html
>> look as below
>
>> <wicket:enclosure>
>> <table>
>> <tr wicket:id="list">
>> <td><a href="#"
>> wicket:id="link"><span wicket:id="ref-number">
>> [ref number]</span></a></td>
>> </tr>
>> </table>
>> </wicket:enclosure>
>
>> But I keep getting an error that says wicket enclosure has to
>> declare a child. I added wicket:child="list" to the tag, but I still
>> get the same error.
>> list is a ListView derived class.
>
>> I could work around this with a wicket:container, and hide
>> the
>> entire table if the list is not visible, but I would really like to
>> use wicket:enclosure as it is cleaner.
>
>> Any ideas?
>
> From http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html, it would
> appear that:
>
> "If there are more then one wicket components directly underneath the
> enclosure you have to specify which one controls the visibility by
> providing its id to the enclosure tag"
>
> i.e. <wicket:enclosure id="list">
>
> /Gwyn
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket enclosure around a list
Posted by Gwyn Evans <gw...@gmail.com>.
On Friday, October 12, 2007, 7:44:26 AM, kent <ma...@virtuallyonline.net> wrote:
> Hi,
> I was trying to use wicket enclosure on a list. The html look as below
> <wicket:enclosure>
> <table>
> <tr wicket:id="list">
> <td><a href="#"
> wicket:id="link"><span wicket:id="ref-number">
> [ref number]</span></a></td>
> </tr>
> </table>
> </wicket:enclosure>
> But I keep getting an error that says wicket enclosure has to
> declare a child. I added wicket:child="list" to the tag, but I still
> get the same error.
> list is a ListView derived class.
> I could work around this with a wicket:container, and hide the
> entire table if the list is not visible, but I would really like to
> use wicket:enclosure as it is cleaner.
> Any ideas?
From http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html, it would
appear that:
"If there are more then one wicket components directly underneath the
enclosure you have to specify which one controls the visibility by
providing its id to the enclosure tag"
i.e. <wicket:enclosure id="list">
/Gwyn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket enclosure around a list
Posted by Erik van Oosten <e....@chello.nl>.
Hi Kent,
If you use enclosures, you should upgrade to beta 4 as it fixes an
important bug (http://issues.apache.org/jira/browse/WICKET-993).
Regards,
Erik.
kent lai wrote:
> Hi,
> I was trying to use wicket enclosure on a list. The html look as
> below
>
> <wicket:enclosure>
> <table>
> <tr wicket:id="list">
> <td><a href="#" wicket:id="link"><span
> wicket:id="ref-number">[ref number]</span></a></td>
> </tr>
> </table>
> </wicket:enclosure>
>
> But I keep getting an error that says wicket enclosure has to
> declare a child. I added wicket:child="list" to the tag, but I still
> get the same error.
> list is a ListView derived class.
>
> I could work around this with a wicket:container, and hide the
> entire table if the list is not visible, but I would really like to
> use wicket:enclosure as it is cleaner.
>
> Any ideas?
>
> Thanks
>
> Kent
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Erik van Oosten
http://2008.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org