Dashboard con Paneles

En el index.xhtml
<b:row>
<b:column span="3">
<b:panel look="primary" collapsed="false" collapsible="false">
<f:facet name="heading">
<i class="fa fa-television" style="padding-right:20px" />
<p:outputLabel value="#{msg['label.totalarticulos']}" />
<b:badge style="margin-left:10px;" value="#{dashboardIndexController.totalarticulos}" />
</f:facet>
<b:commandLink value="#{msg['commandlink.agregararticulo']}" outcome="/pages/articulo/list" rendered="#{applicationMenu.articulo.menu}"/>
</b:panel>
</b:column>
<b:column span="3">
<b:panel look="primary" collapsed="false" collapsible="false">
<f:facet name="heading">
<i class="fa fa-address-card" style="padding-right:20px" />
<p:outputLabel value="#{msg['label.totalclientes']}" />
<b:badge style="margin-left:10px;;" value="#{dashboardIndexController.totalclientes}" />
</f:facet>
<b:commandLink value="#{msg['commandlink.agregarclientes']}" outcome="/pages/cliente/list" rendered="#{applicationMenu.cliente.menu}"/>
</b:panel>
</b:column>
<b:column span="3">
<b:panel look="primary" collapsed="false" collapsible="false">
<f:facet name="heading">
<i class="fa fa-briefcase" style="padding-right:20px" />
<p:outputLabel value="#{msg['label.totalfacturas']}" />
<b:badge style="margin-left:10px; " value="#{dashboardIndexController.totalfacturas}" />
</f:facet>
<b:commandLink value="#{msg['commandlink.agregarfacturas']}" outcome="/pages/factura/list" rendered="#{applicationMenu.factura.menu}"/>
</b:panel>
</b:column>
<b:column span="3">
<b:panel look="primary" collapsed="false" collapsible="false">
<f:facet name="heading">
<i class="fa fa-briefcase" style="padding-right:20px" />
<p:outputLabel value="#{msg['label.totalordenes']}" />
<b:badge style="margin-left:10px; " value="#{dashboardIndexController.totalordenes}" />
</f:facet>
<b:commandLink value="#{msg['commandlink.agregarordenes']}" outcome="/pages/orden/list" rendered="#{applicationMenu.orden.menu}"/>
</b:panel>
</b:column>
</b:row>Controller
Last updated
Was this helpful?