Jesse,
I fixed the javadoc. Thanks for pointing that out. But I'm not sure
with the 2nd one. ListView does not check the tag. It should be
possible to "attach" it to any tag and wicket-examples shows that it
is possible. Unfortunately without the exception or any other
information I'm not able to say, what went wrong with your
application.
Juergen
On 6/21/05, Jesse Sightler <[EMAIL PROTECTED]> wrote:
> I'm working on my first hobby projects with Wicket, and have run into some
> strange behavior with ListView.
>
> 1. The documentation clearly has a mistake in the javadoc. The example for
> populateItem is:
> public void populateItem(final ListItem item)
> {
> final UserDetails user =
> (UserDetails)item.getModelObject();
> item(new Label("id", user.getId()));
> }
>
>
> Obviously, that should be "item.add(", not just "item(".
>
> 2. It seems very picky about the parent element of the list item. This
> should at least be documented. Ie, I had great difficulty using a "p"
> element as the item inside of another p element (I know, weird design, but
> the exceptions were even worse!:)). And it all worked
>
> fine with a "span" tag instead of "p". There seems to be some definite
> weird behaviour there.
>
> Anyway, the app is coming together nicely, and I hope to be able to show off
> a demo in the near future.
>
>
> Thanks,
> Jess
>
>
>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop