RE: unsubscribe
??? Mario Buonopane Accenture Insurance Services Systems Via C. Colombo 112, 00147 Roma Tel: +39 06 51566543 Mobile: +39 334 6563433 Fax: +39 06 51566550 From: Guy Bashan [mailto:guy.bas...@gmail.com] Sent: 23 dicembre 2008 11.06 To: users@myfaces.apache.org Subject: unsubscribe
BR in FacesMessage
Hi, i need to insert a BR in FacesMessage because i need a single message with multiple lines. How can I do it? Thank in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: How to design a framework for implementing rules in JSF/Spring application
I'm using JBOSS Drools. Ciao Mario -Original Message- From: bansi [mailto:[EMAIL PROTECTED] Sent: 7 agosto 2008 02.58 To: users@myfaces.apache.org Subject: How to design a framework for implementing rules in JSF/Spring application We use JSF 1.2 (MyFaces 1.2.2) in the presentation layer, Spring 2.5.3 in the service layer and Hibernate3.2 as persistence layer. The java application we are building is mostly CRUD but involves tons of business rules which needs to be implemented at both presentation and service layers We are planning to design a business rule framework so that developers can work on individual business rules without stepping on each other and also to prevent redundant implementation of the same business rules . Here are the Goals Solution Goals: • Business rules are implemented in only one piece of code. i.e. Rule is packaged into aunit • Business rules have an consistent, identifiable form. • Rules have to be Abstract • View technology like JSF says I want to createManufacturer(Manufacturer manuf) passing Manufacturer object as parameter. Then the business rule framework should go and fetch the rules to do the job of createManufacturer () and then return the result. • Fetch the Rule based on Target object Is the concrete object on which you are performing the Rule for example Device object Operation Type Is C R U D Validate Proposed Solution: •To have catalog of business rules which will have name of the rulewith parameters and dependencies • To have Rule Context designed in such a way that it goes and fetches the Rule i.e. give me all the Rules from the RuleContext and the client will decide which Rule to Apply. We modeled the business rule framework as a variant of Strategy pattern. But this approach has limitation in the sense it requires Rules to be injected into the Service Layer Spring Beans . Then we looked at other design patterns like Command, Visitor but that doesn’t seems to fit the bill either. Any pointers/suggestions will be greatly appreciated -- View this message in context: http://www.nabble.com/How-to-design-a-framework-for-implementing-rules-in-JSF-Spring-application-tp18862336p18862336.html Sent from the MyFaces - Users mailing list archive at Nabble.com. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: TOMAHAWK-1170
From: Leonardo Uribe [mailto:[EMAIL PROTECTED] Sent: 23 luglio 2008 20.18 To: MyFaces Discussion Subject: Re: TOMAHAWK-1170 On Wed, Jul 23, 2008 at 7:42 PM, [EMAIL PROTECTED] wrote: On Wed, Jul 23, 2008 at 5:50 PM, [EMAIL PROTECTED] wrote: Hi, there is a bug track on JIRA with the key TOMAHAWK-1170 (https://issues.apache.org/jira/browse/TOMAHAWK-1170). Is there any chance this bug will be assigned? I'm receiving the same exception and I don't know how workaround. It could be good if you can attach the exception stack trace, so someone can check the code. Please help me. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. The problem is that the stack trace does not help. Only the Exception message cen help: javax.servlet.jsp.JspException: ServletException in '/menus/menu-flusso-denuncia.jsp': ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa g.java:921) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460) at com.ibm._jsp._template_5F_prototipo._jspx_meth_tiles_insert_3(_template_ 5F_prototipo.java:653) at com.ibm._jsp._template_5F_prototipo._jspx_meth_na_form_0(_template_5F_pr ototipo.java:677) at com.ibm._jsp._template_5F_prototipo._jspx_meth_f_view_0(_template_5F_pro totipo.java:1099) at com.ibm._jsp._template_5F_prototipo._jspService(_template_5F_prototipo.j ava:134) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja va:1068) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja va:1009) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:145) at org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(Shale ApplicationFilter.java:267) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst anceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:130) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterC hain.java:87) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilter Manager.java:771) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilter Manager.java:679) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap per.java:539) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWr apper.java:478) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(G enericServletWrapper.java:122) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handle Request(AbstractJSPExtensionServletWrapper.java:225) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleReque st(AbstractJSPExtensionProcessor.java:278) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq uestDispatcher.java:321) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S ervletExternalContextImpl.java:419) at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.disp atch(JspTilesViewHandlerImpl.java:236) at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.rend erView(JspTilesViewHandlerImpl.java:222) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrappe r.java:108) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst anceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:130) at org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(Shale ApplicationFilter.java:267) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst anceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:130) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil ter.java:147) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
TOMAHAWK-1170
Hi, there is a bug track on JIRA with the key TOMAHAWK-1170 (https://issues.apache.org/jira/browse/TOMAHAWK-1170). Is there any chance this bug will be assigned? I'm receiving the same exception and I don't know how workaround. Please help me. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: TOMAHAWK-1170
On Wed, Jul 23, 2008 at 5:50 PM, [EMAIL PROTECTED] wrote: Hi, there is a bug track on JIRA with the key TOMAHAWK-1170 (https://issues.apache.org/jira/browse/TOMAHAWK-1170). Is there any chance this bug will be assigned? I'm receiving the same exception and I don't know how workaround. It could be good if you can attach the exception stack trace, so someone can check the code. Please help me. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. The problem is that the stack trace does not help. Only the Exception message cen help: javax.servlet.jsp.JspException: ServletException in '/menus/menu-flusso-denuncia.jsp': ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa g.java:921) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460) at com.ibm._jsp._template_5F_prototipo._jspx_meth_tiles_insert_3(_template_ 5F_prototipo.java:653) at com.ibm._jsp._template_5F_prototipo._jspx_meth_na_form_0(_template_5F_pr ototipo.java:677) at com.ibm._jsp._template_5F_prototipo._jspx_meth_f_view_0(_template_5F_pro totipo.java:1099) at com.ibm._jsp._template_5F_prototipo._jspService(_template_5F_prototipo.j ava:134) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja va:1068) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.ja va:1009) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:145) at org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(Shale ApplicationFilter.java:267) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst anceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:130) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterC hain.java:87) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilter Manager.java:771) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilter Manager.java:679) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrap per.java:539) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWr apper.java:478) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(G enericServletWrapper.java:122) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handle Request(AbstractJSPExtensionServletWrapper.java:225) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleReque st(AbstractJSPExtensionProcessor.java:278) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq uestDispatcher.java:321) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S ervletExternalContextImpl.java:419) at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.disp atch(JspTilesViewHandlerImpl.java:236) at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.rend erView(JspTilesViewHandlerImpl.java:222) at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrappe r.java:108) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst anceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:130) at org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(Shale ApplicationFilter.java:267) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst anceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:130) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil ter.java:147) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst anceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh ain.java:130) You think I have to attach that to JIRA track? Regards Mario This message is for the designated recipient only
RE: Creating child automatically
Because there are a high number of developers and I want hide the way to set the value of this kind of checkbox (I use the custom component in table with a checkbox in each row for the multi selection). Mario. From: Guy Bashan [mailto:[EMAIL PROTECTED] Sent: 15 luglio 2008 21.21 To: 'MyFaces Discussion' Subject: RE: Creating child automatically Hi, Why do you need a specific component for this task? Why not simply write the code as is? Guy. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 10:30 AM To: users@myfaces.apache.org Subject: Creating child automatically Hi, i need a custom column that render automatically a check box child. So, what I need is insert, automatically, in the table the tags: t:column t:selectBooleanCheckbox value=#{xxx}/ /t:column inserting just the tag xx:mycol. To do that, I have developed a my custom tag and a my component. The component extends org.apache.myfaces.custom.column.HtmlSimpleColumn and override the encodeBegin in this way: public void encodeBegin(FacesContext context) throws IOException { super.encodeBegin(context); Application app = context.getApplication(); if (this.getChildren()== null || this.getChildren().size() == 0){ UIComponent parent = this.getParent(); if(parent instanceof HtmlDataTable){ HtmlSelectBooleanCheckbox select = (HtmlSelectBooleanCheckbox)app.createComponent(HtmlSelectBooleanCheckbox .COMPONENT_TYPE); select.setValueBinding(value,app.createValueBinding(myvalue)); this.getChildren().add(select); }else { log.warn(Parent component must be a data table of class +HtmlDataTable.class); } } } What I do, I simply add a child with the HtmlSelectBooleanCheckbox just if I don't have any childs. Is this the correct way to that? This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Creating child automatically
Hi, i need a custom column that render automatically a check box child. So, what I need is insert, automatically, in the table the tags: t:column t:selectBooleanCheckbox value=#{xxx}/ /t:column inserting just the tag xx:mycol. To do that, I have developed a my custom tag and a my component. The component extends org.apache.myfaces.custom.column.HtmlSimpleColumn and override the encodeBegin in this way: public void encodeBegin(FacesContext context) throws IOException { super.encodeBegin(context); Application app = context.getApplication(); if (this.getChildren()== null || this.getChildren().size() == 0){ UIComponent parent = this.getParent(); if(parent instanceof HtmlDataTable){ HtmlSelectBooleanCheckbox select = (HtmlSelectBooleanCheckbox)app.createComponent(HtmlSelectBooleanCheckbox .COMPONENT_TYPE); select.setValueBinding(value,app.createValueBinding(myvalue)); this.getChildren().add(select); }else { log.warn(Parent component must be a data table of class +HtmlDataTable.class); } } } What I do, I simply add a child with the HtmlSelectBooleanCheckbox just if I don't have any childs. Is this the correct way to that? This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Value of ValueBinding in action
Hi, I need to know, in my action, the value of a specific HtmlOutputText. In the action I have the HtmlOutputText component and I have its ValueBinding. The getExpressionString() of the ValueBinding return the string setted in my jsp page, for example #{bundle.surname} (setted in a bundle). How can I have the value returned from the bundle surname key? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
[Tomahawk] - Both MyFaces and the RI are on your classpath
Hi, I'm using Tomahawk 1.1.6 on WebSphere 6.1 and does work correctly. But on the log I found: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations. I know that WAS has a JSF 1.1 implementation (Sun implementation) and my application classloader policy is PARENT-LAST. The question is: The log has an ERROR severity, so can this cause some problem? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [Tomahawk] - Both MyFaces and the RI are on your classpath
Sorry Simon, but your response terrifies me! You are talking about of serious problem but on the WIKI there is a paragraph (http://wiki.apache.org/myfaces/Websphere_Installation) describing that the deploy on WAS can be done altering classloader policy. What king of problems you are talking about? At the moment my web application is working wellis just lucky? Thank Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 maggio 2008 15.59 To: MyFaces Discussion Subject: Re: [Tomahawk] - Both MyFaces and the RI are on your classpath [EMAIL PROTECTED] schrieb: Hi, I'm using Tomahawk 1.1.6 on WebSphere 6.1 and does work correctly. But on the log I found: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations. I know that WAS has a JSF 1.1 implementation (Sun implementation) and my application classloader policy is PARENT-LAST. The question is: The log has an ERROR severity, so can this cause some problem? Having both on the classpath *is* a serious problem. You do need to resolve this. Setting the classloader policy cannot solve this problem; that can change which is *first*, but cannot make one of them invisible. So you will need to either remove the websphere implementation, or overwrite it with the myfaces one, or use some websphere-specific feature (if one exists) to make the built-in lib invisible. There is some information on the wiki about configuring various containers. The wiki can be found here: http://wiki.apache.org/myfaces/ Regards, Simon This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [Tomahawk] - Both MyFaces and the RI are on your classpath
Hi Matt, I have done what wiki say: 1) put myfaces jars on WEB-INF/lib 2) deploy the application 3) Alter the module classloader policy to application first but I see the log. Analizing the source code of org.apache.myfaces.shared_impl.config.MyfacesConfig you can see the reason: static { boolean riImplAvailable; try { ClassUtils.classForName(com.sun.faces.application.ApplicationImpl); riImplAvailable = true; } catch (ClassNotFoundException e) { riImplAvailable = false; } RI_IMPL_AVAILABLE = riImplAvailable; } This static block found the class com.sun.faces.application.ApplicationImpl because is present in the com.ibm.ws.webcontainer_2.0.0.jar of WAS container. So doing wiki stuff does not prevent that RI_IMPL_AVAILABLE is true. In getCurrentInstance(..) method there is the code: if(RI_IMPL_AVAILABLE MYFACES_IMPL_AVAILABLE) { log.error(Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.); } That log the message I found. So, are you sure that you don't have same log the first time you invoke JSF in your application? Thanks Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 maggio 2008 16.39 To: users@myfaces.apache.org Subject: RE: [Tomahawk] - Both MyFaces and the RI are on your classpath Hi Mario, I think it is just lucky. We're running myfaces on WebSphere 6.1 and at first we didn't bother configuring the classpath. Some pages loaded fine but others give inexplicable errors that we'd never seen in dev (Tomcat). After reading the wiki page and making some adjustments it works fine. Matt -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 mai 2008 16:16 À : users@myfaces.apache.org Objet : RE: [Tomahawk] - Both MyFaces and the RI are on your classpath Sorry Simon, but your response terrifies me! You are talking about of serious problem but on the WIKI there is a paragraph (http://wiki.apache.org/myfaces/Websphere_Installation) describing that the deploy on WAS can be done altering classloader policy. What king of problems you are talking about? At the moment my web application is working wellis just lucky? Thank Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 maggio 2008 15.59 To: MyFaces Discussion Subject: Re: [Tomahawk] - Both MyFaces and the RI are on your classpath [EMAIL PROTECTED] schrieb: Hi, I'm using Tomahawk 1.1.6 on WebSphere 6.1 and does work correctly. But on the log I found: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations. I know that WAS has a JSF 1.1 implementation (Sun implementation) and my application classloader policy is PARENT-LAST. The question is: The log has an ERROR severity, so can this cause some problem? Having both on the classpath *is* a serious problem. You do need to resolve this. Setting the classloader policy cannot solve this problem; that can change which is *first*, but cannot make one of them invisible. So you will need to either remove the websphere implementation, or overwrite it with the myfaces one, or use some websphere-specific feature (if one exists) to make the built-in lib invisible. There is some information on the wiki about configuring various containers. The wiki can be found here: http://wiki.apache.org/myfaces/ Regards, Simon This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [Tomahawk] - Both MyFaces and the RI are on your classpath
Thanks Simon for your response and sorry for my bad one (now o don't know if use bottom or top...) If I understood well, I don't have any problem because the JSF implementation used by WAS does not define any faces-config.xml and META-INF/services/ (I'm using MyFaces and Tomahawk 1.1.5). So, is normal that I found the log Both MyFaces and the RI are on your classpath because org.apache.myfaces.shared_impl.config.MyfacesConfig check existence of Sun implementation but I don't understand why is logging an error message. In the response you talk about org.apache.myfaces.config.FacesConfigurator class but the lo is of org.apache.myfaces.shared_impl.config.MyfacesConfig. Can you help me to relax? :) At the moment my application is working without problems.what can I do for check existence of any kind of future problems? Thanks in advance Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 maggio 2008 16.51 To: MyFaces Discussion Subject: Re: [Tomahawk] - Both MyFaces and the RI are on your classpath First, please read this: http://www.nabble.com/How-to-reply-to-emails-t3182877.html Now re your question: Hmm..maybe I spoke a little too soon. The problem is that when any JSF implementation starts up, it has to scan the classpath for various configuration files and process them. Processing the configuration files embedded within two different JSF implementations would be very bad. This is what I was thinking of when I said that two implementations in the classpath is really bad. But I see in method org.apache.myfaces.config.FacesConfigurator.feedStandardConfig that it just takes the first config file named standard-faces-config.xml that it finds, and doesn't look any further. So as long as the classloader policy is set right, *that particular config file* should not be a problem. It *will* find any faces-config.xml files that are anywhere in the classpath, and process them all. But hopefully there aren't any of those in the Sun RI (mojarra) implementation. MyFaces Core certainly doesn't have one, just a standard-faces-config.xml. You don't say which version of myfaces core you are using. In the case of 1.1.x, the startup procedure does try to look up META-INF/services/javax.faces.application.ApplicationFactory META-INF/services/javax.faces.context.FacesContextFactory META-INF/services/javax.faces.lifecycle.LifecycleFactory META-INF/services/javax.faces.render.RenderKitFactory which myfaces does not define [1] So if the sun implementation in the higher classloader did define any of these, then things would get really screwed up. There are a number of other possible dangers here. So in short, I'm not *certain* now that things would go wrong. But it would certainly make me nervous having a second JSF implementation still visible in the classpath if this were my production environment... [1] Possibly Myfaces should check whether any resource it looks up comes from a classloader which is not the same as the classloader that the standard-faces-config.xml comes from, and if so then ignore it. That would solve this particular problem. But that isn't the case for the current code (at least as far as I can see). Regards, Simon [EMAIL PROTECTED] schrieb: Sorry Simon, but your response terrifies me! You are talking about of serious problem but on the WIKI there is a paragraph (http://wiki.apache.org/myfaces/Websphere_Installation) describing that the deploy on WAS can be done altering classloader policy. What king of problems you are talking about? At the moment my web application is working wellis just lucky? Thank Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 maggio 2008 15.59 To: MyFaces Discussion Subject: Re: [Tomahawk] - Both MyFaces and the RI are on your classpath [EMAIL PROTECTED] schrieb: Hi, I'm using Tomahawk 1.1.6 on WebSphere 6.1 and does work correctly. But on the log I found: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations. I know that WAS has a JSF 1.1 implementation (Sun implementation) and my application classloader policy is PARENT-LAST. The question is: The log has an ERROR severity, so can this cause some problem? Having both on the classpath *is* a serious problem. You do need to resolve this. Setting the classloader policy cannot solve this problem; that can change which is *first*, but cannot make one of them invisible. So you will need to either remove the websphere implementation, or overwrite it with the myfaces one, or use some websphere-specific feature (if one exists) to make the built-in lib invisible. There is some information on the wiki about configuring various containers. The wiki can be found here: http://wiki.apache.org/myfaces/ Regards, Simon This message is for the designated recipient only and may
RichFaces 3.1.3 and StateManager
Hi, in my application i'm using Myfaces/Tomahawk 1.1.5 and RichFaces 3.1.3. The last one, configure a Phase Listener (phase-listenerorg.ajax4jsf.event.InitPhaseListener/phase-listener) that force to use his StateManager (org.ajax4jsf.application.AjaxStateManager). So, I can use the Myfaces default StateManager (org.apache.myfaces.application.jsp.JspStateManagerImpl). Can this cause some problem to the Myfaces/Tomahawk components? Is there any Myfaces/Tomahawk component that does not work without Myfaces State Manager? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RichFaces 3.1.3 and StateManager
Hi, in my application i'm using Myfaces/Tomahawk 1.1.5 and RichFaces 3.1.3. RichFaces configures a Phase Listener (phase-listenerorg.ajax4jsf.event.InitPhaseListener/phase-listener) that force to use his StateManager (org.ajax4jsf.application.AjaxStateManager). So, I can use the Myfaces default StateManager (org.apache.myfaces.application.jsp.JspStateManagerImpl). Can this cause some problem to the Myfaces/Tomahawk components? Is there any Myfaces/Tomahawk component that does not work without Myfaces State Manager? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Does Trinidad/Tomahawk samples work with websphere 6.1? Please Help
What's your fixpack level? Mario -Original Message- From: Murtaza Goga [mailto:[EMAIL PROTECTED] Sent: 30 aprile 2008 16.07 To: MyFaces Discussion Subject: RE: Does Trinidad/Tomahawk samples work with websphere 6.1? Please Help Not sure what your error is, but you might want to consider setting the classloader on the web module to PARENT_LAST. -Original Message- From: Nutulapati, Krishna [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 6:49 PM To: MyFaces Discussion Subject: Does Trinidad/Tomahawk samples work with websphere 6.1? Please Help Hello All, Can any of you suggest whether you used/developed Trinidad/Tomahawk samples tested on websphere6.1. I'm unable to run even a single trinidad/tomahawk samples on websphere6.1... If you guys having any success Please update me. If you update with a small sample working in websphere6.1, it would be indeed a gr8 help. Thanks Guys, Krishna. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [orchestra] Question about orchestra
Simon, thank for the response. I tried to read the documentation but I don't really anderstand what Orchestra do. I understood that Orchestra give the possibility to define a Managed Bean with a scope Conversation. But how can start a conversation? Sorry if the answer is in some doc I did not read or understand! Thanks in advance Mario -Original Message- From: simon [mailto:[EMAIL PROTECTED] Sent: 24 aprile 2008 08.19 To: MyFaces Discussion Subject: Re: [orchestra] Question about orchestra On Wed, 2008-04-23 at 21:50 +0200, [EMAIL PROTECTED] wrote: Hi, in my application I'm using Shale basic dialog manager and I need to have two or more active dialogs on differents windows at same time. Now, Shale does not work because it can manage just one dialog at the time. Do I have any chance to use Orchestra to modify Shale and obtain the expected result? I don't know a lot about Shale, so cannot offer any advice there. Orchestra definitely does support multiple conversations at the same time. Regards, Simon This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [Orchestra] Explicit conversation starting and nested conversations
Hi, I have an application using a Managed Bean with scope HttpSession to store informations. My customer want use IE Tabs or more browser windows to use the same function simultaneously. For axample, suppose a Call Centre to manage Claims. The user is inserting data for a Claim reading from a paper, receive a call and start to insert a new Claim in a new browser window (or tab). At the moment I have two browser using the same HttpSession, the same function and same shared data and my application does not work! What I understood is that with Orchestra I can define a Managed Bean with scope Conversation to store data but I need that the two windows have two differents Converstion ID and, obviously, two separate instande of the same Managed Bean used to store conversation data. Ciao Mario -Original Message- From: Mario Ivankovits [mailto:[EMAIL PROTECTED] Sent: 1 aprile 2008 21.11 To: MyFaces Discussion Subject: Re: [Orchestra] Explicit conversation starting and nested conversations Hi! Just to be clear, what you're saying is that you can't use the same view in more than one conversation at a time? At the moment: yes! As I wrote, this is something we will allow in the near future, but it would require to have a page-flow configuration. Hmmm probably the new refactored conversationContext will allow it programmatically too, not sure yet. Anyway, I wonder why this is such an important feature ... As I wrote, I think most cases can work with nested-conversation-emulation (tm ;-) ) and that will be much better in terms of memory usage - and also lowers the chance to work with stale objects if these conversations are bound to a persistence context. Can you please outline some use-cases so we can put them in consideration about how to solve that? Ciao, Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [Orchestra] Explicit conversation starting and nested conversations
Thanks a lot Mario. So, next step for me is following: I'm using Shale Dialog Manager that store dialog data in HttpSession in a Managed Bean with scope session. I don't know if I understood very well, but I'm going to fix Shale to store data in the current conversationContext. So I can have same dialog in differents windows. Do you think I have a chance of success? ( :) ) Thanks in advance Mario -Original Message- From: Mario Ivankovits [mailto:[EMAIL PROTECTED] Sent: 24 aprile 2008 15.03 To: MyFaces Discussion Subject: Re: [Orchestra] Explicit conversation starting and nested conversations Hi! The user is inserting data for a Claim reading from a paper, receive a call and start to insert a new Claim in a new browser window (or tab). At the moment I have two browser using the same HttpSession, the same function and same shared data and my application does not work! For this, with Orchestra, you have to have an outputLink e.g. enter new claim which is surrounded by o:separateConversationContext. This link must have a target= (or any other trick) to open a new browser window. In this separate window then Orchestra will start a new conversationContext where you can have the exact same conversations running but with a different set of data. With Orchestra the scopes look like something like this: application-session-conversationContext-conversations Even if the conversation name is enterClain, this conversation is separated between the conversationContexts. separateConversationContext does nothing else then stripping the conversationContext URL parameter from the URL, forcing Orchestra to start a new context. Ciao, Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Question about orchestra
Hi, in my application I'm using Shale basic dialog manager and I need to have two or more active dialogs on differents windows at same time. Now, Shale does not work because it can manage just one dialog at the time. Do I have any chance to use Orchestra to modify Shale and obtain the expected result? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
[orchestra] Question about orchestra
Hi, in my application I'm using Shale basic dialog manager and I need to have two or more active dialogs on differents windows at same time. Now, Shale does not work because it can manage just one dialog at the time. Do I have any chance to use Orchestra to modify Shale and obtain the expected result? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: MyFaces and templates
I'm using successfully Tiles Integration... Mario -Original Message- From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] Sent: 8 febbraio 2008 12.08 To: MyFaces Discussion Subject: Re: MyFaces and templates Thanks for the hints. Ognjen Matthias Wessendorf wrote: Hi, On Feb 8, 2008 11:14 AM, Martin Marinschek [EMAIL PROTECTED] wrote: Hi Ognjen, use Facelets, Shale-Clay or JSF-Templating. using Facelets is almost safe, since lot of people (not only here) are using it. Facelets / JSF-Templating also inspire the JSF.NEXT release -M regards, Martin On 2/8/08, Ognjen Blagojevic [EMAIL PROTECTED] wrote: Hi all, Is there an integrated templating solution for MyFaces? Or one should use independant framework like Facelets? Regards, Ognjen -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: form tag !
I think that the answer is No. You have to set the action on your button or event (onchange) Mario -Original Message- From: deathstar64 [mailto:[EMAIL PROTECTED] Sent: 5 febbraio 2008 11.35 To: users@myfaces.apache.org Subject: h:form tag ! Hello, I am using the tag h:form supplied by myfaces to produce an html form. But I want to give a specific action that the form should have when it is rendered. But myFaces gives an ..automatic one when it renders the component. Any thoughts on that? Thanks, Antony -- View this message in context: http://www.nabble.com/%3Ch%3Aform%3E-tag-%21-tp15287059p15287059.html Sent from the MyFaces - Users mailing list archive at Nabble.com. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Datascroller lost last visited page
Hi, I have a problem with t:dataScroller. Whe I go from 1 page to an other does work and and datascroller show the current page. When I call an action on the same page the datascroller restart from page number 1. Can anyone help me? Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
R: Datascroller lost last visited page
Do i have to use component binding ? because the value of my datatable is setted to a sesson scope bean. Thanks Mario Da: Christopher Cudennec [mailto:[EMAIL PROTECTED] Inviato: mar 18/12/2007 17.49 A: MyFaces Discussion Oggetto: Re: Datascroller lost last visited page Hi Mario, sounds like you bean is request scoped. Either use a session scoped bean or use t:saveState. Cheers, Christopher [EMAIL PROTECTED] schrieb: Hi, I have a problem with t:dataScroller. Whe I go from 1 page to an other does work and and datascroller show the current page. When I call an action on the same page the datascroller restart from page number 1. Can anyone help me? Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.2/1184 - Release Date: 14.12.2007 11:29 This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. winmail.dat
How know witch data in changed
Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: How know witch data in changed
Hi Cheers, but if a componenet already has a ValueChangeListener setted by the programmer for other reasons? The new ValueChangeListener si added or replace existings? Thank, Mario -Original Message- From: Cagatay Civici [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 14.50 To: MyFaces Discussion Subject: Re: How know witch data in changed Hi, A phaselistener may work here, in after phase of restore view, traverse the component tree, if the component is an editablevalueholder, cast the component to editablevalueholder and add the valuechangelistener by addValueChangeListener or setValueChangeListener. A valuechangelistener implementation needs a processValueChange method or it can be a method binding, in your case the first option is a better alternative See editableValueHolder for more info. Cheers, Cagatay Civici [EMAIL PROTECTED] ps3 network id : facescontext On Nov 12, 2007 3:06 PM, [EMAIL PROTECTED] wrote: Is there a way to set the same ValueChangeListener to all component of all view without specific code in the page? I don't want leave my programmers manage the logic to know witch component is changed, because I need to managed this kind of problem in the framework code. Any suggestions? Thanks, M. From: Gerhard Petracek [mailto:[EMAIL PROTECTED] Sent: 12 novembre 2007 13.34 To: MyFaces Discussion Subject: Re: How know witch data in changed hello mario, sounds like you are searching for the mechanism of ValueChangeListeners. regards, gerhard 2007/11/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello, I need to know witch data of a view is changed. Is there a way to do that with no specific code? I'm going to do it in a PhaseListener that compare data of each component before and after apply Request phase. What do you think? Any suggestion is Appreciated. Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
How know current outcome
Hello, is there a way to know, in a PhaseListener, the current outcome invoked by the user without implements a my NavigationHandler? Thanks in advance, Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Myfaces/Tomahawk on IBM WebSphere Portal Server 6
I'm just starting a new project using WAS Portal Server and we are deciding wich jsf library to use. What's the version of your WebSphere? 6.0.x or 6.1.x? Thanks Mario From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 4 ottobre 2007 20.28 To: MyFaces Discussion Subject: Re: Myfaces/Tomahawk on IBM WebSphere Portal Server 6 We are using following MyFaces version 1.1.5 Tomhawk version 1.1.5 Portlet class - org.apache.myfaces.portlet.MyFacesGenericPortlet So are you saying you have a MyFaces/Tomhawk application that is running without any issues on Websphere Portal 6 ? What exact portal 6 fixpack are you using ? We initially were not even able to install the app on Websphere . Then the consultant came in upgraded our fixpack . That resolved half the problem , then we found out the tomhawk java script is not working . For that he made a hack in StreamingAddResource class to get the javascript working . Now , our next problem is this duplicate client id issue . It would be very nice of you if you can send in a example application for Websphere Portal 6 using Myfaces/Tomahawk . Please include a tag using javascript , example t:inputCalendar or t:popup Thanks Shipra Jain Bernhard Huemer [EMAIL PROTECTED] 10/04/2007 01:58 PM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Re: Myfaces/Tomahawk on IBM WebSphere Portal Server 6 Hello, which version of MyFaces and which portlet bridge are you using? I'm just asking as I didn't face those exceptions. Perhaps, if I've got time left on the weekend, I'll create an example project (sort of archetype project). regards, Bernhard On 10/04/2007 +0200, [EMAIL PROTECTED] wrote: We had tough time . Then finally we had to hack My Faces ( with help of IBM consultant ) to make it somewhat work . Of particular note IBM support is useless . You have to pay them to get a consultant. Still getting duplicate clientId exceptions , due to which page renders incorrectly when visited again in same session . What stage are you at ? What is the error you are getting? If someone have any solution to this , please let us know. Shipra Jain *[EMAIL PROTECTED]* 10/04/2007 09:36 AM Please respond to MyFaces Discussion users@myfaces.apache.org To users@myfaces.apache.org cc Subject Myfaces/Tomahawk on IBM WebSphere Portal Server 6 Hi, is there any one have used successfully Myfaces/Tomahawk on IBM WebSphere Portal Server 6? Regards Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Myfaces/Tomahawk on IBM WebSphere Portal Server 6
Hi, is there any one have used successfully Myfaces/Tomahawk on IBM WebSphere Portal Server 6? Regards Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Problem setting disabledStyleClass on menu item of jscookMenu
Hi, I'm using t:jscookMenu with t:navigationMenuItems child. All MenuItem are created by a managed bean that set disabledStyleClass of each NavigationMenuItem to a myStyle string. The problem is that when the menu is rendered, I have a disabled menu item but semme don't use the disabledStyleClass setted. What is wrong? Help me please... Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Problem with replaceIdWithLabel
Hi, I'm using replaceIdWithLabel attribute in t:messages but the validation messages does not show the label (show the id). I'm using tiles: t:outputLabel for=dataSinistro value=#{bundle.dataSinistro} / t:inputCalendar id=dataSinistro value=#{ricerche$ricercaPolizzePage.dataSinistro} required=true / t:message for=dataSinistro replaceIdWithLabel=true/ na:messages id=messageList2 replaceIdWithLabel=true showSummary=true showDetail=true globalOnly=false/ I have tried to debug HtmlMessageRenderer.findInputLabel method, and I see that when execute this step: MessageLabelInfo info = ((MessageLabelInfo)outputLabelMap.get(inputClientId)); The value of info.getText() is empty string (). Is there any one can help me? Thanks Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Problem with replaceIdWithLabel
Probably I found the problem: I have a main tile that use the t:messages tag before the tile:insert of the page generating the messages. When the first time the method getOutputLabelMap of HtmlMessageRenderer is called, does not resolve the value. If I move the t:messages after the tile:insert does work correctly. May be a bug? Regards Mario From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 10 luglio 2007 13.33 To: users@myfaces.apache.org Subject: Problem with replaceIdWithLabel Hi, I'm using replaceIdWithLabel attribute in t:messages but the validation messages does not show the label (show the id). I'm using tiles: t:outputLabel for=dataSinistro value=#{bundle.dataSinistro} / t:inputCalendar id=dataSinistro value=#{ricerche$ricercaPolizzePage.dataSinistro} required=true / t:message for=dataSinistro replaceIdWithLabel=true/ na:messages id=messageList2 replaceIdWithLabel=true showSummary=true showDetail=true globalOnly=false/ I have tried to debug HtmlMessageRenderer.findInputLabel method, and I see that when execute this step: MessageLabelInfo info = ((MessageLabelInfo)outputLabelMap.get(inputClientId)); The value of info.getText() is empty string (). Is there any one can help me? Thanks Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Using displayValueOnly on selectBooleanCheckbox
I'm using displayValueOnly=true on selectBooleanCheckbox and I show the value true or false on the view. Is there a way to display this value decoding this value in yes and no or something else? Regards Mario Buonopane Accenture Insurance Services Systems Via C. Colombo 112, 00147 Roma Tel: +39 06 51566543 Mobile: +39 334 6563433 Fax: +39 06 51566550 This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Using displayValueOnly on selectBooleanCheckbox
OK, sorry for very stupid question. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 4 luglio 2007 15.33 To: users@myfaces.apache.org Subject: Using displayValueOnly on selectBooleanCheckbox I'm using displayValueOnly=true on selectBooleanCheckbox and I show the value true or false on the view. Is there a way to display this value decoding this value in yes and no or something else? Regards Mario Buonopane Accenture Insurance Services Systems Via C. Colombo 112, 00147 Roma Tel: +39 06 51566543 Mobile: +39 334 6563433 Fax: +39 06 51566550 This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Change visibility dinamically
I'm sorry but I'm trying this solution and I'm receiving this exception: [27/06/07 18.26.04:356 CEST] 0028 ServletWrappe E SRVE0068E: Impossibile richiamare il metodo service() per il servlet /template/template_prototipo.jsp. Eccezione generata : java.lang.IllegalStateException: Client-id : scroll_1first is duplicated in the faces tree. Component : content:formRicercaPol:scroll_1first, path: {Component-Path : [Class: org.apache.shale.view.faces.ShaleViewRoot,ViewId: /ricerche/ricercaPolizze.jsp][Class: javax.faces.component.UINamingContainer,Id: content][Class: prova.MyHtmlForm,Id: formRicercaPol][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: tabella1][Class: org.apache.myfaces.custom.datascroller.HtmlDataScroller,Id: scroll_1][Class: javax.faces.component.html.HtmlCommandLink,Id: scroll_1first]} at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicate Ids(JspStateManagerImpl.java:329) at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicate Ids(JspStateManagerImpl.java:341) What I have done is override encodeBegin and encodeEnd of javax.faces.HtmlForm component in this way: public void encodeBegin(FacesContext context) throws IOException { this.oldResponseWriter = context.getResponseWriter(); ResponseWriter newResWri = new DummyResponseWriter(); context.setResponseWriter(newResWri); super.encodeBegin(context); } public void encodeEnd(FacesContext context) throws IOException { context.setResponseWriter(this.oldResponseWriter); super.encodeBegin(context); super.encodeChildren(context); super.encodeEnd(context); } Please help me Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 21 maggio 2007 13.18 To: users@myfaces.apache.org Subject: RE: Change visibility dinamically I have tested this solution and does work! Any one feel something wrong in this solution? Please send me some feedback to the solution. Regards Mario Buonopane -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Weber Sent: 28 febbraio 2007 12.26 To: MyFaces Discussion Subject: Re: Change visibility dinamically You can overwite encodeBegin AND encodeEnd doing the following: in encodeBegin: backup and replace the responseWriter in encodeEnd: throw away the replaced responseWriter, do your rendered stuff reset the backuped original responseWriter do the original encodeBegin, encodeChildren(), and the original encodeEnd() again. This should do render and create the ComponentTree, discard the result of rendering, do your stuff, rerender the uiTree. Regards, Volker 2007/2/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: Yes I agree. Could I have a chance to hook if I use a my implementation of UIViewRoot overriding encodeBegin method? Regards, Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Weber Sent: 28 febbraio 2007 09.48 To: MyFaces Discussion Subject: Re: Change visibility dinamically Hi, in jsf 1.1 with jsp (don't know how it is in faclets) the component creation is done while rendering, so there is no chance to hook in between. Regards, Volker 2007/2/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: I have tested before render response but does'nt work because, the first time I call the page, in befer render response phase the view root is empty. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: 27 febbraio 2007 23.50 To: MyFaces Discussion Subject: Re: Change visibility dinamically On 2/27/07, Volker Weber [EMAIL PROTECTED] wrote: 2007/2/27, Craig McClanahan [EMAIL PROTECTED]: On 2/27/07, Volker Weber [EMAIL PROTECTED] wrote: The places where the rendered flag is referenced are actually: * In Apply Request Values ... decoding of request parameters will not occur if rendered (or visible) is set to false. also in processValidations and processUpdates, both are skiped if rendred is set to false. * In Render Response ... rendering will be completely skipped if rendered is set to false. In between these times, the rendered property is most likely not being referenced, so changes are safe. I don't think you get the expected results if you change on other places than between after updateModel and before renderResponse. In case of validation/conversion errors all of them exept before renderResponse are skipped. Good catch ... I forgot to check the processXxxx methods for those phases. So, the advice that before render response seems like the point to change the value stands. Regards, Volker Craig This message is for the
Qeestion about jsf
Hi, I have a question about the JSF mechanism used to set a component: If I have to jars both defining: component component-typejavax.faces.ViewRoot/component-type component-classxxx.myClassXXX/component-class /component Witch is the component type used for ViewRoot? May be depends on the classloader order used to load jars? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Qeestion about jsf
Hi Bryan, i don't have any error but the question is: I have two jar in WEB-INF/lib j1.jar and j2.jar. Both have a META-INF directory with a faces.config.xml. The faces.config.xml of j1.jar contains the definition: component component-typejavax.faces.ViewRoot/component-type component-classj1.MyViewRoot1/component-class /component And j2.jar component component-typejavax.faces.ViewRoot/component-type component-classj2.MyViewRoot2/component-class /component So, witch is the javax.faces.ViewRoot component used by JSF? Mario From: Bryan Basham [mailto:[EMAIL PROTECTED] Sent: 4 giugno 2007 16.24 To: MyFaces Discussion Subject: Re: Qeestion about jsf Hello Mario, In principle, you are doing the right thing by declaring the component-class for an existing component type in the faces-config file. So, I cannot tell from your message what is going wrong. Can you send us the error message? Also, be warned that it is not trivial to use a custom component for the view root. I tried this a few weeks ago and failed to get JSF to recognize my custom view root component *and* to have it behave like a view root. I only tried a few hours, but decided it was not worth my effort. However, if you are successful, I would *love* to hear how you did it. -Bryan [EMAIL PROTECTED] wrote: Hi, I have a question about the JSF mechanism used to set a component: If I have to jars both defining: component component-typejavax.faces.ViewRoot/component-type component-classxxx.myClassXXX/component-class /component Witch is the component type used for ViewRoot? May be depends on the classloader order used to load jars? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Disabling items of HtmlPanelNavigationMenu
Hi, I'm using the HtmlPanelNavigationMenu to render a vertical panel navigation. I have a MenuItem A with a child A1 and I need to disable A but enable A1. If I disable A1 the component disable also A. Is there any way to do what I need? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: I need to override the HtmlNavigationMenuRenderer
Thanks, but the question is: I have analyzed the code of HtmlNavigationMenu and I didn't find a point to override where to insert my logic to modify attibutes of items (for example disable a specific item) before render it. I hope my question is clear Mario -Original Message- From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent: 24 maggio 2007 18.50 To: MyFaces Discussion Subject: Re: I need to override the HtmlNavigationMenuRenderer Google is your friend. This article will hopefully be enough: https://blueprints.dev.java.net/bpcatalog/ee5/ajax/extendingRenderFuncti onality.html On 5/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No responses? Please! Mario From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 maggio 2007 15.53 To: users@myfaces.apache.org Subject: I need to override the HtmlNavigationMenuRenderer I need to override the HtmlNavigationMenuRenderer because I want enable/disable the menu items basing on application logic before rendering it (or during rendering). How can I do it? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Don't understand getValue code of UISelectItems
Hi, i'm looking the method getValue() of UISelectItems: public Object getValue() { if (_value != null) return _value; ValueBinding vb = getValueBinding(value); return vb != null ? vb.getValue(getFacesContext()) : null; } And I see that if a value property of the SelectItemsTag is setted with a ValueBinding format, then every time I get getValue() the value is rebuilded. This could be a problem for example in the case I have a property value of my managed bead used for value binding that access to DB to return the result, because in the life cycle of a page, this getValue() is called more than one time. My question is: Why the getValueBinding(value) result is not cached? For example: private Object _vb=null; private boolean vbCalculated=false; public Object getValue() { if (_value != null) return _value; if(!vbCalculated) { ValueBinding moment = getValueBinding(value); _vb= moment.getValue(getFacesContext()); vbCalculated=true; } return _vb; } Ciao Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Don't understand getValue code of UISelectItems
Should be a problem if the list of values changed between encodeBegin and encodeEnd phase? Mario -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: 25 maggio 2007 10.24 To: MyFaces Discussion Subject: Re: Don't understand getValue code of UISelectItems Hi Mario, En l'instant précis du 25/05/07 09:36, [EMAIL PROTECTED] s'exprimait en ces termes: Hi, i'm looking the method getValue() of UISelectItems: public Object getValue() { if (_value != null) return _value; ValueBinding vb = getValueBinding(value); return vb != null ? vb.getValue(getFacesContext()) : null; } And I see that if a value property of the SelectItemsTag is setted with a ValueBinding format, then every time I get getValue() the value is rebuilded. Correct This could be a problem for example in the case I have a property value of my managed bead used for value binding that access to DB to return the result, because in the life cycle of a page, this getValue() is called more than one time. My question is: Why the getValueBinding(value) result is not cached? For example: private Object _vb=null; private boolean vbCalculated=false; public Object getValue() { if (_value != null) return _value; if(!vbCalculated) { ValueBinding moment = getValueBinding(value); _vb= moment.getValue(getFacesContext()); vbCalculated=true; } return _vb; } Ciao Mario Let's assume it does it and does not break JSF specification (am sure it would). Because there is no method specified in JSF api, which myface must respect, to 'invalidate calculated valuebinding', how can your application tell all select items of the form that the list of values changed between the validation and the render phase? You demonstrated how easy it is to cache a value result, then just do it in your backing bean and you performance problem is solved. There is no reason to do that in the jsf itself. JSF does what is told to it, use a dynamic value :) This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. Useless disclaimer when posting to mailing list ^-^ Regards, David This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Don't understand getValue code of UISelectItems
Sorry, change should with could... Could be a problem if the list of values changed between encodeBegin and encodeEnd phase? Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 maggio 2007 10.35 To: users@myfaces.apache.org Subject: RE: Don't understand getValue code of UISelectItems Should be a problem if the list of values changed between encodeBegin and encodeEnd phase? Mario -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: 25 maggio 2007 10.24 To: MyFaces Discussion Subject: Re: Don't understand getValue code of UISelectItems Hi Mario, En l'instant précis du 25/05/07 09:36, [EMAIL PROTECTED] s'exprimait en ces termes: Hi, i'm looking the method getValue() of UISelectItems: public Object getValue() { if (_value != null) return _value; ValueBinding vb = getValueBinding(value); return vb != null ? vb.getValue(getFacesContext()) : null; } And I see that if a value property of the SelectItemsTag is setted with a ValueBinding format, then every time I get getValue() the value is rebuilded. Correct This could be a problem for example in the case I have a property value of my managed bead used for value binding that access to DB to return the result, because in the life cycle of a page, this getValue() is called more than one time. My question is: Why the getValueBinding(value) result is not cached? For example: private Object _vb=null; private boolean vbCalculated=false; public Object getValue() { if (_value != null) return _value; if(!vbCalculated) { ValueBinding moment = getValueBinding(value); _vb= moment.getValue(getFacesContext()); vbCalculated=true; } return _vb; } Ciao Mario Let's assume it does it and does not break JSF specification (am sure it would). Because there is no method specified in JSF api, which myface must respect, to 'invalidate calculated valuebinding', how can your application tell all select items of the form that the list of values changed between the validation and the render phase? You demonstrated how easy it is to cache a value result, then just do it in your backing bean and you performance problem is solved. There is no reason to do that in the jsf itself. JSF does what is told to it, use a dynamic value :) This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. Useless disclaimer when posting to mailing list ^-^ Regards, David This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Make changes on component using ViewHandler
You find the components after the renderer phase built by encodeChildren. Search for the topic Change visibility dynamically and you'll find a solution... Mario -Original Message- From: Pich [mailto:[EMAIL PROTECTED] Sent: 25 maggio 2007 16.25 To: users@myfaces.apache.org Subject: Make changes on component using ViewHandler Hi, I declared a viewhandler that goes through all components and childrens components checking for the attribute permission, which is set on some using f:attribute. If it is found I do some stuff finding out if this component should be rendered. If no, i setRendered(false) on the component. However, the component still gets rendered and I do not know why? Does anybody know why the setting of rendered to false does not have any impact? Best regards Pichdude -- View this message in context: http://www.nabble.com/Make-changes-on-component-using-ViewHandler-tf3816 438.html#a10804046 Sent from the MyFaces - Users mailing list archive at Nabble.com. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
I need to override the HtmlNavigationMenuRenderer
I need to override the HtmlNavigationMenuRenderer because I want enable/disable the menu items basing on application logic before rendering it (or during rendering). How can I do it? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: I need to override the HtmlNavigationMenuRenderer
No responses? Please! Mario From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 maggio 2007 15.53 To: users@myfaces.apache.org Subject: I need to override the HtmlNavigationMenuRenderer I need to override the HtmlNavigationMenuRenderer because I want enable/disable the menu items basing on application logic before rendering it (or during rendering). How can I do it? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Why so many problems with MyFaces?
MyFaces is not a specification is just an implementation. If you prefer you can choice other implementation. I just want to say that I'm using MyFaces + Tomahawk + Struts Tyles + Shale and I didn't see any delay, just advantages! May be the problem are you? Mario -Original Message- From: SiSi'mon [mailto:[EMAIL PROTECTED] Sent: 23 maggio 2007 17.44 To: users@myfaces.apache.org Subject: Why so many problems with MyFaces? Does anyone know why Myfaces sucks so much? It was supposed to solve some problems but we have seen nothing but project delays since deciding to use it. Is it a poor specification or a poor implementation of a very bad specification or a very bad implementation of a very bad idea? Si'mon -- View this message in context: http://www.nabble.com/Why-so-many-problems-with-MyFaces--tf3804863.html# a1070 Sent from the MyFaces - Users mailing list archive at Nabble.com. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Started using Myfaces 1.1.5 and every page is broken (duplicate ID in the faces tree Component)
Are you working on IBM RAD or WAS? -Original Message- From: SiSi'mon [mailto:[EMAIL PROTECTED] Sent: 23 maggio 2007 18.16 To: users@myfaces.apache.org Subject: Started using Myfaces 1.1.5 and every page is broken (duplicate ID in the faces tree Component) We are getting errors on nearly every page now that we are using MyFaces 1.1.5. All seem to point to a duplicate ID problem but checking the xHTML there is no duplicate ID. This seems to be generated or something. Something seems quite mucked up. any ideas? --- SEVERE: Error Rendering View[/web/Information.xhtml] java.lang.IllegalStateException: Client-id : _id81 is duplicated in the faces tree. Component : idListForm:idPopupDataTable:_id81, path: {Component-Path : [C --- -- View this message in context: http://www.nabble.com/Started-using-Myfaces-1.1.5-and-every-page-is-brok en-%28duplicate-ID-in-the-faces-tree-Component%29-tf3805053.html#a107674 09 Sent from the MyFaces - Users mailing list archive at Nabble.com. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: How to override ResponseWriter
Adam sorry for my response vague What I need is that the method getResponseWriter of FacesContext return a my implementation of ResponseWriter. I there any way to configure my implementation of ResponseWriter? Thanks in advance Mario From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: 22 maggio 2007 00.40 To: MyFaces Discussion Subject: Re: How to override ResponseWriter That's awfully vague... At any rate, I'd consider inserting a custom component inside f:view but as a parent of everything else, and making that custom component install a decorating ResponseWriter. If you're using a Facelets template for your pages, that's easy enough. -- Adam On 5/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I need to execute some code for all html renderers before default startElement. -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: 21 maggio 2007 18.34 To: MyFaces Discussion Subject: Re: How to override ResponseWriter It'd help if you told us what you were trying to do, as there's more than one possible answer. -- Adam On 5/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, is there a way to override the default ResponseWriter? How can I configure it? Thanks in advance Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: How to override ResponseWriter
Ok, I'll do it! Thanks Mario -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: 22 maggio 2007 14.58 To: MyFaces Discussion Subject: Re: How to override ResponseWriter Create a component. Place it around everything else in the tree. In your component's encodeBegin(), write: ResponseWriter oldWriter = context.getResponseWriter(); // You almost always want to at least partially delegate ResponseWriter myWriter = new MyWriter(oldWriter); context.setResponseWriter(myWriter); and in encodeEnd(): MyWriter writer = (MyWriter) context.getResponseWriter(); context.setResponseWriter(writer.getOldResponseWriter()); -- Adam On 5/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Adam sorry for my response vague What I need is that the method getResponseWriter of FacesContext return a my implementation of ResponseWriter. I there any way to configure my implementation of ResponseWriter? Thanks in advance Mario From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: 22 maggio 2007 00.40 To: MyFaces Discussion Subject: Re: How to override ResponseWriter That's awfully vague... At any rate, I'd consider inserting a custom component inside f:view but as a parent of everything else, and making that custom component install a decorating ResponseWriter. If you're using a Facelets template for your pages, that's easy enough. -- Adam On 5/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I need to execute some code for all html renderers before default startElement. -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: 21 maggio 2007 18.34 To: MyFaces Discussion Subject: Re: How to override ResponseWriter It'd help if you told us what you were trying to do, as there's more than one possible answer. -- Adam On 5/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, is there a way to override the default ResponseWriter? How can I configure it? Thanks in advance Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
How to override ResponseWriter
Hi, is there a way to override the default ResponseWriter? How can I configure it? Thanks in advance Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Change visibility dinamically
I have tested this solution and does work! Any one feel something wrong in this solution? Please send me some feedback to the solution. Regards Mario Buonopane -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Weber Sent: 28 febbraio 2007 12.26 To: MyFaces Discussion Subject: Re: Change visibility dinamically You can overwite encodeBegin AND encodeEnd doing the following: in encodeBegin: backup and replace the responseWriter in encodeEnd: throw away the replaced responseWriter, do your rendered stuff reset the backuped original responseWriter do the original encodeBegin, encodeChildren(), and the original encodeEnd() again. This should do render and create the ComponentTree, discard the result of rendering, do your stuff, rerender the uiTree. Regards, Volker 2007/2/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: Yes I agree. Could I have a chance to hook if I use a my implementation of UIViewRoot overriding encodeBegin method? Regards, Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Weber Sent: 28 febbraio 2007 09.48 To: MyFaces Discussion Subject: Re: Change visibility dinamically Hi, in jsf 1.1 with jsp (don't know how it is in faclets) the component creation is done while rendering, so there is no chance to hook in between. Regards, Volker 2007/2/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: I have tested before render response but does'nt work because, the first time I call the page, in befer render response phase the view root is empty. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: 27 febbraio 2007 23.50 To: MyFaces Discussion Subject: Re: Change visibility dinamically On 2/27/07, Volker Weber [EMAIL PROTECTED] wrote: 2007/2/27, Craig McClanahan [EMAIL PROTECTED]: On 2/27/07, Volker Weber [EMAIL PROTECTED] wrote: The places where the rendered flag is referenced are actually: * In Apply Request Values ... decoding of request parameters will not occur if rendered (or visible) is set to false. also in processValidations and processUpdates, both are skiped if rendred is set to false. * In Render Response ... rendering will be completely skipped if rendered is set to false. In between these times, the rendered property is most likely not being referenced, so changes are safe. I don't think you get the expected results if you change on other places than between after updateModel and before renderResponse. In case of validation/conversion errors all of them exept before renderResponse are skipped. Good catch ... I forgot to check the processXxxx methods for those phases. So, the advice that before render response seems like the point to change the value stands. Regards, Volker Craig This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: How to override ResponseWriter
I need to execute some code for all html renderers before default startElement. -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: 21 maggio 2007 18.34 To: MyFaces Discussion Subject: Re: How to override ResponseWriter It'd help if you told us what you were trying to do, as there's more than one possible answer. -- Adam On 5/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, is there a way to override the default ResponseWriter? How can I configure it? Thanks in advance Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Source code of myfaces and tomahawa 1.1.3
Where can I find the source code of myfaces and tomahawk 1.1.3? Thanks in advance Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Build table dinamically
Thanks, is what I'm looking for! Ciao Mario -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: 3 aprile 2007 19.23 To: MyFaces Discussion Subject: Re: Build table dinamically Take a look at the Tomahawk columns (with an s) component. On 4/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i need to build a table dynamically basing on a dynamic query result. What's the best way to do it? How can I add columns and headers dynamically to an empty table? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Build table dinamically
Hi, i need to build a table dynamically basing on a dynamic query result. What's the best way to do it? How can I add columns and headers dynamically to an empty table? Thanks in advance Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Setting class to thead tag
Do you know if extending HtmlTableRenderer there there is a way to override just the point where the renderer write the thead tag? Regards Mario -Original Message- From: Anton Martynov [mailto:[EMAIL PROTECTED] Sent: 23 marzo 2007 08.15 To: MyFaces Discussion Subject: Re: Setting class to thead tag You can extend the org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer class. -- Best regards, Anton Martynov, [EMAIL PROTECTED] 22.03.2007 20:08 Please respond to MyFaces Discussion users@myfaces.apache.org To users@myfaces.apache.org cc Subject Setting class to thead tag I need to set class property of a thead tag of a data table, for example thead class=myheader How can I do? Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Best practices to manage resources
I need to extend a tomahawk component and i need to include a my javascript (xxx.js) in the page rendered. What's the best practices to do it using myfaces utility classes? Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: MyFaces on WAS 6.1.0.2
Yesif you set the variable does work! Yah :-) Ciao Mario From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 23 marzo 2007 20.22 To: MyFaces Discussion Subject: RE: MyFaces on WAS 6.1.0.2 Ok. It seems it's done. Make sure you use variable, as Mario said: After the installation of the fixpack, don't forget to set the Webcontainer custom property to 'true': com.ibm.ws.webcontainer.invokefilterscompatibility (read PROBLEM CONCLUSION section) [EMAIL PROTECTED] 03/23/2007 03:10 PM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject RE: MyFaces on WAS 6.1.0.2 Following-up with this issue: I already tried, applying the patch that is here: Now, I am not getting exceptions: but getting a javascript error: Error: symbol 'dojo.widget' is not defined after loading'__package__.js' Any idea? Does anybody have deploy successfully Tomahawk on WAS 6.1.0.3 or WAS 6.1.0.5? Note: Same app working on, WAS 6.0.2..15. [EMAIL PROTECTED] 03/22/2007 12:34 PM Please respond to MyFaces Discussion users@myfaces.apache.org To [EMAIL PROTECTED] cc Subject RE: MyFaces on WAS 6.1.0.2 You hav to set classloader in PARENT-LAST mode. But if you are using tomahawk on was 6.1, you have to install following APAR for 6.1.0.3 or 6.1.0.5: http://www-1.ibm.com/support/docview.wss?uid=swg24014758 http://www-1.ibm.com/support/docview.wss?uid=swg24014758 After the installation of the fixpack, don't forget to set the Webcontainer custom property to 'true': com.ibm.ws.webcontainer.invokefilterscompatibility (read PROBLEM CONCLUSION section) I have tested the fix on WAS 6.1.0.3 and 6.1.0.5 on Windows and AIX successfully. Ciao Mario Buonopane From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 21 marzo 2007 15.47 To: users@myfaces.apache.org Subject: MyFaces on WAS 6.1.0.2 Following http://wiki.apache.org/myfaces/Websphere_Installation, I cannot been able to disable JSF Sun RI, and load MyFaces Impl JSF first. I already tried with WAS 6.0 with success, but not with this new version of WAS. Anybody can help? Thanks in advance. *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates BBH. There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. *** This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates BBH. There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. *** *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates BBH. There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. *** This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If
RE: MyFaces on WAS 6.1.0.2
Yes...I did using the patch From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 23 marzo 2007 20.11 To: MyFaces Discussion Subject: RE: MyFaces on WAS 6.1.0.2 Following-up with this issue: I already tried, applying the patch that is here: Now, I am not getting exceptions: but getting a javascript error: Error: symbol 'dojo.widget' is not defined after loading'__package__.js' Any idea? Does anybody have deploy successfully Tomahawk on WAS 6.1.0.3 or WAS 6.1.0.5? Note: Same app working on, WAS 6.0.2..15. [EMAIL PROTECTED] 03/22/2007 12:34 PM Please respond to MyFaces Discussion users@myfaces.apache.org To users@myfaces.apache.org cc Subject RE: MyFaces on WAS 6.1.0.2 You hav to set classloader in PARENT-LAST mode. But if you are using tomahawk on was 6.1, you have to install following APAR for 6.1.0.3 or 6.1.0.5: http://www-1.ibm.com/support/docview.wss?uid=swg24014758 http://www-1.ibm.com/support/docview.wss?uid=swg24014758 After the installation of the fixpack, don't forget to set the Webcontainer custom property to 'true': com.ibm.ws.webcontainer.invokefilterscompatibility (read PROBLEM CONCLUSION section) I have tested the fix on WAS 6.1.0.3 and 6.1.0.5 on Windows and AIX successfully. Ciao Mario Buonopane From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 21 marzo 2007 15.47 To: users@myfaces.apache.org Subject: MyFaces on WAS 6.1.0.2 Following http://wiki.apache.org/myfaces/Websphere_Installation, I cannot been able to disable JSF Sun RI, and load MyFaces Impl JSF first. I already tried with WAS 6.0 with success, but not with this new version of WAS. Anybody can help? Thanks in advance. *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates BBH. There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. *** This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates BBH. There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. *** This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Setting class to thead tag
I need to set class property of a thead tag of a data table, for example thead class=myheader How can I do? Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Setting class to thead tag
Yes but the value is added just to th tag and not to thead From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 22 marzo 2007 18.11 To: MyFaces Discussion Subject: Re: Setting class to thead tag Have you tried headerClass attribute? [EMAIL PROTECTED] 03/22/2007 01:08 PM Please respond to MyFaces Discussion users@myfaces.apache.org To users@myfaces.apache.org cc Subject Setting class to thead tag I need to set class property of a thead tag of a data table, for example thead class=myheader How can I do? Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. *** IMPORTANT NOTE * The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates BBH. There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. *** This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Sharing myfaces libraries
Is true and I have tried. As you know, servlet specification indicates that shared libraries is based on Container Extensions (9.7.1 of Servlet Specification 2.4). I'm using IBM WebSphere and this Application Server has Server Shared Libraries and Application Shared Libraries. Using first one all the jars are shared by all application deployed, using the second one you configure a shared library and you can choices which application use it. The classloader that loads the Application Shared Libraries is the classloader of the module/application that has the reference to the shared library (Best Practice for Using Common Application Files http://www-1.ibm.com/support/docview.wss?fdoc=aimwasrs=180uid=swg27006 159 ) The problem using shared libraries is that all tld files presents in some jar (shale, myfaces, tomahawk, struts...) need to be copied manually in WEB-INF directory of each application. So, in my opinion, copy a jar or a tld file is the same :-). At the and of my tests, I have decided to put in shared libraries all jar not tipically web oriented (for example Jakarta-commons) and put in WEB-INF/lib jars like shale, myfaces, tomahawk and struts. The reason I'm using shared libraries is that we have developed same web application with the same framework and I want/need to be sure that all application use the libraries I decided. Regards Mario Buonopane From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: 8 marzo 2007 17.00 To: MyFaces Discussion Subject: Re: Sharing myfaces libraries On 3/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have more than one application developed with same version of shale/myfaces/tomahawk. Is it correct install these libraries in Shared Libraries not remove them from WEB-INF/lib of each application? It depends on your situation. Installing the libraries as shared inside the server definitely makes your WAR files smaller and therefore likely to deploy a little faster. On the other hand, you will be requiring that all of the co-installed applications use the same versions of these dependencies, rather than potentially being able to upgrade them individually. One thing to watch out for -- some libraries have been known to have quirks when installed in as a shared library, due to the fact that the class loader hierarchy is changed. The fundamental issue is that it's easy to write code that assumes application classes are loaded by the same class loader that loaded your class. That's true if your class was in /WEB-INF/lib but not true if you install your class in a shared library (your class loader will be a parent of the webapp class loader). The simplest way to find out whether this works is to try it. Craig Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Sharing myfaces libraries
I have more than one application developed with same version of shale/myfaces/tomahawk. Is it correct install these libraries in Shared Libraries not remove them from WEB-INF/lib of each application? Regards Mario This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Best pratices to set TimeZone
I'm having problem displaying date converted with f:convertDateTime because if I have the date value 2007-02-06 00:00:00.000 I show the date minus one day. I think the problem is because I don't set the TimeZone used and the converter use GMT Time Zone. What is the best pratices to manage TimeZone setting? Regards Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Change visibility dinamically
Yes I agree. Could I have a chance to hook if I use a my implementation of UIViewRoot overriding encodeBegin method? Regards, Mario -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Weber Sent: 28 febbraio 2007 09.48 To: MyFaces Discussion Subject: Re: Change visibility dinamically Hi, in jsf 1.1 with jsp (don't know how it is in faclets) the component creation is done while rendering, so there is no chance to hook in between. Regards, Volker 2007/2/28, [EMAIL PROTECTED] [EMAIL PROTECTED]: I have tested before render response but does'nt work because, the first time I call the page, in befer render response phase the view root is empty. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: 27 febbraio 2007 23.50 To: MyFaces Discussion Subject: Re: Change visibility dinamically On 2/27/07, Volker Weber [EMAIL PROTECTED] wrote: 2007/2/27, Craig McClanahan [EMAIL PROTECTED]: On 2/27/07, Volker Weber [EMAIL PROTECTED] wrote: The places where the rendered flag is referenced are actually: * In Apply Request Values ... decoding of request parameters will not occur if rendered (or visible) is set to false. also in processValidations and processUpdates, both are skiped if rendred is set to false. * In Render Response ... rendering will be completely skipped if rendered is set to false. In between these times, the rendered property is most likely not being referenced, so changes are safe. I don't think you get the expected results if you change on other places than between after updateModel and before renderResponse. In case of validation/conversion errors all of them exept before renderResponse are skipped. Good catch ... I forgot to check the processXxxx methods for those phases. So, the advice that before render response seems like the point to change the value stands. Regards, Volker Craig This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Change visibility dinamically
I wanna change the behavior of my application changing the visibility of some component basing of specific rules but I don't wan put this logic in my Managed Bean but externally. May be implementing a Phase Listener can help me to do this? In wich Phase should I set the visible property of my components? Regards Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Change visibility dinamically
Yes I know, using rendered, valueBinding and managed bean I can do it, but to use these options I have to project the application to managed this cases. Suppose I have developed an application and in a page I have a textbox that, at develop design, noone supposed this component could be hide in some situation...so the text box is always rendered. In this case I don't have no programmatic if and no EL expression. How can I hide this texbox without modify the code? I was thinking to implement a my UIViewRoot, override the component in faces-config to force to use my UIViewRoot and put inside my UIViewRoot all the logic.is it possible? Is it correct? -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: 27 febbraio 2007 21.23 To: MyFaces Discussion Subject: Re: Change visibility dinamically Oops. You're right, Simon. It could be set programmically. I still think it's a bad design, but that's just my opinion. On 2/27/07, Simon Kitching [EMAIL PROTECTED] wrote: Not sure what you mean, Mike. Every UIComponent has a setRendered(boolean) method that can be called to specify whether that component is rendered or not. This method could certainly be called from a PhaseListener. Note that there is a slight flaw in the design of this method in my opinion; the rendered property can be specified as either an EL expression (ie stored as a ValueBinding) or can be a literal value set via setRendered(). If a value-binding is used then setRendered() can later be used to override that; however once rendered has been set using setRendered, there is no way to go back to using an EL expression. In other words, once you've decided to manually control the rendered state you cannot go back to using the original EL rendered expression. One way around this would be to use // create a ValueBinding for the expression #{true} setValueBinding(rendered, vb); rather than setRendered(true); Cheers, Simon Mike Kienenberger wrote: You can only set the rendered property of a component from the values of a managed bean (unless you're using facelet functions or customized el resolvers). Your managed bean can call whatever java code you want it to. If you give more specific details of what you're trying to accomplish, maybe we can help you more. On 2/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I wanna change the behavior of my application changing the visibility of some component basing of specific rules but I don't wan put this logic in my Managed Bean but externally. May be implementing a Phase Listener can help me to do this? In wich Phase should I set the visible property of my components? This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Change visibility dinamically
I have tested before render response but does'nt work because, the first time I call the page, in befer render response phase the view root is empty. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: 27 febbraio 2007 23.50 To: MyFaces Discussion Subject: Re: Change visibility dinamically On 2/27/07, Volker Weber [EMAIL PROTECTED] wrote: 2007/2/27, Craig McClanahan [EMAIL PROTECTED]: On 2/27/07, Volker Weber [EMAIL PROTECTED] wrote: The places where the rendered flag is referenced are actually: * In Apply Request Values ... decoding of request parameters will not occur if rendered (or visible) is set to false. also in processValidations and processUpdates, both are skiped if rendred is set to false. * In Render Response ... rendering will be completely skipped if rendered is set to false. In between these times, the rendered property is most likely not being referenced, so changes are safe. I don't think you get the expected results if you change on other places than between after updateModel and before renderResponse. In case of validation/conversion errors all of them exept before renderResponse are skipped. Good catch ... I forgot to check the processXxxx methods for those phases. So, the advice that before render response seems like the point to change the value stands. Regards, Volker Craig This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Change visibility dinamically
I need to set visibility or modifiable property of every component in a page using some logic specific for differents customer and I don't want that every programmer has to remember to set correctly EL Espression or something else. This is the scenario, but is a curiosity also.i would like to go in deep to know if this kind stuff is possible to implements. Thanks Mario -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: 27 febbraio 2007 21.53 To: MyFaces Discussion Subject: Re: Change visibility dinamically This does sound like a pretty weird scenario. You want to change the behaviour of the application but don't want to change the application? However I guess this could be done in a PhaseListener. After restore-view, look in a database (for example) to see if there are any overrides for the current view, and if so retrieve a set of (component-id, el-expression) values. Then walk the current component tree and for each component that has an id that matches one of the overrides, evaluate the EL-expression and update the component's rendered state. A custom UIViewRoot component might also work.. I can't really see *why* you would want to do this, though. Seems much easier to just update the JSP/facelets file to add the rendered attribute. A system like this might make more sense for security reasons, ie ensure that every field that is not authorised for the current user is automatically not rendered. Tomahawk does have the visibleOnUserRole attribute for this but a PhaseListener approach also has appeal. of course this depends on being able to somehow identify the components; having the attribute on the component tag itself avoids that issue. [EMAIL PROTECTED] wrote: Yes I know, using rendered, valueBinding and managed bean I can do it, but to use these options I have to project the application to managed this cases. Suppose I have developed an application and in a page I have a textbox that, at develop design, noone supposed this component could be hide in some situation...so the text box is always rendered. In this case I don't have no programmatic if and no EL expression. How can I hide this texbox without modify the code? I was thinking to implement a my UIViewRoot, override the component in faces-config to force to use my UIViewRoot and put inside my UIViewRoot all the logic.is it possible? Is it correct? -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: 27 febbraio 2007 21.23 To: MyFaces Discussion Subject: Re: Change visibility dinamically Oops. You're right, Simon. It could be set programmically. I still think it's a bad design, but that's just my opinion. On 2/27/07, Simon Kitching [EMAIL PROTECTED] wrote: Not sure what you mean, Mike. Every UIComponent has a setRendered(boolean) method that can be called to specify whether that component is rendered or not. This method could certainly be called from a PhaseListener. Note that there is a slight flaw in the design of this method in my opinion; the rendered property can be specified as either an EL expression (ie stored as a ValueBinding) or can be a literal value set via setRendered(). If a value-binding is used then setRendered() can later be used to override that; however once rendered has been set using setRendered, there is no way to go back to using an EL expression. In other words, once you've decided to manually control the rendered state you cannot go back to using the original EL rendered expression. One way around this would be to use // create a ValueBinding for the expression #{true} setValueBinding(rendered, vb); rather than setRendered(true); Cheers, Simon Mike Kienenberger wrote: You can only set the rendered property of a component from the values of a managed bean (unless you're using facelet functions or customized el resolvers). Your managed bean can call whatever java code you want it to. If you give more specific details of what you're trying to accomplish, maybe we can help you more. On 2/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I wanna change the behavior of my application changing the visibility of some component basing of specific rules but I don't wan put this logic in my Managed Bean but externally. May be implementing a Phase Listener can help me to do this? In wich Phase should I set the visible property of my components? This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any
Now Tomahawk DOES work on WebSphere 6.1
Now Tomahawk DOES work on WebSphere 6.1. I have opened a PMR some months ago and this is the fix: http://www-1.ibm.com/support/docview.wss?uid=swg24014758 After the installation of the fixpack, don't forget to set the Webcontainer custom property to 'true': com.ibm.ws.webcontainer.invokefilterscompatibility (read PROBLEM CONCLUSION section) I have tested the fix on WAS 6.1.0.3 and 6.1.0.5 on Windows and AIX successfully. Ciao Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
I need you opinion (suggestion)...
I know this is not a question usually we must send in this mailing list but i would like the opinion of someone of you for the following: I need to access to the HttpRequest object in a POJO with no parameters input. This POJO is executed in a servlet container because is a Front End component. To do it, I'm going to configure a listener that put the request object in TheadLocal. What do you think? Is a godd idea? Is there some probability to have problem in future or in some case? Any suggestions are welcome.. Regards Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Calling
Is there a way to set NavigationMenuItem to call an url to another web application? i have to use externalLink? Thanks Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Any reason why t:inputCalendar doesn't work when using Opera?
Application Server? -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: 10 gennaio 2007 11.41 To: users@myfaces.apache.org Subject: Any reason why t:inputCalendar doesn't work when using Opera? When I press the calendar icon to open the calendar, nothing happens... It works ok using Firefox and IE, but not Opera... Is this a known limitation of the calendar? Regards, BTJ -- --- Bjørn T Johansen [EMAIL PROTECTED] --- 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 --- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Any reason why t:inputCalendar doesn't work when using Opera?
On WebSphere 6.1 there is a bug that IBM is resolving. -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: 10 gennaio 2007 12.30 To: users@myfaces.apache.org Subject: Re: Any reason why t:inputCalendar doesn't work when using Opera? I am using Tomcat but should that make any difference? BTJ On Wed, 10 Jan 2007 12:12:54 +0100 [EMAIL PROTECTED] wrote: Application Server? -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: 10 gennaio 2007 11.41 To: users@myfaces.apache.org Subject: Any reason why t:inputCalendar doesn't work when using Opera? When I press the calendar icon to open the calendar, nothing happens... It works ok using Firefox and IE, but not Opera... Is this a known limitation of the calendar? Regards, BTJ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: How to fix header columns of dataTable
Please, any suggestions are welcome From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 5 dicembre 2006 18.12 To: users@myfaces.apache.org Subject: How to fix header columns of dataTable I have a dataTable that shows a lot of rows but I don't want the dataScroller. Is there a way to fix the header columns and put the body of the table in a div with scrollbars? ___ Buonopane Mario Accenture Insurance Services Systems Via C. Colombo 112, 00147 Roma Tel: +39 0651566543 Mobile: +39 3346563433 Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Beans in session scope lifecycle
Did you try this?: FacesContext.getCurrentInstance().getApplication().createValueBinding(# {ManagedBeanName} ).setValue(FacesContext.getCurrentInstance(), null); Does not work? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 6 dicembre 2006 12.12 To: users@myfaces.apache.org Subject: RE: Beans in session scope lifecycle Hi Doing that also means that the user will need to re-login. A better approach it to get the session-backed bean from the session map (by name) and simply remove it. Yet another way is to implement a reset method in you bean that clears out stuff. Hermod -Original Message- From: Mr Arvind Pandey [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 12:06 PM To: MyFaces Discussion Subject: Re: Beans in session scope lifecycle Hi, When user cancels out of wizard then you can execute the following lines of code : FacesContext facesContext = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) facesContext.getExternalContext().getSession(false); if (session != null) { session.invalidate(); } This will remove the session objects and whenever user reenters the system, session beans will be reinstanciated. regards.. Arvind --- Charbel Abdul-Massih [EMAIL PROTECTED] wrote: Hello, I have a wizard flow that utilizes a backing bean in session scope...if a user should cancel out of the wizard at any point, is there a way to reset the backing bean and its properties??? Or better yet, is there a way to completely remove the bean from the session so that next time the user enters the wizard, it's instantiated again??? Thx, Charbel __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Beans in session scope lifecycle
Try this: FacesContext.getCurrentInstance().getApplication().createValueBinding(# {ManagedBeanName} ).setValue(FacesContext.getCurrentInstance(), null); From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Sent: 5 dicembre 2006 16.26 To: users@myfaces.apache.org Subject: Beans in session scope lifecycle Hello, I have a wizard flow that utilizes a backing bean in session scope...if a user should cancel out of the wizard at any point, is there a way to reset the backing bean and its properties??? Or better yet, is there a way to completely remove the bean from the session so that next time the user enters the wizard, it's instantiated again??? Thx, Charbel This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
How to fix header columns of dataTable
I have a dataTable that shows a lot of rows but I don't want the dataScroller. Is there a way to fix the header columns and put the body of the table in a div with scrollbars? ___ Buonopane Mario Accenture Insurance Services Systems Via C. Colombo 112, 00147 Roma Tel: +39 0651566543 Mobile: +39 3346563433 Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: Problem t:datascroller does not work in shale dialog
I have created the SHALE-341 on JIRA for this problem: http://issues.apache.org/struts/browse/SHALE-341 and I have attached the sample that reproduce the problem. Please, help me Mario From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 27 novembre 2006 20.12 To: users@myfaces.apache.org Subject: Problem t:datascroller does not work in shale dialog I have a simple page with a t:dataTable and a t:datascroller. The datascroller does work correctly if the page is not part of a Shale Dialog. If I put this page in a Shale dialog, the datascroller does NOT work correctly (does not change page and always shows the first page). Some one can help me? Thanks in advance This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: [REMINDER] This list is subscribers only!
I'm very sorryi'll check! What about of my issues? Are removed? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manfred Geiler Sent: 28 novembre 2006 13.48 To: MyFaces Discussion; MyFaces Development Subject: [REMINDER] This list is subscribers only! This mail is sent from time to time and is meant to remind you, that the users@myfaces.apache.org and dev@myfaces.apache.org mailing lists - like most of the ASF lists - are subscribers only. This means that you are only allowed to post to this list if you have subscribed before. Please make sure, that you post your messages from the same address that you used to subscribe to the list. Otherwise there is no guarantee that your mails will get through in a timely manner. Thanks, Manfred (List Moderator) This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Problem t:datascroller does not work in shale dialog
I have a simple page with a t:dataTable and a t:datascroller. The datascroller does work correctly if the page is not part of a Shale Dialog. If I put this page in a Shale dialog, the datascroller does NOT work correctly (does not change page and always shows the first page). Some one can help me? Thanks in advance This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.