RE: jscookmenu problem
Hi all, I'm trying to upgrade my projects from myfaces 1.0.9 to 1.1.0. I replaced myfaces.jar with myfaces-all.jar, updated project references to that file and replaced %@ taglib uri=http://myfaces.apache.org/extensions; prefix=x% with %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% and x:/ with t:/ but I obtain an error: (t:panelLayout is the first jsf component in page, except f:view) javax.faces.FacesException: Undefined component type org.apache.myfaces.HtmlPanelLayout at org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:390) at javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:448) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:391) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219) at org.apache.jsp.login_jsp._jspx_meth_t_panelLayout_0(login_jsp.java:263) at org.apache.jsp.login_jsp._jspx_meth_f_view_0(login_jsp.java:229) some suggestion ? thanks -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
Upgrading problem
Hi all, I'm trying to upgrade my projects from myfaces 1.0.9 to 1.1.0. I replaced myfaces.jar with myfaces-all.jar, updated project references to that file and replaced %@ taglib uri=http://myfaces.apache.org/extensions; prefix=x% with %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% and x:/ with t:/ but I obtain an error: (t:panelLayout is the first jsf component in page, except f:view) javax.faces.FacesException: Undefined component type org.apache.myfaces.HtmlPanelLayout at org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:390) at javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:448) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:391) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219) at org.apache.jsp.login_jsp._jspx_meth_t_panelLayout_0(login_jsp.java:263) at org.apache.jsp.login_jsp._jspx_meth_f_view_0(login_jsp.java:229) some suggestion ? thanks -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
MyFaces 1.1.0 - problem redeploying apps
Hi! today I migrated from MyFaces 1.0.9m9 to 1.1.0. First I want to say thank you to the whole MyFaces team for the work done. Now to my problem: I deploy my application to Tomcat 5.5.9, the app works fine. When I redeploy the same app, I get the following error in Tomcat: 19.09.2005 15:19:16 org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/XXX] 19.09.2005 15:19:16 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive XXX.war 2005-09-19 15:19:21,229 INFO FacesConfigurator: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml 2005-09-19 15:19:21,349 INFO FacesConfigurator: Reading config jar:file:/C:/tomcat-5.5.9/webapps/ZederBrowser/WEB-INF/lib/tomahawk.jar!/META-INF/faces-config.xml 2005-09-19 15:19:21,419 INFO FacesConfigurator: Reading config /WEB-INF/faces-config.xml 2005-09-19 15:19:21,459 INFO FacesConfigurator: Reading config /WEB-INF/faces-config.xml 2005-09-19 15:19:23,222 INFO StartupServletContextListener: ServletContext 'c:\tomcat-5.5.9\webapps\XXX\' initialized. 19.09.2005 15:19:33 org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/XXX] 19.09.2005 15:19:33 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive XXX.war 19.09.2005 15:19:34 org.apache.catalina.startup.ContextConfig applicationWebConfig === INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/] 19.09.2005 15:19:34 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error listenerStart 19.09.2005 15:19:34 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/XXX] startup failed due to previous errors === Tomcat first tries to undeploy my application - and this fails. The problems seems to be in the tomahawk.jar. I think that a lock exists to one of the files inside the tomahawk.jar file. I tried the anti locking features of Tomncat 5.5.9, I added the following in as META-INF\context.xml to my application and also in the server config, but it does not help: Context WatchedResource reloadable=true antiResourceLocking=true antiJARLocking=true WEB-INF/web.xml /WatchedResource /Context So what to do?
Re: MyFaces 1.1.0 - problem redeploying apps
Can you post your web.xml? Wild shot: did you get rid of the StartupServletContextListener in web.xml, as this is not necessary in MyFaces 1.1.0 anymore? regards, Martin On 9/20/05, Boris Klug [EMAIL PROTECTED] wrote: Hi! today I migrated from MyFaces 1.0.9m9 to 1.1.0. First I want to say thank you to the whole MyFaces team for the work done. Now to my problem: I deploy my application to Tomcat 5.5.9, the app works fine. When I redeploy the same app, I get the following error in Tomcat: 19.09.2005 15:19:16 org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/XXX] 19.09.2005 15:19:16 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive XXX.war 2005-09-19 15:19:21,229 INFO FacesConfigurator: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml 2005-09-19 15:19:21,349 INFO FacesConfigurator: Reading config jar:file:/C:/tomcat-5.5.9/webapps/ZederBrowser/WEB-INF/lib/tomahawk.jar!/META-INF/faces-config.xml 2005-09-19 15:19:21,419 INFO FacesConfigurator: Reading config /WEB-INF/faces-config.xml 2005-09-19 15:19:21,459 INFO FacesConfigurator: Reading config /WEB-INF/faces-config.xml 2005-09-19 15:19:23,222 INFO StartupServletContextListener: ServletContext 'c:\tomcat-5.5.9\webapps\XXX\' initialized. 19.09.2005 15:19:33 org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/XXX] 19.09.2005 15:19:33 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive XXX.war 19.09.2005 15:19:34 org.apache.catalina.startup.ContextConfig applicationWebConfig === INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/] 19.09.2005 15:19:34 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error listenerStart 19.09.2005 15:19:34 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/XXX] startup failed due to previous errors === Tomcat first tries to undeploy my application - and this fails. The problems seems to be in the tomahawk.jar. I think that a lock exists to one of the files inside the tomahawk.jar file. I tried the anti locking features of Tomncat 5.5.9, I added the following in as META-INF\context.xml to my application and also in the server config, but it does not help: Context WatchedResource reloadable=true antiResourceLocking=true antiJARLocking=true WEB-INF/web.xml /WatchedResource /Context So what to do? -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Fw: JSF - SPRING - HIBERNATE Mapping problem
Hi everybody, first excuse me for my poor english. I use JSF with Spring and Hibernate andI have the following problem :i ve a class with two many-to-one relations which have the same bean associated. This works fine, but , my problems is when i m trying to update the class and the two beans have the same values, since then hibernate always update both beans with similar values, independently of the values you set to the first bean, hibernate always update database with the values of the second one. The hibernate mapping look likes that : many-to-one name="name1" column="columnA" class="com.classeA"/ many-to-one name="name2" column="columnB" class="com.classA"/ If someone has the same problem... Thank youfor your help.
Re: Upgrading problem
I think this is the missing faces-config.xml issue (MYFACES-579) when using the myfaces all-in-one file. Could you try using the separate jars (myfaces-api.jar, myfaces-impl.jar and tomahawk.jar) and then everything should work, Best regards, Bruno 2005/9/20, Francesco Consumi [EMAIL PROTECTED]: Hi all, I'm trying to upgrade my projects from myfaces 1.0.9 to 1.1.0. I replaced myfaces.jar with myfaces-all.jar, updated project references to that file and replaced %@ taglib uri=http://myfaces.apache.org/extensions; prefix=x% with %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% and x:/ with t:/ but I obtain an error: (t:panelLayout is the first jsf component in page, except f:view) javax.faces.FacesException: Undefined component type org.apache.myfaces.HtmlPanelLayout at org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:390) at javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:448) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:391) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219) at org.apache.jsp.login_jsp._jspx_meth_t_panelLayout_0(login_jsp.java:263) at org.apache.jsp.login_jsp._jspx_meth_f_view_0(login_jsp.java:229) some suggestion ? thanks -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
Re: Getting the sandbox components
Use the nighty builds (http://cvs.apache.org/builds/myfaces/nightly/). You have everything there. In the examples bundles you can find a sandbox.war with the sandbox examples ready to be tested ;-) Regards, Bruno 2005/9/19, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, I was wondering if there was any place to download the sandbox components for myfaces. I want to take a look at the AjaxInputSuggest one ☺. Thanks, Greg
Re: MyFaces 1.1.0 - problem redeploying apps
Hi Martin! Can you post your web.xml? See my web.xml atteched at the bottom Wild shot: did you get rid of the StartupServletContextListener in web.xml, as this is not necessary in MyFaces 1.1.0 anymore? Yes, I had the StartupServletContextListener in my web.xml, removed, but the problem remains the same. ?xml version=1.0 encoding=UTF-8? !-- * xxx web.xml Datei -- web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; descriptionxxx web.xml/description context-param description Comma separated list of URIs of (additional) faces config files. (e.g. /WEB-INF/my-config.xml) See JSF 1.0 PRD2, 10.3.2 /description param-namejavax.faces.CONFIG_FILES/param-name param-value /WEB-INF/faces-config.xml /param-value /context-param context-param description State saving method: client or server (= default) See JSF Specification 2.5.2 /description param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param description This parameter tells MyFaces if javascript code should be allowed in the rendered HTML output. If javascript is allowed, command_link anchors will have javascript code that submits the corresponding form. If javascript is not allowed, the state saving info and nested parameters will be added as url parameters. Default: true /description param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name param-valuetrue/param-value /context-param context-param description If true, rendered HTML code will be formatted, so that it is human readable. i.e. additional line separators and whitespace will be written, that do not influence the HTML code. Default: true /description param-nameorg.apache.myfaces.PRETTY_HTML/param-name param-valuetrue/param-value /context-param context-param description Default: false /description param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name param-valuefalse/param-value /context-param context-param description Default: false /description param-nameorg.apache.myfaces.AUTO_SCROLL/param-name param-valuefalse/param-value /context-param !-- Config parameter fuer den xxx -- context-param description Wenn true, dann wird ein zusaetzliches Debug Menue eingeblendet. Kann true oder false sein. Default ist false. /description param-namede.xxx.DEBUG_MENU/param-name param-valuetrue/param-value /context-param error-page exception-typejava.lang.Throwable/exception-type location/pages/tomcatErrorPage.jsp/location /error-page !-- Faces Servlet -- servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- Faces Filter, wird z.B. von x:popup benutzt -- filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class /filter !-- Faces Servlet Mapping -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern/faces/*/url-pattern /filter-mapping !-- Filter, der die Session überwacht -- filter filter-nameSessionFilter/filter-name filter-classde.xx.SessionRequestFilter/filter-class /filter !-- Jede Anforderung soll den Filter durchlaufen -- filter-mapping filter-nameSessionFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter filter-nameGraphVizFilter/filter-name filter-classde.xxx.GraphVizRequestFilter/filter-class /filter !-- Filter nur für entsprechende Endung -- filter-mapping filter-nameGraphVizFilter/filter-name url-pattern*.graphviz/url-pattern /filter-mapping !-- extension mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping !-- Welcome files -- welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list /web-app
Re: Upgrading problem
Quoting Bruno Aranda [EMAIL PROTECTED]: I think this is the missing faces-config.xml issue (MYFACES-579) when using the myfaces all-in-one file. Could you try using the separate jars (myfaces-api.jar, myfaces-impl.jar and tomahawk.jar) and then everything should work, you're right. I added faces-config.xml from tomahawk.jar to myfaces-all.jar, and now it works. thanks a lot. :-) -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
Re: Fw: JSF - SPRING - HIBERNATE Mapping problem
This is a question which I would ask in forum.hibernate.org because it is very Hibernate specific and neither has anything to do with spring or with JSF, could be that both properties reference a dataset with the same key in the database hence both get updated at the same time. Werner Nicolas GENSOLLEN wrote: Hi everybody, first excuse me for my poor english. I use JSF with Spring and Hibernate and I have the following problem : i ve a class with two many-to-one relations which have the same bean associated. This works fine, but , my problems is when i m trying to update the class and the two beans have the same values, since then hibernate always update both beans with similar values, independently of the values you set to the first bean, hibernate always update database with the values of the second one. The hibernate mapping look likes that : many-to-one name=name1 column=columnA *class*=com.classeA/ many-to-one name=name2 column=columnB *class*=com.classA/ If someone has the same problem... Thank you for your help.
News from the toolside of things
For anyone using Exadel (like me), Exadel has put some new visual definitions on their website which should comply with the 1.1 tomahawk definitions according to Exadels Sergey Smirnov you have to do following: However, if you want to work with Tomahawk components instantly in the 3.0.4, do the following: 1. Download vpe-templates-myfaces.xml (http://www.exadel.com/downloads/exadelstudio/patch/tomohawk/vpe-templates-myfaces.xml) 2. Overlap the existing one located at ExadelStudioHome\eclipse\plugins\com.exadel.vpe_1.0.5\templates\ here is the original link: http://forum.exadel.com/viewtopic.php?t=2974 According to Exadel a 1.1.0 enabled Exadel Studio will be released soon (probably end of the month) with their next release.
MyFaces 1.1.0 released
The Apache MyFaces team are proud to announce the production stable release of MyFaces 1.1.0. Download it from http://myfaces.apache.org/binary.cgi MyFaces is a free open source implementation of JavaServer(tm) Faces[1], a web application framework, standardized by the Java Specification Request 127 [2]. This is the first MyFaces release to be officially compatible with the JSF 1.1 specification. Thanks to everyone in our open source community for their hard work in making this possible. Furthermore this release includes 164 bug fixes and 43 new features and improvements since the last release on 16 April. For more information see: http://myfaces.apache.org We hope you enjoy using MyFaces! The MyFaces Team [1] http://java.sun.com/j2ee/javaserverfaces/overview.html [2] http://www.jcp.org/en/jsr/detail?id=127 Interested in all announcements and news regarding MyFaces? Please subscribe to our brandnew announce mailinglist at: [EMAIL PROTECTED]
Re: Fw: JSF - SPRING - HIBERNATE Mapping problem
I thought so too before i read a post in forum.hibernate.org. A man had the same problem and was saying it wasn't a hibernate but a struts problem. So, i wondered if the same problem would not exist with JSF ... Thank you. - Original Message - From: Werner Punz [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Tuesday, September 20, 2005 9:38 AM Subject: Re: Fw: JSF - SPRING - HIBERNATE Mapping problem This is a question which I would ask in forum.hibernate.org because it is very Hibernate specific and neither has anything to do with spring or with JSF, could be that both properties reference a dataset with the same key in the database hence both get updated at the same time. Werner Nicolas GENSOLLEN wrote: Hi everybody, first excuse me for my poor english. I use JSF with Spring and Hibernate and I have the following problem : i ve a class with two many-to-one relations which have the same bean associated. This works fine, but , my problems is when i m trying to update the class and the two beans have the same values, since then hibernate always update both beans with similar values, independently of the values you set to the first bean, hibernate always update database with the values of the second one. The hibernate mapping look likes that : many-to-one name=name1 column=columnA *class*=com.classeA/ many-to-one name=name2 column=columnB *class*=com.classA/ If someone has the same problem... Thank you for your help.
Re: MyFaces 1.1.0 - problem redeploying apps - SOLVED
Hi! I googled about the problem. It seems to be related to classloaders which hold resources like memory, tcp ports and files. The issue exists in Java 1.4.2, maby only on Windows. Java 1.5 fixed some but not all problems - havent tried it. I also had always the problem that after some (around 30) redeploys I get an OutOfMemoryExecption... same problem ;-) You can read more about the issue in the blog at (*1). For me personaly I solved the problem by adding the following to the META-INF\context.xml file: Context antiResourceLocking=true antiJARLocking=true WatchedResource WEB-INF/web.xml /WatchedResource /Context When in Tomcat the antiXXXLocking are true, Tomcat copies all files from the application to its temp folder and uses this files - which means that deployment is slower (due copying) and your temp folder gets full. Dont know why this didnt work the first time... But, ok, its solved. (*1) http://blog.exis.com/colin/archives/2005/08/23/i-put-a-spell-on-you-because-youre-mine-aka-why-is-tomcat-holding-onto-jars/
Re: MyFaces 1.1.0 - problem redeploying apps - SOLVED
Thanks for keeping us updated! I would be great if you could add this on the WIKI pages somewhere. sounds like a problem more users could run into ;) regards, Martin On 9/20/05, Boris Klug [EMAIL PROTECTED] wrote: Hi! I googled about the problem. It seems to be related to classloaders which hold resources like memory, tcp ports and files. The issue exists in Java 1.4.2, maby only on Windows. Java 1.5 fixed some but not all problems - havent tried it. I also had always the problem that after some (around 30) redeploys I get an OutOfMemoryExecption... same problem ;-) You can read more about the issue in the blog at (*1). For me personaly I solved the problem by adding the following to the META-INF\context.xml file: Context antiResourceLocking=true antiJARLocking=true WatchedResource WEB-INF/web.xml /WatchedResource /Context When in Tomcat the antiXXXLocking are true, Tomcat copies all files from the application to its temp folder and uses this files - which means that deployment is slower (due copying) and your temp folder gets full. Dont know why this didnt work the first time... But, ok, its solved. (*1) http://blog.exis.com/colin/archives/2005/08/23/i-put-a-spell-on-you-because-youre-mine-aka-why-is-tomcat-holding-onto-jars/ -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: Fw: JSF - SPRING - HIBERNATE Mapping problem
Probably not a JSF or Struts problem per se, but you might reference the same variables from the form and set both properties to the same value and then do a store on one... Check your binding code, if it really references different objects and also check the referenced ids of the objects, it really looks like you point to the same object for one reason or the other. Nicolas GENSOLLEN wrote: I thought so too before i read a post in forum.hibernate.org. A man had the same problem and was saying it wasn't a hibernate but a struts problem. So, i wondered if the same problem would not exist with JSF ... Thank you. - Original Message - From: Werner Punz [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Tuesday, September 20, 2005 9:38 AM Subject: Re: Fw: JSF - SPRING - HIBERNATE Mapping problem This is a question which I would ask in forum.hibernate.org because it is very Hibernate specific and neither has anything to do with spring or with JSF, could be that both properties reference a dataset with the same key in the database hence both get updated at the same time. Werner Nicolas GENSOLLEN wrote: Hi everybody, first excuse me for my poor english. I use JSF with Spring and Hibernate and I have the following problem : i ve a class with two many-to-one relations which have the same bean associated. This works fine, but , my problems is when i m trying to update the class and the two beans have the same values, since then hibernate always update both beans with similar values, independently of the values you set to the first bean, hibernate always update database with the values of the second one. The hibernate mapping look likes that : many-to-one name=name1 column=columnA *class*=com.classeA/ many-to-one name=name2 column=columnB *class*=com.classA/ If someone has the same problem... Thank you for your help.
Re: MyFaces 1.1.0 - problem redeploying apps - SOLVED
Actually there is more than only one problem with Tomcat, especially 5.5.9 is pretty nasty, on one hand it requires a JDK 5.0 on the other hand it refuses to compile 5.0 constructs due to the integrated jikes compiler, guess it is time to open a tomcat quirks page ;-). (It is not like Tomcat is the only app server with weird quirks, I had my fair share of problems with Resin recently as well) Werner Martin Marinschek wrote: Thanks for keeping us updated! I would be great if you could add this on the WIKI pages somewhere. sounds like a problem more users could run into ;) regards, Martin On 9/20/05, Boris Klug [EMAIL PROTECTED] wrote: Hi! I googled about the problem. It seems to be related to classloaders which hold resources like memory, tcp ports and files. The issue exists in Java 1.4.2, maby only on Windows. Java 1.5 fixed some but not all problems - havent tried it. I also had always the problem that after some (around 30) redeploys I get an OutOfMemoryExecption... same problem ;-) You can read more about the issue in the blog at (*1). For me personaly I solved the problem by adding the following to the META-INF\context.xml file: Context antiResourceLocking=true antiJARLocking=true WatchedResource WEB-INF/web.xml /WatchedResource /Context When in Tomcat the antiXXXLocking are true, Tomcat copies all files from the application to its temp folder and uses this files - which means that deployment is slower (due copying) and your temp folder gets full. Dont know why this didnt work the first time... But, ok, its solved. (*1) http://blog.exis.com/colin/archives/2005/08/23/i-put-a-spell-on-you-because-youre-mine-aka-why-is-tomcat-holding-onto-jars/
Re: MyFaces 1.1.0 - problem redeploying apps - SOLVED
Hi! I am not so in this Wiki stuff... but everybody can find the postings in the mailing list archive. Martin Marinschek wrote: Thanks for keeping us updated! I would be great if you could add this on the WIKI pages somewhere. sounds like a problem more users could run into ;) regards, Martin On 9/20/05, Boris Klug [EMAIL PROTECTED] wrote: Hi! I googled about the problem. It seems to be related to classloaders which hold resources like memory, tcp ports and files. The issue exists in Java 1.4.2, maby only on Windows. Java 1.5 fixed some but not all problems - havent tried it. I also had always the problem that after some (around 30) redeploys I get an OutOfMemoryExecption... same problem ;-) You can read more about the issue in the blog at (*1). For me personaly I solved the problem by adding the following to the META-INF\context.xml file: Context antiResourceLocking=true antiJARLocking=true WatchedResource WEB-INF/web.xml /WatchedResource /Context When in Tomcat the antiXXXLocking are true, Tomcat copies all files from the application to its temp folder and uses this files - which means that deployment is slower (due copying) and your temp folder gets full. Dont know why this didnt work the first time... But, ok, its solved. (*1) http://blog.exis.com/colin/archives/2005/08/23/i-put-a-spell-on-you-because-youre-mine-aka-why-is-tomcat-holding-onto-jars/
Migrating to 1.1.0 - duplicate ids
Hi! its me again, another problem after moving from 1.0.9m9 to 1.1.0. With the same application running fine in 1.0.9m9, I get the following exception when a page reloads: 2005-09-20 15:06:47,753 ERROR [jsp]: Servlet.service() for servlet jsp threw exception javax.faces.FacesException: cannot add component with id '_id21' and path : {Component-Path : [Class: javax.faces.component.html.HtmlInputText,Id: _id21]} to its parent component. This might be a problem due to duplicate ids. at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:401) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219) at org.apache.jsp.templates.generic_jsp._jspx_meth_h_inputText_1(org.apache.jsp.templates.generic_jsp:1642) at org.apache.jsp.templates.generic_jsp._jspx_meth_h_panelGrid_4(org.apache.jsp.templates.generic_jsp:1598) at org.apache.jsp.templates.generic_jsp._jspService(org.apache.jsp.templates.generic_jsp:636) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) I search the mailing list and someone suggested to assign a id by hand to every component - which is much work and would clumber the jsf pages. I manualy added a id to the component with the duplicate id and redeployed the app - now I get the exception from another component. So what changed from 1.0.9m9 to 1.1.0 related to this problem? Another strange thing is that I get the following warning: 2005-09-20 15:06:39,481 INFO [/XXX]: WARNING: Component _id12 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation! The only thing I create dynamically are the menu items for the jscookmenu may these cause the problem?
f:convertDateTime problem
Hello, i have a problem with the f:convertDateTime: if i have a simple h:outputText with an attached f:convertDateTime where only pattern is set (to HH:mm) the convertToObject goes wrong. For testing i'm using the date.jsp in simple expamles from svn current. I add h:inputText value=#{date3} f:convertDateTime pattern=HH:mm/ /h:inputText and remove the t:inputDate referencing date3. now every time i pressing the submit button the hour is incremented by one. Is this a bug, or what i'm doing wrong? -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.
RE: jscookmenu problem
Title: RE: jscookmenu problem Greg, Now I can see the comp as well. I did the same mistake with the filter-mapping and the servlet mapping. THANKS for the details. -deepinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Mon 9/19/2005 1:17 PM To: users@myfaces.apache.org Cc: Subject: RE: jscookmenu problem Hi, Alright I'm gonna try to go through the steps I followed (to make it from scratch, not from a weird situation like I was at the other day). 1) Install MyFaces the usual way 2) In your application, make sure your web.xml contains extra properties for extensions filters like the following: filter filter-nameextensionsFilter/filter-name filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/f ilter-class init-param param-nameuploadMaxFileSize/param-name param-value10m/param-value /init-param init-param param-nameuploadThresholdSize/param-name param-value100k/param-value /init-param /filter filter-mapping filter-nameextensionsFilter/filter-name url-pattern*.faces/url-pattern /filter-mapping Note here that the url-pattern *.faces has to correspond to the url-pattern of your servlet mapping, as in: servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.faces/url-pattern /servlet-mapping This was my problem, the examples were using *.jsf but I was using *.faces for my extensions and I had just done copy/paste without paying attention to this... 3) In the page where you want to use the jsCookMenu, you should now be able to use the following: t:jscookMenu layout=hbr theme=ThemeOffice t:navigationMenuItem id=users itemLabel=#{bundle['menu.users']} action="" / /t:jscookMenu Note: Using this technique you are using built-in themes within the component. Hence you do not need to include any css or js files that belong to the jsCookMenu component specifically in your page. These will be added at run time for you. Check the documentation for the layouts and themes available. As far as I'm concerned this worked for me. Let us know if you're still stuck, and let us know where you are stuck exactly if you're still experiencing problems. Hope this helps, Greg -Original Message- From: Deepinder Singh [mailto:[EMAIL PROTECTED]] Sent: Monday, September 19, 2005 2:54 PM To: MyFaces Discussion Subject: RE: jscookmenu problem Greg, Can you now click on the links of JSCookMenu. If so can you please let us know what you changed or what was missing earlier. Thanks, deepinder -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 14, 2005 12:05 PM To: users@myfaces.apache.org Subject: RE: jscookmenu problem 1. I'm looking into that too and currently trying to figure out why, unless I include the js and css files in my page, it does not work. One way I was able to see it (but not click on any links...) was to use TheOffice for example, and in my page that uses the t:jscookmenu, add the following: script type=text/_javascript_ src=""> link rel=stylesheet href=""> type=text/css / script type=text/_javascript_ src=""> In the head section. Of course you'll need the files in there... I found them in myFaces-srcsrc\components\org\apache\myfaces\custom\navmenu\resource But that's not the way it is supposed to work I believe... 2. Haven't tried this one yet. 3. I was able to get that one running fine. Maybe you can tell us how you're trying to implement this? Regards, Greg -Original Message- From: Deepinder Singh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 14, 2005 2:58 PM To: MyFaces Discussion Subject: RE: jscookmenu problem I am still learning how to use these comps. Some of the problems I am seeing are:- 1. Unbale to see the JSCookMenu on my page. 2. The table option is always visibile with the HTML Editor. 3. The scroller works fine, however I see crashes when I integrate with the sorter. I am using 1.0.9 version. Is anyone else having these problems? Thanks, deepinder ___ Siebel IT'S ALL ABOUT THE CUSTOMER Visit www.siebel.com This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.
Re: Migrating to 1.1.0 - duplicate ids
the JSP spec don´t allow components with the same id within the same namingcontainer. The menu items could be a problem if you add the same component instance to different parents (which breaks the component tree - because a component instance may only have one parent). 2005/9/20, Boris Klug [EMAIL PROTECTED]: Hi! its me again, another problem after moving from 1.0.9m9 to 1.1.0. With the same application running fine in 1.0.9m9, I get the following exception when a page reloads: 2005-09-20 15:06:47,753 ERROR [jsp]: Servlet.service() for servlet jsp threw exception javax.faces.FacesException: cannot add component with id '_id21' and path : {Component-Path : [Class: javax.faces.component.html.HtmlInputText,Id: _id21]} to its parent component. This might be a problem due to duplicate ids. at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:401) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219) at org.apache.jsp.templates.generic_jsp._jspx_meth_h_inputText_1(org.apache.jsp.templates.generic_jsp:1642) at org.apache.jsp.templates.generic_jsp._jspx_meth_h_panelGrid_4(org.apache.jsp.templates.generic_jsp:1598) at org.apache.jsp.templates.generic_jsp._jspService(org.apache.jsp.templates.generic_jsp:636) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) I search the mailing list and someone suggested to assign a id by hand to every component - which is much work and would clumber the jsf pages. I manualy added a id to the component with the duplicate id and redeployed the app - now I get the exception from another component. So what changed from 1.0.9m9 to 1.1.0 related to this problem? Another strange thing is that I get the following warning: 2005-09-20 15:06:39,481 INFO [/XXX]: WARNING: Component _id12 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation! The only thing I create dynamically are the menu items for the jscookmenu may these cause the problem? -- Mathias
Re: Migrating to 1.1.0 - duplicate ids
sorry I mean the JSF spec. 2005/9/20, Mathias Brökelmann [EMAIL PROTECTED]: the JSP spec don´t allow components with the same id within the same namingcontainer. The menu items could be a problem if you add the same component instance to different parents (which breaks the component tree - because a component instance may only have one parent). 2005/9/20, Boris Klug [EMAIL PROTECTED]: Hi! its me again, another problem after moving from 1.0.9m9 to 1.1.0. With the same application running fine in 1.0.9m9, I get the following exception when a page reloads: 2005-09-20 15:06:47,753 ERROR [jsp]: Servlet.service() for servlet jsp threw exception javax.faces.FacesException: cannot add component with id '_id21' and path : {Component-Path : [Class: javax.faces.component.html.HtmlInputText,Id: _id21]} to its parent component. This might be a problem due to duplicate ids. at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:401) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219) at org.apache.jsp.templates.generic_jsp._jspx_meth_h_inputText_1(org.apache.jsp.templates.generic_jsp:1642) at org.apache.jsp.templates.generic_jsp._jspx_meth_h_panelGrid_4(org.apache.jsp.templates.generic_jsp:1598) at org.apache.jsp.templates.generic_jsp._jspService(org.apache.jsp.templates.generic_jsp:636) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) I search the mailing list and someone suggested to assign a id by hand to every component - which is much work and would clumber the jsf pages. I manualy added a id to the component with the duplicate id and redeployed the app - now I get the exception from another component. So what changed from 1.0.9m9 to 1.1.0 related to this problem? Another strange thing is that I get the following warning: 2005-09-20 15:06:39,481 INFO [/XXX]: WARNING: Component _id12 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation! The only thing I create dynamically are the menu items for the jscookmenu may these cause the problem? -- Mathias -- Mathias
InputSuggestAjax Problems - How does this tag work?
Title: InputSuggestAjax Problems - How does this tag work? I have just tested the InputSuggestAjax, but it doesn't seem to work, like i want: Here is my code-snippet: JSP Site: %@ taglib uri=http://java.sun.com/jsf/html prefix=h% %@ taglib uri=http://java.sun.com/jsf/core prefix=f% %@ taglib uri=http://myfaces.apache.org/sandbox prefix=s% html f:view head titletext/title /head body h:form table class=haupttabelle cellspacing=0 tr td s:inputSuggestAjax suggestedItemsMethod=#{queryHelper.getItems}/ /td /tr /table /h:form /body /f:view /html Backing Bean: public List getItems(String prefix) { List li = new ArrayList(); li.add(prefix + 1); li.add(prefix + 2); li.add(prefix + 3); li.add(prefix + 4); li.add(prefix + 5); li.add(prefix + 6); return li; } I have copied the code from the example, but when I enter something in the textbox, nothing happens... Please can anybody describe me, how this inputsuggestAjax tag works? I want to read the Data for the InputSuggestAjax Tag from a Database. Do I only have to iterate through the result and add it to an arraylist? Can I also use a Map for InputSuggestAjax? Perhaps are there some tutorials? Thx for help! ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~
RE: InputSuggestAjax Problems - How does this tag work?
Title: InputSuggestAjax Problems - How does this tag work? Hi, I think the inputSuggestAjax works only with the client state saving method (not the default server method). context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param Regards, Maxence Dewil De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé: mardi 20 septembre 2005 18:04 À: users@myfaces.apache.org Objet: InputSuggestAjax Problems - How does this tag work? I have just tested the InputSuggestAjax, but it doesn't seem to work, like i want: Here is my code-snippet: JSP Site: %@ taglib uri=http://java.sun.com/jsf/html prefix=h% %@ taglib uri=http://java.sun.com/jsf/core prefix=f% %@ taglib uri=http://myfaces.apache.org/sandbox prefix=s% html f:view head titletext/title /head body h:form table class=haupttabelle cellspacing=0 tr td s:inputSuggestAjax suggestedItemsMethod=#{queryHelper.getItems}/ /td /tr /table /h:form /body /f:view /html Backing Bean: public List getItems(String prefix) { List li = new ArrayList(); li.add(prefix + 1); li.add(prefix + 2); li.add(prefix + 3); li.add(prefix + 4); li.add(prefix + 5); li.add(prefix + 6); return li; } I have copied the code from the example, but when I enter something in the textbox, nothing happens... Please can anybody describe me, how this inputsuggestAjax tag works? I want to read the Data for the InputSuggestAjax Tag from a Database. Do I only have to iterate through the result and add it to an arraylist? Can I also use a Map for InputSuggestAjax? Perhaps are there some tutorials? Thx for help! ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~
Antwort: Migrating to 1.1.0 - duplicate ids
I recently discovered the same problem with the tree2 component (http://issues.apache.org/jira/browse/MYFACES-580). It seems that this problem is caused by a call to context.getViewRoot().createUniqueId() within the component renderer. I changed the renderer so that it does not depend on this method. And the problem seems to be gone. Maybe the jscookmenu does something similar ... somehow corrupting the component tree. May be a more general bug. [EMAIL PROTECTED] schrieb am 20.09.2005 15:13:45: Hi! its me again, another problem after moving from 1.0.9m9 to 1.1.0. With the same application running fine in 1.0.9m9, I get the following exception when a page reloads: 2005-09-20 15:06:47,753 ERROR [jsp]: Servlet.service() for servlet jsp threw exception javax.faces.FacesException: cannot add component with id '_id21' and path : {Component-Path : [Class: javax.faces.component.html.HtmlInputText,Id: _id21]} to its parent component. This might be a problem due to duplicate ids. at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:401) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219) at org.apache.jsp.templates.generic_jsp._jspx_meth_h_inputText_1(org. apache.jsp.templates.generic_jsp:1642) at org.apache.jsp.templates.generic_jsp._jspx_meth_h_panelGrid_4(org. apache.jsp.templates.generic_jsp:1598) at org.apache.jsp.templates.generic_jsp._jspService(org.apache.jsp. templates.generic_jsp:636) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper. service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) I search the mailing list and someone suggested to assign a id by hand to every component - which is much work and would clumber the jsf pages. I manualy added a id to the component with the duplicate id and redeployed the app - now I get the exception from another component. So what changed from 1.0.9m9 to 1.1.0 related to this problem? Another strange thing is that I get the following warning: 2005-09-20 15:06:39,481 INFO [/XXX]: WARNING: Component _id12 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation! The only thing I create dynamically are the menu items for the jscookmenu may these cause the problem?
AW: InputSuggestAjax Problems - How does this tag work?
Title: InputSuggestAjax Problems - How does this tag work? I haveset the Client State... What else could be? -Ursprüngliche Nachricht-Von: Maxence Dewil [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 20. September 2005 18:14An: MyFaces DiscussionBetreff: RE: InputSuggestAjax Problems - How does this tag work? Hi, I think the inputSuggestAjax works only with the client state saving method (not the default server method). context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param Regards, Maxence Dewil De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé: mardi 20 septembre 2005 18:04À: users@myfaces.apache.orgObjet: InputSuggestAjax Problems - How does this tag work? I have just tested the InputSuggestAjax, but it doesn't seem to work, like i want: Here is my code-snippet: JSP Site: %@ taglib uri="http://java.sun.com/jsf/html" prefix="h"% %@ taglib uri="http://java.sun.com/jsf/core" prefix="f"% %@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"% html f:view head titletext/title /head body h:form table class="haupttabelle" cellspacing="0" tr td s:inputSuggestAjax suggestedItemsMethod="#{queryHelper.getItems}"/ /td /tr /table /h:form /body /f:view /html Backing Bean: public List getItems(String prefix) { List li = new ArrayList(); li.add(prefix + 1); li.add(prefix + 2); li.add(prefix + 3); li.add(prefix + 4); li.add(prefix + 5); li.add(prefix + 6); return li; } I have copied the code from the example, but when I enter something in the textbox, nothing happens... Please can anybody describe me, how this inputsuggestAjax tag works? I want to read the Data for the InputSuggestAjax Tag from a Database. Do I only have to iterate through the result and add it to an arraylist? Can I also use a Map for InputSuggestAjax? Perhaps are there some tutorials? Thx for help! ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~ ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~
rowOnClick not working? please help!
hello, I'm new to the group and will be doing a tun with JSF, and myFaces over the next 6 to 12 months. I'm currently working on getting rowOnClick working in a simple jsf file derived from sortTable.jsp example of the myFaces examples. I'm getting the below error. I think I'm missing something in my configuration for usage of tomahawk. Outside of putting the tomahawk.jar in my WEB-INF\lib what else needs done??? Any input on the below issue would be greatly appreciated. Also when removing rowId I get the same message Also does anyone know where to / or have the great examples from http://www.irian.at/myfaces/home.jsf Environment: XP Pro., tomcat 5.5.9, jdk 1.5.0_04 thanks, oliver = javax.servlet.ServletException: /sortTable.jsp(56,16) Unable to find setter method for attribute: rowId javax.faces.webapp.FacesServlet.service(FacesServlet.java:125) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112) root cause javax.faces.FacesException: /sortTable.jsp(56,16) Unable to find setter method for attribute: rowId org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:411) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:280) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) javax.faces.webapp.FacesServlet.service(FacesServlet.java:110) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112) === The following is my JSP: %@ page session=false contentType=text/html;charset=utf-8% %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t% html !-- /* * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ //-- [EMAIL PROTECTED] file=inc/head.inc % body !-- managed beans used: list -- SCRIPT Language=JavaScript function ding(){ alert('ding') } /SCRIPT f:view f:loadBundle basename=com.jsftest.resource.example_messages var=example_messages/ t:panelLayout id=page layout=#{globalOptions.pageLayout} styleClass=pageLayout headerClass=pageHeader navigationClass=pageNavigation bodyClass=pageBody footerClass=pageFooter f:facet name=header f:subview id=header jsp:include page=inc/page_header.jsp / /f:subview /f:facet f:facet name=navigation f:subview id=menu jsp:include page=inc/navigation.jsp / /f:subview /f:facet f:facet name=body h:panelGroup id=body t:dataTable styleClass=standardTable headerClass=standardTable_SortHeader footerClass=standardTable_Footer rowClasses=standardTable_Row1,standardTable_Row2 var=car value=#{list.cars} sortColumn=#{list.sort} sortAscending=#{list.ascending} preserveDataModel=true preserveSort=true rowId=#{car.color} rowOnClick=ding() f:facet name=header h:outputText value=(header table) / /f:facet f:facet name=footer h:outputText value=(footer table) / /f:facet c:set var=test value=test/ h:column f:facet name=header t:commandSortHeader columnName=type arrow=true h:outputText value=#{example_messages['sort_cartype']} / /t:commandSortHeader /f:facet h:outputText value=#{car.type} / f:facet name=footer h:outputText id=ftr1 value=(footer col1) / /f:facet /h:column h:column f:facet name=header
f:convertDateTime problem
Hello, i have a problem with the f:convertDateTime: if i have a simple h:outputText with an attached f:convertDateTime where only pattern is set (to HH:mm) the convertToObject goes wrong. For testing i'm using the date.jsp in simple expamles from svn current. I add h:inputText value=#{date3} f:convertDateTime pattern=HH:mm/ /h:inputText and remove the t:inputDate referencing date3. now every time i pressing the submit button the hour is incremented by one. Is this a bug, or what i'm doing wrong? -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.
MyFaces 1.1.0 and getRequestMap
Hi all, In the process of upgrading to MyFaces 1.1.0, I think I have found an issue with the putAll method on the request map. In 1.0.9, this code worked correctly: FacesContext.getCurrentInstance().getExternalContext().getRequestMap().putAll(myMap); In 1.1.0, putAll throws an UnsupportedOperationException. I modified my code to call put in a loop and everything worked. >From the JSF 1.1 JavaDoc for getRequestMap(): The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. Thanks, Michael
h:selectOneRadio stopped working on 1.1.0
Guys, I havecode that used Integer objects with the h:selectOneRadio component and it worked well with MyFaces 1.0.9 the value parameter is of Integer type andevery SelectItem passed to the component has it's value of Integer type also. I switched to MyFaces 1.1.0 and the component does not show a initial value anymore. Digging inside the code, I found that the HtmlRadioRendererBase always convert the SelectItem value to a String value, and issues a equals() call with the Integer value that was obtainedby aValueBinding reference. It's obvious that String.equals(Integer) will always return false, and because of this issue, the component will never show the selected value. I see that if I convert everything to String, it will work again. Is there a reason for this to work this way? Should both value binding and the SelectItem values be converted for this comparison??? The code I'm talking about is on HtmlRadioRendererBase (lines 185 and 186). Thanks in advance, Eduardo Bastos Leite Analista de Sistemas QuickMind Tecnologia em Conhecimento http://www.quickmind.com.br Tel.: +55 21 2524-2956 Ext. 215 Cel.: +55 21 9953-2223
Re: Fw: JSF - SPRING - HIBERNATE Mapping problem
can you point me towards that post, maybe I can figure out on what is going on. werner Nicolas GENSOLLEN wrote: I thought so too before i read a post in forum.hibernate.org. A man had the same problem and was saying it wasn't a hibernate but a struts problem. So, i wondered if the same problem would not exist with JSF ... Thank you. - Original Message - From: Werner Punz [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Tuesday, September 20, 2005 9:38 AM Subject: Re: Fw: JSF - SPRING - HIBERNATE Mapping problem This is a question which I would ask in forum.hibernate.org because it is very Hibernate specific and neither has anything to do with spring or with JSF, could be that both properties reference a dataset with the same key in the database hence both get updated at the same time. Werner Nicolas GENSOLLEN wrote: Hi everybody, first excuse me for my poor english. I use JSF with Spring and Hibernate and I have the following problem : i ve a class with two many-to-one relations which have the same bean associated. This works fine, but , my problems is when i m trying to update the class and the two beans have the same values, since then hibernate always update both beans with similar values, independently of the values you set to the first bean, hibernate always update database with the values of the second one. The hibernate mapping look likes that : many-to-one name=name1 column=columnA *class*=com.classeA/ many-to-one name=name2 column=columnB *class*=com.classA/ If someone has the same problem... Thank you for your help.
Re: MyFaces 1.1.0 and getRequestMap
From: Michael [EMAIL PROTECTED] In 1.1.0, putAll throws an UnsupportedOperationException. I modified my code to call put in a loop and everything worked. From the JSF 1.1 JavaDoc for getRequestMap(): The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. I'm not sure why it was removed, but the putAll method is optional: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html -- Wendy Smoak
Re: t:dataScroller one portion of data
It is not a limitation of MVC or JSF. It is a t:dataTable/t:dataScroller limitation. Model data can be lazy loading, which is transparent to view (JSF). t:dataScroller should let the model know which portion ofdata is needed.David Haynes [EMAIL PROTECTED] wrote: Dave wrote: I have 100 rows. Each time I like to fetch 10 rows from database. So the data model has knowledge of 10 rows. for="" rowsCountVar="rowsCount" displayedRowsCountVar="displayedRowsCountVar" firstRowIndexVar="firstRowIndex" lastRowIndexVar="lastRowIndex" pageCountVar="pageCount" pageIndexVar="pageIndex" --- So the rowCount is 10, firstRowIndex=0, lastRowIndex=9 even though I fetch rows 50-59 from database. I like the rowCount is 100 (the whole data model from user's view), the firstRowIndex is 50, and the lastRowIndex is 59. When User click next page (paginator), backing bean needs to be notified wh ich portion of data to fetch from database. Does and support this? Thanks! Dave. Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. AFAIK the answer is no.The dataTable is a view onto the ResultSet that has been handed to it via the backing bean. The backing bean is assumed to hand the *entire* query result in one ResultSet. That is, the dataTable 'first' and 'rpws' operators are relative to the ResultSet, not to the database query result. (I am using 'query result' to indicate the set of values returned by the SQL query and ResultSet to be the JSF Collection of objects equivalent to the query result.)In order to get what you want, there would have to be some way for the dataTable to hand the offset and row count values to the backing bean for use in creating the ResultSet. (See my earlier emails on having a parametric dataTable option.)The assumption that the ResultSet is the entire query result is in keeping with the MVC model in that the view component is independent from the model, but it does present additional difficulties when working with large query results from a database performance point of view. There are other use cases where the non-dynamic nature of dataTable causes limitations, however these 'limitations' may be viewed as being the result of MVC and not necessarily JSF.-david- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
Re: InputSuggestAjax Problems - How does this tag work?
Have you checked out the MyFaces examples? You can look into the source-code there, you will find a full working example... Essentially, you will need to supply a list from your backing bean. regards, Martin On 9/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have set the Client State... What else could be? -Ursprüngliche Nachricht- Von: Maxence Dewil [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. September 2005 18:14 An: MyFaces Discussion Betreff: RE: InputSuggestAjax Problems - How does this tag work? Hi, I think the inputSuggestAjax works only with the client state saving method (not the default server method). context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param Regards, Maxence Dewil De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 septembre 2005 18:04 À : users@myfaces.apache.org Objet : InputSuggestAjax Problems - How does this tag work? I have just tested the InputSuggestAjax, but it doesn't seem to work, like i want: Here is my code-snippet: JSP Site: %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib uri=http://myfaces.apache.org/sandbox; prefix=s% html f:view head titletext/title /head body h:form table class=haupttabelle cellspacing=0 tr td s:inputSuggestAjax suggestedItemsMethod=#{queryHelper.getItems}/ /td /tr /table /h:form /body /f:view /html Backing Bean: public List getItems(String prefix) { List li = new ArrayList(); li.add(prefix + 1); li.add(prefix + 2); li.add(prefix + 3); li.add(prefix + 4); li.add(prefix + 5); li.add(prefix + 6); return li; } I have copied the code from the example, but when I enter something in the textbox, nothing happens... Please can anybody describe me, how this inputsuggestAjax tag works? I want to read the Data for the InputSuggestAjax Tag from a Database. Do I only have to iterate through the result and add it to an arraylist? Can I also use a Map for InputSuggestAjax? Perhaps are there some tutorials? Thx for help! ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~ ~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~ -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: h:selectOneRadio stopped working on 1.1.0
Please open a jira-issue on this! regards, Martin On 9/20/05, Eduardo Leite [EMAIL PROTECTED] wrote: Guys, I have code that used Integer objects with the h:selectOneRadio component and it worked well with MyFaces 1.0.9 the value parameter is of Integer type and every SelectItem passed to the component has it's value of Integer type also. I switched to MyFaces 1.1.0 and the component does not show a initial value anymore. Digging inside the code, I found that the HtmlRadioRendererBase always convert the SelectItem value to a String value, and issues a equals() call with the Integer value that was obtained by a ValueBinding reference. It's obvious that String.equals(Integer) will always return false, and because of this issue, the component will never show the selected value. I see that if I convert everything to String, it will work again. Is there a reason for this to work this way? Should both value binding and the SelectItem values be converted for this comparison??? The code I'm talking about is on HtmlRadioRendererBase (lines 185 and 186). Thanks in advance, Eduardo Bastos Leite Analista de Sistemas QuickMind Tecnologia em Conhecimento http://www.quickmind.com.br Tel.: +55 21 2524-2956 Ext. 215 Cel.: +55 21 9953-2223 -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: h:selectOneRadio stopped working on 1.1.0
P.S. best would be with according JSP and Bean-code regards, Martin On 9/20/05, Martin Marinschek [EMAIL PROTECTED] wrote: Please open a jira-issue on this! regards, Martin On 9/20/05, Eduardo Leite [EMAIL PROTECTED] wrote: Guys, I have code that used Integer objects with the h:selectOneRadio component and it worked well with MyFaces 1.0.9 the value parameter is of Integer type and every SelectItem passed to the component has it's value of Integer type also. I switched to MyFaces 1.1.0 and the component does not show a initial value anymore. Digging inside the code, I found that the HtmlRadioRendererBase always convert the SelectItem value to a String value, and issues a equals() call with the Integer value that was obtained by a ValueBinding reference. It's obvious that String.equals(Integer) will always return false, and because of this issue, the component will never show the selected value. I see that if I convert everything to String, it will work again. Is there a reason for this to work this way? Should both value binding and the SelectItem values be converted for this comparison??? The code I'm talking about is on HtmlRadioRendererBase (lines 185 and 186). Thanks in advance, Eduardo Bastos Leite Analista de Sistemas QuickMind Tecnologia em Conhecimento http://www.quickmind.com.br Tel.: +55 21 2524-2956 Ext. 215 Cel.: +55 21 9953-2223 -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: MyFaces 1.1.0 and getRequestMap
This is something that was changed for TCK compliance. Can you look into the RI? I think that you should find this very same UnsupportedOperationException being thrown there... regards, Martin On 9/20/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Michael [EMAIL PROTECTED] In 1.1.0, putAll throws an UnsupportedOperationException. I modified my code to call put in a loop and everything worked. From the JSF 1.1 JavaDoc for getRequestMap(): The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. I'm not sure why it was removed, but the putAll method is optional: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html -- Wendy Smoak -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: f:convertDateTime problem
Hello Volker, i think it's a timezone issue. If you look at DateTimeConverter you see getAsObject and getAsString are't symmetric. getAsObject DateFormat format = getDateFormat(); TimeZone tz = getTimeZone(); if( tz != null ) format.setTimeZone( tz ); getAsString DateFormat format = getDateFormat(); if (_timeZone != null) { format.setTimeZone(_timeZone); } getTimeZone returns as default GMT the last log entry is: Fixes MYFACES-506. Now the default time for the GMT zone is returned in DateTimeConverter.getTimeZone if none is set. Either getAsString should use getTimeZone or the fix should be reverted. Can you test this with setting the timezone in convertDateTime. Good Night Bernd Volker Weber wrote: Hello, i have a problem with the f:convertDateTime: if i have a simple h:outputText with an attached f:convertDateTime where only pattern is set (to HH:mm) the convertToObject goes wrong. For testing i'm using the date.jsp in simple expamles from svn current. I add h:inputText value=#{date3} f:convertDateTime pattern=HH:mm/ /h:inputText and remove the t:inputDate referencing date3. now every time i pressing the submit button the hour is incremented by one. Is this a bug, or what i'm doing wrong? -- Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333
release notes for 1.1.0
Hi, I can't find any release notes for the 1.1.0 release. Do they exist? In particular, I saw a comment on this list about the context listener no longer being needed in the 1.1.0 release. Where is information like this available? Thanks, Simon
bugfix for myfaces-401
Is there someone to test and commit this bugfix, please? Thanks! http://issues.apache.org/jira/browse/MYFACES-401
Christian Rüedi/GK/Konzern/Globus-Gruppe ist außer Haus.
Ich werde ab 21.09.2005 nicht im Büro sein. Ich kehre zurück am 30.09.2005. Ich werde Ihre Nachrichten am 03.10.05 empfangen.
Re: f:convertDateTime problem
Hallo Bernd, yes i think also this is a timezone problem. when adding a 'timzone=CEST' to the converter the time is stable but wrong. I added logging to bean getter and setter: getter says 'Di Sep 20 22:44:41 CEST 2005' but on page i have '20:44'. Omitting timezone displays the time correct but increments on each submit. So you don't think i'm doing something wrong using this converter? I will try tomorrow patching getAsString to use getTimeZone(). Bye Bernd Bohmann wrote: Hello Volker, i think it's a timezone issue. If you look at DateTimeConverter you see getAsObject and getAsString are't symmetric. getAsObject DateFormat format = getDateFormat(); TimeZone tz = getTimeZone(); if( tz != null ) format.setTimeZone( tz ); getAsString DateFormat format = getDateFormat(); if (_timeZone != null) { format.setTimeZone(_timeZone); } getTimeZone returns as default GMT the last log entry is: Fixes MYFACES-506. Now the default time for the GMT zone is returned in DateTimeConverter.getTimeZone if none is set. Either getAsString should use getTimeZone or the fix should be reverted. Can you test this with setting the timezone in convertDateTime. Good Night Bernd Volker Weber wrote: Hello, i have a problem with the f:convertDateTime: if i have a simple h:outputText with an attached f:convertDateTime where only pattern is set (to HH:mm) the convertToObject goes wrong. For testing i'm using the date.jsp in simple expamles from svn current. I add h:inputText value=#{date3} f:convertDateTime pattern=HH:mm/ /h:inputText and remove the t:inputDate referencing date3. now every time i pressing the submit button the hour is incremented by one. Is this a bug, or what i'm doing wrong? -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.
Re: release notes for 1.1.0
Release notes are on the download page, here the direct link: http://myfaces.apache.org/RELEASE-NOTES-1.1.0.txt you can leave out the context listener from your web.xml - it will automatically be added when the tld is added to the project! regards, Martin On 9/21/05, Simon Kitching [EMAIL PROTECTED] wrote: Hi, I can't find any release notes for the 1.1.0 release. Do they exist? In particular, I saw a comment on this list about the context listener no longer being needed in the 1.1.0 release. Where is information like this available? Thanks, Simon -- http://www.irian.at Your JSF powerhouse - JSF Trainings in English and German
Re: release notes for 1.1.0
From: Simon Kitching [EMAIL PROTECTED] I can't find any release notes for the 1.1.0 release. Do they exist? In particular, I saw a comment on this list about the context listener no longer being needed in the 1.1.0 release. Where is information like this available? On a similar subject, is there a list of required dependencies for 1.1.0? Looking at the examples, there are several Commons libraries included, but it's not clear if they are required by the implementation, or possibly by Tomahawk. Thanks, Wendy
Tabbed menu options
Greetings, I'm looking at using tabbed menus. I really like the LF of Struts nice tabs and the DitchNet tabs. Struts Menu Nice Tabs: http://demo.raibledesigns.com/struts-menu/velocity-nicetabs.jsp?Home Ditchnet Tabs: http://209.61.157.8:8080/taglibs/ Is there any reason why I would NOT use either with JSF? Is there a JSF tab library in the works that has or could be modified to incorporate this type of chrome LF? I looked at the JSFTabs and didn't particularly like the screen shot. http://demo.raibledesigns.com/struts-menu/velocity-nicetabs.jsp?Home Maybe it can be easily modified. I downloaded the example war, but you have to modify Tomcat server.xml to install it and I'm too lazy at the moment. Maybe I'll have a look tomorrow. Any feedback is welcome. /robert
t:updateActionListener help
Hello all, I'm trying to get t:updateActionListener working but am having some problems. I've got the following table on one page: h:dataTable value=#{institutionHandler.institutionsModel} var=institution styleClass=tableReport rowClasses=row,altrow h:column f:facet name=header h:outputText value=#{labels.institutionNameLabel} / /f:facet h:outputText value=#{institution.name} / /h:column h:column f:facet name=header h:outputText value=#{labels.viewLabel} / /f:facet h:commandLink action=viewInstitution immediate=true h:outputText value=#{labels.viewLabel} / t:updateActionListener property=#{institutionHandler.currentInstitutionId} value=#{institution.id} / /h:commandLink /h:column /h:dataTable When the InstitutionHandler.setCurrentInstitutionId() method is called the institution is loaded from the Hibernate backend. The view page that it goes to just displays the institution information in non-editable form with a link to allow the user to edit it. In theory everything should be working well, as far as I understand. The strange thing is that when the view page is loaded no institution has been loaded because the institution id hasn't been properly set. I did some logging and the InstititionHandler.setCurrentInstitutionId() method is only ever called on the listing page. On the view page the InstititionHandler.setCurrentInstitutionId() method is never called, only the InstititionHandler.getCurrentInstitutionId() method is called. Is there something I'm missing here? Thanks, Rich