tomcat7 - javax.el.ELException: Cannot convert bottom-left of type class java.lang.String to class org.richfaces.component.Positioning -
i in process of upgrading jsf 1.2 jsf 2.x. in process wanted upgrade every page in application 1 one. have set every dependency , configurations. component libraries such richfaces 4.x , primefaces 3.5 working properly. while trying convert 1 of pages, encountered following error.
javax.el.elexception: cannot convert bottom-left of type class java.lang.string class org.richfaces.component.positioning @ org.apache.el.lang.elsupport.coercetoenum(elsupport.java:182) @ org.apache.el.lang.elsupport.coercetotype(elsupport.java:405) @ org.apache.el.expressionfactoryimpl.coercetotype(expressionfactoryimpl.java:47) @ com.sun.faces.facelets.tag.beanpropertytagrule$literalpropertymetadata.applymetadata(beanpropertytagrule.java:88) @ com.sun.faces.facelets.tag.metadataimpl.applymetadata(metadataimpl.java:81) @ javax.faces.view.facelets.metataghandler.setattributes(metataghandler.java:129) @ javax.faces.view.facelets.delegatingmetataghandler.setattributes(delegatingmetataghandler.java:102) @ org.richfaces.view.facelets.html.behaviorsaddingcomponenthandlerwrapper.setattributes(behaviorsaddingcomponenthandlerwrapper.java:113) @ com.sun.faces.facelets.tag.jsf.componenttaghandlerdelegateimpl.donewcomponentactions(componenttaghandlerdelegateimpl.java:412) @ com.sun.faces.facelets.tag.jsf.componenttaghandlerdelegateimpl.apply(componenttaghandlerdelegateimpl.java:175) @ javax.faces.view.facelets.delegatingmetataghandler.apply(delegatingmetataghandler.java:120) @ 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:190) @ javax.faces.view.facelets.delegatingmetataghandler.apply(delegatingmetataghandler.java:120) @ 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:190) @ javax.faces.view.facelets.delegatingmetataghandler.apply(delegatingmetataghandler.java:120) @ 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:190) @ javax.faces.view.facelets.delegatingmetataghandler.apply(delegatingmetataghandler.java:120) @ javax.faces.view.facelets.compositefacelethandler.apply(compositefacelethandler.java:95) @ com.sun.faces.facelets.tag.jsf.core.viewhandler.apply(viewhandler.java:210) @ javax.faces.view.facelets.compositefacelethandler.apply(compositefacelethandler.java:95) @ com.sun.faces.facelets.tag.ui.compositionhandler.apply(compositionhandler.java:189) @ 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:312) @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:371) @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:350) @ com.sun.faces.facelets.impl.defaultfaceletcontext.includefacelet(defaultfaceletcontext.java:199) @ com.sun.faces.facelets.tag.ui.includehandler.apply(includehandler.java:120) @ com.sun.faces.facelets.tag.ui.definehandler.applydefinition(definehandler.java:106) @ com.sun.faces.facelets.tag.ui.compositionhandler.apply(compositionhandler.java:201) @ 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) @ 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:312) @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:371) @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:350) @ com.sun.faces.facelets.impl.defaultfaceletcontext.includefacelet(defaultfaceletcontext.java:199) @ com.sun.faces.facelets.tag.ui.compositionhandler.apply(compositionhandler.java:169) @ 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:161) @ com.sun.faces.application.view.faceletviewhandlingstrategy.buildview(faceletviewhandlingstrategy.java:980) @ 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:219) @ javax.faces.webapp.facesservlet.service(facesservlet.java:647) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:225) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:123) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:472) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:168) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:98) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:927) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:407) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1001) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:579) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:312) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source).
here page content:
<f:view locale="#{toppage.locale}"> <f:loadbundle var="general" basename="messages.generalresources" /> <h:form id="toppageform" styleclass="form" > <rich:toolbar itemseparator="none" height="50px" switchtype="ajax" style="background:none; border-color:#c4c8d0" > <rich:toolbargroup id="mainpage1" itemseparator="grid" location="left" switchtype="client" > <a4j:outputpanel ajaxrendered="true" id="imgajaxpanel"> <a4j:mediaoutput element="img" mimetype="#{file.mime}" title="#{general.returntomainpage}" createcontent="#{toppage.paint}" style="width:180px; height:45px;" id="companyimg" /> </a4j:outputpanel> <f:ajax listener="#{toppage.mainpageselected}" event="itemclick" render="mainpage"/> </rich:toolbargroup> <rich:toolbargroup id="mainpage2" itemseparator="line" location="left" switchtype="ajax"> <rich:dropdownmenu id="dd1" onmouseover="this.style.backgroundcolor='#2e2e2e'" onmouseout="this.style.backgroundcolor='#5b5f64'" style="border-color:#5b5f64;" hidedelay="50"> <f:facet name="label"> <h:panelgrid columns="3"> <h:graphicimage value="/images/iconset/home.png" styleclass="pic" width="25" height="25" /> <h:outputtext id="id1" value="#{general.mainfunctions}" styleclass="outtext"/> </h:panelgrid> </f:facet> </rich:dropdownmenu> <f:ajax listener="#{toppage.mainpageselected}" event="itemclick" /> </rich:toolbargroup> <rich:toolbargroup itemseparator="line" location="left" switchtype="client"> <rich:dropdownmenu onmouseover="this.style.backgroundcolor='#2e2e2e'" onmouseout="this.style.backgroundcolor='#5b5f64'" style="border-color:#5b5f64;" hidedelay="50"> <f:facet name="label"> <h:panelgrid columns="3"> <h:graphicimage value="/images/iconset/nav.png" styleclass="pic" width="25" height="25" /> <h:outputtext value="#{general.workingdurationslabel} / #{general.trip}" styleclass="outtext"/> </h:panelgrid> </f:facet> <rich:menuitem submitmode="ajax" value="#{general.workingduration}" action="#{toppage.workingdurationspageselected}" > <f:facet name="icon" > <h:graphicimage value="/images/icons/scavenger-icon.png" styleclass="pic" width="20" height="20"/> </f:facet> </rich:menuitem> <rich:menuitem submitmode="ajax" value="#{general.trips}" action="#{toppage.tripspageselected}"> <f:facet name="icon" > <h:graphicimage value="/images/icons/cabriolet-icon.png" styleclass="pic" width="20" height="20"/> </f:facet> </rich:menuitem> <rich:menuitem submitmode="ajax" value="#{general.pastevents}" action="#{toppage.pasteventspageselected}"> <f:facet name="icon" > <h:graphicimage value="/images/iconset/empty-calendar-green.png" styleclass="pic" width="20" height="20"/> </f:facet> </rich:menuitem> </rich:dropdownmenu> </rich:toolbargroup> <rich:toolbargroup itemseparator="line" location="left" switchtype="client" > <rich:dropdownmenu direction="bottom-left" onmouseover="this.style.backgroundcolor='#2e2e2e'" onmouseout="this.style.backgroundcolor='#5b5f64'" style="border-color:#5b5f64;" hidedelay="50"> <f:facet name="label"> <h:panelgrid columns="3"> <h:graphicimage value="/images/iconset/maintenance-icon.png" styleclass="pic" width="25" height="25"/> <h:outputtext value="#{general.maintenance}" styleclass="outtext"/> </h:panelgrid> </f:facet> <rich:menuitem submitmode="ajax" value="#{general.querymaintenance}" action="#{toppage.maintenancepageselected}" icon="/images/iconset/query.png" /> <rich:menuitem submitmode="ajax" value="#{general.entermaintenance}" action="#{toppage.entermaintenancepageselected}" icon="/images/iconset/forms.png" /> </rich:dropdownmenu> </rich:toolbargroup> <rich:toolbargroup itemseparator="line" location="left" switchtype="client"> <rich:dropdownmenu direction="bottom-left" onmouseover="this.style.backgroundcolor='#2e2e2e'" onmouseout="this.style.backgroundcolor='#5b5f64'" style="border-color:#5b5f64;" hidedelay="50"> <f:facet name="label"> <h:panelgrid columns="3"> <h:graphicimage value="/images/iconset/areas.png" styleclass="pic" width="25" height="25"/> <h:outputtext value="#{general.pointsareas}" styleclass="outtext"/> </h:panelgrid> </f:facet> <rich:menuitem submitmode="ajax" value="#{general.definecustomerpoints}" action="#{toppage.definecustomerpointsselected}" icon="/images/iconset/point.png" /> <rich:menuitem submitmode="ajax" value="#{general.definecustomerareas}" icon="/images/iconset/area.png" /> <rich:menuitem submitmode="ajax" value="#{general.pointvehicleassociations}" /> <rich:menuitem submitmode="ajax" value="#{general.areavehicleassociations}" /> </rich:dropdownmenu> </rich:toolbargroup> <rich:toolbargroup itemseparator="line" location="left" switchtype="client"> <rich:dropdownmenu direction="bottom-left" onmouseover="this.style.backgroundcolor='#2e2e2e'" onmouseout="this.style.backgroundcolor='#5b5f64'" style="border-color:#5b5f64;" hidedelay="50"> <f:facet name="label"> <h:panelgrid columns="3"> <h:graphicimage value="/images/iconset/settings.png" styleclass="pic" width="25" height="25"/> <h:outputtext value="#{general.management}" styleclass="outtext"/> </h:panelgrid> </f:facet> <rich:menuitem submitmode="ajax" value="#{general.definevehicle}" action="#{toppage.definevehiclepageselected}" icon="/images/iconset/vehicle.png"/> <rich:menuitem submitmode="ajax" value="#{general.definevehicletype}" action="#{toppage.definevehicletypepageselected}" icon="/images/iconset/vehicle-type.png"/> <rich:menuitem submitmode="ajax" value="#{general.definecantable}" action="#{toppage.definecandefinitionsselected}" rendered="#{menu.systemadmin}" icon="/images/iconset/can-bus.png"/> <rich:menuitem submitmode="ajax" value="#{general.definedriver}" action="#{toppage.definedriverpageselected}" icon="/images/iconset/driver.png"/> <rich:menuitem submitmode="ajax" value="#{general.definecompany}" action="#{toppage.definecompanypageselected}" rendered="#{menu.systemadmin}" icon="/images/iconset/company.png"/> <rich:menuitem submitmode="ajax" value="#{general.defineuser}" action="#{toppage.defineuserpageselected}" icon="/images/iconset/user.png"/> <rich:menuitem submitmode="ajax" value="#{general.definegroups}" action="#{toppage.definegroupspageselected}" icon="/images/iconset/list-icon.png"/> </rich:dropdownmenu> </rich:toolbargroup> <rich:toolbargroup itemseparator="line" location="left" switchtype="client"> <rich:dropdownmenu onmouseover="this.style.backgroundcolor='#2e2e2e'" onmouseout="this.style.backgroundcolor='#5b5f64'" style="border-color:#5b5f64;" hidedelay="50"> <f:facet name="label"> <h:panelgrid columns="3"> <h:graphicimage value="/images/iconset/report-icon.png" styleclass="pic" width="25" height="25" /> <h:outputtext value="#{general.reports}" styleclass="outtext"/> </h:panelgrid> </f:facet> </rich:dropdownmenu> <f:ajax listener="#{toppage.reportspageselected}" event="onitemclick" /> </rich:toolbargroup> <rich:toolbargroup itemseparator="line" location="left" switchtype="client"> <rich:dropdownmenu onmouseover="this.style.backgroundcolor='#2e2e2e'" onmouseout="this.style.backgroundcolor='#5b5f64'" style="border-color:#5b5f64;" hidedelay="50"> <f:facet name="label"> <h:panelgrid columns="3"> <h:graphicimage value="/images/iconset/other-icon.png" styleclass="pic" width="25" height="25" /> <h:outputtext value="#{general.other}" styleclass="outtext"/> </h:panelgrid> </f:facet> <rich:menugroup value="#{general.sensors}" icon="/images/iconset/letter-s-blue-icon.png" width="25" height="25"> <rich:menuitem event="onitemclick" submitmode="ajax" value="#{general.seatsensors}" action="#{toppage.seatsensorspageselected}" icon="/images/iconset/seat-sensors.png"/> <rich:menuitem event="onitemclick" submitmode="ajax" value="#{general.fuelsensors}" icon="/images/iconset/fuel-gauge.png"/> <rich:menuitem event="onitemclick" submitmode="ajax" value="#{general.doorsensors}" icon="/images/iconset/door-icon.png"/> <rich:menuitem event="onitemclick" submitmode="ajax" value="#{general.nemsensors}" icon="/images/iconset/nem-icon.gif"/> </rich:menugroup> <rich:menuitem event="onitemclick" submitmode="ajax" value="#{general.aset}" action="#{toppage.asetpageselected}" disabled="true" icon="/images/iconset/letter-a-icon.png"/> <rich:menuitem event="onitemclick" submitmode="ajax" value="#{general.marketfreezer}" action="#{toppage.freezerpageselected}" icon="/images/icons/freezer.png"/> </rich:dropdownmenu> </rich:toolbargroup> <rich:toolbargroup itemseparator="line" location="right" switchtype="client"> <a4j:commandlink action="#{toppage.alarmpageselected}" event="onitemclick"> <h:graphicimage value="#{toppage.alarmicon}" width="25" height="25" title="#{general.alarmnotification}"/> </a4j:commandlink> </rich:toolbargroup> <rich:toolbargroup location="right" switchtype="client" > <h:outputtext value="#{mainpage.fullname}" styleclass="coloredtext1" title="#{general.username}"/> </rich:toolbargroup> <rich:toolbargroup itemseparator="line" location="right" switchtype="client" > <h:graphicimage value="/images/logout.png" title="#{general.logout}" height="25" width="25" > <f:ajax listener="#{userinfo.logout}" event="onclick"/> </h:graphicimage> </rich:toolbargroup> </rich:toolbar> </h:form> </f:view>
what mean?
use "bottomleft" instead of "bottom-left" in richfaces 4, 'bottom-left' positioning no longer valid. same pattern applied on other options "bottomright", "topright", "topleft"
Comments
Post a Comment