I played recently with datatable, and a custom component. The custom
component was creating different children depending on the data itself,
each row having a different data. That's how i discovered datatable is
not very flexible. It creates only one set of children, reprensenting a
rown ,and only change the rowindex and clientid between rows. So trying
to 'hide' rows is quite difficult. There are 2 ways imho
- create a filtered collection (most easy way)
- create a custom component that better fits your needs
John Ruffin a écrit :
> Try some permutation of this: rendered="#{not row.isInStock}" on your
> components.  Not sure if you'll end up with blank rows or not.
>
>
> ::SammyRulez:: wrote:
>   
>> can't u modify the business method that create the collaction of the
>> value attriubute of the datattable.
>>
>> Before you ask is not possible to set rowstyle on particular var
>> attribute values.
>>
>> My two cents is to put a image in a column with an icon that displays
>> only if the item is in stock
>>
>>
>> 2006/8/29, Paul Spencer <[EMAIL PROTECTED]>:
>>     
>>> I am have a list that is displayed by <t:dataTable>  I would like to
>>> selectively display the object in that list, i.e. filter them, via the
>>> JSP tag configuration.
>>>
>>> As an example the collection contains a list of parts.  The part object
>>> also contains the method isInStock().  So the <t:dataTable> should only
>>> display object where row.isInStock() is true.
>>>
>>> I know that a new list containing only inStock object can be created and
>>> that list could be passed to <t:dataTable>, but I have simplified the
>>> example for the purpose of this illustration.
>>>
>>> Paul Spencer
>>>
>>>
>>>
>>>
>>>       
>> -- 
>> ::SammyRulez::
>> http://www.kyub.com/blog/
>> -----------------------------------------------------------------
>> La programmazione è per un terzo interpretazione e per due terzi
>> ispirazione.
>>  E per un terzo misitificazione
>>
>>
>>     
>
>   

Reply via email to