Re: [Trinidad] PanelTabbed does not work properly

2012-03-21 Thread Sandeep Gupta
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 theetc 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
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
>> **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
 ​wrote:

  Hi

> I have taken PanelTabbed example source and copied it as follows
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 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
>
> 
>  xmlns:xsi="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
> 
> >
>  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
> 
> >
> "
> xsi:schemaLocation="http://j​**ava.sun.com/xml/ns/javaee t​tp://java.sun.com/xml/ns/**javae​e
> >
> 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>
> >
>
> "
> id="WebApp_ID" version="3.0">
> MediTraceWEB
> 
> index.html
> index.htm
> index.jsp
> default.html
> default.htm
> default.jsp
> 
> 
> javax.faces.**CO​NFIG_FILES
> /WEB-INF/faces-​**config.xml
> 
> 
> javax.faces.**DE​FAULT_SUFFIX
> .xhtml
> 
> 
> javax.faces.**FA​CELETS_SKIP_COMMENTS **​**name>
> true
>
> 
> 
> State saving method: 'client' or 'server' (=default). See
> JSF
> Specification 2.5.2
> javax.faces.STATE_**​SAVING_METHOD
> client
> 
> 
> javax.servlet.jsp.**​jstl.fmt.
> localizationCon​text param-name>
> resources.**app​lication
>
>
> 
> 
> 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'
> org.apache.**myf​aces.ALLOW_JAVASCRIPT par​am-name>
> true
>
> 
> 
> If true, a javascript function will be rendered that is
> able
> to restore the former vertical scroll on every request. Convenient
> fea

Re: [Trinidad] PanelTabbed does not work properly

2012-03-20 Thread Sandeep Gupta

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
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
**wrote:

  Hi

I have taken PanelTabbed example source and copied it as follows
















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


http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance>
"
xmlns="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
"
xsi:schemaLocation="http://**j**ava.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee>
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd

"
id="WebApp_ID" version="3.0">
MediTraceWEB

index.html
index.htm
index.jsp
default.html
default.htm
default.jsp


javax.faces.CONFIG_FILES
/WEB-INF/faces-config.xml


javax.faces.DEFAULT_SUFFIX
.xhtml


javax.faces.FACELETS_SKIP_COMMENTS
true



State saving method: 'client' or 'server' (=default). See
JSF
Specification 2.5.2
javax.faces.STATE_SAVING_METHOD
client


javax.servlet.jsp.jstl.fmt.**localizationContext
resources.application



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'
org.apache.myfaces.ALLOW_JAVASCRIPT
true



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'
org.apache.myfaces.AUTO_SCROLL
true


org.apache.myfaces.DETECT_JAVASCRIPT
false



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'
org.apache.myfaces.PRETTY_HTML
true


org.apache.myfaces.trinidad.CHANGE_**
PERSISTENCE
session


org.apache.myfaces.trinidad.CHECK_FILE_
MODIFICATION

false


org.apache.myfaces.trinidad.USE_**
APPLICATION_VIEW_CACHE
false


org.apache.myfaces.trinidad.ENABLE_**
LIGHTWEIGHT_DIALOGS
true


org.apache.myfaces.trinidadinternal.**
ENABLE_PPR_OPTIMIZATION
false


facelets.DEVELOPMENT
true



trinidad
org.apache.myfaces.trinidad.webapp.
TrinidadFilter



trinidad
faces




Faces Servlet
javax.faces.webapp.FacesServlet
1



faces
javax.faces.webapp.FacesServlet



resources
org.apache.myfaces.trinidad.webapp.**
ResourceServlet




Faces Servlet
*.xhtml




Faces Servlet
*.jsf



