Emiliano Armellin wrote:
> Dean Pullen ha scritto:
>> Yes use the JSTL core lib to check the value of the row and then not
>> perform the column taglib function if the value is > 0.
>
> what do you mean?
> I've tried something like:
>
> |      <display:table name="${alist}" id="row">
>         <display:setProperty name="basic.msg.empty_list" value="Nessun
> articolo selezionato"/>
>         <c:if test="${row.qta > 0}">
>         <display:column property="cd" title="Cd"/>
>         <display:column property="ds" title="Description"/>
>         <display:column title="Qta." media="html"><c:out
> value="${row.qta}"/></display:column>
>         </c:if>
>       </display:table>|
>
> but it doesn't function, the output is a table with all rows and also
> all columns for all properties of the object row...

Yeah, I don't think that would work.  I don't believe the column tags are
evaluated for each item in the list iterator, which is how the JSTL tag
would deal with it.  Basically, if that condition was true the first time
thru, then the table would be evaluated for all rows.  If that condition
wasn't true the first time, then the table would not be evaluated for ANY
rows.  At least, I *think* this is how that would work.

I think, basically, you're out of luck trying to use displaytag to filter
out specific rows.  I think you need to filter the list before sending it
to the table tag.

-- 
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to