Re: Need help on Trinidad integration with JSF 2.0 (Mojarra)
do you have the *render-kit* defined in your faces-config.xml On Sun, Apr 4, 2010 at 12:45 PM, Venkat Ramanan Viswanathan < ramanan.venka...@gmail.com> wrote: > Hi > > I am currently building an applicaiton with Trinidad 2 (alpha) with JSF > 2.0. > I am having some trouble in PPR . It is deployed on Glassfish 3 container. > I have a search button , which when pressed renders the results in a > tr:table. The first time when i press i get a connection Failed javscript > popup. Second time when i press , the backing bean methods get called > correctly and the results get rendered in table. Then when i press third > time , i get connection Failed again. The net result is that , the output > seems to alter between connecion failed and correct output. When i see the > server logs, i get the following error (whenever connection failed comes). > > When i inspected line 1299 in UIXComponentBase , i found that renderkit is > null and thats why this error is thrown. I am perplexed as to how come the > renderkit becomes null and then becomes alright and then again becomes > null. > could some one help me out. > > The following is the exception stack trace . > > java.lang.NullPointerException >at > > org.apache.myfaces.trinidad.component.UIXComponentBase._getRendererImpl(UIXComponentBase.java:1299) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase._cacheRenderer(UIXComponentBase.java:1279) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1193) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:724) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:842) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1081) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1067) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:839) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1081) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1067) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:839) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1081) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1067) >at > > org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:839) >at > > javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1042) >at > javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:941) >at > > com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78) >at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) >at > com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) >at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) >at > org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) >at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) >at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) >at > com.trp.scientific.oe.view.SafeFilter.doFilter(SafeFilter.java:29) >at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) >at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) >at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) >at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) >at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) >at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) >at > > com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) >at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) >at > > org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332) >at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233) >at > > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165) >at > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) >at > com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) >at > com.sun.grizzly.http.Proces
Re: Duplicate Id
is this a simple warning, that allows you to proceed or if its stopping your wrk.. ? if its stopping your wrk then search for the id in the jsff for which its complaining.. and change it. On Thu, Apr 1, 2010 at 4:39 AM, Russell Collins < russell.coll...@mclaneat.com> wrote: > I do not have them declared in a foreach but some of them are in a table > controls. I will try your advice and look at the rendered html and see what > I can find. I will let you know. Thanks. > > -Original Message- > From: Mike Kienenberger [mailto:mkien...@gmail.com] > Sent: Wednesday, March 31, 2010 4:23 PM > To: MyFaces Discussion > Subject: Re: Duplicate Id > > Do you have id values declared inside of c:forEach? That could be one > cause. > It's really hard to say for sure the problem without seeing the jspx > code and possibly the generated html. > > On Wed, Mar 31, 2010 at 5:08 PM, Russell Collins > wrote: > > Please bear with me as I am brand new to the list. I am running MyFaces > and I am noticing that there are a lot of Duplicate Id messages in the debug > log. I am looking at jspx files in my project and some of the ids are not > duplicated but are still showing up in the log. How do I prevent this > warning from showing up in my log file other than going to a different > logging level? > > > > > > > > Russell Collins > > Sr. Software Engineer > > McLane Advanced Technology > > 254.771.6419 > > > > > > > > "Do or do not, there is no try." - Yoda > > > > > > > > CONFIDENTIALITY NOTICE: The information contained in this electronic mail > (email) transmission (including attachments), is intended by MCLANE ADVANCED > TECHNOLOGIES for the use of the named individual or entity to which it is > addressed and may contain information that is privileged, confidential > and/or protected as a trade secret. It is not intended for transmission to, > or receipt by, any individual or entity other than the named addressee(s). > If you have received this email in error, please delete it (including > attachments) and any copies thereof without printing, copying or forwarding > it, and notify the sender of the error by email reply immediately. > > > > CONFIDENTIALITY NOTICE: The information contained in this electronic mail > (email) transmission (including attachments), is intended by MCLANE ADVANCED > TECHNOLOGIES for the use of the named individual or entity to which it is > addressed and may contain information that is privileged, confidential > and/or protected as a trade secret. It is not intended for transmission to, > or receipt by, any individual or entity other than the named addressee(s). > If you have received this email in error, please delete it (including > attachments) and any copies thereof without printing, copying or forwarding > it, and notify the sender of the error by email reply immediately. >
Re: Conversion error using inputDate with a non-US browser locale
Can you try with convertDateTime and specify the pattern that you want to use On Thu, Apr 1, 2010 at 3:25 AM, Derry Cannon wrote: > No, I've not tried the inputCalendar. In stepping through the debugger, > I'm > seeing places where facesContext.getViewRoot().getLocale() is returning the > proper Locale, so I'm at a loss as to why the pattern is staying > "dd.MM." instead of "MM.dd.." > > Derry > > > > On Wed, Mar 31, 2010 at 4:27 PM, Leonardo Uribe wrote: > > > Hi > > > > Did you tried with the property "popupDateFormat" on t:inputCalendar? The > > default is : > > > > javax.text.SimpleDateFormat("dd.MM.", > > facesContext.getViewRoot().getLocale()); > > > > regards, > > > > Leonardo Uribe > > > > 2010/3/31 Derry Cannon > > > > > I'm having trouble using the Tomahawk inputDate for non-US locales. If > > in > > > Firefox I set my general.useragent.locale to "en-US", all is well. > > > However, > > > if I set my locale to "en-GB", I get a conversion error from the > > inputDate. > > > Stepping through the debugger, it appears that when my locale is > "en-GB" > > > and > > > I submit a date of April 15, 2010, the value of the date submitted is > > > "4/15/2010," while the inputDate's DateTimeConverter is expecting the > > value > > > of "15/04/2010." > > > > > > I've tried the following: > > > > > > - setting the inputDate's timezone to "Europe/London" > > > - associating an f:convertDateTime with the inputDate, giving the > > > converter the locale of "en-GB" > > > - setting the locale in f:view to "en-GB" > > > > > > I've also confirmed that "en-GB" is a supported locale in the > > > faces-config.xml. I'm out of ideas over here, and any help would be > > > greatly > > > appreciated. > > > > > > Thanks much! > > > Derry > > > > > >
Re: [Tobago] Using validator in custom tag
yes it should be like.. inExtensionTag.setValidator("#*{*validator.validate*}*"); Thanks, Vinod On Wed, Mar 31, 2010 at 12:55 PM, Helmut Swaczinna wrote: > Hi, > > there's no '{' in "#validator.validate}"); > > Regards > > Helmut > > > Am 30.03.2010 18:53, schrieb Alf Felis: > > Hi all, >> >> I try to use a validator dependent on a property within a custom tag >> class. >> >> My class extends TagSupport and overwrites the doStartTag() method. >> In this method I add a validator depending on a property (see below). >> >> First the property is "false" and no validator will be added to the >> inExtensionTag. Now (next access to the page) the property will change to >> "true" and the output "Setting validator!" shows me, that the validator has >> been set. But the validator will never be called! >> >> If I always add the validator (not depending on the property), everything >> works fine. The validator will be called on submit. >> >> What is wrong with my approach? >> Is there another possibility to do what I want? >> >> Example: >> >> @Override >> public int doStartTag() throws JspException { >> InExtensionTag inExtensionTag = new InExtensionTag(); >> inExtensionTag.setPageContext(pageContext); >> inExtensionTag.setParent(getParent()); >> inExtensionTag.setId(id); >> inExtensionTag.setLabel(label); >> inExtensionTag.setValue(value); >> if (isValidationEnabled()) { >> System.out.println("Setting validator!"); >> inExtensionTag.setValidator("#validator.validate}"); >> } >> inExtensionTag.doStartTag(); >> inExtensionTag.doEndTag(); >> return super.doStartTag(); >> } >> >> >> Best regards, >> >> Alf >> >>
Re: Facing error after Tomahawk upgrade.
So do you mean to say tomahawk 1.1.9 along with JSF. 1.2 will do the trick? On Tue, Mar 30, 2010 at 7:20 PM, Rene van Wijk wrote: > > Use component libraries which are compliant with the 1.2 JSF standard and > not the 1.1 standard. > > > > There is a difference in binding component attributes in JSF 1.2 and 1.1, > for example, > > > > 1.1 > > public void set_binding(String _binding) { > this.binding = _binding; > } > > public String getBinding() { > return binding; > } > > > > if (getBinding() != null) { > if (isValueReference(getBinding())) { > inputText.setValueBinding("binding", > getValueBinding(getBinding())); > } else { > inputText.getAttributes().put("binding", getBinding()); > } > } > > > > 1.2 > > public ValueExpression getBinding() { > return binding; > } > > public void setBinding(ValueExpression binding) { > this.binding = binding; > } > > > > if (getBinding() != null) { > if (!getBinding().isLiteralText()) { > inputText.setValueExpression("binding", getBinding()); > } else { > inputText.getAttributes().put("binding", > getBinding().getExpressionString()); > } > } > > > > This also clearifies the exception you get expected ValueExpression got > String. > > -Original message- > From: nilakandan.v...@cognizant.com > Sent: Tue 30-03-2010 15:34 > To: users@myfaces.apache.org; > Subject: Facing error after Tomahawk upgrade. > > All, > > I'm getting the following exception when I try to access my > application. > > > > I have recently updated the following components in my application > > > > weblogic8.1 to weblogic 10.3 > > myfaces 1.1.5 to 1.2.8 > > richfaces 3.0.1 to 3.3.3 > > tomahawk 1.1.5 to 12_1.1.10 > > Struts tiles to tiles 2.0.7 > > > > > > I have also tried with tomahawk 1.1.9 , but I have faced exception in > stating "there is no such method error with the method > argument expecting 'Valueexpression' instead of String ." > > > > > > Mar 30, 2010 6:39:45 PM > org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl > buildTilesViewLikeContain er > > SEVERE: Error rendering tile > > org.apache.tiles.util.TilesIOException: ServletException including path > '/webContent/jsp/searchManager/layout/searchMana > > gerLayout.jsp'. > >at > org.apache.tiles.servlet.context.ServletTilesRequestContext.wrapServletE > xception(ServletTilesRequestContext.j > > ava:298) > >at > org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(Serv > letTilesRequestContext.java:200) > >at > org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(Ser > vletTilesRequestContext.java:179) > >at > org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.b > uildView(JspTilesTwoViewHandlerImpl.j > > ava:450) > >at > org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.b > uildTilesViewLikeContainer(JspTilesTw > > oViewHandlerImpl.java:354) > >at > org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.r > enderTilesView(JspTilesTwoViewHandler > > Impl.java:154) > >at > org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.r > enderView(JspTilesTwoViewHandlerImpl. > > java:135) > >at > org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrappe > r.java:100) > >at > org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java > :176) > >at > org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRespon > seExecutor.java:41) > >at > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140 > ) > >at > javax.faces.webapp.FacesServlet.service(FacesServlet.java:182) > >at > weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St > ubSecurityHelper.java:227) > >at > weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH > elper.java:125) > >at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2 > 92) > >at > weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) > >at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: > 42) > >at > org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) > >at > org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) > >at > org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter > .java:388) > >at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) > >at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: > 42) > >at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: > 42) > >at > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Exten
Re: [Trinidad] Skinning: Change only one occurence of a component
you have to use it like af|selectOneChoice.MyStyle af|selectOneChoice::content { // style properties } and use the MyStyle in the styleClass of the specific selectonechoice that you are using.. On Tue, Mar 30, 2010 at 4:14 PM, Glauco P. Gomes wrote: > You can use to change > the menu size. > > Glauco P. Gomes > > schneidc escreveu: > >> Hi, >> >> I want to change the width of a , so it isn't so >> narrow >> when empty. doesn't do the >> trick as the actual menu is embedded in a table and the style get's >> applied >> on the table and not the menu itself. >> >> So I figured out that I should change "af|selectOneChoice::content". But >> this would alter all the selectOneChoices and I only want to adjust the >> width of one. I read the skinning guide but didn't find anything useful. >> Is >> it even possible? >> >> Cheers >> Simon >> >> > > >