Oi!!!
Pessoal,
Tenho uma dúvida,
<p:dataTable var="item" value="#{projetoBean.listProject}" paginator="true" rows="10"
style="font-size: 9px;text-align: justify ;" >
<p:commandButton value="Cost" update="dialogCost" onclick="dlgCost.show()" title="Cost" style="font-weight: bold;color: blue">
<f:setPropertyActionListener value="#{projct}" target="#{projetoBean.cost}"/>
</p:commandButton>
</p:dataTable>
<p:dialog header="Cost" widgetVar="dlgCost" modal="true" showEffect="true" width="800" height="420">
<p:outputPanel id="dialogCost" >
<p:panel header="Budget">
<p:dataTable value="#{projetoBean.cost.listCost}" var="costItem" rowStyleClass="#{empty costItem.item or costItem.item mod 2 ne 0 ? 'even-row' : 'odd-row'}" rowIndexVar="rowIx" emptyMessage="No Cost">
<p:column headerText="Description" style="font-size: 12px;font-weight: bold" rendered="#{costItem.type != 'D' and costItem.type != 'I' }">
<h:outputText value="#{costItem.desc}" />
</p:column>
<p:column headerText="Value" style="font-size: 12px;font-weight: bold;text-align: right;" rendered="#{costItem.type != 'D' and costItem.type != 'I' }" >
<h:outputText value="#{costItem.value}" style="color: #4477ff" rendered="#{costItem.type == 'B'}" >
<f:convertNumber type="currency" currencySymbol="R$" locale="pt" />
</h:outputText>
<h:outputText value="#{costItem.value}" style="color: darkorange" rendered="#{costItem.type == 'S'}" >
<f:convertNumber type="currency" currencySymbol="R$" locale="pt" />
</h:outputText>
<h:outputText value="#{costItem.value}" style="color: darkgreen" rendered="#{costItem.type == 'Z' and costItem.value > 0 }" >
<f:convertNumber type="currency" currencySymbol="R$" locale="pt" />
</h:outputText>
<h:outputText value="#{costItem.value}" style="color: red" rendered="#{costItem.type == 'Z' and !(costItem.value >0) }" >
<f:convertNumber type="currency" currencySymbol="R$" locale="pt" />
</h:outputText>
</p:column>
</p:dataTable>
</p:panel>
</p:dialog>
com o
O que estou fazendo de errado, estou começando agora com primefaces e jsf 2
Até mais,
Marlise.