resources
/adf/*







XHTML file as follows:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
">
http://www.w3.org/1999/xhtml
>"
xmlns:f="http://java.sun.com/jsf/core
>"
xmlns:h="http://java.sun.com/jsf/html
>"
xmlns:ui="http://java.sun.com/jsf/facelets
>"
xmlns:tr="http://myfaces.**apa**che.org/trinidad


Re: [Trinidad] PanelTabbed does not work properly

2012-03-20 Thread Richard Yee
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
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
>> **wrote:
>>
>>  Hi
>>>
>>> I have taken PanelTabbed example source and copied it as follows
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 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
>>>
>>> 
>>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>>> http://www.w3.org/2001/XMLSchema-instance>
>>> >
>>> "
>>> xmlns="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
>>> >
>>> "
>>> xsi:schemaLocation="http://**j**ava.sun.com/xml/ns/javaee
>>> http://java.sun.com/xml/ns/javaee>
>>> >
>>> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
>>> 
>>> >
>>> "
>>> id="WebApp_ID" version="3.0">
>>> MediTraceWEB
>>> 
>>> index.html
>>> index.htm
>>> index.jsp
>>> default.html
>>> default.htm
>>> default.jsp
>>> 
>>> 
>>> javax.faces.CONFIG_FILES
>>> /WEB-INF/faces-config.xml
>>> 
>>> 
>>> javax.faces.DEFAULT_SUFFIX
>>> .xhtml
>>> 
>>> 
>>> javax.faces.FACELETS_SKIP_COMMENTS
>>> true
>>>
>>> 
>>> 
>>> State saving method: 'client' or 'server' (=default). See
>>> JSF
>>> Specification 2.5.2
>>> javax.faces.STATE_SAVING_METHOD
>>> client
>>> 
>>> 
>>> javax.servlet.jsp.jstl.fmt.**localizationContext>> param-name>
>>> resources.application
>>>
>>> 
>>> 
>>> 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'
>>> org.apache.myfaces.ALLOW_JAVASCRIPT
>>> true
>>>
>>> 
>>> 
>>> 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'
>>> org.apache.myfaces.AUTO_SCROLL
>>> true
>>> 
>>> 
>>> org.apache.myfaces.DETECT_JAVASCRIPT
>>> false
>>>
>>> 
>>> 
>>> 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'
>>> org.apache.myfaces.PRETTY_HTML
>>> true
>>> 
>>> 
>>> org.apache.myfaces.trinidad.CHANGE_**
>>> PERSISTENCE
>>> session
>>> 
>>> 
>>> org.apache.myfaces.trinidad.CHECK_FILE_
>>> MODIFICATION
>>>
>>> false
>>> 
>>> 
>>> org.apache.myfaces.trinidad.USE_**
>>> APPLICATION_VIEW_CACHE
>>> false
>>> 
>>> 
>>> org.apache.myfaces.trinidad.ENABLE_**
>>> LIGHTWEIGHT_DIALOGS
>>> true
>>> 
>>> 
>>> org.apache.myfaces.trinidadinternal.**
>>> ENABLE_PPR_OPTIMIZATION
>>> false
>>> 
>>> 
>>> facelets.DEVELOPMENT
>>> true
>>> 
>>>
>>> 
>>> trinidad
>>> org.apache.myfaces.trinidad.webapp.
>>> TrinidadFilter
>>>
>>> 
>>> 
>>> trinidad
>>> faces
>>> 
>>> 
>>>
>>> 
>>> Faces Servlet
>>> javax.faces.webapp.FacesServlet
>>> 1
>>> 
>>>
>>> 
>>> faces
>>> javax.faces.webapp.FacesServlet
>>> 
>>>
>>> 
>>> resources
>>> org.apache.myfaces.trinidad.webapp.**
>>> ResourceServlet
>>>
>>> 
>>>
>>> 
>>> Faces Servlet
>>> *.xhtml
>>>
>>> 
>>>
>>> 
>>> Faces Servlet
>>> *.jsf
>>> 
>>>
>>> 
>>> resources
>>> /adf/*
>>> 
>>>
>>>
>>>
>>> 
>>> 
>>>
>>> XHTML file as follows:
>>>
>>> >> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
>>> http://www.w3.org/TR/xhtml1/DT

Re: [Trinidad] PanelTabbed does not work properly

2012-03-20 Thread Sandeep Gupta

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
wrote:


Hi

I have taken PanelTabbed example source and copied it as follows
















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


http://www.w3.org/**2001/XMLSchema-instance
"
xmlns="http://java.sun.com/**xml/ns/javaee
"
xmlns:web="http://java.sun.**com/xml/ns/javaee/web-app_2_5.**xsd
"
xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd
"
id="WebApp_ID" version="3.0">
MediTraceWEB

index.html
index.htm
index.jsp
default.html
default.htm
default.jsp


javax.faces.**CONFIG_FILES
/WEB-INF/faces-**config.xml


javax.faces.**DEFAULT_SUFFIX
.xhtml


javax.faces.**FACELETS_SKIP_COMMENTS
true


State saving method: 'client' or 'server' (=default). See JSF
Specification 2.5.2
javax.faces.STATE_**SAVING_METHOD
client


javax.servlet.jsp.**jstl.fmt.localizationContext
resources.**application


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'
org.apache.**myfaces.ALLOW_JAVASCRIPT
true


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'
org.apache.**myfaces.AUTO_SCROLL
true


org.apache.**myfaces.DETECT_JAVASCRIPT
false


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'
org.apache.**myfaces.PRETTY_HTML
true


org.apache.**myfaces.trinidad.CHANGE_**
PERSISTENCE
session


org.apache.**myfaces.trinidad.CHECK_FILE_**MODIFICATION

false


org.apache.**myfaces.trinidad.USE_**
APPLICATION_VIEW_CACHE
false


org.apache.**myfaces.trinidad.ENABLE_**
LIGHTWEIGHT_DIALOGS
true


org.apache.**myfaces.trinidadinternal.**
ENABLE_PPR_OPTIMIZATION
false


facelets.**DEVELOPMENT
true



trinidad
org.apache.**myfaces.trinidad.webapp.**TrinidadFilter



trinidad
faces




Faces Servlet
javax.faces.**webapp.FacesServlet
1



faces
javax.faces.**webapp.FacesServlet



resources
org.apache.**myfaces.trinidad.webapp.**
ResourceServlet



Faces Servlet
*.xhtml



Faces Servlet
*.jsf



resources
/adf/*







XHTML file as follows:

http://www.w3.org/TR/xhtml1/**DTD/xhtml1-transitional.dtd
">
http://www.w3.org/1999/**xhtml"
xmlns:f="http://java.sun.com/**jsf/core"
xmlns:h="http://java.sun.com/**jsf/html"
xmlns:ui="http://java.sun.com/**jsf/facelets"
xmlns:tr="http://myfaces.**apache.org/trinidad
">


Create Location




#{msgs.configuration}







































Re: [Trinidad] PanelTabbed does not work properly

2012-03-20 Thread Richard Yee
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
wrote:

> Hi
>
> I have taken PanelTabbed example source and copied it as follows
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 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
>
> 
>  xmlns:xsi="http://www.w3.org/**2001/XMLSchema-instance
> "
> xmlns="http://java.sun.com/**xml/ns/javaee
> "
> xmlns:web="http://java.sun.**com/xml/ns/javaee/web-app_2_5.**xsd
> "
> xsi:schemaLocation="http://**java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd
> "
> id="WebApp_ID" version="3.0">
> MediTraceWEB
> 
> index.html
> index.htm
> index.jsp
> default.html
> default.htm
> default.jsp
> 
> 
> javax.faces.**CONFIG_FILES
> /WEB-INF/faces-**config.xml
> 
> 
> javax.faces.**DEFAULT_SUFFIX
> .xhtml
> 
> 
> javax.faces.**FACELETS_SKIP_COMMENTS
> true
> 
> 
> State saving method: 'client' or 'server' (=default). See JSF
> Specification 2.5.2
> javax.faces.STATE_**SAVING_METHOD
> client
> 
> 
> javax.servlet.jsp.**jstl.fmt.localizationContext param-name>
> resources.**application
> 
> 
> 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'
> org.apache.**myfaces.ALLOW_JAVASCRIPT
> true
> 
> 
> 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'
> org.apache.**myfaces.AUTO_SCROLL
> true
> 
> 
> org.apache.**myfaces.DETECT_JAVASCRIPT
> false
> 
> 
> 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'
> org.apache.**myfaces.PRETTY_HTML
> true
> 
> 
> org.apache.**myfaces.trinidad.CHANGE_**
> PERSISTENCE
> session
> 
> 
> org.apache.**myfaces.trinidad.CHECK_FILE_**MODIFICATION
>
> false
> 
> 
> org.apache.**myfaces.trinidad.USE_**
> APPLICATION_VIEW_CACHE
> false
> 
> 
> org.apache.**myfaces.trinidad.ENABLE_**
> LIGHTWEIGHT_DIALOGS
> true
> 
> 
> org.apache.**myfaces.trinidadinternal.**
> ENABLE_PPR_OPTIMIZATION
> false
> 
> 
> facelets.**DEVELOPMENT
> true
> 
>
> 
> trinidad
> org.apache.**myfaces.trinidad.webapp.**TrinidadFilter
>
> 
> 
> trinidad
> faces
> 
> 
>
> 
> Faces Servlet
> javax.faces.**webapp.FacesServlet
> 1
> 
>
> 
> faces
> javax.faces.**webapp.FacesServlet
> 
>
> 
> resources
> org.apache.**myfaces.trinidad.webapp.**
> ResourceServlet
> 
>
> 
> Faces Servlet
> *.xhtml
> 
>
> 
> Faces Servlet
> *.jsf
> 
>
> 
> resources
> /adf/*
> 
>
>
>
> 
> 
>
> XHTML file as follows:
>
>  http://www.w3.org/TR/xhtml1/**DTD/xhtml1-transitional.dtd
> ">
> http://www.w3.org/1999/**xhtml "
> xmlns:f="http://java.sun.com/**jsf/core "
> xmlns:h="http://java.sun.com/**jsf/html "
> xmlns:ui="http://java.sun.com/**jsf/facelets"
> xmlns:tr="http://myfaces.**apache.org/trinidad
> ">
>
> 
> Create Location
> 
> 
> 
> 
>#{msgs.configuration}
> 
>
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
>
>
>
>