jsf 2 - Alternative to f:verbatim in JSF 2.1 -


alternative f:verbatim in jsf 2.1 rendering purpose needed. in application using ui:fragment rendered instead of f:verbatim not working in jsf 2.1.

here providing code

    <f:verbatim rendered="#{not empty focusfield}">     <script type="text/javascript">         $(document).ready(function(){              // if class not set,             $("#menucontainer > ul:first:not(.sf-menu)").addclass("sf-menu");             $("ul.sf-menu").supersubs({                  minwidth:    12,   // minimum width of sub-menus in em units                  maxwidth:    27,   // maximum width of sub-menus in em units                  extrawidth:  1     // width can ensure lines don't turn on                                     // due slight rounding differences , font-family              }).superfish({                 delay:       300             });            });      </script>     </f:verbatim>  <ui:component> <ui:fragment  rendered="#{not empty focusfield}">    <script type="text/javascript">         $(document).ready(function(){              // if class not set,             $("#menucontainer > ul:first:not(.sf-menu)").addclass("sf-menu");             $("ul.sf-menu").supersubs({                  minwidth:    12,   // minimum width of sub-menus in em units                  maxwidth:    27,   // maximum width of sub-menus in em units                  extrawidth:  1     // width can ensure lines don't turn on                                     // due slight rounding differences , font-family              }).superfish({                 delay:       300             });            });      </script>   </ui:fragment> </ui:component> 

i getting error

 root cause of servletexception. org.springframework.webflow.execution.flowexecutionexception: exception thrown in state 'demo' of flow 'demo'      @ org.springframework.webflow.engine.impl.flowexecutionimpl.wrap(flowexecutionimpl.java:571)     @ org.springframework.webflow.engine.impl.flowexecutionimpl.resume(flowexecutionimpl.java:262)     @ org.springframework.webflow.executor.flowexecutorimpl.resumeexecution(flowexecutorimpl.java:169)     @ org.springframework.webflow.mvc.servlet.flowhandleradapter.handle(flowhandleradapter.java:183)     @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:771)     @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:716)     @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:647)     @ org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet.java:552)     @ javax.servlet.http.httpservlet.service(httpservlet.java:707)     @ javax.servlet.http.httpservlet.service(httpservlet.java:820)     @ weblogic.servlet.internal.stubsecurityhelper$servletserviceaction.run(stubsecurityhelper.java:227)     @ weblogic.servlet.internal.stubsecurityhelper.invokeservlet(stubsecurityhelper.java:125)     @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:292)     @ weblogic.servlet.internal.tailfilter.dofilter(tailfilter.java:26)     @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56)     @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:88)     @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:76)     @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56)     @ weblogic.servlet.internal.requesteventsfilter.dofilter(requesteventsfilter.java:27)     @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56)     @ weblogic.servlet.internal.webappservletcontext$servletinvocationaction.run(webappservletcontext.java:3592)     @ weblogic.security.acl.internal.authenticatedsubject.doas(authenticatedsubject.java:321)     @ weblogic.security.service.securitymanager.runas(securitymanager.java:121)     @ weblogic.servlet.internal.webappservletcontext.securedexecute(webappservletcontext.java:2202)     @ weblogic.servlet.internal.webappservletcontext.execute(webappservletcontext.java:2108)     @ weblogic.servlet.internal.servletrequestimpl.run(servletrequestimpl.java:1432)     @ weblogic.work.executethread.execute(executethread.java:201)     @ weblogic.work.executethread.run(executethread.java:173)  caused by: javax.faces.facesexception: component id demo has been found in view.     @ com.sun.faces.context.exceptionhandlerimpl.handle(exceptionhandlerimpl.java:142)     @ com.sun.faces.lifecycle.phase.dophase(phase.java:119)     @ com.sun.faces.lifecycle.lifecycleimpl.render(lifecycleimpl.java:139)     @ org.springframework.faces.webflow.flowlifecycle.render(flowlifecycle.java:80)     @ org.springframework.faces.webflow.jsfview.render(jsfview.java:89)     @ org.springframework.webflow.engine.viewstate.render(viewstate.java:296)     @ org.springframework.webflow.engine.viewstate.refresh(viewstate.java:243)     @ org.springframework.webflow.engine.viewstate.resume(viewstate.java:221)     @ org.springframework.webflow.engine.flow.resume(flow.java:545)     @ org.springframework.webflow.engine.impl.flowexecutionimpl.resume(flowexecutionimpl.java:258)     @ org.springframework.webflow.executor.flowexecutorimpl.resumeexecution(flowexecutorimpl.java:169)     @ org.springframework.webflow.mvc.servlet.flowhandleradapter.handle(flowhandleradapter.java:183)     @ org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:771)     @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:716)     @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:647)     @ org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet.java:552)     @ javax.servlet.http.httpservlet.service(httpservlet.java:707)     @ javax.servlet.http.httpservlet.service(httpservlet.java:820)     @ weblogic.servlet.internal.stubsecurityhelper$servletserviceaction.run(stubsecurityhelper.java:227)     @ weblogic.servlet.internal.stubsecurityhelper.invokeservlet(stubsecurityhelper.java:125)                                                                   caused by: java.lang.illegalstateexception: component id demo has been found in view.     @ com.sun.faces.util.util.checkiduniqueness(util.java:910)     @ com.sun.faces.util.util.checkiduniqueness(util.java:894)     @ com.sun.faces.util.util.checkiduniqueness(util.java:894) 


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -