John,
I though about adding rendered="#{not row.inStock}" to each
<h:outputText value="#{row....}"> tag, but the table row will still
exist. In addition I suspect the number of rows displayed will not
match the number of rows defined by the "row" attribute of <t:dataTable>.
Paul Spencer
John Ruffin wrote:
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