Can you view the source and see if the tags include javascript resources? Most of the JSF tags use javascript.
-Richard On Tue, Mar 20, 2012 at 8:39 AM, Sandeep Gupta <sgu...@anantadvantages.com>wrote: > Hi > > No Java script in xhtml file and hence no possibility of this > > rgds > > Sandeep > > > On 3/20/2012 9:07 PM, Richard Yee wrote: > >> Are there any javascript errors shown in the browser console when you >> click >> the tab? >> >> -Richard >> >> >> >> On Tue, Mar 20, 2012 at 12:13 AM, Sandeep Gupta >> <sgu...@anantadvantages.com>**wrote: >> >> Hi >>> >>> I have taken PanelTabbed example source and copied it as follows >>> >>> <tr:panelTabbed> >>> <tr:showDetailItem text="Apache Trinidad Components" position="above"> >>> <tr:panelHeader text="Apache Trinidad Components First Child" /> >>> <tr:panelHeader text="Apache Trinidad Components Second Child"/> >>> </tr:showDetailItem> >>> <tr:showDetailItem text="Architecture"> >>> <tr:panelHeader text="Architecture First Child"/> >>> <tr:panelHeader text="Architecture Second Child" /> >>> </tr:showDetailItem> >>> <tr:showDetailItem text="Release" disabled="true"> >>> <tr:panelHeader text="Release First Child"/> >>> <tr:panelHeader text="Release Second Child"/> >>> </tr:showDetailItem> >>> </tr:panelTabbed> >>> >>> The tabs are shown.Now do the following sequence. press, 'Architecture' >>> tab, that tab is shown. Press 'Apache Trinidad Components' tab, tab is >>> shown. Press 'Architecture' tab again - Now this tab is NOT SHOWN >>> >>> I am working with the following enviornment >>> >>> Application server: Jboss AS7 (JSF implementation provided by JBOSS) >>> Trinidad: 2.0.0 jars >>> >>> web.xml as follows >>> >>> <?xml version="1.0" encoding="UTF-8" ?> >>> <web-app >>> xmlns:xsi="http://www.w3.org/****2001/XMLSchema-instance<http://www.w3.org/**2001/XMLSchema-instance> >>> <http:**//www.w3.org/2001/XMLSchema-**instance<http://www.w3.org/2001/XMLSchema-instance> >>> > >>> " >>> xmlns="http://java.sun.com/****xml/ns/javaee<http://java.sun.com/**xml/ns/javaee> >>> <http://java.sun.**com/xml/ns/javaee <http://java.sun.com/xml/ns/javaee> >>> > >>> " >>> xmlns:web="http://java.sun.****com/xml/ns/javaee/web-app_2_5.****xsd< >>> http://java.sun.com/xml/**ns/javaee/web-app_2_5.xsd<http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd> >>> > >>> " >>> xsi:schemaLocation="http://**j**ava.sun.com/xml/ns/javaee<http://java.sun.com/xml/ns/javaee> >>> <http**://java.sun.com/xml/ns/javaee <http://java.sun.com/xml/ns/javaee> >>> > >>> http://java.sun.com/xml/ns/****javaee/web-app_3_0.xsd<http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd> >>> <http://**java.sun.com/xml/ns/javaee/**web-app_3_0.xsd<http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd> >>> > >>> " >>> id="WebApp_ID" version="3.0"> >>> <display-name>MediTraceWEB</****display-name> >>> <welcome-file-list> >>> <welcome-file>index.html</****welcome-file> >>> <welcome-file>index.htm</****welcome-file> >>> <welcome-file>index.jsp</****welcome-file> >>> <welcome-file>default.html</****welcome-file> >>> <welcome-file>default.htm</****welcome-file> >>> <welcome-file>default.jsp</****welcome-file> >>> </welcome-file-list> >>> <context-param> >>> <param-name>javax.faces.****CONFIG_FILES</param-name> >>> <param-value>/WEB-INF/faces-****config.xml</param-value> >>> </context-param> >>> <context-param> >>> <param-name>javax.faces.****DEFAULT_SUFFIX</param-name> >>> <param-value>.xhtml</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>javax.faces.****FACELETS_SKIP_COMMENTS</param-****name> >>> <param-value>true</param-****value> >>> >>> </context-param> >>> <context-param> >>> <description>State saving method: 'client' or 'server' (=default). See >>> JSF >>> Specification 2.5.2</description> >>> <param-name>javax.faces.STATE_****SAVING_METHOD</param-name> >>> <param-value>client</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>javax.servlet.jsp.****jstl.fmt.**localizationContext</** >>> param-name> >>> <param-value>resources.****application</param-value> >>> >>> </context-param> >>> <context-param> >>> <description>This parameter tells MyFaces if javascript code should be >>> allowed in the rendered HTML output. If javascript is allowed, >>> command_link >>> anchors will have javascript code that submits the corresponding form. If >>> javascript is not allowed, the state saving info and nested parameters >>> will >>> be added as url parameters. Default is 'true'</description> >>> <param-name>org.apache.****myfaces.ALLOW_JAVASCRIPT</****param-name> >>> <param-value>true</param-****value> >>> >>> </context-param> >>> <context-param> >>> <description>If true, a javascript function will be rendered that is able >>> to restore the former vertical scroll on every request. Convenient >>> feature >>> if you have pages with long lists and you do not want the browser page to >>> always jump to the top if you trigger a link or button action that stays >>> on >>> the same page. Default is 'false'</description> >>> <param-name>org.apache.****myfaces.AUTO_SCROLL</param-****name> >>> <param-value>true</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>org.apache.****myfaces.DETECT_JAVASCRIPT</****param-name> >>> <param-value>false</param-****value> >>> >>> </context-param> >>> <context-param> >>> <description>If true, rendered HTML code will be formatted, so that it is >>> 'human-readable' i.e. additional line separators and whitespace will be >>> written, that do not influence the HTML code. Default is >>> 'true'</description> >>> <param-name>org.apache.****myfaces.PRETTY_HTML</param-****name> >>> <param-value>true</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>org.apache.****myfaces.trinidad.CHANGE_** >>> PERSISTENCE</param-name> >>> <param-value>session</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>org.apache.****myfaces.trinidad.CHECK_FILE_**** >>> MODIFICATION</param-name> >>> >>> <param-value>false</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>org.apache.****myfaces.trinidad.USE_** >>> APPLICATION_VIEW_CACHE</param-****name> >>> <param-value>false</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>org.apache.****myfaces.trinidad.ENABLE_** >>> LIGHTWEIGHT_DIALOGS</param-****name> >>> <param-value>true</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>org.apache.****myfaces.trinidadinternal.** >>> ENABLE_PPR_OPTIMIZATION</****param-name> >>> <param-value>false</param-****value> >>> </context-param> >>> <context-param> >>> <param-name>facelets.****DEVELOPMENT</param-name> >>> <param-value>true</param-****value> >>> </context-param> >>> >>> <filter> >>> <filter-name>trinidad</filter-****name> >>> <filter-class>org.apache.****myfaces.trinidad.webapp.**** >>> TrinidadFilter</filter-class> >>> >>> </filter> >>> <filter-mapping> >>> <filter-name>trinidad</filter-****name> >>> <servlet-name>faces</servlet-****name> >>> </filter-mapping> >>> <!-- >>> <listener> >>> <listener-class>org.apache.****myfaces.webapp.** >>> StartupServletContextListener<****/listener-class> >>> >>> </listener> >>> >>> --> >>> >>> <servlet> >>> <servlet-name>Faces Servlet</servlet-name> >>> <servlet-class>javax.faces.****webapp.FacesServlet</servlet-****class> >>> <load-on-startup>1</load-on-****startup> >>> </servlet> >>> >>> <servlet> >>> <servlet-name>faces</servlet-****name> >>> <servlet-class>javax.faces.****webapp.FacesServlet</servlet-****class> >>> </servlet> >>> >>> <servlet> >>> <servlet-name>resources</****servlet-name> >>> <servlet-class>org.apache.****myfaces.trinidad.webapp.** >>> ResourceServlet</servlet-****class> >>> >>> </servlet> >>> >>> <servlet-mapping> >>> <servlet-name>Faces Servlet</servlet-name> >>> <url-pattern>*.xhtml</url-****pattern> >>> >>> </servlet-mapping> >>> >>> <servlet-mapping> >>> <servlet-name>Faces Servlet</servlet-name> >>> <url-pattern>*.jsf</url-****pattern> >>> </servlet-mapping> >>> >>> <servlet-mapping> >>> <servlet-name>resources</****servlet-name> >>> <url-pattern>/adf/*</url-****pattern> >>> </servlet-mapping> >>> >>> >>> >>> <!-- >>> <ejb-local-ref> >>> <ejb-ref-name>ejb/****UserLoginInterface</ejb-ref-****name> >>> <ejb-ref-type>Session</ejb-****ref-type> >>> <local-home/> >>> <local>com.anant.medikosh.ejb.****ejb.UserLoginInterface</**local> >>> >>> </ejb-local-ref> >>> --> >>> </web-app> >>> >>> XHTML file as follows: >>> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " >>> http://www.w3.org/TR/xhtml1/****DTD/xhtml1-transitional.dtd<http://www.w3.org/TR/xhtml1/**DTD/xhtml1-transitional.dtd> >>> <ht**tp://www.w3.org/TR/xhtml1/DTD/**xhtml1-transitional.dtd<http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> >>> > >>> "> >>> <html >>> xmlns="http://www.w3.org/1999/****xhtml<http://www.w3.org/1999/**xhtml> >>> <http://www.w3.org/**1999/xhtml <http://www.w3.org/1999/xhtml>>" >>> xmlns:f="http://java.sun.com/****jsf/core<http://java.sun.com/**jsf/core> >>> <http://java.sun.com/**jsf/core <http://java.sun.com/jsf/core>>" >>> xmlns:h="http://java.sun.com/****jsf/html<http://java.sun.com/**jsf/html> >>> <http://java.sun.com/**jsf/html <http://java.sun.com/jsf/html>>" >>> xmlns:ui="http://java.sun.com/****jsf/facelets<http://java.sun.com/**jsf/facelets> >>> <http://java.**sun.com/jsf/facelets <http://java.sun.com/jsf/facelets>>" >>> xmlns:tr="http://myfaces.**apa**che.org/trinidad<http://apache.org/trinidad> >>> <http://**myfaces.apache.org/trinidad<http://myfaces.apache.org/trinidad>> >>> >>> >>> "> >>> >>> <head> >>> <title>Create Location</title> >>> </head> >>> <body> >>> <ui:composition template="/adroittemplate/****adroitlayout.html"> >>> >>> <ui:define name="windowTitle"> >>> #{msgs.configuration} >>> </ui:define> >>> >>> <ui:define name="content"> >>> >>> <f:view> >>> <tr:document> >>> <tr:form rendered="true"> >>> <tr:panelPage id="pp1"> >>> <tr:panelTabbed> >>> <tr:showDetailItem text="Apache Trinidad Components" position="above"> >>> <tr:panelHeader text="Apache Trinidad Components First Child" /> >>> <tr:panelHeader text="Apache Trinidad Components Second Child" /> >>> </tr:showDetailItem> >>> <tr:showDetailItem text="Architecture"> >>> <tr:panelHeader text="Architecture First Child" /> >>> <tr:panelHeader text="Architecture Second Child"/> >>> </tr:showDetailItem> >>> <tr:showDetailItem text="Release" disabled="true"> >>> <tr:panelHeader text="Release First Child" /> >>> <tr:panelHeader text="Release Second Child" /> >>> </tr:showDetailItem> >>> </tr:panelTabbed> >>> >>> </tr:panelPage> >>> </tr:form> >>> </tr:document> >>> </f:view> >>> </ui:define> >>> </ui:composition> >>> </body> >>> </html> >>> >>> >>> >>> >>> >