java - Primefaces Dialog - Setter not found for property class -
i want implement primefaces 3.5 dialog component.
my implemetation:
<div class="span10"> <div class="well well-large"> <h:panelgrid columns="1" cellpadding="5"> <p:commandbutton id="modaldialogbutton" value="modal" onclick="dlg2.show();" type="button" class="btn btn-primary"/> </h:panelgrid> <p:dialog id="modaldialog" header="modal dialog" widgetvar="dlg2" modal="true" height="100"> <h:outputtext value="this modal dialog." /> </p:dialog> ....
when start server view page get:
java.lang.illegalargumentexception: setter not found property class @ javax.faces.component.uicomponentbase$attributesmap.put(uicomponentbase.java:2450) @ javax.faces.component.uicomponentbase$attributesmap.put(uicomponentbase.java:2330) @ com.sun.faces.facelets.tag.jsf.componentrule$literalattributemetadata.applymetadata(componentrule.java:87) @ 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) @ 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) @ 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) @ 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.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:902) @ 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:202) @ javax.faces.webapp.facesservlet.service(facesservlet.java:646) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:304) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.primefaces.webapp.filter.fileuploadfilter.dofilter(fileuploadfilter.java:79) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ com.ocpsoft.pretty.prettyfilter.dofilter(prettyfilter.java:145) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.springframework.orm.jpa.support.openentitymanagerinviewfilter.dofilterinternal(openentitymanagerinviewfilter.java:147) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:76) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:240) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:164) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:462) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:164) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:100) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:562) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:395) @ org.apache.coyote.http11.http11processor.process(http11processor.java:250) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:188) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:166) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:302) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918) @ java.lang.thread.run(thread.java:662) 25.04.2013 10:51:53 com.sun.faces.context.exceptionhandlerimpl log 1100: jsf1073: java.lang.illegalargumentexception erfasst während verarbeitung von render_response 6 : uicomponent-clientid=, message=setter not found property class 25.04.2013 10:51:53 com.sun.faces.context.exceptionhandlerimpl log 1100: setter not found property class java.lang.illegalargumentexception: setter not found property class @ javax.faces.component.uicomponentbase$attributesmap.put(uicomponentbase.java:2450) @ javax.faces.component.uicomponentbase$attributesmap.put(uicomponentbase.java:2330) @ com.sun.faces.facelets.tag.jsf.componentrule$literalattributemetadata.applymetadata(componentrule.java:87) @ 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) @ 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) @ 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) @ 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.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:902) @ 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:202) @ javax.faces.webapp.facesservlet.service(facesservlet.java:646) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:304) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.primefaces.webapp.filter.fileuploadfilter.dofilter(fileuploadfilter.java:79) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ com.ocpsoft.pretty.prettyfilter.dofilter(prettyfilter.java:145) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.springframework.orm.jpa.support.openentitymanagerinviewfilter.dofilterinternal(openentitymanagerinviewfilter.java:147) @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:76) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:240) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:164) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:462) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:164) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:100) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:562) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:395) @ org.apache.coyote.http11.http11processor.process(http11processor.java:250) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:188) @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:166) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:302) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918) @ java.lang.thread.run(thread.java:662)
on jsf page get:
setter not found property class
i appreciate answer!!!
i see:
<p:commandbutton id="modaldialogbutton" value="modal" onclick="dlg2.show();" type="button" class="btn btn-primary"/>
you have use styleclass="btn btn-primary"
not class="btn btn-primary"
<p:commandbutton id="modaldialogbutton" value="modal" onclick="dlg2.show();" type="button" styleclass="btn btn-primary"/>