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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to