Hi

Saw some javascripts being put by Trinidad in source of the page But no
java csript error. This seems to be an issue with facelets + trinidad 2.0.0
as when I removed the <ui:composition>   etc from the page (I.e. facelet
stuff)
then the PanelTab works fine.

So the issue seems to be facelet + trinidad 2.0.0 related. I tried moving
to trinidad 2.0.1 but unfortunately when I use 2.0.1, the page stops
rendering all togather (nothing is shown)

Have not been able to resolve the issue. Any help will be appreciated.

thanks

Sandeep

On Tue, Mar 20, 2012 at 9:39 PM, Sandeep Gupta
<sgu...@anantadvantages.com>wrote:

> Hi
> Thanks for your reply. I do not have access to my work host now. Will
> check tomorrow and reply.
> Thanks
>
> Sandeep
>
>
> On 3/20/2012 9:28 PM, Richard Yee wrote:
>
>> 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>**wr​ote:
>>
>>  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>
>>>>> <htt**​p://www.w3.org/**2001/**XMLSchem​a-instance<http://www.w3.org/**2001/XMLSchema-instance>
>>>>> >
>>>>> <http:**//www.w3.org/2001/**XMLS​chema-**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>
>>>>> >
>>>>> <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/**j​avaee/web-app_2_5.xsd<http://java.sun.com/xml/**ns/javaee/web-app_2_5.xsd>
>>>>> <http://**j​ava.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<h**
>>>>> t​tp://java.sun.com/xml/ns/**javae​e<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<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>
>>>>> >
>>>>> <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/**w​eb-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</******w​elcome-file>
>>>>> <welcome-file>index.jsp</******w​elcome-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.******CO​NFIG_FILES</param-name>
>>>>> <param-value>/WEB-INF/faces-****​**config.xml</param-value>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>javax.faces.******DE​FAULT_SUFFIX</param-name>
>>>>> <param-value>.xhtml</param-*****​*value>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>javax.faces.******FA​CELETS_SKIP_COMMENTS</param-**
>>>>> **​**name>
>>>>> <param-value>true</param-******v​alue>
>>>>>
>>>>> </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.****
>>>>> localizationCon​text</**
>>>>> param-name>
>>>>> <param-value>resources.******app​lication</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.******myf​aces.ALLOW_JAVASCRIPT</******
>>>>> par​am-name>
>>>>> <param-value>true</param-******v​alue>
>>>>>
>>>>> </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.******myf​aces.AUTO_SCROLL</param-******​name>
>>>>> <param-value>true</param-******v​alue>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>org.apache.******myf​aces.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.******myf​aces.PRETTY_HTML</param-******​name>
>>>>> <param-value>true</param-******v​alue>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>org.apache.******myf​aces.trinidad.CHANGE_**
>>>>> PERSISTENCE</param-name>
>>>>> <param-value>session</param-****​**value>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>org.apache.******myf​aces.trinidad.CHECK_FILE_******
>>>>> MODIFICATION</param-name>
>>>>>
>>>>> <param-value>false</param-******​value>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>org.apache.******myf​aces.trinidad.USE_**
>>>>> APPLICATION_VIEW_CACHE</param-**​****name>
>>>>> <param-value>false</param-******​value>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>org.apache.******myf​aces.trinidad.ENABLE_**
>>>>> LIGHTWEIGHT_DIALOGS</param-*****​*name>
>>>>> <param-value>true</param-******v​alue>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>org.apache.******myf​aces.trinidadinternal.**
>>>>> ENABLE_PPR_OPTIMIZATION</******p​aram-name>
>>>>> <param-value>false</param-******​value>
>>>>> </context-param>
>>>>> <context-param>
>>>>> <param-name>facelets.******DEVEL​OPMENT</param-name>
>>>>> <param-value>true</param-******v​alue>
>>>>> </context-param>
>>>>>
>>>>> <filter>
>>>>> <filter-name>trinidad</filter-**​****name>
>>>>> <filter-class>org.apache.******m​yfaces.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</******s​ervlet-name>
>>>>> <servlet-class>org.apache.******​myfaces.trinidad.webapp.**
>>>>> ResourceServlet</servlet-******c​lass>
>>>>>
>>>>>
>>>>> </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-******pa​ttern>
>>>>> </servlet-mapping>
>>>>>
>>>>> <servlet-mapping>
>>>>> <servlet-name>resources</******s​ervlet-name>
>>>>> <url-pattern>/adf/*</url-******p​attern>
>>>>> </servlet-mapping>
>>>>>
>>>>>
>>>>>
>>>>> <!--
>>>>> <ejb-local-ref>
>>>>> <ejb-ref-name>ejb/******UserLogi​nInterface</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>
>>>>> <**​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>
>>>>> ​<http://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/**19​99/**xhtml <http://www.w3.org/1999/**xhtml>>
>>>>> <http://www.w3.org/**1999/**xhtm​l <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.**co​m/**jsf/core <http://java.sun.com/**jsf/core>>
>>>>> <http://java.sun.com/**jsf/**cor​e <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.**co​m/**jsf/html <http://java.sun.com/**jsf/html>>
>>>>> <http://java.sun.com/**jsf/**htm​l <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.**s​un.com/**jsf/facelets<http://java.sun.com/**jsf/facelets>
>>>>> >
>>>>> <http://java.**sun.com/jsf/**fac​elets <http://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://**
>>>>> apac​he.org/trinidad <http://apache.org/trinidad>>
>>>>> <http://**myfaces.apache.org/**t​rinidad<http://myfaces.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>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>

Reply via email to