Re: Problem in ListView populateItem()

2011-07-26 Thread eugenebalt
Ok. thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-in-ListView-populateItem-tp3695627p3696053.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem in ListView populateItem()

2011-07-26 Thread Carl-Eric Menzel
On Tue, 26 Jul 2011 06:10:29 -0700 (PDT)
eugenebalt  wrote:

> li.add(new Label("bookId"), new Model("a"));

You're adding:

new Label("bookId"), new Model("a")

That is a new Label and a new Model. You want:

new Label("bookId", new Model("a"))

which is a new Label with an id and a model.

Carl-Eric
www.wicketbuch.de

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Problem in ListView populateItem()

2011-07-26 Thread Wilhelmsen Tor Iver
> I have one comma. I followed the same example in the book, which is
> add(Label,IModel). But something's wrong.

Strange example if so: Try instead

add(new Label(id, model));

The Model is for the Label.

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem in ListView populateItem()

2011-07-26 Thread Martin Grigorov
I'm sure you can figure this alone.

On Tue, Jul 26, 2011 at 4:42 PM, eugenebalt  wrote:
> I have one comma. I followed the same example in the book, which is
> add(Label,IModel). But something's wrong.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Problem-in-ListView-populateItem-tp3695627p3695782.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem in ListView populateItem()

2011-07-26 Thread eugenebalt
I have one comma. I followed the same example in the book, which is
add(Label,IModel). But something's wrong.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-in-ListView-populateItem-tp3695627p3695782.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem in ListView populateItem()

2011-07-26 Thread Martin Grigorov
Read how many commas you have on this line.

On Tue, Jul 26, 2011 at 4:10 PM, eugenebalt  wrote:
> I am overriding ListView and have the following issue:
>
>        add(new ListView("books", (IModel) books) {
>
>            @Override
>            protected void populateItem(ListItem li) {
>
>                li.add(new Label("bookId"), new Model("a"));
>
>            }
>
>        });
>
> The line "li.add" is flagged as an error,
> "Cannot find symbol add(Label,Model)"
>
> I tried the direct string, as in "a", and also new Model("a"), and none of
> these work. Thanks.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Problem-in-ListView-populateItem-tp3695627p3695627.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org