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:sgupta@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 > > > > 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: >> or >> >> >> Regards, >> Roland >> >> -----Ursprüngliche Nachricht----- >> Von: Sandeep Gupta [mailto:sgupta@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 >> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> > 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" > >> >> >> >> Choose File >> >> >> >> >> >> >> >> >> >> >> > inlineStyle="width:100%;"> >> >> > inlineStyle="width:100%;"> >> > action="#{PackageJSFBean.doneAttachFile}"> >> > action="#{PackageJSFBean.cancelAttachFile}" >> immediate="true"> >> >> >> >> >> >> >> >> > label="Identifers file" >> valueChangeListener="#{PackageJSFBean.onSelecthlIdFile}"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Here is relevant portions of web.xml >> >> >> trinidad >> org.apache.myfaces.trinidad.webapp.TrinidadFilter> r-class> >> >> >> >> >> trinidad >> faces >> >> >> >> >> >> Faces Servlet javax.faces.webapp.FacesServlet >> 1 >> >> >> >> faces >> javax.faces.webapp.FacesServlet >> >> >> >> resources >> org.apache.myfaces.trinidad.webapp.ResourceServlet> vlet-class> >> >> >> >> >> >> Faces Servlet >> *.xhtml >> >> >> >> Faces Servlet >> *.jsf >> >> >> >> resources >> /adf/* >> >>