You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by appwicket <ww...@gmail.com> on 2012/12/07 17:42:31 UTC
table header not rendered correctly
Hi all,
I have a List of String for my table:
final List<String> title2 =
Arrays.asList("1","2","3","4","5","6","7","8","9","10","11","12","13","14");
WebMarkupContainer datacontainer = new WebMarkupContainer("data");
datacontainer.add(new ListView("title2", title2 ) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem item) {
item.add(new Label("tl", String.valueOf(item.getModelObject())));
system.out.println("item object =
"+String.valueOf(item.getModelObject()));
}
});
in my html:
--------
problem is, when populate item, i got output:
item object = 1
item object = 2
item object = 3
item object = 4
item object = 5
item object =
item object = 6
item object = 7
item object = 8
item object =
item object = 9
item object = 10
item object =11
item object =
item object = 12
item object = 13
item object = 14
title2.size() is 14 but why it has more objects when populating items?
please help! thanks!
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correctly-tp4654596.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: table header not rendered correctly
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
When users use Nabble to write to our mailing lists the markup is removed.
Such mails have something like:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correctly-tp4654596.html
Sent from the Users forum mailing list archive at Nabble.com.
at the bottom. You can click on this link to see the original markup.
About the problem itself - I cannot see anything suspicious in your code.
Attach a debugger and see what your service actually returns.
On Fri, Dec 7, 2012 at 6:53 PM, Paul Bors <pa...@bors.ws> wrote:
> Your HTML didn't come through. Maybe your e-mail client is blocking it?
>
> If you want to use an HTML table, why not use a DataTable along with its
> HeaderToolbar instead of a simple ListView repeater?
>
> See the repeaters at:
> http://www.wicket-library.com/wicket-examples/index.html
>
> ~ Thank you,
> Paul Bors
>
> -----Original Message-----
> From: appwicket [mailto:wwx.usa@gmail.com]
> Sent: Friday, December 07, 2012 11:43 AM
> To: users@wicket.apache.org
> Subject: table header not rendered correctly
>
> Hi all,
> I have a List of String for my table:
> final List<String> title2 =
>
> Arrays.asList("1","2","3","4","5","6","7","8","9","10","11","12","13","14");
> WebMarkupContainer datacontainer = new WebMarkupContainer("data");
> datacontainer.add(new ListView("title2", title2 ) {
> private static final long serialVersionUID = 1L;
> @Override
> protected void populateItem(ListItem item) {
> item.add(new Label("tl",
> String.valueOf(item.getModelObject())));
> system.out.println("item object =
> "+String.valueOf(item.getModelObject()));
> }
> });
>
> in my html:
>
>
>
>
>
>
>
>
>
>
>
> --------
> problem is, when populate item, i got output:
> item object = 1
> item object = 2
> item object = 3
> item object = 4
> item object = 5
> item object =
> item object = 6
> item object = 7
> item object = 8
> item object =
> item object = 9
> item object = 10
> item object =11
> item object =
> item object = 12
> item object = 13
> item object = 14
> title2.size() is 14 but why it has more objects when populating items?
> please help! thanks!
>
>
>
> --
> View this message in context:
>
> http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correct
> ly-tp4654596.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>
RE: table header not rendered correctly
Posted by Paul Bors <pa...@bors.ws>.
Your HTML didn't come through. Maybe your e-mail client is blocking it?
If you want to use an HTML table, why not use a DataTable along with its
HeaderToolbar instead of a simple ListView repeater?
See the repeaters at:
http://www.wicket-library.com/wicket-examples/index.html
~ Thank you,
Paul Bors
-----Original Message-----
From: appwicket [mailto:wwx.usa@gmail.com]
Sent: Friday, December 07, 2012 11:43 AM
To: users@wicket.apache.org
Subject: table header not rendered correctly
Hi all,
I have a List of String for my table:
final List<String> title2 =
Arrays.asList("1","2","3","4","5","6","7","8","9","10","11","12","13","14");
WebMarkupContainer datacontainer = new WebMarkupContainer("data");
datacontainer.add(new ListView("title2", title2 ) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem item) {
item.add(new Label("tl",
String.valueOf(item.getModelObject())));
system.out.println("item object =
"+String.valueOf(item.getModelObject()));
}
});
in my html:
--------
problem is, when populate item, i got output:
item object = 1
item object = 2
item object = 3
item object = 4
item object = 5
item object =
item object = 6
item object = 7
item object = 8
item object =
item object = 9
item object = 10
item object =11
item object =
item object = 12
item object = 13
item object = 14
title2.size() is 14 but why it has more objects when populating items?
please help! thanks!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correct
ly-tp4654596.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
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