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.