Revision history [back]

click to hide/show revision 1
initial version

asked 2011-01-09 21:32:25 +0800

javahtml gravatar image javahtml flag of Colombia

Need to use @{} value and IF in a Listcell

Hi, i'm using zk 5.3 pluging for netbeans.

I had a listbox with data loaded using databinding and works fine.

I need to compare 1 retrieve field and evaluate the result, if it's positive i have to show YES else NO.

<listbox mold="paging" multiple="false" checkmark="true" pagingPosition="both" model="@{win$composer.allTipoDocs}" 
selectedItem="@{win$composer.selected}" id="listbox">
         <listhead sizable="true">
            <listheader label="Tipo Documento" sort="none" image="/images/create_doc.gif"/>
            <listheader label="Activo?" sort="none" image="/images/home_blue16x16.gif" />
         </listhead>
         <listitem self="@{each='tdocs'}" value="@{tdocs}">
            <listcell label="@{tdocs.descripcion}"></listcell>
            <listcell label="@{tdocs.activo}"></listcell>
          </listitem>
</listbox>

@{tdocs.activo} returns 0,1 or 2

I need to change the 0 and 1 returned value of @{tdocs.activo} for YES/NO

is this posible???

Otherwise can i use the @{tdocs.activo} returned value and add .png or .gif in the image attribute?? <listcell label="@{tdocs.activo}" image="@{tdocs.activo}" .png="">???

Thanks.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More