Trinidad: Null pointer exception in trinidad
Hi I am using trinidad 2.0 in Jboss AS7 environment (JSF builtin Jboss) on windows . I am trying to upload a file to server using trinidad fileupload (tr:inputFile) component. When the form is submitted to server on pressing a commandButton, I get Nullpointer exception. I have tried using tomahawk inputFileUpload component instaed of trinidad component for inputfile but the NPE remains same. Any help/pointers to resolve this issue will be greatly appreciated. rgds Sandeep Gupta java.lang.NullPointerException org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper.setCharacterEncoding(UploadRequestWrapper.java:83) com.sun.faces.context.ExternalContextImpl.setRequestCharacterEncoding(ExternalContextImpl.java:212) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) javax.faces.application.ViewHandler.initView(ViewHandler.java:488) com.sun.faces.application.view.MultiViewHandler.initView(MultiViewHandler.java:111) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:115) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) Here is my attachFile.xhtml !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=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; xmlns:t=http://myfaces.apache.org/tomahawk; head titleChoose File/title /head body f:view tr:document h:form enctype=multipart/form-data tr:panelPage id=pp1 tr:panelHeader text=Select File Dialog tr:panelBox id=pb1 text=Select File inlineStyle=width:100%; tr:panelButtonBar id=pbb1 halign=end inlineStyle=width:100%; tr:commandButton id=cb1 text=Done action=#{PackageJSFBean.doneAttachFile}/tr:commandButton tr:commandButton id=cb3 text=Cancel action=#{PackageJSFBean.cancelAttachFile} immediate=true/tr:commandButton /tr:panelButtonBar tr:panelFormLayout tr:inputFile id=HighLevelIdentifiers label=Identifers file valueChangeListener=#{PackageJSFBean.onSelecthlIdFile} /tr:inputFile /tr:panelFormLayout /tr:panelBox /tr:panelHeader /tr:panelPage /h:form /tr:document /f:view /body /html Here is relevant portions of web.xml filter filter-nametrinidad/filter-name filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class /filter filter-mapping filter-nametrinidad/filter-name servlet-namefaces/servlet-name /filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-namefaces/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class /servlet servlet servlet-nameresources/servlet-name servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class /servlet servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.xhtml/url-pattern /servlet-mapping servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping
Re: AW: Trinidad: Null pointer exception in trinidad
Hi The file used for inputFile component is an xhtml file (JSF 2.0 Facelet environment). So cannot specify encoding as in xml file. Also in the h:form tag encoding is specified as multipart/form-data - this is as per instructions for using trinidad file upload component tr:inputFile thanks Sandeep On 6/6/2013 12:41 PM, Krebs Roland / BWO Systems AG wrote: Hello Sandeep The core dump says that no encoding has been set, so try to add on top of your xhtml file your encoding, so for example: ?xml version=1.0 encoding=iso-8859-1 ? or ?xml version=1.0 encoding=UTF-8 ? Regards, Roland -Ursprüngliche Nachricht- Von: Sandeep Gupta [mailto:sgu...@anantadvantages.com] Gesendet: Donnerstag, 6. Juni 2013 08:04 An: users@myfaces.apache.org Betreff: Trinidad: Null pointer exception in trinidad Hi I am using trinidad 2.0 in Jboss AS7 environment (JSF builtin Jboss) on windows . I am trying to upload a file to server using trinidad fileupload (tr:inputFile) component. When the form is submitted to server on pressing a commandButton, I get Nullpointer exception. I have tried using tomahawk inputFileUpload component instaed of trinidad component for inputfile but the NPE remains same. Any help/pointers to resolve this issue will be greatly appreciated. rgds Sandeep Gupta java.lang.NullPointerException org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper.setCharacterEncoding(UploadRequestWrapper.java:83) com.sun.faces.context.ExternalContextImpl.setRequestCharacterEncoding(ExternalContextImpl.java:212) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) javax.faces.application.ViewHandler.initView(ViewHandler.java:488) com.sun.faces.application.view.MultiViewHandler.initView(MultiViewHandler.java:111) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:115) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) Here is my attachFile.xhtml !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=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; xmlns:t=http://myfaces.apache.org/tomahawk; head titleChoose File/title /head body f:view tr:document h:form enctype=multipart/form-data tr:panelPage id=pp1 tr:panelHeader text=Select File Dialog tr:panelBox id=pb1 text=Select File inlineStyle=width:100%; tr:panelButtonBar id=pbb1 halign=end inlineStyle=width:100%; tr:commandButton id=cb1 text=Done action=#{PackageJSFBean.doneAttachFile}/tr:commandButton tr:commandButton id=cb3 text=Cancel action=#{PackageJSFBean.cancelAttachFile} immediate=true/tr:commandButton /tr:panelButtonBar tr:panelFormLayout tr:inputFile id=HighLevelIdentifiers label=Identifers file valueChangeListener=#{PackageJSFBean.onSelecthlIdFile} /tr:inputFile /tr:panelFormLayout /tr:panelBox /tr:panelHeader /tr:panelPage /h:form /tr:document /f:view /body /html Here is relevant portions of web.xml filter filter-nametrinidad/filter-name filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class /filter filter-mapping filter-nametrinidad/filter-name servlet-namefaces/servlet-name /filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-namefaces/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class /servlet servlet servlet-nameresources/servlet-name servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class /servlet servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.xhtml/url-pattern /servlet-mapping servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping
Re: AW: Trinidad: Null pointer exception in trinidad
Hi I tried adding ?xml version=1.0 encoding=iso-8859-1 ? on top of file and deployed the project. On pressing coomandbutton to open dialog for file attachment, now it gives error (and dialog does not open) It is giving Facelet exception The processing instruction target matching [xX][mM][lL] is not allowed Thanks anyway for suggestion. regards Sandeep On 6/6/2013 12:41 PM, Krebs Roland / BWO Systems AG wrote: Hello Sandeep The core dump says that no encoding has been set, so try to add on top of your xhtml file your encoding, so for example: ?xml version=1.0 encoding=iso-8859-1 ? or ?xml version=1.0 encoding=UTF-8 ? Regards, Roland -Ursprüngliche Nachricht- Von: Sandeep Gupta [mailto:sgu...@anantadvantages.com] Gesendet: Donnerstag, 6. Juni 2013 08:04 An: users@myfaces.apache.org Betreff: Trinidad: Null pointer exception in trinidad Hi I am using trinidad 2.0 in Jboss AS7 environment (JSF builtin Jboss) on windows . I am trying to upload a file to server using trinidad fileupload (tr:inputFile) component. When the form is submitted to server on pressing a commandButton, I get Nullpointer exception. I have tried using tomahawk inputFileUpload component instaed of trinidad component for inputfile but the NPE remains same. Any help/pointers to resolve this issue will be greatly appreciated. rgds Sandeep Gupta java.lang.NullPointerException org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper.setCharacterEncoding(UploadRequestWrapper.java:83) com.sun.faces.context.ExternalContextImpl.setRequestCharacterEncoding(ExternalContextImpl.java:212) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) javax.faces.application.ViewHandler.initView(ViewHandler.java:488) com.sun.faces.application.view.MultiViewHandler.initView(MultiViewHandler.java:111) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:115) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) Here is my attachFile.xhtml !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=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; xmlns:t=http://myfaces.apache.org/tomahawk; head titleChoose File/title /head body f:view tr:document h:form enctype=multipart/form-data tr:panelPage id=pp1 tr:panelHeader text=Select File Dialog tr:panelBox id=pb1 text=Select File inlineStyle=width:100%; tr:panelButtonBar id=pbb1 halign=end inlineStyle=width:100%; tr:commandButton id=cb1 text=Done action=#{PackageJSFBean.doneAttachFile}/tr:commandButton tr:commandButton id=cb3 text=Cancel action=#{PackageJSFBean.cancelAttachFile} immediate=true/tr:commandButton /tr:panelButtonBar tr:panelFormLayout tr:inputFile id=HighLevelIdentifiers label=Identifers file valueChangeListener=#{PackageJSFBean.onSelecthlIdFile} /tr:inputFile /tr:panelFormLayout /tr:panelBox /tr:panelHeader /tr:panelPage /h:form /tr:document /f:view /body /html Here is relevant portions of web.xml filter filter-nametrinidad/filter-name filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class /filter filter-mapping filter-nametrinidad/filter-name servlet-namefaces/servlet-name /filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-namefaces/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class /servlet servlet servlet-nameresources/servlet-name servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class /servlet servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.xhtml/url-pattern /servlet-mapping servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping
Re: AW: AW: Trinidad: Null pointer exception in trinidad
Hi Yes, the Example 2 mentions what you have suggested. But as I mentioned, when I tried this , I got Facelet exception in faces servlet The processing instruction target matching [xX][mM][lL] is not allowed and dialog does not open. Regards Sandeep On 6/6/2013 1:13 PM, Krebs Roland / BWO Systems AG wrote: Hi Sandeep I'm using JSP, not xhtml. But according to http://en.wikipedia.org/wiki/XHTML , this should be a valid statement. (See also 'Example 2') Regards Roland -Ursprüngliche Nachricht- Von: Sandeep Gupta [mailto:sgu...@anantadvantages.com] Gesendet: Donnerstag, 6. Juni 2013 09:29 An: users@myfaces.apache.org Betreff: Re: AW: Trinidad: Null pointer exception in trinidad Hi I tried adding ?xml version=1.0 encoding=iso-8859-1 ? on top of file and deployed the project. On pressing coomandbutton to open dialog for file attachment, now it gives error (and dialog does not open) It is giving Facelet exception The processing instruction target matching [xX][mM][lL] is not allowed Thanks anyway for suggestion. regards Sandeep On 6/6/2013 12:41 PM, Krebs Roland / BWO Systems AG wrote: Hello Sandeep The core dump says that no encoding has been set, so try to add on top of your xhtml file your encoding, so for example: ?xml version=1.0 encoding=iso-8859-1 ? or ?xml version=1.0 encoding=UTF-8 ? Regards, Roland -Ursprüngliche Nachricht- Von: Sandeep Gupta [mailto:sgu...@anantadvantages.com] Gesendet: Donnerstag, 6. Juni 2013 08:04 An: users@myfaces.apache.org Betreff: Trinidad: Null pointer exception in trinidad Hi I am using trinidad 2.0 in Jboss AS7 environment (JSF builtin Jboss) on windows . I am trying to upload a file to server using trinidad fileupload (tr:inputFile) component. When the form is submitted to server on pressing a commandButton, I get Nullpointer exception. I have tried using tomahawk inputFileUpload component instaed of trinidad component for inputfile but the NPE remains same. Any help/pointers to resolve this issue will be greatly appreciated. rgds Sandeep Gupta java.lang.NullPointerException org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper.setCharacterEncoding(UploadRequestWrapper.java:83) com.sun.faces.context.ExternalContextImpl.setRequestCharacterEncoding(ExternalContextImpl.java:212) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) javax.faces.context.ExternalContextWrapper.setRequestCharacterEncoding(ExternalContextWrapper.java:561) javax.faces.application.ViewHandler.initView(ViewHandler.java:488) com.sun.faces.application.view.MultiViewHandler.initView(MultiViewHandler.java:111) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) javax.faces.application.ViewHandlerWrapper.initView(ViewHandlerWrapper.java:274) com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:115) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) Here is my attachFile.xhtml !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=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; xmlns:t=http://myfaces.apache.org/tomahawk; head titleChoose File/title /head body f:view tr:document h:form enctype=multipart/form-data tr:panelPage id=pp1 tr:panelHeader text=Select File Dialog tr:panelBox id=pb1 text=Select File inlineStyle=width:100%; tr:panelButtonBar id=pbb1 halign=end inlineStyle=width:100%; tr:commandButton id=cb1 text=Done action=#{PackageJSFBean.doneAttachFile}/tr:commandButton tr:commandButton id=cb3 text=Cancel action=#{PackageJSFBean.cancelAttachFile} immediate=true/tr:commandButton /tr:panelButtonBar tr:panelFormLayout tr:inputFile id=HighLevelIdentifiers label=Identifers file valueChangeListener=#{PackageJSFBean.onSelecthlIdFile} /tr:inputFile /tr:panelFormLayout /tr:panelBox /tr:panelHeader /tr:panelPage /h:form /tr:document /f:view /body /html Here is relevant portions of web.xml filter filter-nametrinidad/filter-name filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filte r-class /filter filter-mapping filter-nametrinidad/filter-name servlet-namefaces/servlet-name /filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet
Re: [Trinidad] PanelTabbed does not work properly
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.comwrote: 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**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.comwrote: 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-instancehttp://www.w3.org/2001/XMLSchema-instance htt**p://www.w3.org/**2001/**XMLSchema-instancehttp://www.w3.org/**2001/XMLSchema-instance http:**//www.w3.org/2001/**XMLSchema-**instancehttp://www.w3.org/2001/XMLSchema-**instance http://**www.w3.org/2001/XMLSchema-**instancehttp://www.w3.org/2001/XMLSchema-instance xmlns=http://java.sun.com/**xml/ns/javaeehttp://java.sun.com/xml/ns/javaee http://java.**sun.com/**xml/ns/javaeehttp://java.sun.com/**xml/ns/javaee http://java.sun.**com/xml/ns/**javaeehttp://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.xsdhttp://java.sun.com/xml/**ns/javaee/web-app_2_5.xsd http://**java.sun.com/xml/ns/javaee/**web-app_2_5.xsdhttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd xsi:schemaLocation=http://j**ava.sun.com/xml/ns/javaeeh** ttp://java.sun.com/xml/ns/**javaeehttp://java.sun.com/xml/ns/javaee http**://java.sun.com/xml/ns/**javaeehttp://java.sun.com/xml/ns/javaee http://java.sun.com/**xml/ns/javaeehttp://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsdhttp://java.sun.com/xml/ns/javaee/web-app_3_0.xsd http:/**/java.sun.com/xml/ns/**javaee/**web-app_3_0.xsdhttp://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd http://**java.sun.com/xml/ns/**javaee/**web-app_3_0.xsdhttp://java.sun.com/xml/ns/javaee/**web-app_3_0.xsd http:**//java.sun.com/xml/ns/javaee/**web-app_3_0.xsdhttp://java.sun.com/xml/ns/javaee/web-app_3_0.xsd id=WebApp_ID version=3.0 display-nameMediTraceWEB/**display-name welcome-file-list welcome-fileindex.html/**welcome-file welcome-fileindex.htm/**welcome-file welcome-fileindex.jsp/**welcome-file welcome-filedefault.html/**welcome-file welcome-filedefault.htm/**welcome-file welcome-filedefault.jsp/**welcome-file /welcome-file-list context-param param-namejavax.faces.**CONFIG_FILES/param-name param-value/WEB-INF/faces-**config.xml/param-value /context-param context-param param-namejavax.faces.**DEFAULT_SUFFIX/param-name param-value.xhtml/param-**value /context-param context-param param-namejavax.faces.**FACELETS_SKIP_COMMENTS/param-** ****name param-valuetrue/param-**value /context-param context-param descriptionState saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2/description param-namejavax.faces.STATE_
[Trinidad] PanelTabbed does not work properly
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; 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 display-nameMediTraceWEB/display-name welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namejavax.faces.FACELETS_SKIP_COMMENTS/param-name param-valuetrue/param-value /context-param context-param descriptionState saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2/description param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueresources.application/param-value /context-param context-param descriptionThis 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-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name param-valuetrue/param-value /context-param context-param descriptionIf 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-nameorg.apache.myfaces.AUTO_SCROLL/param-name param-valuetrue/param-value /context-param context-param param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name param-valuefalse/param-value /context-param context-param descriptionIf 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-nameorg.apache.myfaces.PRETTY_HTML/param-name param-valuetrue/param-value /context-param context-param param-nameorg.apache.myfaces.trinidad.CHANGE_PERSISTENCE/param-name param-valuesession/param-value /context-param context-param param-nameorg.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION/param-name param-valuefalse/param-value /context-param context-param param-nameorg.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE/param-name param-valuefalse/param-value /context-param context-param param-nameorg.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS/param-name param-valuetrue/param-value /context-param context-param param-nameorg.apache.myfaces.trinidadinternal.ENABLE_PPR_OPTIMIZATION/param-name param-valuefalse/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param filter filter-nametrinidad/filter-name filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class /filter filter-mapping filter-nametrinidad/filter-name servlet-namefaces/servlet-name /filter-mapping !-- listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener -- servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-namefaces/servlet-name
Re: [Trinidad] PanelTabbed does not work properly
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.comwrote: 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-instancehttp://www.w3.org/2001/XMLSchema-instance xmlns=http://java.sun.com/**xml/ns/javaeehttp://java.sun.com/xml/ns/javaee xmlns:web=http://java.sun.**com/xml/ns/javaee/web-app_2_5.**xsdhttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd xsi:schemaLocation=http://**java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/**javaee/web-app_3_0.xsdhttp://java.sun.com/xml/ns/javaee/web-app_3_0.xsd id=WebApp_ID version=3.0 display-nameMediTraceWEB/**display-name welcome-file-list welcome-fileindex.html/**welcome-file welcome-fileindex.htm/**welcome-file welcome-fileindex.jsp/**welcome-file welcome-filedefault.html/**welcome-file welcome-filedefault.htm/**welcome-file welcome-filedefault.jsp/**welcome-file /welcome-file-list context-param param-namejavax.faces.**CONFIG_FILES/param-name param-value/WEB-INF/faces-**config.xml/param-value /context-param context-param param-namejavax.faces.**DEFAULT_SUFFIX/param-name param-value.xhtml/param-**value /context-param context-param param-namejavax.faces.**FACELETS_SKIP_COMMENTS/param-**name param-valuetrue/param-**value /context-param context-param descriptionState saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2/description param-namejavax.faces.STATE_**SAVING_METHOD/param-name param-valueclient/param-**value /context-param context-param param-namejavax.servlet.jsp.**jstl.fmt.localizationContext/** param-name param-valueresources.**application/param-value /context-param context-param descriptionThis 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-nameorg.apache.**myfaces.ALLOW_JAVASCRIPT/**param-name param-valuetrue/param-**value /context-param context-param descriptionIf 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-nameorg.apache.**myfaces.AUTO_SCROLL/param-**name param-valuetrue/param-**value /context-param context-param param-nameorg.apache.**myfaces.DETECT_JAVASCRIPT/**param-name param-valuefalse/param-**value /context-param context-param descriptionIf 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-nameorg.apache.**myfaces.PRETTY_HTML/param-**name param-valuetrue/param-**value /context-param context-param param-nameorg.apache.**myfaces.trinidad.CHANGE_** PERSISTENCE/param-name param-valuesession/param-**value /context-param context-param param-nameorg.apache.**myfaces.trinidad.CHECK_FILE_**MODIFICATION/param-name param-valuefalse/param-**value /context-param context-param param-nameorg.apache.**myfaces.trinidad.USE_** APPLICATION_VIEW_CACHE/param-**name param-valuefalse/param-**value /context-param context-param param-nameorg.apache.**myfaces.trinidad.ENABLE_** LIGHTWEIGHT_DIALOGS/param-**name param-valuetrue/param-**value /context-param context-param param-nameorg.apache.**myfaces.trinidadinternal.** ENABLE_PPR_OPTIMIZATION/**param-name param-valuefalse/param-**value /context-param context-param param-namefacelets.**DEVELOPMENT
Re: [Trinidad] PanelTabbed does not work properly
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.comwrote: 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-instancehttp://www.w3.org/**2001/XMLSchema-instance http:**//www.w3.org/2001/XMLSchema-**instancehttp://www.w3.org/2001/XMLSchema-instance xmlns=http://java.sun.com/xml/ns/javaeehttp://java.sun.com/**xml/ns/javaee http://java.sun.**com/xml/ns/javaeehttp://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.xsdhttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd xsi:schemaLocation=http://**j**ava.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee http**://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsdhttp://java.sun.com/xml/ns/**javaee/web-app_3_0.xsd http://**java.sun.com/xml/ns/javaee/**web-app_3_0.xsdhttp://java.sun.com/xml/ns/javaee/web-app_3_0.xsd id=WebApp_ID version=3.0 display-nameMediTraceWEB/display-name welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file welcome-filedefault.html/welcome-file welcome-filedefault.htm/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namejavax.faces.FACELETS_SKIP_COMMENTS/param-name param-valuetrue/param-value /context-param context-param descriptionState saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2/description param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namejavax.servlet.jsp.jstl.fmt.**localizationContext/** param-name param-valueresources.application/param-value /context-param context-param descriptionThis 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-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name param-valuetrue/param-value /context-param context-param descriptionIf 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-nameorg.apache.myfaces.AUTO_SCROLL/param-name param-valuetrue/param-value /context-param context-param param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name param-valuefalse/param-value /context-param context-param descriptionIf 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-nameorg.apache