Hi all,
I am new to Infragistics and JSF. I have problem with Tabs. when i run the application the following exception is raised.
18:50:07,717 ERROR [STDERR] java.lang.Exception: Stack trace18:50:07,717 ERROR [STDERR] at java.lang.Thread.dumpStack(Unknown Source)18:50:07,717 ERROR [STDERR] at com.infragistics.faces.tab.taglib.html.TabViewTag.setProperties(TabViewTag.java:123)18:50:07,717 ERROR [STDERR] at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:230)18:50:07,717 ERROR [STDERR] at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:486)18:50:07,717 ERROR [STDERR] at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:670)18:50:07,717 ERROR [STDERR] at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)18:50:07,717 ERROR [STDERR] at org.apache.jsp.TabsetExample_jsp._jspx_meth_ig_005ftabView_005f0(TabsetExample_jsp.java:203)18:50:07,717 ERROR [STDERR] at org.apache.jsp.TabsetExample_jsp._jspx_meth_h_005fform_005f0(TabsetExample_jsp.java:168)18:50:07,717 ERROR [STDERR] at org.apache.jsp.TabsetExample_jsp._jspx_meth_f_005fview_005f0(TabsetExample_jsp.java:127)18:50:07,717 ERROR [STDERR] at org.apache.jsp.TabsetExample_jsp._jspService(TabsetExample_jsp.java:90)18:50:07,717 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)18:50:07,717 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)18:50:07,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)18:50:07,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)18:50:07,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)18:50:07,717 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)18:50:07,717 ERROR [STDERR] at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)18:50:07,733 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)18:50:07,733 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)18:50:07,733 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)18:50:07,733 ERROR [STDERR] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)18:50:07,733 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)18:50:07,733 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)18:50:07,733 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)18:50:07,733 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)18:50:07,733 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)18:50:07,733 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)18:50:07,733 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)18:50:07,733 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)18:50:07,733 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)18:50:07,733 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)18:50:07,733 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)18:50:07,733 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)18:50:07,717 ERROR [STDERR] java.lang.Exception: Stack trace18:50:07,717 ERROR [STDERR] at java.lang.Thread.dumpStack(Unknown Source)18:50:07,717 ERROR [STDERR] at com.infragistics.faces.tab.taglib.html.TabViewTag.setProperties(TabViewTag.java:123)18:50:07,717 ERROR [STDERR] at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:230)18:50:07,717 ERROR [STDERR] at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:486)18:50:07,717 ERROR [STDERR] at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:670)18:50:07,717 ERROR [STDERR] at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)18:50:07,717 ERROR [STDERR] at org.apache.jsp.TabsetExample_jsp._jspx_meth_ig_005ftabView_005f0(TabsetExample_jsp.java:203)18:50:07,717 ERROR [STDERR] at org.apache.jsp.TabsetExample_jsp._jspx_meth_h_005fform_005f0(TabsetExample_jsp.java:168)18:50:07,717 ERROR [STDERR] at org.apache.jsp.TabsetExample_jsp._jspx_meth_f_005fview_005f0(TabsetExample_jsp.java:127)18:50:07,717 ERROR [STDERR] at org.apache.jsp.TabsetExample_jsp._jspService(TabsetExample_jsp.java:90)18:50:07,717 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)18:50:07,717 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)18:50:07,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)18:50:07,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)18:50:07,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)18:50:07,717 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)18:50:07,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)18:50:07,717 ERROR [STDERR] at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)18:50:07,733 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)18:50:07,733 ERROR [STDERR] at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)18:50:07,733 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)18:50:07,733 ERROR [STDERR] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)18:50:07,733 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)18:50:07,733 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)18:50:07,733 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)18:50:07,733 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)18:50:07,733 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)18:50:07,733 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)18:50:07,733 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)18:50:07,733 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)18:50:07,733 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)18:50:07,733 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)18:50:07,733 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)18:50:07,733 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)18:50:07,733 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
Test.jsp
<ig:tabView id="tabView1" selectTabItemListener="#{infraTabset.selectTabListener}" > <ig:tabItem value="Tab1" id="tabItem1"> <h:outputText value="Tab1 Output1" id="tabItem1Text"/> </ig:tabItem> <ig:tabItem value="Tab2" id="tabItem2" > <f:verbatim escape="true"> <h:outputText value="Tab2 Output1" id="tabItem2text"/> </f:verbatim> </ig:tabItem> </ig:tabView>
backing bean
public class InfraTabsetBean { public InfraTabsetBean() { // TODO Auto-generated constructor stub } public void selectTabListener (SelectTabItemEvent event) { System.out.println ("in TabItemEvent method"); }}
faces-config.xml
<managed-bean> <managed-bean-name>infraTabset</managed-bean-name> <managed-bean-class>elwis.tabset.pagebeans.InfraTabsetBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean>
web.xml
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config.xml</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list></web-app>
and also i have another problem, that is i can't able to navigate to the 2nd tab. can pls suggest me.
thanks in advance.
Hello mails2prince, Please also make sure to follow below steps.
1) Copy all jars from '(NetAdvantage for JSF folder)\lib\runtime' to (ProjectRoot)\WebContent\WEB-INF\lib.
2) Copy resource folder from '(NetAdvantage for JSF folder)\lib\runtime' to (ProjectRoot)\WebContent.
Hope this helps.
Thank you!