jsf 2 - Error Omnifaces 2.0 o:massAttribute with o:validateOrder -


hi im having error when try combine o:massattribute o:validateorder, saw o:validateorder had attribute disabled, ideas causing issue.

i have code:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"     xmlns:h="http://java.sun.com/jsf/html"     xmlns:a4j="http://richfaces.org/a4j"     xmlns:rich="http://richfaces.org/rich"     xmlns:f="http://java.sun.com/jsf/core"     xmlns:c="http://java.sun.com/jsp/jstl/core"     xmlns:ui="http://java.sun.com/jsf/facelets"     xmlns:tablas="http://java.sun.com/jsf/composite/tablas"     xmlns:o="http://omnifaces.org/ui"     xmlns:of="http://omnifaces.org/functions"     xmlns:templates="http://java.sun.com/jsf/composite/templates"     >  <body>      <f:metadata>         <f:event type="prerenderview" listener="#{basecontroller.iniciarconversacion()}" />     </f:metadata>      <ui:composition template="/templates/templateabm.xhtml">         <ui:define name="title">                 #{msgs['facturacion.abm.generacion.factura.individual.pagina.titulo']}             </ui:define>         <ui:define name="top">             <h1>#{msgs['facturacion.abm.generacion.factura.individual.titulo']}</h1>         </ui:define>         <ui:define name="content">              <h:form id="formfacturaindividual">               <h:panelgroup id="panelfechas">                 <h:inputhidden id="fechainiciofactura" value="#{facturacontroller.fechainiciofactura}">                     <f:convertdatetime type="date" pattern="dd/mm/yy"/>                 </h:inputhidden>                  <h:inputhidden id="fechafinfactura" value="#{facturacontroller.fechafinfactura}">                     <f:convertdatetime type="date" pattern="dd/mm/yy"/>                 </h:inputhidden>                              <h:inputhidden id="fechaemisioncomprobanteultima" value="#{comprobantecontroller.fechaemisioncomprobanteultima}">                     <f:convertdatetime type="date" pattern="dd/mm/yy"/>                 </h:inputhidden>                         </h:panelgroup>                  <o:massattribute name="disabled" value="#{tipocomprobantecontroller.entidad == null}">                     <rich:panel id="paneldatosfactura" header="#{msgs['facturacion.abm.generacion.padron.panel.datos.factura']}">                          <h:panelgrid id="datosfactura" columns="3">                              <h:outputlabel value="#{msgs['facturacion.abm.generacion.padron.fecha.factura']}" for="fechafactura"/>                               <rich:calendar                                 id="fechafactura"                                 datepattern="dd/mm/yyyy"                                 showweeksbar="false"                                 enablemanualinput="true"                                 value="#{generacionfacturacionindividualcontroller.facturabean.fechafactura}"                                 required="true"                                 requiredmessage="la fecha de la factura es obligatoria" >                              </rich:calendar>                             <h:panelgroup>                                 <rich:message for="fechafactura"/>                                 <o:validateorder id="validacionfechafacturamenorafechainiciofactura" type="gte" components="fechafactura fechainiciofactura"                                  message="#{msgs['comun.abm.fecha.factura.menor.limite.dia']}" showmessagefor="fechafactura" disabled="false" />                                 <o:validateorder id="validacionfechafacturamayorafechafinfactura" type="lte" components="fechafactura fechafinfactura"                                  message="#{msgs['comun.abm.fecha.factura.menor.limite.dia']}" showmessagefor="fechafactura" disabled="false" />                                                              <o:validateorder id="validacionfechafacturamayorafechaemisionultimocomprobante" type="gte" components="fechafactura fechaemisioncomprobanteultima"                                  message="#{of:format1(msgs['comun.abm.fecha.factura.menor.ultimo.comprobante'], comprobantecontroller.fechaemisioncomprobanteultima)}" showmessagefor="fechafactura" disabled="false" />                                                                                                                         </h:panelgroup>                          </h:panelgrid>                      </rich:panel>                 </o:massattribute>               </h:form>          </ui:define>     </ui:composition>  </body> </html> 

when run im getting exception:

caused by: java.lang.illegalargumentexception: disabled     @ javax.faces.component.uicomponentbase$attributesmap.get(uicomponentbase.java:2347)     @ org.omnifaces.taghandler.massattribute.applymassattribute(massattribute.java:153)     @ org.omnifaces.taghandler.massattribute.applymassattribute(massattribute.java:162)     @ org.omnifaces.taghandler.massattribute.applymassattribute(massattribute.java:162)     @ org.omnifaces.taghandler.massattribute.applymassattribute(massattribute.java:162)     @ org.omnifaces.taghandler.massattribute.apply(massattribute.java:145)     @ javax.faces.view.facelets.delegatingmetataghandler.applynexthandler(delegatingmetataghandler.java:137)     @ org.richfaces.view.facelets.html.behaviorsaddingcomponenthandlerwrapper.applynexthandler(behaviorsaddingcomponenthandlerwrapper.java:53)     @ com.sun.faces.facelets.tag.jsf.componenttaghandlerdelegateimpl.apply(componenttaghandlerdelegateimpl.java:187)     @ javax.faces.view.facelets.delegatingmetataghandler.apply(delegatingmetataghandler.java:120)     @ com.sun.faces.facelets.tag.ui.definehandler.applydefinition(definehandler.java:106)     @ com.sun.faces.facelets.tag.ui.compositionhandler.apply(compositionhandler.java:178)     @ com.sun.faces.facelets.impl.defaultfaceletcontext$templatemanager.apply(defaultfaceletcontext.java:395)     @ com.sun.faces.facelets.impl.defaultfaceletcontext.includedefinition(defaultfaceletcontext.java:366)     @ com.sun.faces.facelets.tag.ui.inserthandler.apply(inserthandler.java:111)     @ javax.faces.view.facelets.compositefacelethandler.apply(compositefacelethandler.java:95)     @ javax.faces.view.facelets.delegatingmetataghandler.applynexthandler(delegatingmetataghandler.java:137)     @ org.richfaces.view.facelets.html.behaviorsaddingcomponenthandlerwrapper.applynexthandler(behaviorsaddingcomponenthandlerwrapper.java:53)     @ com.sun.faces.facelets.tag.jsf.componenttaghandlerdelegateimpl.apply(componenttaghandlerdelegateimpl.java:187)     @ javax.faces.view.facelets.delegatingmetataghandler.apply(delegatingmetataghandler.java:120)     @ javax.faces.view.facelets.compositefacelethandler.apply(compositefacelethandler.java:95)     @ com.sun.faces.facelets.compiler.namespacehandler.apply(namespacehandler.java:93)     @ com.sun.faces.facelets.compiler.encodinghandler.apply(encodinghandler.java:87)     @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:323)     @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:382)     @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:361)     @ com.sun.faces.facelets.impl.defaultfaceletcontext.includefacelet(defaultfaceletcontext.java:199)     @ com.sun.faces.facelets.tag.ui.compositionhandler.apply(compositionhandler.java:155)     @ com.sun.faces.facelets.compiler.namespacehandler.apply(namespacehandler.java:93)     @ com.sun.faces.facelets.compiler.encodinghandler.apply(encodinghandler.java:87)     @ com.sun.faces.facelets.impl.defaultfacelet.apply(defaultfacelet.java:164)     @ com.sun.faces.application.view.faceletviewhandlingstrategy.buildview(faceletviewhandlingstrategy.java:914)     @ com.sun.faces.lifecycle.renderresponsephase.execute(renderresponsephase.java:99)     @ com.sun.faces.lifecycle.phase.dophase(phase.java:101)     @ com.sun.faces.lifecycle.lifecycleimpl.render(lifecycleimpl.java:139)     @ javax.faces.webapp.facesservlet.service(facesservlet.java:594)     ... 23 more 

if remove o:validateorder code works

it's caused isxxx() getter incorrectly returning boolean instead of boolean.

the fix available per today's 2.1-snapshot , in 2.1 release.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -