dev@woodstock.java.net

Re: table internalVirtualForm

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Thu, 25 Oct 2007 14:27:51 -0400

Steven Bell wrote:
> I saw that in the tlds. I was just hoping not to need to manage that
> table in a backing bean.
>
> Just two follow up questions.
>
> 1. I know I can do something along the lines of:
>
> <table binding="{#someBean.myTable}" />
>
> But is there a way to define the table in the jsp and still make it
> available in the bean to set that field before it's rendered?

If you have a binding, you'll need a getter and setting in you backing
bean. However, you don't have to create the Table component yourself. If
you return null from the getter (initially), you can let JSF handle the
component creation. Use the setter to save the Table instance.
>
> 2. Just out of curiosity is there a reason this was not exposed at
> the tag level, or maybe it's just not exposed at the tag level yet?

We try not to confuse developers by flooding the tags with too many
attributes. Typically, we exclude the least used, more advanced, etc.

Dan

>
> On 10/25/07, * Dan Labrecque* < Dan.Labrecque_at_sun.com
> <mailto:Dan.Labrecque_at_sun.com>> wrote:
>
> We do not expose this at the tag level, but you can access the API
> using a binding.
>
> |// Set table component.
> public void setTable(Table table) {
> this.table = table;
>
> // This binding is used only for the internal virtual form
> example.
> table.setInternalVirtualForm(true);
> }|
>
> Dan
>
>
> Steven Bell wrote:
>> Hello,
>>
>> I see in the tlddocs that table has a method to set
>> |internalVirtualForm| to true. However it only seems to be
>> available in the java side of things. For a table I'm defining
>> in a jsp is there any way to set this value?
>>
>> --
>> Regards,
>>
>> Steven Bell
>
>
>
>
> --
> Regards,
>
> Steven Bell