Re: [trinidad 1.2]
Why not add a try catch block around the code in question instead of letting runtime exceptions through? On Mon, Aug 20, 2012 at 2:42 AM, Me Self wmso...@gmail.com wrote: Hi All How do I disable PPR error popups? If a bean method handling PPR events throws an runtime exception the user sees a popup that reveals internal code structure - I want to disable this in production but how?
Re: Trinidad-1107
Okay, thanks. Since the attribute is only used by the DesktopRendered, would you mind applying the new attribute to CoreTable instead of Table? That way renderkits that extend Trinidad, but not it's core renderers will not be broken by the addition of a new attribute. Thanks. On Thu, Jul 12, 2012 at 3:40 AM, Cédric Durmont cdurm...@gmail.com wrote: Actually the height is set on a div tag containing the table. The headerfooter are outside the div, so they don't scroll. The JS part is used to keep column widths in sync between header, body and footer, so you can still use percentages in width. Right now I just took the generated code for a scrollable table and put in in w3c validator, the fragment is _almost_ HTML 4.01 valid (2 errors in column rendering, which I didn't modify : the validator is complaining about the 'with' and 'nowrap' attributes, both non-existent in the specs) I have one more error in the XHTML validation : my col tags are not closed. I generate them with the following code : --- writer.startElement(col, null); writer.writeAttribute(XhtmlConstants.WIDTH_ATTRIBUTE, colData.getWidth(i), null); writer.endElement(col); --- I could manually add the closing tag, or maybe there's a way to do it using the writer api, but I don't know how. Anyway, the scrollable tr:table has been tested here on IE 89, Firefox and Chrome. (Our clients use them with IE, but we're currently validating our app to run on Firefox) 2012/7/12 Andrew Robinson andrew.rw.robin...@gmail.com: Is the height attribute or height style being set on a TABLE HTML element? If so that is not valid. The TABLE element has no height, neither an attribute nor support for a CSS height. Some browsers recognize, others do not, but it is not in the HTML specification as a current attribute. http://www.w3.org/TR/html4/struct/tables.html As you can see, the height attribute is deprecated on the TH/TD, but there is no height attribute on the TABLE element. I would rather not add code that is not HTML strict safe if possible to the rendering. On Tue, Jul 10, 2012 at 10:00 AM, Cédric Durmont cdurm...@gmail.com wrote: 2012/6/19 Scott O'Bryan darkar...@gmail.com: If there is some functionality you'd like to see in Trinidad, please open up a discussion on the dev list about it. We'd like to hear from you. Sorry to jump in the conversation that late, I've been quite busy recently. I filed a patch in TRINIDAD-1107 quite some time ago. I do know it's not the most elegant piece of code I've ever written, and it's still far from perfect, but : - the new functionality (height attribute in tr:table) breaks nothing as long as it is not used, so this shouldn't affect Trinidad's stability, - We use it extensively in one of our softwares. We have 20+ clients (something between 50-100 users) using it in production on a daily basis and experience no trouble with it - More feedback and/or patches (who knows) would only make it better. I'd be happy to contribute small improvements to Trinidad in the future, as long as it's taken into account by the dev team. I don't say you should accept blindly anything, but at least give a feedback, so I can improve the patch a eventually have it accepted. Anyway, thanks for your commitment on Trinidad, which is still a neat piece of code IMHO. Regards, Cedric Durmont
Re: Trinidad-1107
Is the height attribute or height style being set on a TABLE HTML element? If so that is not valid. The TABLE element has no height, neither an attribute nor support for a CSS height. Some browsers recognize, others do not, but it is not in the HTML specification as a current attribute. http://www.w3.org/TR/html4/struct/tables.html As you can see, the height attribute is deprecated on the TH/TD, but there is no height attribute on the TABLE element. I would rather not add code that is not HTML strict safe if possible to the rendering. On Tue, Jul 10, 2012 at 10:00 AM, Cédric Durmont cdurm...@gmail.com wrote: 2012/6/19 Scott O'Bryan darkar...@gmail.com: If there is some functionality you'd like to see in Trinidad, please open up a discussion on the dev list about it. We'd like to hear from you. Sorry to jump in the conversation that late, I've been quite busy recently. I filed a patch in TRINIDAD-1107 quite some time ago. I do know it's not the most elegant piece of code I've ever written, and it's still far from perfect, but : - the new functionality (height attribute in tr:table) breaks nothing as long as it is not used, so this shouldn't affect Trinidad's stability, - We use it extensively in one of our softwares. We have 20+ clients (something between 50-100 users) using it in production on a daily basis and experience no trouble with it - More feedback and/or patches (who knows) would only make it better. I'd be happy to contribute small improvements to Trinidad in the future, as long as it's taken into account by the dev team. I don't say you should accept blindly anything, but at least give a feedback, so I can improve the patch a eventually have it accepted. Anyway, thanks for your commitment on Trinidad, which is still a neat piece of code IMHO. Regards, Cedric Durmont
Re: [Trinidad] Should inner subform submit an outer subform ?
I believe that submitting a subform submits all parent subforms, but not siblings. For example: sf1 sf2 sf3 sf4 sf5 If something in sf3 is submitted, sf1, sf2 and sf3 are processed, but not 4 5. The subform documentation is not all that wonderful, so I am not positive. 2011/10/13 Walter Mourão walter.mou...@gmail.com Hi folks, in the situation: subform1 ... subform2 ... button2/ /subform2 /subform1 should a click in button2 submit subform1 ? This is happening in Trinidad 2.0 and I'm not sure it is a correct behavior... at least I didn't expect it, because the validation is being enforced in the subform1 fields... Thanks in advance, Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br
Re: [Trinidad] Creating custom components
Here is a very old WIKI I wrote. Most of it should still work, but it is out of date: http://wiki.apache.org/myfaces/Facelets_and_JSF_1.1_maven-faces-plugin_Getting_started On Sat, Jul 16, 2011 at 11:30 PM, omid p vermind...@gmail.com wrote: Hi guys, I want to create a custom component in trinidad but i could not find a documentation ? how can i create a custom component from scratch ? also i found trinidad source is not complete is it ? i can not find tr:inputListOfValues code Thanks in advanced
Re: tr:document with facelets/jsf2
From the error, it looks like you are missing the Trinidad-impl faces-config information. This could be a classpath issue. For example, are you sure that the Trinidad 2.0 jars are the only ones on the classpath and there is only one JSF implementation set of jars on the classpath? You can try running your code on Jetty to see if there is a problem with your server setup. The renderers are registered in the faces-config.xml (type-class), so it seems like that is not being found during the jar parsing. On Fri, Jul 15, 2011 at 4:27 PM, Manuel Hartl ha...@flexsecure.de wrote: Hi All, ok. sorry for the last post. i understood that these identifiers to not reference java classes. anyways. does my example page work for you? Regards, Manuel. Hi All, if i look at the tr.taglib.xml file of the trinidad2.0.0 release then i see: component component-typeorg.apache.myfaces.trinidad.CoreDocument/component-type renderer-typeorg.apache.myfaces.trinidad.Document/renderer-type handler-classorg.apache.myfaces.trinidadinternal.facelets.TrinidadComponentHandler/handler-class /component the class org.apache.myfaces.trinidad.CoreDocument does not exist. it moved to org.apache.myfaces.trinidad.component.core.CoreDocument right? it seems that the taglib file is just incorrect!? that would explain my errors perfectly :) Regards, Manuel. Hi Scott Andrew, here is a small test page: -- SNIP - ?xml version=1.0 encoding=UTF-8? !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:trh=http://myfaces.apache.org/trinidad/html; xmlns:c=http://java.sun.com/jsp/jstl/core; f:view tr:document title=title h:form usesUpload=true id=globalForm h:commandButton image=/pictures/header.png action=#{servicesBean.restart} / /h:form /tr:document /f:view /html -- SNAP - with this page i get the following warning (and ONLY this warning): 14.07.2011 21:05:26 org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl WARNUNG: Renderer konnte nicht gefunden werden für CoreDocument[UIXFacesBeanImpl, id=j_idt4] rendererType = org.apache.myfaces.trinidad.Document Is this a bug or am i wrong with something? environment: mojarra 2.0.2 / trindad 2.0.0 / tomcat 6.0.32 Regards, Manuel. Hi Andrew, so i think my configuration is correct (as there is not really much needed). Do i need to use jspx? i think i will generate a minimal demo page and post it here for review. Regards, Manuel. Yes, you can have a look at the demo. It is running facelets and JSPX and is on JSF 2. https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/trinidad-demo web.xml: https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml faces-config.xml: https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml On Thu, Jul 14, 2011 at 3:51 AM, Manuel Hartl ha...@flexsecure.de wrote: hi scott, i am pretty sure, that i have the impl :) i doublechecked it now. some of the errors (sorry for german localization) 14.07.2011 11:45:03 org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl WARNUNG: Renderer konnte nicht gefunden werden für CoreDocument[UIXFacesBeanImpl, id=j_idt4] rendererType = org.apache.myfaces.trinidad.Document 14.07.2011 11:45:03 org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl WARNUNG: Renderer konnte nicht gefunden werden für CorePanelPage[UINodeFacesBean, id=j_idt8] rendererType = org.apache.myfaces.trinidad.Page can i somehow is there an example how to configure the webapp for trinidad2/jsf2/facelets? (web.xml, faces-config.xml, ...) Regards, Manuel. Wow.. It looks like I really DO need a new release. :). I was waiting for thing to stabilize and then got tied up.. Manuel, it looks like you don't have the impl in there if it can't find the tag. Can you show me a copy of your page? Sent from my iPad On Jul 13, 2011, at 4:36 PM, Manuel Hartl ha...@flexsecure.de wrote: Hi Scott, I am using the trinidad 2.0.0 Release. It is the latest on the page. Tags like document or pagePanel are not rendered and there is a warning in the log for these tags that the renderer could Not Be found Am 14.07.2011 um 00:26 schrieb Scott O'Bryan
Re: tr:document with facelets/jsf2
Yes, you can have a look at the demo. It is running facelets and JSPX and is on JSF 2. https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/trinidad-demo web.xml: https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml faces-config.xml: https://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml On Thu, Jul 14, 2011 at 3:51 AM, Manuel Hartl ha...@flexsecure.de wrote: hi scott, i am pretty sure, that i have the impl :) i doublechecked it now. some of the errors (sorry for german localization) 14.07.2011 11:45:03 org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl WARNUNG: Renderer konnte nicht gefunden werden für CoreDocument[UIXFacesBeanImpl, id=j_idt4] rendererType = org.apache.myfaces.trinidad.Document 14.07.2011 11:45:03 org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl WARNUNG: Renderer konnte nicht gefunden werden für CorePanelPage[UINodeFacesBean, id=j_idt8] rendererType = org.apache.myfaces.trinidad.Page can i somehow is there an example how to configure the webapp for trinidad2/jsf2/facelets? (web.xml, faces-config.xml, ...) Regards, Manuel. Wow.. It looks like I really DO need a new release. :). I was waiting for thing to stabilize and then got tied up.. Manuel, it looks like you don't have the impl in there if it can't find the tag. Can you show me a copy of your page? Sent from my iPad On Jul 13, 2011, at 4:36 PM, Manuel Hartl ha...@flexsecure.de wrote: Hi Scott, I am using the trinidad 2.0.0 Release. It is the latest on the page. Tags like document or pagePanel are not rendered and there is a warning in the log for these tags that the renderer could Not Be found Am 14.07.2011 um 00:26 schrieb Scott O'Bryan darkar...@gmail.com: It should work just fine. We've supported faceless for some time and JSF20 should be fully functional. What version of Trin are you using? Sent from my iPad On Jul 13, 2011, at 4:22 PM, Manuel Hartl ha...@flexsecure.de wrote: Hi Trinidad-Team, I am trying to use Trinidad2 with Facelets(JSF2). Should this be possible? e.g. the tag tr:document seems not to be rendered. Is this a configuration problem or is is the document tag not usable with Facelets? Regards, Manuel. -- Dipl. Inform. Manuel Hartl Software Architect FlexSecure GmbH Industriestr. 12 D - 64297 Darmstadt Tel: +49 (0) 6151 501 23-18 Fax: +49 (0) 6151 501 23-19 E-Mail: ha...@flexsecure.de Internet: www.flexsecure.de Geschäftsführer: Erwin Stallenberger, Markus Ruppert Amtsgericht Darmstadt HRB 8036 Umsatzsteuernummer: DE 214745269 -- Dipl. Inform. Manuel Hartl Software Architect FlexSecure-LogoKobilGroup-Logo FlexSecure GmbH Industriestr. 12 D - 64297 Darmstadt Tel: +49 (0) 6151 501 23-18 Fax: +49 (0) 6151 501 23-19 E-Mail: ha...@flexsecure.de Internet: www.flexsecure.de Geschäftsführer: Erwin Stallenberger, Markus Ruppert Amtsgericht Darmstadt HRB 8036 Umsatzsteuernummer: DE 214745269
Re: [trinidad 1.2]
I think you would need to provide your own renderer. Note that there are two radio components, selectOneRadio and selectBooleanRadio. The selectBooleanRadio has a simpler HTML layout, but I am not sure what the DOM that is produced looks like. On Tue, Apr 26, 2011 at 7:30 AM, Me Self wmso...@gmail.com wrote: Hi All When trinidad renders for instance two radio buttons it wraps them in a table tag or separtes them with br. Is there a simple way to make trinidad render components into simpler html.
Re: Trinidad RequestContext Null
A4J + Trinidad is not supported. The two Ajax solutions are not tested and probably are not compatible. I do not see org.apache.myfaces.trinidadinternal.facelets.TrinidadFaceletViewHandler anywhere in your web.xml Check this WIKI out: http://myfaces.apache.org/trinidad/installation.html On Sun, Apr 17, 2011 at 10:16 AM, omid p vermind...@gmail.com wrote: Hi, I am using Seam 2.2, Richfaces 3.3, Trinidad 1.2.13, JBoss as 4.2 when i want to use org.apache.myfaces.trinidad.context.RequestContext.getCurrentContext i've got this exception : 2011-04-17 20:38:29,784 DEBUG [org.ajax4jsf.webapp.FilterServletResponseWrapper] Create StringWriter for buffer servlet output 2011-04-17 20:38:29,785 ERROR [STDERR] Apr 17, 2011 8:38:29 PM org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit createResponseWriter SEVERE: No RenderingContext has been created. 2011-04-17 20:38:29,788 DEBUG [org.ajax4jsf.renderkit.RendererBase] Start encoding of component _viewRoot with class org.ajax4jsf.component.AjaxViewRoot 2011-04-17 20:38:29,838 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] phase(RENDER_RESPONSE 6,org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit@a43065 ) threw exception: java.lang.IllegalStateException: No RenderingContext No RenderingContext org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:305) org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRenderer.java:56) javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788) javax.faces.component.UIComponent.encodeAll(UIComponent.java:884) javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) org.jboss.seam.debug.jsf.SeamDebugPhaseListener.beforePhase(SeamDebugPhaseListener.java:56) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:510) org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
Re: [trinidad] Status of trinidad 2.0?
I would suggest trying out the 2.0 in a branch of your source code and testing it out. At the very least this will give you an idea what is better, or what still needs some work. We have been fixing bugs quite quickly in Trinidad 2, and it receives more attention than 1.2, but if people aren't reporting bugs, it will take much longer for it to stabilize. -Andrew On Fri, Feb 25, 2011 at 1:34 PM, Scott O'Bryan darkar...@gmail.com wrote: Hmm. Tough call. All I can really say is that great pains have been taken in Trinidad 1.2 to make sure things are backward compatible. Certainly by remaining active in the project, you can ensure that your stuff does not require to total rewrite. That said, the Trinidad trunk is currently undergoing many bug fixes and enhancements so I would expect things to be stabilized soon. Scott On Feb 25, 2011, at 7:06 AM, Me Self wmso...@gmail.com wrote: Im starting a new JSF project and must decide whether to go with a stabile 1.2 impl or if I should risk it and use 2.0 beta. Im considering 2.0 because the app will be used by powerusers - they need all the clientside javascript speedups I can provide. So I would like to hear your opinions - will it be too much trouble going with the beta now (project deadline is in august)? Do I risk that features that were working in 1.2 are broken in 2.0 beta?
Re: Trinidad : Support for JDK 6
Trinidad 1.2 is compiled with JDK 5 and should work with JRE 6 Trinidad 2 is compiled with JDK 6 On Fri, Dec 10, 2010 at 7:59 AM, Scott O'Bryan darkar...@gmail.com wrote: Yes, you can. JDK 5 was needed for compilation because of some plugin issues I believe, but the latest trinidad's should work with JDK 6 no problem. Sent from my iPhone On Dec 10, 2010, at 2:43 AM, Walter Mourão walter.mou...@gmail.com wrote: I've been using Trinidad with JDK 6 since a long time ago... no hassles. Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Thu, Dec 9, 2010 at 11:40 PM, Kaul, Rohit rohit.k...@wmg.com wrote: Hi We use Apache MyFaces Trinidad 1.2.8 in our JEE application running on JBoss 4.3 EAP with JSF 1.2 (Sun RI) We are looking to upgrade to JBoss 5.1 that only supports JDK 6. The question is that does Trinidad support JDK 6?, because according to the Trinidad official web site, JDK 5 is in the dependency list. Can you please answer our query? Many thanks. Thanks, Rohit Kaul Technical Team | GCDM | WMG HCL Technologies *: rohit.k...@wmg.com | AIM: rohitkaul...@yahoo.co.in *: (+1) 818-569-9574
Re: [Trinidad] need timelines for the Trinidad 2 release
What problems do you have with f:ajax in Trinidad 2? it should be working On Wed, Jul 14, 2010 at 11:07 PM, Venkat Ramanan Viswanathan ramanan.venka...@gmail.com wrote: HI Can some one share the timelines for Trinidad 2 final release. We are still using alpha 2 for our environment and it is quite stable except that f:ajax is not working correctly. Can some one share the dates for RC1, RC2 and final production release. Also are there plans to make it work with other frameworks ? Currently if we use trinidad components, we cannot mix them with other jsf component frameworks like richfaces , primefaces , Icefaces as the PPR concepts are different in each framework. Thanks Venkat
Re: Trinidad Dialog Problem
One reason you may not be getting much feedback is that you are emailing the wrong list. The dev@ list is only for discussing the development of myfaces projects, not for using myfaces projects. Your previous message has little debugging information. Please use the source jar to debug through the code and try to find out what is wrong and post your findings and a patch to reproduce the problem against the demo project or a test case so that we can see the problem in action instead of going of a short description in an email. On Thu, Apr 29, 2010 at 8:00 AM, navnath29 kumbhar.navn...@gmail.comwrote: Hi There, Please have a look this link. http://old.nabble.com/Problem-with-Trinidad%27s-Dialog-box-tt27889042.html#a27889042 I am still waiting for above solution. I know I am posting same message twice, But I am not getting any kind of solution to resolve it. PleasePlease let me know any clue. :working: Thank You, Navnath Kumbhar. -- View this message in context: http://old.nabble.com/Trinidad-Dialog-Problem-tp28400933p28400933.html Sent from the My Faces - Dev mailing list archive at Nabble.com.
[Trinidad 2] Announcement: JSF 2 ajax support has been added to the trunk
As of SVN revision 936035, the Trinidad trunk now supports the built in AJAX of JSF2. Details: - Requests through f:ajax supported with Trinidad components - jsf.ajax.request used to submit PPR requests from the Trinidad request queue - Server delivers JSF2 payload, with special handling for Trinidad IFRAME requests to send down script libraries - IFrame processing still possible by bypassing the jsf.ajax code which has yet to be made compatible with file uploads in either Mojarra or MyFaces - Note that there is a limitation that iframe processing only supports the legacy PPR of Trinidad (replacement only, no support for the new insert, delete, attribute change functionality of the JSF2 partial response writer) - Trinidad still supports broadcasting of DOM changes and restores focus by leveraging JSF AJAX events - Agent specific flag to disable AJAX through jsf.ajax to handle use cases where mobile platforms do not function using the Mojarra or MyFaces JavaScript - Integration on the server between JSF 2 rendered IDs and Trinidad partial triggers - Partial submit and client behavior support - Trinidad's partial triggers will be honored for the jsf ajax requests. - However, this will currently work only with execute=@all or if the execute attribute is pointed to each component that is listed as a partial trigger. - Once we start adding trigger listeners during the PostRestoreView event processing, instead of decode, this limitation will go away. We welcome your assistance to test your applications on the current Trunk and report your findings and file issues when found. Thank you, Andrew
Re: Trinidad 1.2.13: another upgrade problem: Now UIXCollection unserializable
BTW, components should not be serialized, they should only be used for one request and then thrown away, new components being built from saved state on further requests. On Tue, Apr 13, 2010 at 1:07 AM, wolfgang.toep...@pta.de wrote: Forget this post, obviously this NPE is not a Trinidad problem but of our own changed backend .. ;) Best wishes Wolfgang wolfgang.toep...@pta.de 12.04.2010 16:35 Bitte antworten an MyFaces Discussion users@myfaces.apache.org An MyFaces Discussion users@myfaces.apache.org Kopie mwessend...@gmail.com, MyFaces Discussion users@myfaces.apache.org Thema Trinidad 1.2.13: another upgrade problem: Now UIXCollection unserializable Hi, Have to restate the result of the update from 1.2.9 to 1.2.13 ;( Now on another page which used to work we get a new problem which, however, has to do with basically the same saveState serialization problem. We now get an NPE when trying to do a search on a treeTable component. This search triggers the NPE because Trinidad attempts to serialize the applied treeTable see the following stack trace. Any ideas? Is it possible to get back to a less strict serialization mechanism ?? Does the row key set now always need to be set i.e. non-empty? The treeTable is simply used like this: tr:treeTable initiallyExpanded=true inlineStyle=table-layout:fixed; overflow:auto; margin: 0px 10px 10px 10px; width=780 rowsByDepth=#{TC1004.rowsByDepth} var=node value=#{TC1004.tc1004TreeModel} ... /tr:treeTable Thanks in advance.. 15:44:09,660 ERROR [viewhandler] Error Rendering View[/TC1004/TC1004-Anwenderschalter-display.xhtml] java.lang.NullPointerException at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl$NodeIterator._nextEntry(RowKeySetTreeImpl.java:835) at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl$NodeIterator.nextItem(RowKeySetTreeImpl.java:803) at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl$NodeIterator.init(RowKeySetTreeImpl.java:796) at org.apache.myfaces.trinidad.model.RowKeySetTreeImpl.iterator(RowKeySetTreeImpl.java:92) at java.util.AbstractCollection.toString(AbstractCollection.java:450) at java.lang.String.valueOf(String.java:2615) at java.lang.StringBuilder.append(StringBuilder.java:116) at org.apache.myfaces.trinidad.bean.util.StateUtils.saveState(StateUtils.java:295) at org.apache.myfaces.trinidad.bean.util.PropertyHashMap.saveState(PropertyHashMap.java:109) at org.apache.myfaces.trinidad.bean.util.FlaggedPropertyMap.saveState(FlaggedPropertyMap.java:183) at org.apache.myfaces.trinidad.bean.FacesBeanImpl.saveState(FacesBeanImpl.java:370) at org.apache.myfaces.trinidad.component.UIXFacesBeanImpl.saveState(UIXFacesBeanImpl.java:124) at org.apache.myfaces.trinidad.component.FacesBeanWrapper.saveState(FacesBeanWrapper.java:146) at org.apache.myfaces.trinidad.component.UIXTree$RowKeyFacesBeanWrapper.saveState(UIXTree.java:402) at org.apache.myfaces.trinidad.component.UIXComponentBase.saveState(UIXComponentBase.java:968) at org.apache.myfaces.trinidad.component.UIXCollection.saveState(UIXCollection.java:259) at org.apache.myfaces.trinidad.component.UIXTreeTable.saveState(UIXTreeTable.java:296) at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:155) at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:896) at org.apache.myfaces.trinidad.component.UIXCollection.processSaveState(UIXCollection.java:244) at javax.faces.component.UIComponentBase.processSaveState(UIComponentBase.java:1119) at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175) at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:896) at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175) at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:896) at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175) at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:896) at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175) at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:896) at org.apache.myfaces.trinidad.component.TreeState.saveState(TreeState.java:175) at org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState(UIXComponentBase.java:896) at
Re: [TRINIDAD] Header rendering multiple times.
Sorry, not sure then, anyone else have an idea? -A On Mon, Mar 15, 2010 at 6:11 AM, preeti agarwal preetiagarwa...@gmail.com wrote: There are no JSTL components being used. Though we use facelets. There is an entry in web.xml file : context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value !--param-valueserver/param-value-- /context-param When this entry is removed (thereby reverting to default settings), the problem gets solved. Any reason why client side State Saving is causing an issue? On Tue, Mar 9, 2010 at 10:23 PM, Andrew Robinson andrew.rw.robin...@gmail.com wrote: Do you use any JSTL tags? Have you any component binding in the page, especially ones that may live longer than one request? On Tue, Mar 9, 2010 at 7:31 AM, preeti agarwal preetiagarwa...@gmail.com wrote: Description of problem : I have an xhtml page in which I use trininad components (like tablelayout) and also tomahawk components (like form). I have used some usual HTML components along with it. First time the page is rendered correctly. But anysubsequent refresh causes the header to render multiple times. I suspect it might have something to do with state saving. Can anyone help me with this? PS: I originally suspected that it had something to do with mixing of incompatible HTML div and Trinidad components.Changing div to t:div didn't solve the issue.
Re: Trinidad 2.0 TableRenderingContext nullpointer
UIXTable is not a concrete class, you should be using CoreTable. You should never use new ComponentClass to create a component, but instead should be using the Application to create the component using the component type. This ensures that you get the correct implementation class for the current render kit. -Andrew On Fri, Mar 12, 2010 at 6:14 AM, Belkom,Gijs G.H.C. van g.vanbel...@student.fontys.nl wrote: Hello, At this moment I am trying to build a Proof of Concept for my graduate project using Trinidad 2.0 nested grid component. The 'normal' approach for a grid is declaring the columns in the xhtml page but I want to do this dynamically in the backing bean. When I create a new UIXTable and add it to the CorePanelPage, even without any column data, the internet browser inmediately returns at startup: java.lang.NullPointerException at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.TableRenderingContext.init(TableRenderingContext.java:102) at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer.createRenderingContext(TableRenderer.java:518) at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer.encodeAll(TableRenderer.java:352) at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:364) at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:782) at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:584) etc... /* -*/ My JAVA class: package data; import java.io.Serializable; import javax.el.ValueExpression; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import javax.faces.context.FacesContext; import org.apache.myfaces.trinidad.component.core.layout.CorePanelPage; import org.apache.myfaces.trinidad.component.core.output.CoreOutputText; import org.apache.myfaces.trinidad.component.core.nav.CoreCommandButton; import org.apache.myfaces.trinidad.component.UIXColumn; import org.apache.myfaces.trinidad.component.UIXTable; /** * * @author gvanbelkom */ @ManagedBean(name = Table) @SessionScoped public class Table implements Serializable { CoreCommandButton button; CoreOutputText output; CorePanelPage panel; UIXColumn column; UIXTable table; /** Creates a new instance of Table */ public Table() { } private void createDynamicObjects() { output = new CoreOutputText(); output.setValueExpression(value, createValueExpression(I am a Trinidad OutputField, String.class)); button = new CoreCommandButton(); button.setValueExpression(I am a Trinidad CommandButton, createValueExpression(test, String.class)); table = new UIXTable(); table.setValueExpression(value, createValueExpression(I am a Trinidad Table, String.class)); panel = new CorePanelPage(); panel.getChildren().add(output); panel.getChildren().add(button); panel.getChildren().add(table); } public CorePanelPage getPanel() { if (panel == null) { createDynamicObjects(); } return panel; } public void setPanel(CorePanelPage panel) { this.panel = panel; } private ValueExpression createValueExpression(String valueExpression, Class? valueType) { FacesContext facesContext = FacesContext.getCurrentInstance(); return facesContext.getApplication().getExpressionFactory().createValueExpression( facesContext.getELContext(), valueExpression, valueType); } } Do you have any sugestion to solve this problem? Thanks in advance, Gijs van Belkom
Re: [TRINIDAD] Header rendering multiple times.
Do you use any JSTL tags? Have you any component binding in the page, especially ones that may live longer than one request? On Tue, Mar 9, 2010 at 7:31 AM, preeti agarwal preetiagarwa...@gmail.com wrote: Description of problem : I have an xhtml page in which I use trininad components (like tablelayout) and also tomahawk components (like form). I have used some usual HTML components along with it. First time the page is rendered correctly. But anysubsequent refresh causes the header to render multiple times. I suspect it might have something to do with state saving. Can anyone help me with this? PS: I originally suspected that it had something to do with mixing of incompatible HTML div and Trinidad components.Changing div to t:div didn't solve the issue.
Re: Is there a way to close the tr:panelPopup component
Have a look at PanelPopup.js There is no great API, but it seems that the TrPanelPopup has a hide method with an event argument that is not used, so it seems to be safe to pass null. Now to get an instance to the popup object, it looks like you need to use TrPanelPopup._VISIBLE_POPUPS with the content ID as the key. It is not pretty, but it should work. File an JIRA to add an API for this. The problem is that you may need to submit a patch yourself, the author of the component has not been active at MyFaces in a very long time. -Andrew On Mon, Mar 8, 2010 at 1:01 AM, Eisenträger, Tobias tobias.eisentrae...@arag.de wrote: Hello, I've been using the tr:panelPopup Component and it worked great so far. Now I got the problem if I click on a tr:commandLink inside the popup, which only performs PPR - the panelPopup stays open, for example after returning from a dialog. Does anyone know the javascript to close the tr:panelPopup component? Toby
Re: Regarding Trinidad 2.0
We are trying to make it backwards compatible. If you can devote some time to running your application on Trinidad 2 and if there are any issues, please let us know. -Andrew On Tue, Feb 23, 2010 at 9:09 PM, venkat.rama...@thomsonreuters.com wrote: Thanks. Currently we use trinidad 1.2. Is trinidad 2 backward portable with 1.2? Can we retain those pages and components as such while developing newer ones with 2.0? Thanks again - Original Message - From: mwessend...@gmail.com mwessend...@gmail.com To: MyFaces Discussion users@myfaces.apache.org Sent: Wed Feb 24 08:56:34 2010 Subject: Re: Regarding Trinidad 2.0 I'd not say production ready, but we use it. currently the ajax jsf2.0 is not in there. (therefore we labeled it as alpha...) On Tue, Feb 23, 2010 at 6:36 PM, venkat.rama...@thomsonreuters.com wrote: Hi Is Trinidad 2 production quality ? Is the alpha release of Trinidad compatible with JSF 2.0 ? Thanks Venkat -Original Message- From: mwessend...@gmail.com [mailto:mwessend...@gmail.com] On Behalf Of Matthias Wessendorf Sent: Tuesday, February 23, 2010 2:55 PM To: MyFaces Discussion Subject: Re: AW: Stuck making JSF 2.0 work with MyFaces use Trinidad2 :-) On Tue, Feb 23, 2010 at 7:25 AM, cristiJ cristi_ju...@yahoo.com wrote: i checked out icefaces and primefaces. I think I'm going to wait untill Tomahawk will be released for JSF 2.0. Apache has done tremendous work so far. I hope you willl have time to upgrade Tomahawk soon Jakob Korherr wrote: Maybe tomahawk is causing the problems, because there is currently no real working branch of tomahawk for JSF 2.0. However there will be one soon. Please remove tomahawk completely from your webapp and try again! Regards, Jakob 2010/2/22 cristiJ cristi_ju...@yahoo.com Hi, yes, I just tried it. For both of theses URLs : http://localhost:8080/app02/faces/index.xhtml http://localhost:8080/app02 the file does not get translated to XHTML, it arrives in the browser with the f and h customs. This happens only when I add MyFaces. I tried adding my self a custom component, defined by this class : import javax.faces.component.FacesComponent; import javax.faces.component.html.HtmlInputText; @FacesComponent(value = HtmlInputFile) public class HtmlInputFile extends HtmlInputText { �...@override public String getRendererType() { return javax.faces.File; } } with this balusc.taglib.xml config file ?xml version=1.0 encoding=UTF-8? facelet-taglib xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd; version=2.0 namespacehttp://balusc.net/jsf/html/namespace tag tag-nameinputFile/tag-name component component-typeHtmlInputFile/component-type /component /tag /facelet-taglib and with the web.xml as such: context-param param-namejavax.faces.FACELETS_LIBRARIES/param-name param-value/WEB-INF/balusc.taglib.xml/param-value /context-param The page is: ?xml version='1.0' encoding='UTF-8' ? !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:h=http://java.sun.com/jsf/html; xmlns:hh=http://balusc.net/jsf/html; body h:form enctype=multipart/form-data id=myForm firstName : h:inputText value=#{user.firstName} /br / lastName : h:inputText value=#{user.lastName} /br / city : h:inputText value=#{user.city} /br / price : h:inputText value=#{user.price} /br / pic : hh:inputFileUpload id=file value=#{user.file}/br / h:commandButton action=#{user.createUser} value=Create user/ /h:form /body /html and the xhtml is translated properly. I can't understand what is the conflict for MyFaces!? Jakob Korherr wrote: Hi, Does your URL in your browser include /faces/index.xhtml? Regards, Jakob 2010/2/22 cristiJ cristi_ju...@yahoo.com Hi, Yes, you understood correctly, neither of h: or f: components are not processed. I have a very simple index.xhtml file : ?xml version='1.0' encoding='UTF-8' ? !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:h=http://java.sun.com/jsf/html; xmlns:t=http://myfaces.apache.org/tomahawk; body h:form enctype=multipart/form-data id=myForm firstName : h:inputText value=#{user.firstName} /br / lastName : h:inputText value=#{user.lastName} /br / city : h:inputText value=#{user.city} /br / price : h:inputText value=#{user.price} /br /
Re: [Trinidad] Skinning corrupts style class name (dot is missing)
Thought so, I would use a different CSS file (you can try @import in you skin if you want it to stay with the skin). In the meantime, maybe file an enhancement to have -icon styles that start with a class selector, ., ignored. On Mon, Feb 22, 2010 at 1:10 AM, Elmar Kretzer e.kret...@symentis.com wrote: I tried with different variations: .ui-icon{ color: red;} .ui--icon{ color: red;} .tr-icon{color: red;} .uiicon{ color: red;} .ui{ color: red;} these classes will result in: ui-icon, ui--icon, tr-icon, .uiicon, .ui{ color: red; } Andrew, it seems like you are right, and the -icon is the reason. I rechecked the skinning doc and found the following lines: http://myfaces.apache.org/trinidad/devguide/skinning.html#Icon_skinning_keys All icon skin keys end with '-icon' or 'Icon:alias'. icons do not get generated to the CSS-2 stylesheet. Instead they get registered with the Skin object and the renderer uses the icon when it is rendering. It will use your skinned icon if you have skinned it. Otherwise, it will use the base skin's icon. Note that CSS-syntax like pseudo-classes (:hover, etc) and descendent selectors and composite class selectors do not work with icon selectors. Sadly, it seems like there is no other option than keeping the stylesheets for jQuery UI in a separate css file. Or is there any other possibility to avoid this handling? Elmar Am 19.02.2010 um 19:02 schrieb Andrew Robinson: I know jQuery uses ui-icon so you don't have a choice in the name, but could you test to see if not using the -icon ending is the reason for the problem? I believe Trinidad skins treat style names ending with icon specially, so that could be the reason. -A On Fri, Feb 19, 2010 at 9:44 AM, Elmar Kretzer e.kret...@symentis.com wrote: Hi all, i just stumbled across some weird issues, while using jQuery UI in Trinidad. I added jQuery UI style classes - but they get corrupted. Could anyone try just to add in skin file: .ui-icon{ display: block; text-indent: -9px; overflow: hidden; background-repeat: no-repeat; } In my Trinidad compiled CSS file, the dot is missing and therefore the rule gets ignored. ui-icon {display:block;text-indent:-9px;overflow:hidden;background-repeat:no-repeat} Thanks in advance for any information! Have a nice weekend Elmar Env: Trinidad 1.2.13 MyFaces 1.2.6 Tomcat 6.018 Java 6 Mac OS
Re: [Trinidad] Skinning corrupts style class name (dot is missing)
I know jQuery uses ui-icon so you don't have a choice in the name, but could you test to see if not using the -icon ending is the reason for the problem? I believe Trinidad skins treat style names ending with icon specially, so that could be the reason. -A On Fri, Feb 19, 2010 at 9:44 AM, Elmar Kretzer e.kret...@symentis.com wrote: Hi all, i just stumbled across some weird issues, while using jQuery UI in Trinidad. I added jQuery UI style classes - but they get corrupted. Could anyone try just to add in skin file: .ui-icon{ display: block; text-indent: -9px; overflow: hidden; background-repeat: no-repeat; } In my Trinidad compiled CSS file, the dot is missing and therefore the rule gets ignored. ui-icon {display:block;text-indent:-9px;overflow:hidden;background-repeat:no-repeat} Thanks in advance for any information! Have a nice weekend Elmar Env: Trinidad 1.2.13 MyFaces 1.2.6 Tomcat 6.018 Java 6 Mac OS
people.apache.org down?
Not getting a response from people.apache.org and it is the server that hosts the server information that I know of. Anyone know what is up with it? It is killing my Trinidad maven build for snapshot checks. -Andrew
Re: [TRINIDAD] Please help with dependent components
What scope is entryBean? If entryBean is requestScope, then entryBean.subProjects will be null on each request and would need to be set before the decoding is done, otherwise the 2nd choice will never decode as it will be disabled. If entryBean is not requestScope than you also have a problem as you cannot use component binding with non-request scoped objects. -Andrew On Sun, Feb 14, 2010 at 8:32 AM, Jean-Noël Colin jn.co...@gmail.com wrote: Hi I need to write a simple page with 2 selectOneChoice components, the second being dependent on the first. This means that the second should be disabled as long as a correct value in the first one has not been selected. Also, the items in the second need to be dynamically loaded depending on the content on the first one. I guess this should be easily feasible in Trinidad, but obviously, I must be missing something because I can't get it to work. it seems that the value of the second component never gets properly populated in the bean entry. Also, strangely, in the 'valuechangelistener', the oldvalue is always null, even when a proper value was correctly selected. Also, is it possible to avoid the presence of a 'empty' selectItem by auto-selecting the first valid entry (how can I do that)? Thanks a lot for your help Jean-Noel Colin tr:selectOneChoice id=project label=project binding=#{entryBean.projectSelector} value=#{entryBean.currentLine.projectId} showRequired=true autoSubmit=true unselectedLabel=Select immediate=true valueChangeListener=#{entryBean.projectChangeListener} f:selectItems value=#{globalData.activeprojects} / /tr:selectOneChoice tr:selectOneChoice id=subproject label=sub-project partialTriggers=project binding=#{entryBean.subProjectSelector} value=#{entryBean.currentLine.subProjectId} showRequired=true unselectedLabel=Select disabled=#{empty entryBean.subProjects} f:selectItems value=#{entryBean.subProjects} / /tr:selectOneChoice
Re: [Trinidad] favicon
tr:document f:facet name=metaContainer tr:outputText escape=false value='lt;link rel=icon type=image/png href=#{facesContext.externalContext.requestContextPath}/images/favicon.png' id=metaLinkText/ /f:facet ... On Mon, Feb 15, 2010 at 9:38 AM, baeschtu baeschtu baesc...@gmail.com wrote: How can I add a link tag to the head area, to display my favicon.ico.. or is there a better way? Thanks
Re: [TRINIDAD] Please help with dependent components
Option 1) Instead of using entryBean.subProjects to check for disabled, why not, since you are already using component binding, just set the component disabled attribute to true or false based on when it changes. Set it to true in the page and then when you set it in the component, it will remember that state and no longer check the EL. Option 2) Store the disable state in the pageFlowScope Option 3) Use a session scoped bean to store the disabled state Option 4 (JSF 2 only)) Store the disabled state in the viewScope Option 5 (3rd party)) Store the value in a conversation scope provided by a 3rd party library On Mon, Feb 15, 2010 at 1:02 PM, Jean-Noël Colin jn.co...@gmail.com wrote: Andrew, entryBean is indeed in request scope. Indeed, entryBean.subProjects is always null, and I suspected this was related to the 'disabled' attribute. Thus my question is: how can I set the proper value before the decoding is done? When should that be performed? Thanks for your help Jean-Noel On 15 Feb 2010, at 19:03, Andrew Robinson wrote: What scope is entryBean? If entryBean is requestScope, then entryBean.subProjects will be null on each request and would need to be set before the decoding is done, otherwise the 2nd choice will never decode as it will be disabled. If entryBean is not requestScope than you also have a problem as you cannot use component binding with non-request scoped objects. -Andrew On Sun, Feb 14, 2010 at 8:32 AM, Jean-Noël Colin jn.co...@gmail.com wrote: Hi I need to write a simple page with 2 selectOneChoice components, the second being dependent on the first. This means that the second should be disabled as long as a correct value in the first one has not been selected. Also, the items in the second need to be dynamically loaded depending on the content on the first one. I guess this should be easily feasible in Trinidad, but obviously, I must be missing something because I can't get it to work. it seems that the value of the second component never gets properly populated in the bean entry. Also, strangely, in the 'valuechangelistener', the oldvalue is always null, even when a proper value was correctly selected. Also, is it possible to avoid the presence of a 'empty' selectItem by auto-selecting the first valid entry (how can I do that)? Thanks a lot for your help Jean-Noel Colin tr:selectOneChoice id=project label=project binding=#{entryBean.projectSelector} value=#{entryBean.currentLine.projectId} showRequired=true autoSubmit=true unselectedLabel=Select immediate=true valueChangeListener=#{entryBean.projectChangeListener} f:selectItems value=#{globalData.activeprojects} / /tr:selectOneChoice tr:selectOneChoice id=subproject label=sub-project partialTriggers=project binding=#{entryBean.subProjectSelector} value=#{entryBean.currentLine.subProjectId} showRequired=true unselectedLabel=Select disabled=#{empty entryBean.subProjects} f:selectItems value=#{entryBean.subProjects} / /tr:selectOneChoice
Re: [Trinidad] Regarding PartialTriggers attribute
You cannot mix strings an EL in partialTriggers, the JSP tag will not allow it (I know, not cool). You have to either use a space-separated string or EL that points to a string array. There are no other options. I would suggest filing a JIRA ticket to fix this and then use an EL function to convert the strings to an array yourself. -Andrew On Fri, Feb 12, 2010 at 6:54 AM, preeti agarwal preetiagarwa...@gmail.com wrote: Hi For our Application we wanted to raise partialTriggers based on three components. Accidentally till now we were using commas to separate them and it worked fine. tr:panelGroupLayout id=panelGroup#{count} partialTriggers=link#{count},h_anchors#{count},expandAll We use : Trinidad 1.2.12 jsf-facelets 1.1.14 JBoss 4.2.1 Now when we tried to run this in other environment (other than JBoss), it gives error saying java.lang.IllegalArgumentException: Cannot convert selectedReaction of type class java.lang.String to class [Ljava.lang.String; When we searched in Trinidad Doc it recommends to use spaces instead of commas. Then we found in http://issues.apache.org/jira/browse/TRINIDAD-1417 that we need to use EL expressions as even spaces don't work. Now some FAQs regarding this: 1) Why commas were working in JBoss environment since it's not supported as per the document? Does any jar allowed it? 2) If it was working in JBoss then why it failed in the new environment? 3) Is there any fix regarding spaces issue? Thanks and Regards, Preeti Agarwal
Re: [Trinidad] forced UTF-8 in PPR responses?
According to the W3C specification, XML http responses should always use UTF-8 encoding (requests too actually) http://www.w3.org/TR/XMLHttpRequest/ Authors are strongly encouraged to encode their resources using UTF-8 http://erik.eae.net/archives/2005/05/27/18.55.22/: UTF-8 is the standard encoding for XML files, so it MSXML probably assumes that all files have that encoding if none is set. http://www.w3.org/TR/2006/WD-XMLHttpRequest-20060405/ responseText of type DOMString If the readyState attribute has a value other than 3 (Receiving) or 4 (Loaded), it must be the empty string. Otherwise, it must be the the body of the data received so far, interpreted using the character encoding specified in the response, or UTF-8 if no character encoding was specified. Invalid bytes must be converted to U+FFFD REPLACEMENT CHARACTER. If the method is POST or PUT, then the data passed to the send() method must be used for the entity body. If data is a string, the data must be encoded as UTF-8 for transmission. If the data is a Document, then the document must be serialised using the encoding given by data.xmlEncoding, if specified, or UTF-8 otherwise [DOM3]. If data is not a Document or a DOMString the host language must use the stringification mechanisms on the argument that was passed. Basically from what I have seen in the google results, UTF-8 is the XML standard and browsers are expecting AJAX to use UTF-8 for both request and responses. It appears that Trinidad is honoring these guidelines by forcing UTF-8 for XML responses (and other responses, like file-download) My question is why you are using windows-1252 encoding? What is the unavoidable reason? -Andrew On Thu, Feb 11, 2010 at 6:07 AM, Cédric Durmont cdurm...@gmail.com wrote: Hi there, I was wondering : what's the reason why XmlHttpServletResponse forces the response to UTF-8, explicitly ignoring the page's encoding ? I had a project in utf-8 that ran just fine (even with all accents and fancy stuff we have here in France), but I have to switch it to windows-1252 for some unavoidable reason. Everything has been converted to windows-1252, including the filter I use to force encoding in http requests. The only non-working things are PPR calls. I tracked modifications of http Response objects down to XmlHttpServletResponse : .. _contentType = text/xml;charset=utf-8; .. So, did I miss something, or PPR actually only works for iso8859-1 / utf-8 apps ? Regards, Cedric Durmont
Re: How to stop Validation error being displayed 2 times for a tr:inputText in a tr:panelLabelAndMessage
Set simple=true on the input text
Re: [Trinidad] new skin and new demo
Any hope on hosting the demo's at Apache? On Wed, Feb 3, 2010 at 10:26 AM, Gerhard Petracek gerhard.petra...@gmail.com wrote: imo it's just an issue with the server... i'll forward the issue. regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2010/2/3 Matthias Wessendorf mat...@apache.org :-) Shane, is the performance only for the show-case bad ? Or for the real sample as well ? (it is online too) new: http://example.irian.at/trinidad-components-showcase/ old: http://example.irian.at/trinidad-demo/ actually = both are hanging now for me :-) .-Matthias On Wed, Feb 3, 2010 at 6:18 PM, Shane Petroff sh...@mayet.ca wrote: Matthias Wessendorf wrote: cool, thanks! Definitely not cool... The performance at the irian site is terrible (it sucks at the best of times, but today it is atrocious). It makes both Trinidad and Irian look bad. If I didn't already know that Trinidad performance was fine, I'd be left with the impression that it was an unusable POS. Shane -M On Wed, Feb 3, 2010 at 8:23 AM, Bart Kummel bkum...@gmail.com wrote: Hi all, I just posted a short article about the new Cassablanca skin for Trinidad at my blog: http://www.bartkummel.net/journal/2010/2/2/new-skin-for-trinidad.html. Best regards, Bart Kummel On Sat, Jan 30, 2010 at 12:19, Matthias Wessendorf mat...@apache.orgwrote: Hello, as FYI, the new skin (cassablanca) has been committed to trunk (1.2.14-SNAPSHOT). There will be a release for that in a few weeks. Thanks to our friends from Irian.at, for already hosting the new beautiful demo: http://example.irian.at/trinidad-components-showcase/ Check it out! Special thanks for the code-donation goes to Catalin and team from CodeBeat: http://www.codebeat.ro Enjoy the new skin, guys! -Matthias -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Shane -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: [TRINIDAD] Alternative for tr:selectOneChoice
tr:selectOneRadio and optionally put it in a popup? -Andrew On Thu, Nov 26, 2009 at 12:09 AM, Carsten Pieper carsten.pie...@continentale.de wrote: Hi there, as our applications still have to be compatible to IE6 we're quite unhappy with the tr:selectOneChoice as is makes use of the HTML select component which is a pain in IE6 (IE6 being the culprit, not the select, of course; e.g. the good old z-index bug...). So, here's my question: Does anyone know of an alternative to the tr:selectOneChoice that doesn't make use of the HTML select and that can easily be plugged into an existing Trinidad based application? Thanks, Carsten -- View this message in context: http://old.nabble.com/-TRINIDAD--Alternative-for-tr%3AselectOneChoice-tp26525141p26525141.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Html Tags Vs Tomahawk Tags
There is not much benefit to using components other than the rendered attribute. If you aren't changing that, I would just use HTML. There may be times that components are useful, like when the JSF response writer is special-handling the written content for example, but that is not too often. So you have to weigh the ease of using HTML in-line with a smaller component tree, or having JSF components that render using the response writer methods. BTW, I strongly recommend facelets over JSP if you are using in-line HTML -Andrew On Tue, Nov 3, 2009 at 12:38 PM, Vinaya Tirikkovalluru vinaya.tirikkovall...@converge.com wrote: Hi, Would there be any difference/advantage in using Html tags Vs Tomahawk Tags where ever possible? For Example: I can use Table instead of t:panelGrid in many cases. Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Re: How can we use both Trinidad Tobago JSF libraries together in a same project?
I believe they are fundamentally incompatible. Tobago uses render kits to do a lot of built in page templates, and Trinidad has its own render kit and has its own AJAX support that is not compatible with other AJAX JSF solutions. I think you would end up with page layout problems and AJAX problems in addition to trying to figure out how to use two render kits in the same view. On Mon, Oct 19, 2009 at 2:32 AM, Stojan Peshov goodusern...@gmail.com wrote: Is it possible to combine them using facelets? I haven't work with tobago for almost a year, but I've read that there are some advances in facelets development. Regards, / * Stojan Pesov * works @ Genrep ltd. * cell: 389 75 397172 */ 2009/10/19 Rafa Pérez raja...@gmail.com AFAIK, it is not possible to use Trinidad and Tobago together. On Mon, Oct 19, 2009 at 9:53 AM, Papia papia.dasti...@yahoo.com wrote: Hi All, We are using JSF Trinidad library in our project. And we have a certain requirement for which I wanted to use few features of Tobago library in the same project. I am able to run both Trinidad Tobago components separately but when trying to use them both in the same project I am facing problem; as they use different view handlers and render kits; so in the faces-config.xml and web.xml had to use one of them. Can anybody help in this regard? to get me a solution like common view handler/render kit; through which both Trinidad Tobago can be used together within the same project/config files.. Thanks in Advance, Papia -- View this message in context: http://www.nabble.com/How-can-we-use-both-Trinidad---Tobago-JSF-libraries-together-in-a-same-project--tp25954459p25954459.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] another tr:selectOneChoice + autoSubmit + PPR type question
Maybe it is due to a submitted value being set? Try wrapping the selectOneChoice boxes in a tr:subform and see if that makes a difference On Fri, Oct 9, 2009 at 9:25 AM, japher jap...@hotmail.com wrote: Hi, I have two selectOneChoice components, and I want to have the second one invisible until the user selects a value from the first. My code looks like: tr:panelGroupLayout id=pgl2 partialTriggers=socPipeline tr:panelFormLayout id=pfl1 tr:selectOneChoice id=socPipeline value=#{bindings.PipelineCode.inputValue} label=#{bindings.PipelineCode.label} autoSubmit=true f:selectItems value=#{bindings.PipelineCode.items} id=si1/ /tr:selectOneChoice tr:selectOneChoice id=socStatus value=#{bindings.StatusCode.inputValue} label=#{bindings.StatusCode.label} rendered=#{bindings.PipelineCode.inputValue != null} partialTriggers=socPipeline f:selectItems value=#{bindings.StatusCode.items} id=si2/ /tr:selectOneChoice /tr:panelFormLayout /tr:panelGroupLayout I know that you can't ordinarily use PPR along with the rendered attribute, which is why I have added the panelGroupLayout which also has a partial trigger set. For some reason, although the auto submit occurs, the value of #{bindings.PipelineCode.inputValue} never changes. It remains blank even when I select a value in the first select box, and so the second select box is never rendered. Does anyone know why the value is not being persisted into the model? -- View this message in context: http://www.nabble.com/-Trinidad--another-tr%3AselectOneChoice-%2B-autoSubmit-%2B-PPR-type-question-tp25822917p25822917.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: accesskey with jsf
Trinidad button has an accessKey attribute: http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_commandButton.html -Andrew On Fri, Sep 4, 2009 at 6:18 AM, scientiatech...@scientiaindia.com wrote: hi All, I am new to JSF . I want to use accesskey attribute with commandButton .For example if one form has a Login button ,and i set accesskey for this button as L . So i have to display the Login as an underscore for the letter L.Is there any way to do this ? please answer. thanks regards Ajil -- View this message in context: http://www.nabble.com/accesskey-with-jsf-tp25293359p25293359.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] How to use an iterator, selectOneChoice and partialTriggers?
If you give partial triggers an EL expression it must evaluate to type String[]. The value change listener is fired for the current iteration, so if you click item 3, the event will be broadcast for the selectOneChoice inside the index 2 of tr:iterator. To move the iterator to a new index you need to save the current row index, set the new index, evaluate code and then set it back. An iterator stamps out one component and a component only has 1 ID, so you cannot put EL in the ID like you did below. I would advise using f:attribute/ if you need to store the ID on the component, but just give the choice a static ID. The resulting IDs on the client will be like i1:0:soc1, i1:1:soc1, etc if your iterator had ID i1 and your selectOneChoice had ID soc1. So the :#: in between represents the stamp index. -Andrew On Fri, Sep 4, 2009 at 7:32 AM, Roeder, Andreasandreas.roe...@firstdata.de wrote: I'm trying to create generic selectOneChoice elements. When the first selectOneChoice value changes it should update the next one in the list and so on. I tried to do that via the id, partialTriggers and a ValueChangeListener: tr:iterator value=#{genericFormBean.formDesc.fieldList} var=field tr:selectOneChoice id=#{field.id} partialTriggers=#{field.partialTriggers} valueChangeListener=#{genericFormBean.valueChange} value=#{genericFormBean.formDesc.modelMap[field.id]} f:selectItems value=#{genericFormBean.selectItemMap[field.itemList]} / /tr:selectOneChoice tr:iterator But I cannot set the id of the selectOneChoice element. When I try to get the other selectOneChoice elements in the valueChangeListener I just see one element in the iterator.childs() collection. Why is that? I also tried to use a custom renderer to set the id, but as soon I change the id of one selectOneChoice element all other elements are getting the same id. It's pretty confusing to me. Is there another way to do that? Best Regards, Andreas
Re: Using Trinidad document tag and navigation stopped working.
Any javascript errors? It also may be that you do not have a root component in your template, but instead have raw HTML. Try wrapping the body of the template with a component. -Andrew On Thu, Aug 13, 2009 at 7:29 AM, Shaun Campbellcampbell.sh...@gmail.com wrote: I've just converted my template to use the tr:document tag (to get the progress indicator to work) instead of the method generated by the netbeans facelets archetype and now my navigation has stopped working. I don't think any changes have been made to my faces-config.xml and the individual pages fire up manually. My template is now: tr:document xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; xmlns:c=http://java.sun.com/jstl/core; f:facet name=metaContainer !-- meta http-equiv=Content-Type content=text/html; charset=UTF-8 / -- link href=./css/default.css rel=stylesheet type=text/css / link href=./css/cssLayout.css rel=stylesheet type=text/css / script type=text/javascript src=./scripts/common.js/script titleMyFactoryManager/title /f:facet div class=container div id=top class=top ui:insert name=toph:graphicImage id=logo url=/images/logo.jpg //ui:insert /div div div id=left ui:insert name=left h:form h:panelGrid columns=1 h:commandLink action=nav_home h:outputText value=Home / /h:commandLink h:commandLink action=nav_jobs h:outputText value=Jobs / /h:commandLink h:commandLink action=nav_operators h:outputText value=Operators / /h:commandLink h:commandLink action=nav_workcentres h:outputText value=Work Centres / /h:commandLink /h:panelGrid /h:form /ui:insert /div div id=content class=left_content ui:insert name=contentContent/ui:insert /div /div /div /tr:document I know there's a combination of h:tags in there but I'm not sure what could be wrong. I've actually just put a mixture of h:commandLink and tr:commandLink on the content of a page and still nothing happens. I'm not getting any errors reported to the browser or at the console. Any ideas? Shaun
Re: Using Trinidad document tag and navigation stopped working.
tr:document xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; xmlns:c=http://java.sun.com/jstl/core; ... div class=container !-- Root of document is static text, change this to a component -- -Andrew On Thu, Aug 13, 2009 at 11:05 AM, Shaun Campbellcampbell.sh...@gmail.com wrote: PS I see I'm using commandLink and actions linking to my faces-config.xml. In the JSF Goodies it seems to include a series of plain html link tags. Could this now be the cause of the problems? 2009/8/13 Shaun Campbell campbell.sh...@gmail.com No errors that I can see. Just no response. Not sure what you mean by a root component in the template. I have the tr:document now. The format of the template is similar to JSF Goodies example. The only difference is that the navigation on JSF Goodies is in its own div, whereas mine is in a form within an insert. I'm not that familiar with this way of doing it at the moment so not if this is the problem. Thanks Shaun 2009/8/13 Andrew Robinson andrew.rw.robin...@gmail.com Any javascript errors? It also may be that you do not have a root component in your template, but instead have raw HTML. Try wrapping the body of the template with a component. -Andrew On Thu, Aug 13, 2009 at 7:29 AM, Shaun Campbellcampbell.sh...@gmail.com wrote: I've just converted my template to use the tr:document tag (to get the progress indicator to work) instead of the method generated by the netbeans facelets archetype and now my navigation has stopped working. I don't think any changes have been made to my faces-config.xml and the individual pages fire up manually. My template is now: tr:document xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html; xmlns:f=http://java.sun.com/jsf/core; xmlns:tr=http://myfaces.apache.org/trinidad; xmlns:c=http://java.sun.com/jstl/core; f:facet name=metaContainer !-- meta http-equiv=Content-Type content=text/html; charset=UTF-8 / -- link href=./css/default.css rel=stylesheet type=text/css / link href=./css/cssLayout.css rel=stylesheet type=text/css / script type=text/javascript src=./scripts/common.js/script titleMyFactoryManager/title /f:facet div class=container div id=top class=top ui:insert name=toph:graphicImage id=logo url=/images/logo.jpg //ui:insert /div div div id=left ui:insert name=left h:form h:panelGrid columns=1 h:commandLink action=nav_home h:outputText value=Home / /h:commandLink h:commandLink action=nav_jobs h:outputText value=Jobs / /h:commandLink h:commandLink action=nav_operators h:outputText value=Operators / /h:commandLink h:commandLink action=nav_workcentres h:outputText value=Work Centres / /h:commandLink /h:panelGrid /h:form /ui:insert /div div id=content class=left_content ui:insert name=contentContent/ui:insert /div /div /div /tr:document I know there's a combination of h:tags in there but I'm not sure what could be wrong. I've actually just put a mixture of h:commandLink and tr:commandLink on the content of a page and still nothing happens. I'm not getting any errors reported to the browser or at the console. Any ideas? Shaun
Re: Performance issues with JSF
Another thing to check is the time between the DOMContentLoaded event and the page OnLoad event. The former occurs when the page DOM structure has been loaded by the browser, but no external entities has been loaded, and the second after the resources have been loaded and any JavaScript has been executed. You can use Firebug on Firefox or Safari 4 to view the network load and how long each took to load. Firebug will show you all the response headers sent and received so that you can see which ones had the If-Modified-Since header sent by the browser and which ones received back a content not modified (304 code) to let you know that the CSS, JS or image file was successfully cached. With the cook menu, there could be a large delay in JavaScript especially on older browsers or IE if that code does too much JavaScript initialization. You can try to set the rendered flag to false on certain components with JavaScript to also try to discover the large parts of delay. Another common JSF usage problem is to tie EL expressions to code that does slow work. For example, tying the value attribute on a table component to a getter that performs a database query. JSF re-evaluates EL expressions quite often on components. A good strategy is to load all the resources for a page at the start of the request (you can use a PhaseListener attached to the UIViewRoot to do this cleanly) to ensure that when the EL is invoked, it is a simple return of a loaded value. Hope that helps, Andrew On Fri, Jul 17, 2009 at 4:05 AM, Madhav Bhargavamadhav_bharg...@infosys.com wrote: Shashi wrote: Hi All - We have built a J2EE application with JSF (MyFaces, Ajax4JSF) ,Spring and IBatis. What we find is, each of the screen takes lot of time to load. We find no performance issue with Spring or Ibatis (after verifying via JProfiler). Jprofiler shows the JVM memory is occupied b JSF objects. I found that the screen loading is taking time for two reasons. 1.The JSF screens (which has cook menu) take time to load. 2.The overall screen painting in the browser takes time to load. Our JSF screens are not too complicated and even the simplest screen takes time to load. Note that each of the screens always loads JSCookMenu. We visited apache site for tuning JSF. As per their suggestion we did the following 1. We set the State saving mechanism as server side. 2. Serialization of session objects was set to false. 3. Compression of objects was set to false. 4. Streaming Add Resource and t:documentHead were added. But none of these improved the performance. The overall screen takes time and I'm wondering if we should do effective caching of images,CSS and js files. I visited plenty of websites and tried to move all these client specific files under the head tag, loaded the images via CSS but nothing helps. We have high capacity machines and I dont think desktop config is playing a role. We thought the problem could be bcos of network traffic or slow performance of underlying platform websphere server. We checked other application running in the same envrironment and they are extremely fast. The only difference b/n our application and the other is JSF. I'm short of solutions. Any valuable input will be greatly appreciated. You might want to check on the following: 1. Utilize HttpAnalyzer or any other similar tool to check what is the response received for every action. Since you have used Ajax in your page you need to check the response that you are getting back on each ajax call and whether it is only what should be returned. 2. There are some optimizations that are listed on Ajax4Jsf site which in past has proven to be the guilty party for performance related issues. 3. Check what is the size of the response. If the page is too large then you can consider introducing a gzipfilter to compress the response and thereby reducing the network bandwidth usage. 4. Check if objects are not getting released. Some of the Ajax4Jsf components like a4j:keepAlive keep the objects in memory for longer period than expected. 5. Also checked if there are too many session scoped beans and thereby slowly adding to memory usage and eventually affecting everything. 6. There are other parameters in myfaces configuration like number of views in session. Try changing that as well. 7. Check if the page is not heavy with different types of content (images, audio/video etc..). Go for incremental loading. Thanks, Madhav
Re: RCF, what's the current status?
I can't speak to the status, but I'd love to hear any feedback. What pretty-ness is RCF lacking? On Thu, Jun 25, 2009 at 8:15 PM, Bertrand, Shawn Rshawn.bertr...@tycoelectronics.com wrote: Ugh. There were (rather, hopefully are) some bright people on this project, and I sincerely hope to see it hit open source eventually. It sure is a great framework - just lacking some pretty-ness, in my opinion. All the best, Shawn Bertrand, Principal Software Developer HARRIS CORPORATION | RF Communications Division assuredcommunications™ From: Kito Mann [mailto:kito.m...@virtua.com] Sent: Thursday, June 25, 2009 1:52 PM To: MyFaces Discussion Subject: Re: RCF, what's the current status? Hello Glauco, My understanding is that it has stalled indefinitely... --- Kito D. Mann -- Author, JavaServer Faces in Action http://twitter.com/kito99 http://twitter.com/jsfcentral http://www.virtua.com - JSF/Java EE consulting, training, and mentoring http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info +1 203-404-4848 x3 On Thu, Jun 25, 2009 at 6:59 AM, Glauco P. Gomes glaucopgo...@yahoo.com.br wrote: Anyone? Glauco P. Gomes escreveu: What's the status of the incubation of RCF? The last update in the incubation page was in 2007, anyone has any news about the donation? Glauco P. Gomes
Re: [Trinidad] Generating duplicate icon elements?
tr:inputText generates a label. Set simple=true to stop it from doing so. -Andrew On Tue, Jun 23, 2009 at 6:48 AM, Bram Van Dambram.van...@cronos.be wrote: Howdy, The following code seems to generate duplicate elements. Is this a bug, or am I missing something? tr:outputLabel value=val for=anInput/ tr:inputText id=anInput value=#{blub}/ results in span id=anInput::icon style=display:none; being generated twice. Once inside another span along with the label, and once more inside a table along with the input field. Any takers? Ta, - Bram
Re: [trinidad] does not support browser back button
Backing beans are separate from pages, so clicking a back button does not change the backing beans, it is up to the application developer to manage the backing beans. So in your example, it is typical to have 2 beans, one being the table backing and one being the current row. Then when an edit link is clicked, the current row bean stores the current one. Clicking back then gets you to the table again, and clicking the edit link resets the current row bean's value again. Something like this: tr:table value=#{items} var=i tr:column tr:commandLink text=Edit action=editItem f:setPropertyActionListener value=#{i} target=#{editBean.item} / /tr:commandLink /tr:column /tr:table public class ItemsBean { private ListItem items; public ListItem getItems() { return items; } } public class ItemBean { private Item item; public void setItem(Item item) { this.item = item; } public Item getItem() { return item; } } Then you can either store these beans in session scope, conversation scope (with 3rd party support) or request scope and pass an ID or serialize the item data between requests to an input hidden (with t:saveState for example). I have had no problems with the back button in Trinidad when I have developed with it in the past, so there should be no issues with it unless you are using the application view cache, which I strongly recommend against using. -Andrew On Sat, Jun 20, 2009 at 8:29 PM, Davejavao...@yahoo.com wrote: When we use jsf ri and tomahawk, our jsf app works well for browser back button. But after we use Trinidad, browser back button does not work. Consider the following senario: 1. show a table of employees (backing bean data is a list of employees) 2. click an employee A and show the employee,(backing bean data is now changed to the employee) 3. click browser back button 4. click an employee B. Employee B will not be shown because the backing data has been changed to employee A in stop 2. I looked the generated HTML viewState values in the steps above. They are the same. That means that only the same view(stored view tree in server side) is used. For jsf/tomahawk, I believe different view trees are used for the senario above and thus back button works. Is there a config parameter for trinidad to support back button? Back button is often used by users, it is nice if we can do that with Trinidad. Thanks, Dave
Re: trinidad: how to disable skinning
Without that line, IE would go into quirks mode (ie6 bad rendering engine basically). Trinidad does not support quirks mode in its components. On Wed, Jun 17, 2009 at 11:56 PM, Davejavao...@yahoo.com wrote: Hi Andrew Thanks for help. The problem is caused by the following line: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; When we use JSF ri and tomahawk, the response HTML does not have the code above. If the !DOCTYPE ... is removed from html, the following style will work as expected. .displayBlock { display:inline; } Is there a way to tell Trinidad not to generate the !DOCTYPE ...? Thanks, Dave --- On Sun, 6/14/09, Andrew Robinson andrew.rw.robin...@gmail.com wrote: From: Andrew Robinson andrew.rw.robin...@gmail.com Subject: Re: trinidad: how to disable skinning To: MyFaces Discussion users@myfaces.apache.org Date: Sunday, June 14, 2009, 7:23 PM After or before doesn't matter for CSS, just weights. You can just increase your selectivity. Possible examples: div.displayBlock { display: inline; } body .displayBlock { display: inline; } Trinidad doesn't affect your CSS loading at all, it just has some styles it ships. You can use the firebug extension to see which styles are getting applied and which are getting overridden. Turn off Trinidad CSS content compression to get human-readable style classes so you can see which Trinidad selectors may be getting higher priority than yours. -Andrew On Thu, Jun 11, 2009 at 8:21 PM, Davejavao...@yahoo.com wrote: Our project is starting to use trinidad, but stylesheets(css) do not work any more. For example, t:div styleClass=displayBlock /t:div .displayBlock { display:inline; } The style above is not working. From browser html source, our style is put after trinidad skining css file. Is there is a way to disable trinidad skinning? Thanks for help. Dave
Re: trinidad ppr issue: ajax submit does not work in partially refreshed region
t:div is a tomahawk component, not a Trinidad component. Try using a Trinidad as only those are supported for PPR. If that works, then we can see if we can get the t:div working. To get a DIV to render you can use this: tr:panelGroupLayout layout=vertical ... content ... /tr:panelGroupLayout Each child component will get its own DIV, if you don't want that, you can group it: tr:panelGroupLayout layout=vertical tr:group ... content ... /tr:group /tr:panelGroupLayout On Thu, Jun 11, 2009 at 8:12 PM, Davejavao...@yahoo.com wrote: The code is called during Invoke Application phase. The targets are region1. If the region1 is refreshed by non-ajax call, then subsequence ppr calls inside region1 will work. If the region1 is refresh by a ppr call, then subsequence ppr calls inside region1 will not work. I am wondering if the region1 is refershed by ppr call, some resources might be missing. For ppr calls, will resources such as javascript/css(normally in head) will be retrieved successfully from server? Thanks, Dave tr:document ... t:div id=region1 /t:div t:div id=region2 /t:div /tr:document --- On Thu, 6/11/09, Andrew Robinson andrew.rw.robin...@gmail.com wrote: From: Andrew Robinson andrew.rw.robin...@gmail.com Subject: Re: trinidad ppr issue: ajax submit does not work in partially refreshed region To: MyFaces Discussion users@myfaces.apache.org Date: Thursday, June 11, 2009, 1:50 PM What are targets, and when is this code called? Are you ensuring that the targets are added while their client ID's are correct (stamping can change them for example) and before any of these components are rendered? -Andrew On Wed, Jun 10, 2009 at 7:32 PM, Davejavao...@yahoo.com wrote: partialTargets are added programmatically for ppr: RequestContext rc = RequestContext.getCurrentInstance(); UIViewRoot root = FacesContext.getCurrentInstance().getViewRoot(); rc.addPartialTargets(root, targets); In our case, no page navigation. the same page is used for ajax call. I am trying to figure out how the initial ppr affects the subsequent ppr calls. Thanks for further help. Dave --- On Wed, 6/10/09, Andrew Robinson andrew.rw.robin...@gmail.com wrote: From: Andrew Robinson andrew.rw.robin...@gmail.com Subject: Re: trinidad ppr issue: ajax submit does not work in partially refreshed region To: MyFaces Discussion users@myfaces.apache.org Date: Wednesday, June 10, 2009, 11:34 AM Where are your partial triggers? If no components trigger off of the command link, then nothing will be updated on the client. Also, with action and not actionListener make sure you never match a navigation rule. Navigation will invalidate the PPR. -Andrew On Wed, Jun 10, 2009 at 10:21 AM, Davejavao...@yahoo.com wrote: t:div id=region1 tr:commandLink text=updateRegion2 action=#{bean.updateRegion2} partialSubmit=true ... / /t:div t:div id=region2 /t:div After clicking the updateRegion2 commandLink using ajax submit, the region2 content is refreshed successfully. But the tr:commandLink partialSubmit=true ... ajax submit in refreshed region2 content did not work. When clicking the commandLink, nothing happened. It seems that ajax request was not sent to server. If I changed the the updateRegion2 commandLink as normal submit(not ajax), the tr:commandLink partialSubmit=true ... ajax submit in refreshed region2 content worked. I cound not figure out what is the cause. Thanks for any ideas and help. Dave
Re: trinidad: how to disable skinning
After or before doesn't matter for CSS, just weights. You can just increase your selectivity. Possible examples: div.displayBlock { display: inline; } body .displayBlock { display: inline; } Trinidad doesn't affect your CSS loading at all, it just has some styles it ships. You can use the firebug extension to see which styles are getting applied and which are getting overridden. Turn off Trinidad CSS content compression to get human-readable style classes so you can see which Trinidad selectors may be getting higher priority than yours. -Andrew On Thu, Jun 11, 2009 at 8:21 PM, Davejavao...@yahoo.com wrote: Our project is starting to use trinidad, but stylesheets(css) do not work any more. For example, t:div styleClass=displayBlock /t:div .displayBlock { display:inline; } The style above is not working. From browser html source, our style is put after trinidad skining css file. Is there is a way to disable trinidad skinning? Thanks for help. Dave
Re: trinidad ppr, fresh page head possbile?
The DOM has to have an ID to be PPR'd, I don't think that an ID is usually used for the HEAD element. You can just programmatically create and add the SCRIPT or LINK tags to the head if you want. Even though non-kosher you can put SCRIPT tags anywhere in the page, all browsers support it, only safari prints a warning to the console I believe, but still works. On Sun, Jun 14, 2009 at 10:28 AM, Davejavao...@yahoo.com wrote: Hello, it is possible to let html head be a ppr partialTrigger target? for example, to show a google map in ppr call, we need to include gmap js library in html head? some cases we need include a css stylesheet reference in html head for a ppr call. Thanks, Dave
Re: trinidad ppr issue: ajax submit does not work in partially refreshed region
What are targets, and when is this code called? Are you ensuring that the targets are added while their client ID's are correct (stamping can change them for example) and before any of these components are rendered? -Andrew On Wed, Jun 10, 2009 at 7:32 PM, Davejavao...@yahoo.com wrote: partialTargets are added programmatically for ppr: RequestContext rc = RequestContext.getCurrentInstance(); UIViewRoot root = FacesContext.getCurrentInstance().getViewRoot(); rc.addPartialTargets(root, targets); In our case, no page navigation. the same page is used for ajax call. I am trying to figure out how the initial ppr affects the subsequent ppr calls. Thanks for further help. Dave --- On Wed, 6/10/09, Andrew Robinson andrew.rw.robin...@gmail.com wrote: From: Andrew Robinson andrew.rw.robin...@gmail.com Subject: Re: trinidad ppr issue: ajax submit does not work in partially refreshed region To: MyFaces Discussion users@myfaces.apache.org Date: Wednesday, June 10, 2009, 11:34 AM Where are your partial triggers? If no components trigger off of the command link, then nothing will be updated on the client. Also, with action and not actionListener make sure you never match a navigation rule. Navigation will invalidate the PPR. -Andrew On Wed, Jun 10, 2009 at 10:21 AM, Davejavao...@yahoo.com wrote: t:div id=region1 tr:commandLink text=updateRegion2 action=#{bean.updateRegion2} partialSubmit=true ... / /t:div t:div id=region2 /t:div After clicking the updateRegion2 commandLink using ajax submit, the region2 content is refreshed successfully. But the tr:commandLink partialSubmit=true ... ajax submit in refreshed region2 content did not work. When clicking the commandLink, nothing happened. It seems that ajax request was not sent to server. If I changed the the updateRegion2 commandLink as normal submit(not ajax), the tr:commandLink partialSubmit=true ... ajax submit in refreshed region2 content worked. I cound not figure out what is the cause. Thanks for any ideas and help. Dave
Re: trinidad ppr issue: ajax submit does not work in partially refreshed region
Where are your partial triggers? If no components trigger off of the command link, then nothing will be updated on the client. Also, with action and not actionListener make sure you never match a navigation rule. Navigation will invalidate the PPR. -Andrew On Wed, Jun 10, 2009 at 10:21 AM, Davejavao...@yahoo.com wrote: t:div id=region1 tr:commandLink text=updateRegion2 action=#{bean.updateRegion2} partialSubmit=true ... / /t:div t:div id=region2 /t:div After clicking the updateRegion2 commandLink using ajax submit, the region2 content is refreshed successfully. But the tr:commandLink partialSubmit=true ... ajax submit in refreshed region2 content did not work. When clicking the commandLink, nothing happened. It seems that ajax request was not sent to server. If I changed the the updateRegion2 commandLink as normal submit(not ajax), the tr:commandLink partialSubmit=true ... ajax submit in refreshed region2 content worked. I cound not figure out what is the cause. Thanks for any ideas and help. Dave
Re: Trinidad vs Tobago
Yes I agree with you. The architecture needs more documentation, especially there are some really important API classes that have no JavaDoc at all. As for the maven-faces-plugin, I really dislike it. It does a nice job, but it is really hard to work with and modify (speaking from experience). There has been some discussion to move Trinidad to the new annotation builder plug-in, but I personally don't know the status of that and the opinion of the Trinidad contributors of changing the process. Yeah, writing that WIKI gave me typer's cramp, it was the last straw that pushed me to switch from QWERTY to the Dvorak keyboard layout, so I agree that it should be more simple. FYI, I think that there are maven archetypes out there that make it easier, but I am not 100% certain there is an appropriate one. As for more components, it is hard to write something that has no ideas. No one has put any effort into suggesting, working on or submitting new components to the Trinidad sandbox. So basically, if there is no demand for specific components, why spend your own personal time writing them and trying to guess what people want? Skinning is a lot of work and I started one skin, but I lost my motivation, but I think there is some that are working on one (search the dev@ archives). One problem I find with working with Trinidad is still supporting IE6 which makes life extremely miserable. The JS layer needs some major refactoring (like no global functions and using a trinidad namespace for all JS code for example) as well that makes any JS involved component be more work than it should be. Oracle still puts a lot of effort in Trinidad support and it still uses Trinidad as a base for the rich client framework (if you want to see the public demo, you can surf here: http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx) so that is the primary reason that Trinidad's core framework is constantly worked on, but since Oracle has their own renderers for these components, there isn't the same focus on the Trinidad renderers as there is on the framework. Like all open source projects, there has to be a good user and contributor community for it to truly prosper. Should people work on new sandbox components and volunteer and start submitting patches for the skin framework, progress would be seen. As for how to contribute, it is as simple as creating JIRA tickets at http://issues.apache.org and submitting patches. If a patch seems to be growing old, then it is typical to ping the users@ or dev@ mailing list requesting someone to look into it. It helps if there is adequate comments. For any API changes, it is always best to discuss the change on the dev@ mailing list. Before I became a committer I just helped out on the mailing lists and submitted patches, it really is not too difficult to get involved if the desire is there. -Andrew On Fri, Jun 5, 2009 at 7:25 AM, Luka Surijaluka.sur...@iytim.hr wrote: Andrew, it's always the same reason. Trinidad is too complicated do extend without strong knowledge: 1. in it's architecture isn't well documented 2. in maven-faces-plugin I'm familiar with your wiki page ( http://wiki.apache.org/myfaces/Facelets_and_JSF_1.1_maven-faces-plugin_Getting_started ) but, as you can see it takes too much effort to make a simple hello world component and I think this is a main reason why there is almost no new components in last 2 years. I'm using trinidad since m1-incubating version and I'm tracking all the changes. In my opinion trinidad is potentialy the best jsf framework currently available, but it lacks some features to make it the best: 1. More components 2. easier component development 3. new AJAX under-layer to track component changes (to allow push technology one day). See ICEFaces as a example how to make a framework so popular with this technology. But in the background it lacks so many thing and nobody cares. I've tried ICEFaces, and for hello world application is ok, but for anything more complex, trinidad is 100x better and more developer friendly + has better browser compatibility. 4. wow skin to make him more attractive. I'm sure that many trinidad users (developers) are willing to contribute to the community starting from my self if they knew how to do it in some easier way. Best regards, Luka Surija +385 1 61 99 140 +385 98 434 061 l...@iytim.hr I.Y. tim d.o.o. Vrbik 3, HR-1 Zagreb www.iytim.hr i...@iytim.hr Andrew Robinson wrote: I would not jump to just saying that's totally wrong ... when there is truth to the observation. I cannot speak for Tobago, but there are areas of Trinidad that have not significantly changed in years. This may give the impression that there is not much ongoing development. What you find with Trinidad is that the server side framework is very well supported, as well as the components classes, but the Renderers, skins and JavaScript of Trinidad are very much neglected
Re: Trinidad vs Tobago
I would not jump to just saying that's totally wrong ... when there is truth to the observation. I cannot speak for Tobago, but there are areas of Trinidad that have not significantly changed in years. This may give the impression that there is not much ongoing development. What you find with Trinidad is that the server side framework is very well supported, as well as the components classes, but the Renderers, skins and JavaScript of Trinidad are very much neglected. This is probably a result of many that extend Trinidad but do not necessarily contribute those extensions back. There is a Trinidad Sandbox, but unlike Tomahawk, there is no activity in it for the most part. I am not sure why this is and what we can do to motivate our users to provide new components and enhancements to existing components. So as a result, you will probably find that Trinidad is very solid, the server side keeps up to date with other libraries and with some new JSF technologies and there is a great community of support at the framework level. Just what is lacking is active support of the component offerings and the look and feel of Trinidad. As Apache relies on its users quite a bit, new patches, and new components are welcome, especially for the sandbox as it is a great testing ground for new ideas without having to perform all the architectural discussions up front. Then components can be brought into the core as they gain popularity and their architecture can be standardized if not already. -Andrew On Thu, Jun 4, 2009 at 9:00 AM, Matthias Wessendorf mat...@apache.org wrote: On Thu, Jun 4, 2009 at 2:21 AM, Christian Groove groo...@groovesytems.de wrote: Salut Hi All, We are developing a web application with myfaces. That's fine, JSF is the cool think. I worked with Tobago, that comes with a great layout manager and some cool widgets. It is not my intention to overwhelm that nice project but it seems to be dead. The development that's totally wrong ... of new widgets seems not to proceed so you may better look to other Taglibs like Richfaces, Icefaces. Groovy This application needs proper navigation and UI .I have observed Trinidad has good navigation practices and other utilities.Tobago has some good layouts but not good navigation practices.both these technologies have featurs like PPR. could some one plaese advice us which is the better technology and the distinct features of these technologies. Thanks, Srikanth -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: partial Trigger - ui:include
It will work, just remember that the include will still be processed, just none of its components will be rendered. On Thu, May 14, 2009 at 8:41 AM, Shankar K shanka...@gmail.com wrote: Hi, I'm trying to include a page(/pages/xyz.xhtml) in a partialSubmit of a commandLink. Will ui:include work this way ? Please find the code snippet below Code Snippet: tr:commandLink id=link1 partialSubmit=true actionListener=#{bean.flipRendered} tr:panelGroupLayout id=panelGroup1 partialTriggers=link1 t:div rendered=#{bean.rendered} ui:include src=/pages/xyz.xhtml / /t:div /tr:panelGroupLayout Thanks in advance, ~Shankar
Re: [Trindad] Integrating Tomahawk components as PPR source.
Out of curiosity, why are you using t:tree2 instead of t:tree? If there is a shortcoming to the Trinidad tree, it would be good to know. -Andrew On Thu, May 7, 2009 at 8:23 AM, Florian Reiser florian.rei...@softproject.de wrote: Hello, I want to use a tomahawk tree2-component in Trinidad. Every tree-item has a checkbox attached to it, so it can be selected. On selection a valueChangeListener should be fired which changes the content of another field. Normally I would use Trinidads PPR-mechanism but the Tomahawk component does not have the autoSumit attribute from Trinidad. How can I integrate Tomahawk components into Trindads PPR-mechanism? With kind regards Florian Reiser
Re: Trinidad -- TrPage not defined
Sounds like your web.xml doesn't have the Trinidad resource servlet set up correctly. See the trinidad-demo source for an example of the configuration. -Andrew On Wed, May 6, 2009 at 3:08 AM, Dave javao...@yahoo.com wrote: We have jsf pages that uses tomahawk(1.1.8) and trinidad(1.2.11) with JSF ri 1.2.12. For trinidad, we use tr:commankLink only for dialog framework. Jboss version: 5.0.1GA. From client source viewer: TrPage is used before loading /adf/jsLibs/Common1_2_11.js that defines TrPage. script type=text/javascriptTrPage.getInstance()._addResetFields('j_id_jsp_500896631_1pc4',[source]);/script . script type=text/javascript src=/adf/jsLibs/Common1_2_11.js Please help, how to solve/workaround this problem? Thanks Dave
Re: Trinidad + Seam
AFAIK, you cannot use conversations with views cached in the application. Seam stores user data in the components which invalidates the requirement of the USE_APPLICATION_VIEW_CACHE that no components can have any data pertinent to a user. Basically USE_APPLICATION_VIEW_CACHE is extremely hard to get working correctly. On Thu, May 7, 2009 at 11:30 AM, Rogerio Baldini das Neves rogerio.bald...@powerlogic.com.br wrote: Hi Guys, I have an application running with Trinidad 1.2.11 and jBoss Seam 2.1.0. I am trying to improve performance setting up parameter org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE to true. When I do this change the requests that change page are providing the message “The conversation ended, timed out or was processing another request”. For example: - Enter at page A and click at any button that sends to same page is working fine. - Enter at page A and click at a button that sends to page B and click any button shows the message above. Thanks, Rogerio.
Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table
Could you submit a test case that builds using maven and runs with jetty support (just a normal war pom setup and the jetty plugin can be added easily)? On Tue, Apr 21, 2009 at 9:41 AM, Paul Freeman pfreeman...@yahoo.com wrote: Just tried it and no luck :-( Note that the delete() method in my case is in context of a popped up dialog so the line: UIXTable table = (UIXTable)FacesContext.getCurrentInstance().getViewRoot().findComponent(tableId); ... returned null so I got to the UIXTable object through an associated backing bean. Not sure whether any of this matters though... Assuming we can't think of a workaround, what are the chances of anyone in the core dev team being able to work on this? Or do I need to put some time aside to debug this myself? thanks Paul. From: Matthias Wessendorf mat...@apache.org To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, April 21, 2009 4:11:58 PM Subject: Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table one more guess. in the delete, did you try something like this ? public String delete() { ... List myList = // get the thing; myList.remove(...); // store the change UIXTable table = (UIXTable) FacesContext.getCurrentInstance().getViewRoot().findComponent(tableId); table.setValue(myList); RequestContext rc= RequestContext.getCurrentInstance(); rc.addPartialTarget(table); ... } On Tue, Apr 21, 2009 at 3:42 PM, Paul Freeman pfreeman...@yahoo.com wrote: Matthias - thanks for the response. We tried addPartialTarget on the table component itself - i.e. on the action method which deletes the object we tried calling addPartialTarget() on the table. Unfortunately, that didn't help. We also tried adding a return listener on the commandButton which launched the dialog (which contains a commandButton that subsequently deletes the object) and then calling addPartialTarget from the return listener. However, it looks like the same issue causes the return listener not to be called - i.e. if the action results in its commandButton disappearing then the return listener is not triggered. I've just tried addPartialTarget on the document and the UIViewRoot and no joy I'm afraid. Any other pointers (or a fix!) would be really appreciated... thanks Paul. From: Matthias Wessendorf mat...@apache.org To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, April 21, 2009 12:53:16 PM Subject: Re: [Trinidad] TRINIDAD-779 PPR not triggered when deleting last row from table On Tue, Apr 21, 2009 at 1:53 PM, Matthias Wessendorf mat...@apache.org wrote: On Tue, Apr 21, 2009 at 1:31 PM, Paul Freeman pfreeman...@yahoo.com wrote: Hi all, We're about to go production on our web site within the next month, but we're hitting a number of issues caused by the above bug. We see it not only on deleting rows from a table but also when updating certain tables - basically, PPR does not occur after any action which causes the source command link/button to disappear. This is a real showstopper for us. have you tried addPartialTarget() ? e.g. the component that contains the table ? (or even UIViewRoot) ? or the Document component ? -Matthias Is there any chance any of the Trinidad gurus could look into this? thanks Paul. -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: JSF in Google App Engine for Java
Servlet 2.4, ew. So much for being able to do any JSF 1.2 work on google. On Wed, Apr 8, 2009 at 10:06 AM, Bruno Aranda brunoara...@gmail.com wrote: Hi, Today Google App Engine for Java has been released. I was wondering if it would play with JSF and I don't have the time to check now. According to the documentation, it is unknown if it can work in there. Has someone tested that? http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine Cheers, Bruno
Re: JSF EL Problem
#{backingBean.someproperty[linkBean.arg1]} basically means: BackingBean bean = (BackingBean)elExpr.getValue(); Object someProperty = bean.getSomeproperty(); LinkBean linkBean = (LinkBean)elExpr.getValue(); Object someArg = linkBean.getArg1(); return someProperty.get(someArg); So I have no idea why you are trying to do String[Integer]. EL doesn't support returning characters in a string by index. What are you trying to do? Best thing is to give us a little of your JSPX code and then tell us what you want. EL is no different than Java except the syntax is different, it isn't magic. So figure out what you want to call, then strip out the beginning get from properties and use [] to get items from a Map by key or items in a list by index. -Andrew On Fri, Apr 3, 2009 at 5:02 PM, Andrew Robinson andrew.rw.robin...@gmail.com wrote: #{backingBean.someproperty[linkBean.arg1]} is correct syntax, assuming that backingBean.someproperty is a map or list or other java object and not a primitive or something that the [] cannot be applied to. What is the signature of the getSomeProperty method on backingBean and the getArg1 on the linkBean? Is the error on evaluating a get or set of the EL? -Andrew On Fri, Apr 3, 2009 at 1:31 PM, JavaRunner randomno...@bellsouth.net wrote: Can anyone solve this? I have an expression that looks like this: #{backingBean.someproperty[linkBean.arg1]} which causes an EL parsing error. I've tried some variations such as: #{backingBean.someproperty[#{linkBean.arg1}]} and #{backingBean[linkBean.arg1].someproperty}. These cause parsing errors also. I've verified that both backingBean.someproperty and linkBean.arg1 have valid values. These expressions in part implement a link as in h:commandLink... on a master list which grabs the current datatable row and renders the row details on the next page - or at least it's supposed to! What am i missing here? Help appreciated. -- View this message in context: http://www.nabble.com/JSF-EL-Problem-tp22874219p22874219.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: JSF EL Problem
#{backingBean.someproperty[linkBean.arg1]} is correct syntax, assuming that backingBean.someproperty is a map or list or other java object and not a primitive or something that the [] cannot be applied to. What is the signature of the getSomeProperty method on backingBean and the getArg1 on the linkBean? Is the error on evaluating a get or set of the EL? -Andrew On Fri, Apr 3, 2009 at 1:31 PM, JavaRunner randomno...@bellsouth.net wrote: Can anyone solve this? I have an expression that looks like this: #{backingBean.someproperty[linkBean.arg1]} which causes an EL parsing error. I've tried some variations such as: #{backingBean.someproperty[#{linkBean.arg1}]} and #{backingBean[linkBean.arg1].someproperty}. These cause parsing errors also. I've verified that both backingBean.someproperty and linkBean.arg1 have valid values. These expressions in part implement a link as in h:commandLink... on a master list which grabs the current datatable row and renders the row details on the next page - or at least it's supposed to! What am i missing here? Help appreciated. -- View this message in context: http://www.nabble.com/JSF-EL-Problem-tp22874219p22874219.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] Skinning: inherit from minimal?
You may have to touch components, but you will not have to re-skin everything, so extending is very helpful. As I mentioned, I don't think the minimal skin is well tested enough to be a 100% style-free skin, it probably has some style in it. You don't have to start from scratch, but you will probably have to modify certain components to your needs. Just defining aliases won't be enough. On Mon, Mar 30, 2009 at 11:12 AM, Bart Kummel b...@kummelweb.nl wrote: Hi, Thanks, Andrew. Good to know that all skins are free to use. I don't get what you mean by saying You can extend the minimal skin just fine, but [...] you will also probably have to skin each component. In what way do I extend a skin if I still have to skin all components? Whats the point of extending a skin if I have to start from scratch anyway? I still don't get it. I think there are two possibilities: a) I am missing something. b) the extend functionality is not (yet) fully implemented, although it is documented as if it is. In either case, can someone give me a clear answer? I don't care what the answer is, but I need clarity, that's all. Thanks! Best regards, Bart Kummel On Mon, Mar 30, 2009 at 18:13, Andrew Robinson andrew.rw.robin...@gmail.com wrote: All the skins in MyFaces are Apache licensed, so suede vs minimal should have no license implications. The suede was donated by Oracle, so we do not own it anymore. You can extend the minimal skin just fine, but there is more to do than just setting the aliases, you will also probably have to skin each component. -Andrew On Mon, Mar 30, 2009 at 1:32 AM, Bart Kummel b...@kummelweb.nl wrote: Hi Andrew, I already figured that building my own skin would be an awful lot of work. That's why I was looking into taking another skin and overriding it with help of the extends feature. But it seems that if I extend a skin that way, I loose a lot of features from the skin I extend, as I tried to explain in my earlier post. The documentation suggests that I could simple change some aliases in order to change the colors, for example. But am I right that you are saying that this isn't the case? Are you saying the only way to do this is actually change and existing skin instead of extending it? Talking about that: is it allowed (license-wise) to use the suede skin as basis instead of the minimal skin? Best regards, Bart Kummel On Mon, Mar 30, 2009 at 02:41, Andrew Robinson andrew.rw.robin...@gmail.com wrote: It really is not easy. The best thing may be to start with a good skin delete / change selectors, or start cutting pasting. The minimal still has some CSS in it and it isn't 100% maintained so there may be things in there that do not need to be and there may be things that should be there that are not. Either way, building your own skin will be a lot of work. On Sun, Mar 29, 2009 at 7:43 AM, Bart Kummel b...@kummelweb.nl wrote: Hi, I have a question about Trinidad Skinning. I want to create my own skin. I'm fairly satisfied with the standard, minimal skin. However, the green accent colors don't match the company style, so I want to change the colors. So I thought I could simple create a myCompany.css file with the following contents: .AFDarkBackground:alias {background-color: #00173A;} .AFVeryDarkBackground:alias {background-color: #000102;} .AFMediumBackground:alias {background-color: #0373B1;} .AFLightBackground:alias {background-color: #3295CA;} .AFTextBackground:alias {background-color: white;} .AFDarkForeground:alias {color: #000102;} .AFDarkAccentForeground:alias {color: #002C76 ;} .AFTextForeground:alias {color: #000102;} .AFSelectedTextForeground:alias {color: yellow;} .AFErrorTextForeground:alias {color: red;} I thought by inheriting from minimal , I would get all other formatting from the minimal skin. Therefore, I created the following skin definition in trinidad-skins.xml: skin idmyCompany.desktop/id familymyCompany/family render-kit-id org.apache.myfaces.trinidad.desktop/render-kit-id style-sheet-nameskins/myCompany/myCompany-skin.css/style-sheet-name extendsminimal/extends /skin However, I seem to loose a lot of formatting. For example, in the minimal skin, the tr:panelBox component has a thin line around the box and some padding inside that line. If I apply my own skin, the color of the title bar of the tr:panelBox is now indeed in the blue color I set in the CSS, but there is no line and no padding around the box. I thought that I would simply inherit all formatting except the things I override, but it seems that I'm only inherriting some formatting. Am I missing something? Is something wrong? Or is it meant to be this way? Wo can clear this up for me? Thanks in advance! Best regards, Bart Kummel
Re: [Trinidad] Skinning: inherit from minimal?
It really is not easy. The best thing may be to start with a good skin delete / change selectors, or start cutting pasting. The minimal still has some CSS in it and it isn't 100% maintained so there may be things in there that do not need to be and there may be things that should be there that are not. Either way, building your own skin will be a lot of work. On Sun, Mar 29, 2009 at 7:43 AM, Bart Kummel b...@kummelweb.nl wrote: Hi, I have a question about Trinidad Skinning. I want to create my own skin. I'm fairly satisfied with the standard, minimal skin. However, the green accent colors don't match the company style, so I want to change the colors. So I thought I could simple create a myCompany.css file with the following contents: .AFDarkBackground:alias {background-color: #00173A;} .AFVeryDarkBackground:alias {background-color: #000102;} .AFMediumBackground:alias {background-color: #0373B1;} .AFLightBackground:alias {background-color: #3295CA;} .AFTextBackground:alias {background-color: white;} .AFDarkForeground:alias {color: #000102;} .AFDarkAccentForeground:alias {color: #002C76 ;} .AFTextForeground:alias {color: #000102;} .AFSelectedTextForeground:alias {color: yellow;} .AFErrorTextForeground:alias {color: red;} I thought by inheriting from minimal , I would get all other formatting from the minimal skin. Therefore, I created the following skin definition in trinidad-skins.xml: skin idmyCompany.desktop/id familymyCompany/family render-kit-id org.apache.myfaces.trinidad.desktop/render-kit-id style-sheet-nameskins/myCompany/myCompany-skin.css/style-sheet-name extendsminimal/extends /skin However, I seem to loose a lot of formatting. For example, in the minimal skin, the tr:panelBox component has a thin line around the box and some padding inside that line. If I apply my own skin, the color of the title bar of the tr:panelBox is now indeed in the blue color I set in the CSS, but there is no line and no padding around the box. I thought that I would simply inherit all formatting except the things I override, but it seems that I'm only inherriting some formatting. Am I missing something? Is something wrong? Or is it meant to be this way? Wo can clear this up for me? Thanks in advance! Best regards, Bart Kummel
Re: [TRINIDAD] Passing a request parameter to a session bean
1. try f:setPropertyActionListener 2. use the managed property feature of the managed bean registration in the faces-config.xml 3. I did'nt know f:param didn't work with the command button, have you tested it? -Andrew On Fri, Mar 13, 2009 at 5:09 PM, Amaris Nieves daraii.t...@gmail.comwrote: I can actually create a request managed bean that will hold the request parameters. I can use the properties of the managed bean on the page, but...What should I do to pass those parameters to a session bean? The f:param tag does not work with Trinidad commandButton's, right?
Re: Very Basic List and Crud -- how to link JSF forms
For the question regarding using GET not POST, take a look at JBoss Seam, they have solutions for this. On Wed, Mar 11, 2009 at 9:42 PM, anth...@berglas.org wrote: Hello All, Probably the most basic web pattern is to list a series of objects (Employees, say) and then be able to click on one of them and edit it. Ie. Two forms, List and Update. The List form contains a list of Employees, and a link for each employee. When a user clicks on the link for employee Fred (say) the second Update form is called that just displays Fred's details and allows them to be edited. No AJAX, just very basic HTML patterns. The first problem is how to set up the link in the List form to pass Fred to the update form. This would be a get, not a post. So then how to retrieve the value within the Update form. Does one really need to poke at HtmlRequest? The second, more serious problem, is that the first time a form is displayed there is no way to run an action. So when the Master form is called from the List form it cannot display Fred's details. I'm hoping not to have to use dirty tricks to do such a basic thing. (One dirty trick would be to put most of the application into one huge form and somehow hide various bits at different stages.) rantNone of the four JSF books that I have cover basic issues like this. And Facelets cannot address the problem that JSF's seemingly broken event model was designed around JSPs. Is JSF real, or does one need to go the whole ADF hog to do basic things? ASP.Net seems much, much easier to use./rant All help much appreciated. If someone has a canned example of basic List + Crud that would be most helpful. Anthony Dr Anthony Berglas, anth...@berglas.org Mobile: +61 4 4838 8874 Just because it is possible to push twigs along the ground with ones nose does not necessarily mean that is the best way to collect firewood.
Re: How to access session scope attributes via JSF EL
Unless you set #{sessionScope.someBooleanProperty} to true it will return null, and null is the same as false in terms of the disabled attribute. -Andrew On Wed, Mar 4, 2009 at 11:54 PM, Madhav Bhargava madhav_bharg...@infosys.com wrote: Hi All, In a JSP I need to disable a component based on an attribute’s value in HttpSession. http://developers.sun.com/docs/jscreator/help/jsp-jsfel/jsf_expression_language_intro.html The above link mentions that session scope can be accessed using an implicit object – sessionScope I tried to use session scope as follows: t:inputText id=”someID” value=”#{someBean.someProperty} disabled =”#{sessionScope.someBooleanProperty}”/ The session attribute gets set properly but #{sessionScope.someBooleanProperty} always returns “false”. I am assuming I am doing something wrong here. What would be the correct way to use session attributes? Thanks Regards, Madhav CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS***
Re: Subform with InputText: InputText is not updated after a page submit
Input controls will remember their submitted values until they are cleared. Have you made sure that the input text has never posted a value back? If so, calling resetValue() is the correct solution, and not a work-around. -Andrew On Fri, Feb 27, 2009 at 12:51 AM, stefan.friedr...@sungard.com wrote: Hi. We are currently facing and interesting problem: We have a page that contains one form element with a couple of input elements and one subform element, the backing bean is session scoped: tr:form ... tr.commandLink text=New …/ (-- sets backing bean property that lets the subform be rendered with value=null) tr:subform rendered=#{backing.showSubform} tr:inputText value=#{backing.value} required=true/ tr:commandButton text=Submit action=….../ (To save the value and unrender the subform) tr:commandButton text=Cancel action=…… immediate=true/ (To cancel the editing and unrender the subform) /tr:subform tr:commandLink text=Edit …/ (-- sets backing bean property that lets the subform be rendered with value=current Value) tr:commandLink text=Save…/ (Finally saves the changes) /tr:form Now we have the following usecases: A) OK 1. Form is started 2. New is clicked 3. subform is shown with empty inputText B) OK 1. Form is started 2. Edit is clicked 3. subform is shown with current Value C) NOT OK 1. Form is started 2. Edit is clicked 3. New is clicked 4. subform is shown with current Value D) NOT OK 1. Form is started 2. New is clicked 3. Edit is clicked 4. subform is shown with empty inputText So what are we missing here? Why is the inputText not re-rendered (we think because the events are not produced from within the subform)? Some debugging in the backing bean shows that the value property is set correctly - its just the subform that doesn't get updated What we already tried (without success): - set the subform as default - no change - remove the subform tags - New or Edit is not clickable until the text field is filled (required) - set immediate=true on all relevant links - No update of the subform content - set an id and a binding on the subform element and call requestContext.addPartialTarget(…) from the backing bean's new and edit methods - No update of the subform content What we tried (with success): - Programatically call resetValue() on all EditableComponents from the backing bean -- So this approach works but produces some overhead and is kind of a workaround Help is appreciated ;-) Regards Stefan Friedrich
Re: Configuring panelTabbed component
Have a look at the trinidad developer skinning guide on the myfaces website. -Andrew On Thu, Feb 26, 2009 at 8:28 AM, Harry van Rijn ha...@raceeend-2.demon.nlwrote: Hi, I want the tr:panelTabbed component have my own style. The standard rendering is not what I want, I like for instance the tabs to be coloured blue, and the text be white within it. Trying to find out myself takes a lot of time. I tried the attributes inlineStyle/styleClass, but all I get is a coloured tab with a ugly textbox in it, still with default appearance. Is the tr:panelTabbed component completely configurable at all, I asked myself. Where can I find documentation/examples about this? With kind regards, Harry van Rijn
Re: [Trinidad] Using skinning
Please read the thread before replying, that question was already asked and responded to On Wed, Feb 25, 2009 at 8:51 AM, Richard Yee richard.k@gmail.comwrote: Do you have tr:document in your page? -R Sent from my iPhone On Feb 25, 2009, at 7:28 AM, Lars Vogel lars.vo...@googlemail.com wrote: Thank you. I assume you meant trinidad-skins.xml? I did the change in trinidad-skins.xml and it still the style sheet is not used. 2009/2/25 Rafa Pérez raja...@gmail.comraja...@gmail.com Try changing in you trinidad-config.xml style-sheet-nameskins/aqua/aqua.cssstyle-sheet-name to style-sheet-name/skins/aqua/aqua.cssstyle-sheet-name HTH,
Re: [trinidad] problem with PPR and multiple triggers
You cannot PPR an item inside a stamped component from outside the stamped component without PPR'ing the entire stamped component. So in your case, calcAll should PPR the table, not the panel group layout. If you only really want to PPR just the panel group layouts in every row, you will have to do it yourself, by using the row indexes on UIData, and adding the component as a partial target for every visible row index in the table. -Andrew On Tue, Feb 24, 2009 at 9:57 AM, Steve Horne steveho...@gmail.com wrote: I have the following component hierarchy (leaving out parts that are not important): tr:commandLink id=calcAll action=#{backer.calcAll} partialSubmit=true/ tr:table tr:column tr:panelGroupLayout partialTriggers=calc ::calcAll ... results of calculation... /tr:panelGroupLayout /tr:column tr:column tr:commandLink id=calc action=#{backer.calc} partialSubmit=true/ /tr:column /tr:table So, when I click the calc link (in a table row), the other column (containing the panelGroupLayout) refreshes properly. When I click the calcAll link, the action works properly, but the panelGroupLayout does not refresh. I have tried it with 1, 2, and 3 colons preceding the trigger 'calcAll', but nothing seems to work. As far as I can tell, the only naming container here is the tr:table. So, according to the docs, I should use 2 colons, e.g. ::calcAll: snip from the docs: If you need to go up and out of a naming container to get the trigger component, start with two colons. (e.g., partialTriggers=::someComponentOutsideNamingContainer) This includes the current component if the component is a NamingContainer. (e.g., tr:table partialTriggers=::mySiblingComponent pops out of the table to get to the sibling) /snip I can hide then show the table and the information refreshes correctly... Any ideas why this isn't working?
Re: Does af:decorativeBox exist in Trinidad
No that is an Oracle RichClient component that has been created recently (long after the Trinidad donation) -Andrew On Thu, Feb 19, 2009 at 12:12 PM, mjdenham mjden...@gmail.com wrote: Does the adf control af:decorativeBox exist in Trinidad. I can't see it documented anywhere. Thanks Martin -- View this message in context: http://www.nabble.com/Does-af%3AdecorativeBox-exist-in-Trinidad-tp22107671p22107671.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: subform breaks tr:panelFormLayout behaviour
Subform is not a flattened component, so therefore the panelFormLayout will not be able to see the items in the subform and align them, it would only attempt to align the subform elements themselves, not the children. If you wish, file and enhancement JIRA ticket to make subform support flattening. -Andrew On Sun, Feb 15, 2009 at 10:24 AM, James Rogers clawznight...@googlemail.com wrote: Anyone had experience of tr:subform breaking tr:panelFormLayout's behaviour, if I have two input fields with required=true in two seperate subforms (to prevent the required= from stopping PPR), panelFormLayout doesn't layout the two subforms correctly with respect to each other (i.e. if the label on the second input field is shorter than the first there's no vertical alignment) removing subform fixes it but is not what I want.. Any ideas, Thanks, James -- View this message in context: http://www.nabble.com/tr%3Asubform-breaks-tr%3ApanelFormLayout-behaviour-tp22024999p22024999.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] tr:inputText styling
I think it should be: af|inputText:disabled af|inputText::content { color: black } Reasoning: 1) disabled state is on the inputText. 2) the af|inputText::content is a actually one element, not the content under the input text, but rather the content for the input text This is because af|inputText::content is rendered as class=af_inputText_content (in uncompressed mode) I believe. When you get confused, the best thing to do is turn off content compression and then use FireBug to look at the DOM to see the CSS classes that are added. -Andrew On Thu, Feb 5, 2009 at 8:26 AM, Omar Elprince general.equal@gmail.com wrote: Hi, I'm having a problem in styling a disabled input field: tr:inputText value=#{myBacking.myValue} disabled=true /. when the inputText is disabled, I'm trying to change the text color to be black instead of gray. in my css i used af|inputText:disabled::content { color:black; } That does not work. Does any one have an experience with that case? Or it might be a bug that i need to report. --Omar
Re: [Trinidad]: state of outputText (within tr:iterator) ???
Just debug into the code and see the method stack. Just guessing over email will not be very effective. You could also create a maven project as a test case and submit it so us devs can reproduce it. -Andrew On Mon, Feb 2, 2009 at 5:45 AM, Kuhn, Harald hk...@airplus.com wrote: Hi, could anyone answer the question: Why is this method called for a child of type org.apache.myfaces.trinidad.component.core.output.CoreOutputText? Thanks for your help. Harald Harald Kuhn AirPlus International Business Information Services Dornhofstr. 36 63263 Neu-Isenburg T +49 (0) 61 02. 2 04 - 8 21 F +49 (0) 61 02. 2 04 - 1 39 hk...@airplus.com www.airplus.com -Original Message- From: Kuhn, Harald Sent: Friday, January 23, 2009 9:37 AM To: 'MyFaces Discussion' Subject: RE: [Trinidad]: state of outputText (within tr:iterator) ??? Hi Matthias, I don't really understand your question. But our Trinidad jars are based on subversion Rev. 693879. Nevertheless the mentioned code has not been changed since July, 2006 (Rev. 425266). The implementation in the trunk_1.2.x is FQCN: org.apache.myfaces.trinidad.component.StampState.EVHState @Override public void restoreRowState(UIComponent child) { assert _assertIsStampCorrect(child); EditableValueHolder evh = (EditableValueHolder) child; evh.setSubmittedValue(_submitted); evh.setValue(_local); evh.setLocalValueSet(_localSet); evh.setValid(_valid); assert _assertStampHonoursState(evh); } Our Implementation is the same: @Override public void restoreRowState(UIComponent child) { assert _assertIsStampCorrect(child); EditableValueHolder evh = (EditableValueHolder) child; evh.setSubmittedValue(_submitted); evh.setValue(_local); evh.setLocalValueSet(_localSet); evh.setValid(_valid); assert _assertStampHonoursState(evh); } The question I couldn't answer right now is: Why is this method called for a child of type org.apache.myfaces.trinidad.component.core.output.CoreOutputText? To be more precise the page is functional a hundred times and then suddenly the ClassCastException is thrown. On my development box I was able to force the exception if I pressed the reload button of the browser (Don't know if this information is really helpful). Best regards Harald Harald Kuhn AirPlus International Business Information Services Dornhofstr. 36 63263 Neu-Isenburg T +49 (0) 61 02. 2 04 - 8 21 F +49 (0) 61 02. 2 04 - 1 39 hk...@airplus.com www.airplus.com -Original Message- From: mwessend...@gmail.com [mailto:mwessend...@gmail.com] On Behalf Of Matthias Wessendorf Sent: Thursday, January 22, 2009 5:44 PM To: MyFaces Discussion Subject: Re: [Trinidad]: state of outputText (within tr:iterator) ??? snip The cause of the exception is: EditableValueHolder evh = (EditableValueHolder) child; q: when was that line updated (last time)? On Thu, Jan 22, 2009 at 1:42 AM, Kuhn, Harald hk...@airplus.com wrote: Hi, I found a strange behaviour in one of our pages (facelet). From time to time there seems to be a state of tr:outputText. I can't think of a situation where tr:outputText should save a state, neither does Trinidad assume this case. Therefore there is a ClassCastException thrown on RestoreState. Our environment is: Tomcat 6 Myfaces 1.2.3 Trinidad 1.2.10 (SNAP) Facelets 1.1.14 Any pointers to solve this problem are welcome. Thanks in advance Harald facelet fragment: … table tr:iterator id=iterator value=#{textFilter.listFilter} var=columnFilter varStatus=status rows=0 tr td !-- -- tr:outputText value=#{bundle['aim.text.label.reportgen.textenthaelt']}: / !-- -- /td td#0160;/td td tr:inputText id=textBedingung value=#{columnFilter.textBedingungFrontend} inlineStyle=width:120px; simple=true onkeyup=javascript:this.value = this.value.toUpperCase(); / /td td#0160;/td td#0160;/td /tr /tr:iterator /table … Exception: javax.servlet.ServletException: org.apache.myfaces.trinidad.component.core.output.CoreOutputText at javax.faces.webapp._ErrorPageWriter.throwException(_ErrorPageWriter.java:401) at javax.faces.webapp.FacesServlet.handleLifecycleException(FacesServlet.java:221) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:156) at com.airplus.aim.webapp.jsf.AIMFacesServlet.service(AIMFacesServlet.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at
Re: [TRINIDAD] How to display columns of checkboxes in tr:selectManyCheckbox ?
Check the archive, someone just asked this question. You can use the tr:panelList with a tr:iterator and a tr:selectBooleanCheckbox with the columns set to 2 on the panel list. It is a bit of work, but should do what you need. If you want, create an enhancement JIRA ticket to allow for multiple column layouts with checkboxes, and perhaps someone would be kind enough to implement it. -Andrew On Mon, Feb 2, 2009 at 5:05 AM, Paul Spencer pau...@apache.org wrote: How can I display checkboxes in columns? As an example I need to display 2 columns of names. Each name is selectable. Displaying the list in one column or row would force the user to scroll around the page to see all of the names. Paul Spencer
Re: [TRINIDAD] How to display columns of checkboxes in tr:selectManyCheckbox ?
You cannot do that with selectManyCheckbox, please see my email on how to do it On Mon, Feb 2, 2009 at 9:16 AM, Paul Spencer pau...@apache.org wrote: Currently I have a list of names in a tr:selectManyCheckbox value=#{listOfnames}.../. The list of check boxs is currently displayed in one column. I would like to display the check boxes in 2 or three columns primarily to maximize the number of checkboxes visible at one time. _ Name 1 _ Name 2_ Name 3 _ Name 4 _ Name 5_ Name 6 _ Name 7 _ Name 8_ Name 9 Paul Spencer On Feb 2, 2009, at 9:24 AM, Omar Elprince wrote: I am not sure if I understand what your question? Could you elaborate more? If the columns are in table. If would be help full if you post some code snippets of what you trying to do. On Feb 2, 2009, at 7:05 AM, Paul Spencer wrote: How can I display checkboxes in columns? As an example I need to display 2 columns of names. Each name is selectable. Displaying the list in one column or row would force the user to scroll around the page to see all of the names. Paul Spencer
Re: [trinidad]tips to create my own panelgroup
i not use trinidad because my app would be fast and low weight. What makes you think that Trinidad would slow your app down and make it heavier? What performance metrics do you have that show any degrade? Trinidad is pretty light and there has been a lot of effort making its performance good. It seems to me from this email that you have not done much research. Furthermore, all of MyFaces is open source, so if you want to know how to write a component, Tomahawk, Trinidad, Tobago and Orchestra all have publicly available code that you can look at and study. On Wed, Jan 28, 2009 at 12:49 PM, alvaro tovar alvaro.to...@gmail.com wrote: hello i am trying of create my own panel group with ajax, and the atribute partialtrigres, but i don't kown how start, some one can give some documentation? i not use trinidad because my app would be fast and low weight. thanks
Re: Trinidad poll questions
1) _Never_ bind a component to anything except request scope (just put your data in the session) 2) The poll happens on the client, not the server, so you have to PPR the page / poll component to change its properties (I am not sure how well the poll component PPRs itself though) -Andrew On Thu, Jan 22, 2009 at 8:38 PM, pdt_p pin...@gmail.com wrote: Hi.. I do have tr:poll in my page and bind the poll component in a bean which is set as session bean. Is that possible to manually trigger the poll event from a bean? I did try to set the interval to 1 but the poll is not directly pickup the latest interval. Any idea how to do this? thanks. Regards, pdt -- View this message in context: http://www.nabble.com/Trinidad-poll-questions-tp21617715p21617715.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [a bit off topic] Trying to use xhtml instead of html, problem with IE?
Most browsers need content type of text/html, even for XHTML documents. It is a bug in the browser. -Andrew On Fri, Jan 23, 2009 at 11:57 AM, Bjørn T Johansen b...@havleik.no wrote: When I use the following in my xhtml page..: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; head meta http-equiv=Content-Type content=application/xhtml+xml/ meta http-equiv=Pragma content=no-cache/ meta http-equiv=Expires content=-1/ link href=#{facesContext.externalContext.requestContextPath}/secure/css/stylesheet2.css rel=stylesheet type=text/css/ /head it works great in Firefox. But trying to open the same page in IE, IE just asks f I want to save the file or find a program online to open it How can I code the page so IE will display the page correctly? Regards, BTJ -- --- Bjørn T Johansen b...@havleik.no --- Someone wrote: I understand that if you play a Windows CD backwards you hear strange Satanic messages To which someone replied: It's even worse than that; play it forwards and it installs Windows ---
Re: [a bit off topic] Trying to use xhtml instead of html, problem with IE?
what is your content type header that the browser is sending? On Fri, Jan 23, 2009 at 2:42 PM, Bjørn T Johansen b...@havleik.no wrote: Ok, but I tried changing the content type to text/html with no change in the outcome... What else do I need to do to make IE work? BTJ On Fri, 23 Jan 2009 12:57:27 -0700 Andrew Robinson andrew.rw.robin...@gmail.com wrote: Most browsers need content type of text/html, even for XHTML documents. It is a bug in the browser. -Andrew On Fri, Jan 23, 2009 at 11:57 AM, Bjørn T Johansen b...@havleik.no wrote: When I use the following in my xhtml page..: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; head meta http-equiv=Content-Type content=application/xhtml+xml/ meta http-equiv=Pragma content=no-cache/ meta http-equiv=Expires content=-1/ link href=#{facesContext.externalContext.requestContextPath}/secure/css/stylesheet2.css rel=stylesheet type=text/css/ /head it works great in Firefox. But trying to open the same page in IE, IE just asks f I want to save the file or find a program online to open it How can I code the page so IE will display the page correctly? Regards, BTJ -- --- Bjørn T Johansen b...@havleik.no --- Someone wrote: I understand that if you play a Windows CD backwards you hear strange Satanic messages To which someone replied: It's even worse than that; play it forwards and it installs Windows ---
Re: [Trinidad]: state of outputText (within tr:iterator) ???
Looks like a class path issue. Make sure you only have one Trinidad set of jars on the application class path On Thu, Jan 22, 2009 at 2:42 AM, Kuhn, Harald hk...@airplus.com wrote: Hi, I found a strange behaviour in one of our pages (facelet). From time to time there seems to be a state of tr:outputText. I can't think of a situation where tr:outputText should save a state, neither does Trinidad assume this case. Therefore there is a ClassCastException thrown on RestoreState. Our environment is: Tomcat 6 Myfaces 1.2.3 Trinidad 1.2.10 (SNAP) Facelets 1.1.14 Any pointers to solve this problem are welcome. Thanks in advance Harald facelet fragment: … table tr:iterator id=iterator value=#{textFilter.listFilter} var=columnFilter varStatus=status rows=0 tr td !-- -- tr:outputText value=#{bundle['aim.text.label.reportgen.textenthaelt']}: / !-- -- /td td#0160;/td td tr:inputText id=textBedingung value=#{columnFilter.textBedingungFrontend} inlineStyle=width:120px; simple=true onkeyup=javascript:this.value = this.value.toUpperCase(); / /td td#0160;/td td#0160;/td /tr /tr:iterator /table … Exception: javax.servlet.ServletException: org.apache.myfaces.trinidad.component.core.output.CoreOutputText at javax.faces.webapp._ErrorPageWriter.throwException(_ErrorPageWriter.java:401) at javax.faces.webapp.FacesServlet.handleLifecycleException(FacesServlet.java:221) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:156) at com.airplus.aim.webapp.jsf.AIMFacesServlet.service(AIMFacesServlet.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.airplus.aim.webapp.filter.AIMFilter.doFilter(AIMFilter.java:147) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:347) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.ClassCastException: org.apache.myfaces.trinidad.component.core.output.CoreOutputText at org.apache.myfaces.trinidad.component.StampState$EVHState.restoreRowState(StampState.java:451) at org.apache.myfaces.trinidad.component.StampState.restoreStampState(StampState.java:125) The cause of the exception is: EditableValueHolder evh = (EditableValueHolder) child; In case of the exception child is of type CoreOutputText. Harald Kuhn AirPlus International Business Information Services Dornhofstr. 36 63263 Neu-Isenburg T +49 (0) 61 02. 2 04 - 8 21 F +49 (0) 61 02. 2 04 - 1 39 hk...@airplus.com www.airplus.com
[Trinidad] be careful with UIXSwitcher / tr:switcher
FYI, here is a blog on a possible problem with using tr:switcher due do its lifecycle optimizations: http://drewdev.blogspot.com/2009/01/trswitcher-has-some-lifecycle-caveats.html Hope it prevents some bugs. -Andrew
Re: Skinning Trinidad - dynamic path in stylesheet files?
On Mon, Jan 12, 2009 at 12:26 AM, felix.bec...@t-systems.com wrote: Hi *, I tried to use @IMPORT url(/module-desktop.css); in my css file loaded by the trinidad-skins configuration but that doesn't seem to work. In the generated CSS file there are no @IMPORT statements and the content of the CSS file which should be imported is not there, too. The module-desktop.css is located in /module-name/module-desktop.css – I copied it to the WEB-INF folder but that didn't help, too. Doesn't the Trinidad skinning support @IMPORT statements or am I doing something wrong? No it doesn't Regards, Felix -- *From:* Becker, Felix *Sent:* Thursday, January 08, 2009 8:57 AM *To:* users@myfaces.apache.org *Subject:* RE: Skinning Trinidad - dynamic path in stylesheet files? Oh, i just saw that trinidad automatically rewrites the url when using an absolute path like /icons/foo.png – cool. That solved my problem Felix -- *From:* Becker, Felix *Sent:* Thursday, January 08, 2009 8:34 AM *To:* users@myfaces.apache.org *Subject:* Skinning Trinidad - dynamic path in stylesheet files? Hi Guys, i'm using an own css file (defined in the trinidad-skins.xml) for many of my components. My faces application pages are available on different paths, e.g. the news page is on /appname/pages/news/news.jsf and the login page is on /appname/pages/security/login/login.jsf. In my style.css file I want to use the background-image attribute: For example: background-image:url('successicon.png'); The problem is that the path of the successicon.png can't be defined absolutely because /appname/ often changes (my application has many modules). So I can't use background-image:url('/someappname/icons/successicon.png');. Using a relative path doesn't work for me because the current destination is always different (see news and login page) – so something like background-image:url('../../successicon.png'); doesn't work. I don't want to use the tr:image tag or something like this because I want to have different images on different styles. Do you know a way how to solve this problem? Thank you and best regards Felix
Re: [TRINIDAD] - Change tab in panelTabbed using a button
Unfortunately, the best way is to use component binding of the tab component to a bean and update the disclosed properties of the children show details manually. The other way is to use JavaScript on the client to manually fire a click event of the desired anchor element (tab) from the button, but this is not the JSF way, but more of a hack. -Andrew On Wed, Jan 7, 2009 at 9:09 AM, Enrique Medina Montenegro e.medin...@gmail.com wrote: But how would I set that property from the button? Through an actionListener and then finding the component in the ViewRoot? Is there any way to mimic the exact behaviour as when you click the tab itself? Thanks. On Wed, Jan 7, 2009 at 4:41 PM, Walter Mourão walter.mou...@gmail.com wrote: You can use the disclosed property in showDetailItem to show/hide its content. Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Wed, Jan 7, 2009 at 1:22 PM, Enrique Medina Montenegro e.medin...@gmail.com wrote: Hi, I'm using a panelTabbed component, and I would like to allow the user to change between the tabs not only by clicking the tab itself, but also using a button in order to simulate a wizard, let's say. Let me put an example. Imagine we have a 3 tabs panelTabbed component, so in the content for the first tab I define a button (NEXT), then in the second tab's content I define two buttons (PRIOR and NEXT), and finally in the last tab I define another two buttons (PRIOR and SUBMIT). What would the code be to simulate clicking on the tab itself but from a button click? Thanks.
Re: [TRINIDAD] - Change tab in panelTabbed using a button
That only works if the user never clicks on a tab. This is because the renderer for the show detail item calls setDisclosed which sets the components local value. Once this is set, the EL will never be evaluated again. -Andrew On Wed, Jan 7, 2009 at 10:17 AM, Walter Mourão walter.mou...@gmail.com wrote: As I remember I used something like disclosed=#{form.disclosedTab == 1} and set the disclosedTab number in the backing bean action. Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Wed, Jan 7, 2009 at 2:09 PM, Enrique Medina Montenegro e.medin...@gmail.com wrote: But how would I set that property from the button? Through an actionListener and then finding the component in the ViewRoot? Is there any way to mimic the exact behaviour as when you click the tab itself? Thanks. On Wed, Jan 7, 2009 at 4:41 PM, Walter Mourão walter.mou...@gmail.com wrote: You can use the disclosed property in showDetailItem to show/hide its content. Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Wed, Jan 7, 2009 at 1:22 PM, Enrique Medina Montenegro e.medin...@gmail.com wrote: Hi, I'm using a panelTabbed component, and I would like to allow the user to change between the tabs not only by clicking the tab itself, but also using a button in order to simulate a wizard, let's say. Let me put an example. Imagine we have a 3 tabs panelTabbed component, so in the content for the first tab I define a button (NEXT), then in the second tab's content I define two buttons (PRIOR and NEXT), and finally in the last tab I define another two buttons (PRIOR and SUBMIT). What would the code be to simulate clicking on the tab itself but from a button click? Thanks.
Re: [Trinidad] PPR does not work for XHTML rendered pages (was: charset)
If you use tr:document I believe Trinidad always uses the HTML doctype. This is something that I have wanted to change. For example, the demos render: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; This is one of those issues that other community members where hesitant to change. Perhaps this is part of the problem? On Thu, Jan 1, 2009 at 7:30 AM, Burghard Britzke b...@charmides.in-berlin.de wrote: fine! but using html4 is just a workaround. trinidad does not work for xhtml rendered pages since more than one year! burghard. Am 01.01.2009 um 14:11 schrieb desik: You are right. Tried: jsp:directive.page contentType=text/html/ and it works. Verified page source. Without contentType attribute page is rendered as xhtml, with contentType - as html. Thank you! -- View this message in context: http://www.nabble.com/-Trinidad--charset-problem-tp21213794p21241118.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Quite advanced JSF problem
This is the wrong mailing list for this question, it is not regarding myfaces development. I am posting this reply on the users list, all further replies should go there. I don't think that you solution is a valid one. It is not valid to locate a component in more than one location of one component tree. I think this may be a safer solution, but still a hack: First create a custom root component that does not render anything, just make sure it is at the root, under the UIViewRoot (or you can subclass UIViewRoot if you want). Then in that component, during the phase methods (processDecodes, processValidators, etc.), check to see if the request is an AJAX request. Then using invokeOnComponent, find the target of your action. Move the children into a temporary list if you want to avoid process its children, invoke the lifecycle method on that component, then restore the children. Another safer method would be to use sub forms to limit the scope of the action. -Andrew On Tue, Dec 23, 2008 at 3:39 AM, gibiman victor.bucu...@gmail.com wrote: Hi , I'm trying to develop custom AJAX components, and i'm facing some problems on the JSF technology architecture . Pay attention ;) : An action on the page launches an XMLHttpRequest to a certain URL ( .jsf suffix). My aim is to have the JSF engine process only a certain part of the JSF tree , that is the part which contains the children of the component that launched the request ( for example a tabPanel component generates an ajax request , and only that certain tabPanel needs to be processed by the JSF engine ) . My aproach on the problem was to build a listener which would : after RESTORE_VIEW(1) 1. Fetch the UIComponent which launched the request 2. Create a new UIViewRoot and set the new UIViewRoot to the facesContext 3. Add the UICompononet fetched at step 1 as child to the UIviewRoot 4. Invoke action specific behavior of the component - is ok to ignore this part The thing is that new UIViewRoot will get populated - by that i mean all the previous children erased - on renderResponse phase with the JSP tags ( naturally because the engine would return the corresponding viewId ) . If I were to set an invalid viewId , e.g. a page that would not exist, than it would return a 404 page not found response. What are your opinions on my approach , and what alternate suggestions do you have ? Victor -- View this message in context: http://www.nabble.com/Quite-advanced-JSF-problem-tp21142256p21142256.html Sent from the My Faces - Dev mailing list archive at Nabble.com.
Re: [Trinidad] PPR not working over VPN connection
Is the VPN caching requests, like say through a proxy? On Tue, Dec 23, 2008 at 12:15 PM, Bertrand, Shawn R shawn.bertr...@tycoelectronics.com wrote: Can anyone think of a reason why PPR wouldn't work over a VPN connection? We have some situations (not reproducible, of course) where a partialSubmit button is clicked, a dialog pops up, some fields are entered, the dialog closes, and a tr:table should update via PPR, but it doesn't until one of the select buttons or some other entity on the page (poll, for instance) causes it to do so. Sorry for through a non-repro case out there, but I'm sort of at the end of my rope on this one… All the best, Shawn Bertrand Tyco Electronics
Re: [JSF] using ActionListener for executing different actions from table
Option A: h:table h:column h:commandLink id=link1 action=actionA actionListener=processClick / /h:column h:column h:commandLink id=link2 action=actionB actionListener=processClick /h:column /h:table public void processClick(ActionEvent event) { System.out.println(event.getComponent().getId()); // link1 or link2 } Option B: h:table h:column h:commandLink action=actionA actionListener=processClick f:attribute name=actionId value=A / /h:commandLink /h:column h:column h:commandLink action=actionB actionListener=processClick f:attribute name=actionId value=B / /h:commandLink /h:column /h:table public void processClick(ActionEvent event) { System.out.println(event.getComponent() .getAttributes().get(actionId)); // A or B } On Fri, Dec 19, 2008 at 12:10 PM, Anton Gavazuk antongava...@gmail.com wrote: Hi Simon, Andrew thanks for the answers, sure, my question is confusing - I meant how to do something like: h:table !-- its link1 -- h:column h:commandLink action=actionA actionListener=processClick /h:column !-- its link2 -- h:column h:commandLink action=actionB actionListener=processClick /h:column /h:table So my question was how to define in processClick that user clicks on link1 or on click 2? you cannot put certain Id in link component - its table, so id must be unique and its generated by component, and actionEvent.getComponent() returns something like id_lnk_141413 - sure, not very meaningful :) So for now I have gone with separate methods for every actionListener. Cheers, Anton 2008/12/19 Simon Kitching skitch...@apache.org: Anton Gavazuk schrieb: Hi all, Im making the master-detail scenario via ActionListeners and want to use the same ActionListener is there any easy way to know which link in table row performs the action? This should be covered by most JSF textbooks. There is also a page on the myfaces wiki. This page: http://wiki.apache.org/myfaces/ has a link to here: http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters which hopefully answers your question. Regards, Simon -- -- Emails in mixed posting style will be ignored -- (http://en.wikipedia.org/wiki/Posting_style)
Re: [JSF] using ActionListener for executing different actions from table
actionEvent.getComponent() On Fri, Dec 19, 2008 at 2:47 AM, Anton Gavazuk antongava...@gmail.com wrote: Hi all, Im making the master-detail scenario via ActionListeners and want to use the same ActionListener is there any easy way to know which link in table row performs the action? Thanks., Anton
Re: Trinidad : dialog for error messages
Dialog meaning browser window or dialog meaning a floating DIV? If the latter, you can use the tr:panelPopup component and only render it if messages are present or the like. In order to do the former, you will have to code it yourself with javascript. You could use window.open to 'about:blank', get the document and copy the messages from the page into the window. Then just put the tr:messages in a hidden DIV in the page so that they are not visible. -Andrew On Wed, Dec 17, 2008 at 10:36 PM, venkat.rama...@thomsonreuters.com wrote: Hi Ok Let me explain in detail. Whatever validation errors or application errors that occur, while submitting a form , appear in the top by putting a tr:messages in the top of the form. Now instead of it coming in the top of the form, all the errors need to be shown in a separate dialog window in a bulleted list fashion. Also whatever fields the user has filled up wrongly need to be colored with a different border. I would like to know how to do this. ThanKs Venkat Venkatramanan Viswanathan Technical Leader Thomson Reuters Phone: +91-80-4063 7101 Mobile: +919740984710 venkat.rama...@thomsonreuters.com thomsonreuters.com From: felix.bec...@t-systems.com [mailto:felix.bec...@t-systems.com] Sent: Wednesday, December 17, 2008 10:18 PM To: users@myfaces.apache.org Subject: RE: Trinidad : dialog for error messages Hi Thomson, which kind of errors? If the errors occur in the invoke application phase, it shouldn't be a problem – if the errors occur at the render phase, its more difficult to handle them. Felix From: venkat.rama...@thomsonreuters.com [mailto:venkat.rama...@thomsonreuters.com] Sent: Wednesday, December 17, 2008 3:21 PM To: users@myfaces.apache.org Subject: Trinidad : dialog for error messages Hi We have been using Trinidad for quite some time. Now our users are demanding that the if errors occur after submitting a form they need to be shown in separate popup (currently it is displaying in the same page in the top) and the fields that have errors should be marked differently. Like giving a red border around the field. Is it possible to achieve these using Trinidad? Can some one help me out Thanks Venkat Venkatramanan Viswanathan Technical Leader Thomson Reuters Phone: +91-80-4063 7101 Mobile: +919740984710 venkat.rama...@thomsonreuters.com thomsonreuters.com
Re: required=true on partial submit?
Look at tr:subForm On Wed, Dec 17, 2008 at 2:57 AM, felix.bec...@t-systems.com wrote: Hi, On one of my pages I've got 2 tr:selectOneChoice boxes – box A and box B. The content of box B depends on the selection of box B. I'm using autoSubmit=true for box A and partialTriggers=boxA for box B. This works perfect unless I'm setting the required=true attribute for box B. That causes a validation of the box B selection when a change in box A occurs. Seperating both boxes with tr:subforms doesn't work with the partialTriggers, so this is no solution. Am I right in thinking that I can't use the required=true attribute for box B or did I overlook other ways to implement this? When it's not possible to set the required=true for box B this is no problem for me because I can validate all fields later, but I want to know it because I don't like smelling code. Thanks you and best regards Felix
Re: [trinidad]help extendind selectmanycheckbox
No idea, something wrong with your classpath or using the wrong JDK? That methods exists, so I can only assume that it is a build environment problem. On Wed, Dec 3, 2008 at 11:23 AM, alvaro tovar [EMAIL PROTECTED] wrote: hello /home/alvaro/NetBeansProjects/proyectoNuevo/redi5e/redi5E-war/src/java/com/redi5/components/SelectManyCheckBoxRedi5Tag.java:29: cannot find symbol symbol : method setIntegerProperty(org.apache.myfaces.trinidad.bean.FacesBean,org.apache.myfaces.trinidad.bean.PropertyKey,java.lang.String) location: class com.redi5.components.SelectManyCheckBoxRedi5Tag setIntegerProperty(bean, CoreSelectManyCheckBoxRedi5.LAYOUT_WIDTH, _layoutWidth); i prove with trinidad-1.2.11-SNAPSHOT regards 2008/12/2 Andrew Robinson [EMAIL PROTECTED] Can't see the problem. Can you post the full compiler error? On Mon, Dec 1, 2008 at 9:40 AM, alvaro tovar [EMAIL PROTECTED] wrote: hello thanks for your answers look my code package com.redi5.components; import org.apache.myfaces.trinidad.bean.FacesBean; import org.apache.myfaces.trinidadinternal.taglib.core.input.CoreSelectManyCheckboxTag; /** * * @author alvaro */ public class SelectManyCheckBoxRedi5Tag extends CoreSelectManyCheckboxTag { private String _layoutWidth; final public void setReadOnly(String layoutWidth) { _layoutWidth = layoutWidth; } @Override protected void setProperties( FacesBean bean) { super.setProperties(bean); setIntegerProperty(bean, CoreSelectManyCheckBoxRedi5.LAYOUT_WIDTH, _layoutWidth); } @Override public void release() { super.release(); _layoutWidth=null; } @Override public String getComponentType() { throw new UnsupportedOperationException(Not supported yet.); } @Override public String getRendererType() { throw new UnsupportedOperationException(Not supported yet.); } } this is the hierarchy tree CoreSelectBooleanCheckboxTag UIXSelectBooleanTag UIXEditableValueTag UIXValueTag UIXComponentTag but my class not compile, maybe is that the source that i have not correspond with the jar of trinidad trinidad-impl-1.2.11-SNAPSHOT.jar trinidad-api-1.2.11-SNAPSHOT.jar 2008/11/30 Andrew Robinson [EMAIL PROTECTED] Sub classes are allowed to call protected methods, what is the issue? On Sat, Nov 29, 2008 at 9:42 AM, alvaro tovar [EMAIL PROTECTED] wrote: hello i am trying of add a parameter layoutWidth, y do this create a class that extends CoreSelectManyCheckboxTag public class SelectManyCheckBoxRedi5Tag extends CoreSelectManyCheckboxTag{ private String _layoutWidth; final public void setReadOnly(String layoutWidth) { _layoutWidth = layoutWidth; } @Override protected void setProperties( FacesBean bean) { super.setProperties(bean); super.setIntegerProperty(bean, CoreSelectManyCheckBoxRedi5.LAYOUT_WIDTH, _layoutWidth); } @Override public void release() { super.release(); _layoutWidth=null; } } but the method setIntegerProperty is in UIComponentTag and is protected. some one can tell me some thing
Re: [trinidad]help extendind selectmanycheckbox
Can't see the problem. Can you post the full compiler error? On Mon, Dec 1, 2008 at 9:40 AM, alvaro tovar [EMAIL PROTECTED] wrote: hello thanks for your answers look my code package com.redi5.components; import org.apache.myfaces.trinidad.bean.FacesBean; import org.apache.myfaces.trinidadinternal.taglib.core.input.CoreSelectManyCheckboxTag; /** * * @author alvaro */ public class SelectManyCheckBoxRedi5Tag extends CoreSelectManyCheckboxTag { private String _layoutWidth; final public void setReadOnly(String layoutWidth) { _layoutWidth = layoutWidth; } @Override protected void setProperties( FacesBean bean) { super.setProperties(bean); setIntegerProperty(bean, CoreSelectManyCheckBoxRedi5.LAYOUT_WIDTH, _layoutWidth); } @Override public void release() { super.release(); _layoutWidth=null; } @Override public String getComponentType() { throw new UnsupportedOperationException(Not supported yet.); } @Override public String getRendererType() { throw new UnsupportedOperationException(Not supported yet.); } } this is the hierarchy tree CoreSelectBooleanCheckboxTag UIXSelectBooleanTag UIXEditableValueTag UIXValueTag UIXComponentTag but my class not compile, maybe is that the source that i have not correspond with the jar of trinidad trinidad-impl-1.2.11-SNAPSHOT.jar trinidad-api-1.2.11-SNAPSHOT.jar 2008/11/30 Andrew Robinson [EMAIL PROTECTED] Sub classes are allowed to call protected methods, what is the issue? On Sat, Nov 29, 2008 at 9:42 AM, alvaro tovar [EMAIL PROTECTED] wrote: hello i am trying of add a parameter layoutWidth, y do this create a class that extends CoreSelectManyCheckboxTag public class SelectManyCheckBoxRedi5Tag extends CoreSelectManyCheckboxTag{ private String _layoutWidth; final public void setReadOnly(String layoutWidth) { _layoutWidth = layoutWidth; } @Override protected void setProperties( FacesBean bean) { super.setProperties(bean); super.setIntegerProperty(bean, CoreSelectManyCheckBoxRedi5.LAYOUT_WIDTH, _layoutWidth); } @Override public void release() { super.release(); _layoutWidth=null; } } but the method setIntegerProperty is in UIComponentTag and is protected. some one can tell me some thing
Re: Dynamic ID with el not working
This is not 100% true. In JSF 1.2, non-deferred EL expressions may be used in IDs: my:component id=${someVar} / Just remember that ${} is evaluated during JSP tag execution, not during the component tree traversal. -Andrew On Wed, Nov 26, 2008 at 2:35 AM, Matthias Wessendorf [EMAIL PROTECTED] wrote: Hi, EL is not supported on ID: (The Trinidad doc (true for JSF at all) is more specific on this: http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_inputText.html ) On Wed, Nov 26, 2008 at 10:26 AM, jhomuth [EMAIL PROTECTED] wrote: Hello List, it's strange, I wanted to ask the same question at the same moment. I also try to set the id from a controller value via EL. But the EL ist not treated like EL but rather than a String, because I always get the message java.lang.IllegalArgumentException: component identifier's first character must be a letter or an underscore ('_')! But it is # That's why I quess the Expression (tom:selectManyListbox id=#{TargetSystemConfigurationController.availableListID} binding=#...) will be treated like a string. Is there any solution for this. Johannes [EMAIL PROTECTED] wrote: Good morning, I have a datatable wich use a list of simple object. When i use an outputtext inside the table like this: h:outputText value=#{myVar.name} it's working. When I try to use the same property (or another one) for the id of the component the text is correctly outputted but I get an empty id (I put a _ in front to don't get exception): h:outputText id=_#{myVar.name} value=#{myVar.name} ID NOT WORKING, empty h:outputText id=_#{myVar.id} value=#{myVar.name} ID NOT WORKING, empty Without underscore in front i get directly an exception: h:outputText id=#{myVar.name} value=#{myVar.name} h:outputText id=#{myVar.id} value=#{myVar.name} -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: [trinidad]help extendind selectmanycheckbox
Sub classes are allowed to call protected methods, what is the issue? On Sat, Nov 29, 2008 at 9:42 AM, alvaro tovar [EMAIL PROTECTED] wrote: hello i am trying of add a parameter layoutWidth, y do this create a class that extends CoreSelectManyCheckboxTag public class SelectManyCheckBoxRedi5Tag extends CoreSelectManyCheckboxTag{ private String _layoutWidth; final public void setReadOnly(String layoutWidth) { _layoutWidth = layoutWidth; } @Override protected void setProperties( FacesBean bean) { super.setProperties(bean); super.setIntegerProperty(bean, CoreSelectManyCheckBoxRedi5.LAYOUT_WIDTH, _layoutWidth); } @Override public void release() { super.release(); _layoutWidth=null; } } but the method setIntegerProperty is in UIComponentTag and is protected. some one can tell me some thing
Re: commandbutton action not called
As for the lifecycle: put a breakpoint in the source code. For messages, also include a global messages component. Just put a breakpoint on the renderResponse method in the FacesContextImpl. On Tue, Nov 25, 2008 at 9:20 AM, alvaro tovar [EMAIL PROTECTED] wrote: hello thanks for your answer, i have message for all components, maybe is there a way to know more about this exiting from lifecycle.execute ? thanks 2008/11/25 Guy Bashan [EMAIL PROTECTED] maybe validation fails. try putting messages tag or adding immediate=true. Sent from my iPhone On 25/11/2008, at 01:14, alvaro tovar [EMAIL PROTECTED] wrote: hello i have a commandbutton action that is not called [DEBUG] 24 nov 05:58:23.091 PM httpSSLWorkerThread-8126-1 [org.apache.myfaces.lifecycle.LifecycleImpl] exiting from lifecycle.execute in RESTORE_VIEW 1 because getRenderResponse is true from one of the after listeners i am thinking maybe is this a reason but i don't kwon what's is this, some one know what is? regards
Re: [Trinidad] Configuration of Trinidad
Easiest way is to get the trinidad-demo and trinidad-blank applications. They are in SVN (maybe someone knows where to download them from?). They are already setup and working, so you can just start with them and modify them. -Andrew On Thu, Nov 20, 2008 at 4:39 PM, Lars Vogel [EMAIL PROTECTED] wrote: Hi, can someone recommend a resent description on the required setup for using Apache Trinidad? I tried the following tutorial / descriptions: http://myfaces.apache.org/trinidad/devguide/configuration.html - Does not contain a full example setup http://www.free-jsf-components.net/install_guides/myfaces-trinidad.html - Seem outdate The following was almost correct: https://www6.software.ibm.com/developerworks/education/os-ag-jsf4/section4.html I only had to use org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl instead of org.apache.myfaces.trinidadinternal.webapp.FacesFilter as suggested in the article. But if I do the described setup then I receive an runtime error in my JSF application. The error is the following: http://www.vogella.de/articles/ApacheMyFaces/article.html#apachetrinidad_problem The above link lists also my setup for faces-config.xml ,web.xml and trinidad-config.xml in case you want to check. Can someone give me an indication what the problem is or point me to a tutorial which describes the correct setup? Best regards, Lars
[OT] Interesting blog on Sun layoffs and possible affect on Java
For those that care, here is an article I found interesting on the subject of Sun laying off some of their workforce http://broadcast.oreilly.com/2008/11/suns-layoffs-who-is-anil-gadre.html -Andrew
Re: [Trinidad] tr:messages with multiline text
use \n and use a css style on the messages with white-space: pre -Andrew On Fri, Nov 14, 2008 at 12:33 AM, Bruno Marti [EMAIL PROTECTED] wrote: Is there a way to outline a multiline message in tr:messages or tr:message. I've got several user error messages which should have multiline style. Following resource bundle entries I've tried but not worked: my.message=First line \n Second line my.message=First line br/ Second line my.message=pFirst line br/ Second line/p Any solutions? (myfaces 1.1.5, trinidad 1.0.8) -- View this message in context: http://www.nabble.com/-Trinidad--tr%3Amessages-with-multiline-text-tp20495880p20495880.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [TRINIDAD]What happens if we use renderer-type of trinidad but render-kit class of ajax4jsf
A4J and Trinidad are not compatible, at least it is not supported. If you choose to use both, you do so at your own risk. -Andrew On Tue, Nov 11, 2008 at 11:55 PM, dushyant agarwal [EMAIL PROTECTED] wrote: Hi, I have a situation in which I am using frames and am getting a View expired exception after some time in the non working frames. To remove this I used the richfaces-impl.jar file in my jBoss server, which resolved the problem. But the view root is now coming as an instance of org.ajax4jsf.components.AjaxViewRoot. I studied the faces-config.xml of this jsr and found that the renderer- type for this renderer class was different than that in trinidad-impl. Though there is no difference in the behavior, I want to know what changes would it make to the default behavior of the view root if I do it. Thanks, Dushyant Add more friends to your messenger and enjoy! Invite them now.
Re: [TRINIDAD] Escape HTML characters in tr:message
Skin the component set the white-space: pre on the element to correctly show the \n? On Sat, Nov 1, 2008 at 2:00 PM, Amaris Nieves [EMAIL PROTECTED] wrote: I'd like to be able to have a newline in the message displayed by a tr:message component but this component does not have the escape attribute. How can I display it? I tried with br and the newline \n but the HTML output does not show any line break. Thanks.
Re: PPR, dialog and validation problem
Can you post a full jspx page, or even better, a unified diff file that can be used to reproduce the issue on the trinidad trunk_1.2.x trididad-demo project? On Thu, Oct 30, 2008 at 8:14 AM, Tomas Havelka [EMAIL PROTECTED] wrote: All inputs or all components? I've tried to enclose all inputs with the subform with default attribute as you proposed before, but with the same result. Maybe Facelets broke this. I'm using Facelets 1.1.14 and Trinidad 1.0.9. Andrew Robinson-5 wrote: Make sure that all of your input components are in at least 1 subform. That is why I showed the default subform at the top of the tree. -Andrew On Thu, Oct 30, 2008 at 7:26 AM, Tomas Havelka [EMAIL PROTECTED] wrote: Well, I've tried this solution before you proposed it to me, but I'm still getting validation error within all inputs in page (enclosed with common tr:form), which are required :( arobinson74-2 wrote: It has been a long time since I have used tr:subform, but I think this should work: tr:subform default=true id=mainSubform tr:panelLabelAndMessage for=streetText label=Street/Number showRequired=true tr:inputText id=streetText simple=true label=Street required=true value=#{oxViewController.applicant.street} partialTriggers=addressLink/ tr:inputText simple=true label=Number columns=5 required=true inlineStyle=margin-left:3px; value=#{oxViewController.applicant.streetNumber} partialTriggers=addressLink/ f:facet name=end tr:subform id=addressSubform tr:commandLink id=addressLink action=dialog:address partialSubmit=true useWindow=true windowWidth=600 windowHeight=745 shortDesc=Search for address returnListener=#{oxViewController.addressLink_returnListener} tr:image source=#{skinImages['button-lens.gif']}/ /tr:commandLink /tr:subform /f:facet /tr:panelLabelAndMessage tr:inputText label=City value=#{oxViewController.applicant.city} columns=40 required=true partialTriggers=addressLink/ tr:inputText label=Zip value=#{oxViewController.applicant.zip} columns=10 required=true partialTriggers=addressLink/ /tr:subform -- View this message in context: http://www.nabble.com/PPR%2C-dialog-and-validation-problem-tp19801822p20246980.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/PPR%2C-dialog-and-validation-problem-tp19801822p20247849.html Sent from the MyFaces - Users mailing list archive at Nabble.com.