users@javaserverfaces.java.net

Re: dataTable of map

From: Raymond DeCampo <ray_at_decampo.org>
Date: Tue, 13 Apr 2010 09:13:14 -0400

On Mon, Apr 12, 2010 at 8:23 PM, Thufir <hawat.thufir_at_gmail.com> wrote:

>
> I like that, because the DataTable is loaded/populated from the bean
> rather than the view. However, I would expect that you could do
> something like:
>
>
> JTable table = new JTable(data, columnNames); //swing
>
> but that just doesn't work?
>
>
Well, a JTable is a swing component, not a JSF component, so I am not sure
what you are getting at.

If you want to control the instantiation of the HtmlDataTable, you can, just
initialize your instance variable in the constructor, a @PostConstruct
method or in the getter via lazy-initializer. But unless you have a good
reason, I would recommend against that.