Fwd: 4 new messages in 2 topics - digest
-- Forwarded message -- From: javawug group [EMAIL PROTECTED] Date: Oct 30, 2007 7:58 AM Subject: 4 new messages in 2 topics - digest To: javawug digest subscribers [EMAIL PROTECTED] JAVAWUG http://groups.google.co.uk/group/javawug?hl=en [EMAIL PROTECTED] Today's topics: * DBunit for testing inserting data rather than use dao.create() - 2 messages, 2 authors http://groups.google.co.uk/group/javawug/browse_thread/thread/aaef6bc006610731?hl=en * bof 31 registrations - 2 messages, 2 authors http://groups.google.co.uk/group/javawug/browse_thread/thread/324a8fc7ec5b0fe2?hl=en == TOPIC: DBunit for testing inserting data rather than use dao.create() http://groups.google.co.uk/group/javawug/browse_thread/thread/aaef6bc006610731?hl=en == == 1 of 2 == Date: Mon, Oct 29 2007 4:31 am From: Phil Zoio I'd agree that you are generally better off using DbUnit to populate your data sets, unless your application is very small or has very small set up data setup requirements. DbUnit is more flexible, as you can ingest any data you want/need at test time. Achieving the same setup through code can be tedious. On the other hand, using the API itself does give you the benefit that all of the data you insert is internally consistent, that is, obeys the validation rules that you may have specified both through the database as well as through Hibernate validation/constraints. However, the reality is that some data is probably going to need to be ingested via scripts, and DbUnit is a pretty good way of doing this. One approach which I find works quite well is: 1) in the setUp() method for any test which uses the database, run the delete from TABLE_X sql for any table which is in the database. You can set up a utility method for this and run it using Spring JDBC. I find that DbUnit doesn't work so well for this purpose, because DbUnit will only delete the tables defined in the current data set. 2) also in the setUp() method, use DbUnit to insert data as Adam suggests. Of course, here you may be adding a general set of data and/or data which is specific to the current test 3) run your data dependent tests The Hypersonic in memory database configuration is very easy to set up and get going with, but two downsides using it are: you don't get to see the data, because as soon as your test has finished running and the JVM terminates, your data gone. Secondly, you also need to maintain a real configuration (with, say, Oracle or MySQL), which means you need to maintain the infrastructure for switching between your Hypersonic and your real configuration. As a result, I'm tending to bypass the HSQL config these days. Regards, Phil Adam Hardy wrote: Hi Marco, I'm using a combination of DbUnit and hypersonic in-memory db to load up fresh data into an empty schema for every test. It beats any other method I've used hands-down. Unless you do this, you have problems with the data in the database getting hacked about and the tests fail. We ended up continually fixing data or editing the tests, it's a license to waste time. The dbunit xml format for storing data is reasonable enough but changes to the schema require changes to the dbunit xml - I handled this using a program that will load up the data into the old schema, execute an sql script to alter the schema and initialise any new columns etc, and then export the data back out to xml again. It ended up being easier to maintain the data this way than the old way of going through the unit test code and updating every data-create method that had broken. Regards Adam Marco on 28/10/07 09:38, wrote: hi all, i'd like to promote the use of DbUnit @ work, as our tests are currently relying on data being already in the database. Additionally , for populating db we are using jdbcTemplate ... or some dao.create methods Argument @work is that, since we are using Hibernate, we should as well use each hibernateDao.create method to insert the data in the database. I personally think that we should not use a method (create()) that we are also supposed to test for populating the database, and we should use DbUnit instead.. but i don't know if mine is a valid argument... i was wondering what all of you do for populating testing data.. and if you can give me some arguments for using dao.create() rather than DbUnit.. you can also mail me privately at [EMAIL PROTECTED] == 2 of 2 == Date: Mon, Oct 29 2007 5:15 am From: Adam Hardy DbUnit will ultimately do whatever you say it should do, but as Phil points out, you have to program it that way, which can be a start-up overhead you might not need. I did need it, after working on several projects where the test data was a thorn in the side. Hypersonic or not is not a major issue really. I came a long way with a fairly lightweight dbunit-based
Re: JSF lifecyle - managed-bean
Hi, i give my 2 cents here you can expose your JSF via spring either using Spring variable resolver or jsf-spring i have a bean (non-JSF, but still spring-managed) which has setters, and in my init method i am using some of the data from setters.. all i needed to do was to declare an init-method for my bean in applicationContext.xml if you expose your JSF beans as Spring beans (jsf-spring or not) they will behave exactly like Spring beans hth marco On 2/5/07, Martin Marinschek [EMAIL PROTECTED] wrote: From my experience: don't use jsf-spring-library, use Spring 2.0 directly instead. Jsf-spring is known to cause class-loader issues in some containers, e.g. Websphere. In Spring 2.0, you can define managed beans with session and request-scope perfectly! regards, Martin On 2/5/07, Beelen, Marco [EMAIL PROTECTED] wrote: Hello Lisa, I'm solving that problem by implementing the InitializingBean-interface of Spring on my managed bean and use the jsf-spring-library ( http://jsf-spring.sourceforge.net/ ) to make sure that the method is being called: My faces-context.xml contains: application view-handlercom.sun.facelets.FaceletViewHandler/view-handler variable-resolver org.springframework.web.jsf.DelegatingVariableResolve r/variable-resolver /application And in the web.xml I added: listener listener-class de.mindmatters.faces.spring.context.ContextLoaderListener /listener-class /listener With kind regards, Marco -Original Message- From: Lisa [mailto:[EMAIL PROTECTED] ] Sent: maandag 5 februari 2007 6:44 To: users@myfaces.apache.org Subject: JSF lifecyle - managed-bean Is there a way to automatically call an init() method after all setters have been called on a managed-bean? I am looking for something I can put in the .xml config file or an interface that I can extend. Spring has this facility. We are using Spring for most of the framework but using JSF managed-bean facility for all backing beans. thanks L -- View this message in context: http://www.nabble.com/JSF-lifecyle---managed-bean-tf3172695.html#a880137 8 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html ) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
problem with jscookmenu
hi all, i am experiencing problems in my myfaces app regarding jscookmenu When i load it in the jsf page, i am receiving the following error: 17:40:41,687 INFO [STDOUT] 28-Jan-2007 17:40:41 com.sun.facelets.FaceletViewHan dler handleRenderException SEVERE: Error Rendering View[/main.xhtml] java.lang.NullPointerException: value at javax.faces.model.SelectItem.init(SelectItem.java:69) at org.apache.myfaces.custom.navmenu.NavigationMenuItem .init(Navigatio nMenuItem.java:60) at org.apache.myfaces.custom.navmenu.NavigationMenuItem .init(Navigatio nMenuItem.java:75) at org.apache.myfaces.custom.navmenu.NavigationMenuUtils.getNavigationMe nuItemList(NavigationMenuUtils.java:63) at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.e ncodeChildren(HtmlJSCookMenuRenderer.java:122) at javax.faces.component.UIComponentBase.encodeChildren (UIComponentBase. java:319) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive (ComponentSu pport.java:234) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive (ComponentSu pport.java:239) at com.sun.facelets.FaceletViewHandler.renderView( FaceletViewHandler.jav a:580) at org.apache.myfaces.lifecycle.LifecycleImpl.render( LifecycleImpl.java: 352) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Appl icationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationF ilterChain.java:173) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter (Exte nsionsFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Appl icationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationF ilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F ilterChainProxy.java:264) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke (Filt erSecurityInterceptor.java:97) i m not sure if i am missing something... in my app i am including following related jars (i mbuilding it using maven2) - myfaces-all-1.1.1.jar - tomahawk-1.1.1.jar - jsf-facelets-1.1.10.jar - el-api-1.2.jar - el-ri-1.2.jar here's my menu !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:t=http://myfaces.apache.org/tomahawk; t:jscookMenu layout=vbr theme=ThemeOffice t:navigationMenuItem id=nav_2 itemLabel=Budget t:navigationMenuItem id=nav_2_1 itemLabel=Insert Expense itemValue=insertExpense action=go_to_insertExpense icon=images/myfaces.gif / t:navigationMenuItem id=nav_2_2 itemLabel=Query Expense itemValue=queryExpense action=go_to_queryExpense icon=images/myfaces.gif / t:navigationMenuItem id=nav_2_3 itemLabel=Modify Expense itemValue=Modify Expense action=go_to_modifyExpense icon=images/myfaces.gif / t:navigationMenuItem id=nav_2_4 itemLabel=Delete Expense itemValue=deleteExpense action=go_to_deleteExpense icon=images/myfaces.gif / t:navigationMenuItem id=nav_2_4 itemLabel=TestPage itemValue=testPage action=go_to_testPage icon=images/myfaces.gif / /t:navigationMenuItem /t:jscookMenu /html and here's my menu-config.xml (only part of it) ?xml version=1.0 encoding=UTF-8 ? MenuConfig Displayers Displayer name=BudgetAppMenu type=net.sf.navigator.displayer.DropDownMenuDisplayer/ /Displayers Menus !-- Budget App Menus === -- Menu name=BudgetAppMain title=Budget description=budget menu width=30 roles=ROLE_USER Item name=TDLinsertEntry title=Insert Expense location=insert.jsf roles=ROLE_SUPERVISOR/ Item name=TDLqueryEntry title=Query Expenses location=queryRedirect.jsf/ Item name=TDLmodifyEntry title=Modify Expenses location=modifyRedirect.jsf/ Item name=TDLdeleteEntry title=Delete Expenses location=deleteRedirect.jsf/ Item name=TDLtestPage title=Test Page location=test.jsf/ /Menu could anyone tell me where the error is coming from? thanks in advance and regards Marco
Re: Combine Hibernate and JSF, but how?
hELLO, when i did it (combine JSF spring HIbernate), it was about spring last year..i was using a sourceforge project called jsf-spring .. not sure what is status now butyou might want to check it out hthmarcoOn 10/12/06, Cagatay Civici [EMAIL PROTECTED] wrote: Hi Mosimann,Between JSF and Hibernate, Spring fits very well because it has features both for jsf and hibernate.Using Spring's delegating variable resolver, Spring beans can be injected to the JSF managed beans. Also with the HibernateTemplate of spring, and Aspect oriented transaction services plus OpenSessionInViewFilter, hibernate is managed well.Cagatay On 10/12/06, Mosimann Matthias [EMAIL PROTECTED] wrote: Hi Julian Well in the presentation layer you have the jsp's and the backing beans. In the domain layer you have hibernate resp. the persitence classes. And between them you have this shale-like framework. Do I understand that right? regards Matthias Von: Julian Ray [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. Oktober 2006 14:24An: 'MyFaces Discussion'Betreff: RE: Combine Hibernate and JSF, but how? We use Hibernate and JSF but don't use Spring. We use a Shale-like framework where each JSF viewhas a single backing bean which is Hibernate-session-aware. Works great. From: Mosimann Matthias [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 12, 2006 8:14 AMTo: MyFaces DiscussionSubject: Combine Hibernate and JSF, but how? Hi everyone I'm wonder if it is neccesary to use Spring Framework to combine Hibernate and JSF. What is you experience in that topic? I can imagine that many people use Hibernate aso/r mapper. Where can I finde some resources (articles or books) for a strategy or overview howto combine plain Hibernate with plain JSF for a three layer architecture. I know theoretically it is possibly to write some business logic in den managed beans from JSF. This is the form centric approach Kito Mann discripes in his book JSF in Action. But that isn't what I want. I'm a beginner in both topics (hibernate and jsf) and for me it's no clear how this fit together. Is it recommended to use Spring to stick this two worlds togehter? Is that a good way to use Spring? Many thanks, I'm a little bit confused. regards Matthias
Re: Cron..
True, wrong forum :)but i have seen that error before'check how are you creatingyour jobs (if they have same identifier etc)last resort, clear quartz table and start from scratch. one shot after that will work for sure.. if hte second does not work that means that you are creating all ur jobs whith same group and same identfier check ur codehthmarcoOn 8/3/06, Dave Brondsema [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hello! I am not sure sending this question on the accurate forum but I can't guessThis is a Quartz question, so http://www.opensymphony.com/quartz/userForums.action would be theappropriate forum.--Dave BrondsemaSoftware DeveloperCornerstone University
Re: Need web pages for both PCs and palms... (JSF? ADF?...)
Hello,i give my 2 cents here.mayb i m 'old' fashioned and not very 'updated', but i did what you are trying todo back in Y2K. At that stage i used JSP written in XML with a HTML/WML XSLT processorfor rendering. in that case, i suppose if you follow that approach there will be no difference between usingJSF/JSP/ADF...@work we are doing the same, we are writing JSP in XML that will be rendered by a XSLT engine.. IMO, you should go for 1 page for both devices, it will save you maintenance hassleHTHmarcoOn 5/12/06, I. Venuti [EMAIL PROTECTED] wrote:Hi, have to start a new web project, that will be accessed both from PCs and palms, smartphones and so on.I thing that there could be 2 main architectural decisions:1) use different pages for different devices (at least 2: one for PCS,one for others devices)2) use a single page but with a technology what make possible to render differently for different devicesI'd like to choose option 2 and I started investigating JSF. As I know Icould personalize the rendering fase for any component.But this could be too long for now(there should be at leat a perferct knowledge of JSF that seem to be achieved in too much time for project'sscheduling).So I was looking for a library that makes this available; it seems to methat only ADF from Oracle (donated to MyFaces, but for now not integrated!) make this option available. Unfortunatly ADF seems to have2 problems:a) in any case I must design each page, with JDeveloper, with a singlelayout (so no run-time decision! Just a design choise!) b) use of _javascript_ for navigation (many mobile devices could notinteract with this tecnology; is this true?)After this (long! sorry) introduction my questions:1) can you suggest a if a) and b) limitations are true for ADF? (or, maybe, it is my superficial knowledge of technology that makes them aproblem!)2) if a) and b) are true, is there any other library available for whatI'm looking for?3) if nor 1) and 2) could lead to a good choice for my project, any other suggestion about what J2EE technology could be appropriate for theproject?Thank for anyone who willgive me some idea and suggestion!Have a nice dayIvan
Re: Unit tests
You might want to have a look at JBossSeam..hthmarcoOn 5/2/06, Rogerio Pereira [EMAIL PROTECTED] wrote:Use struts-shale test framework.
Re: Unit tests
Hello,i spoke for what i read from jboss seam spec..I assumed you would develop a jboss seam app which is JSF-basedas far as i understood, you can test the backed beans in jboss seam applications usingjunit.. if the issue was about testing backed beans testing, i think it could be usefulif it was nto for that, please ignore my emailrgdsmarcoOn 5/3/06, Dennis Byrne [EMAIL PROTECTED] wrote: How does Seam offer more opportunities to test a JSF application?Dennis Byrne-Original Message-From: Marco Mistroni [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 3, 2006 09:13 AMTo: 'MyFaces Discussion'Subject: Re: Unit testsYou might want to have a look at JBossSeam..hth marcoOn 5/2/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Use struts-shale test framework.
Re: MyFaces - Spring integration problems
Hello, you might want to try jsf-spring project (it's a sourceforge project), it integrates the two framework just finei m currently using it, and it work just finehthmarco On 4/2/06, Philippe Lamote [EMAIL PROTECTED] wrote: Hi List,I'm getting unexplainable MyFaces-Spring integration problems, I washoping someone could give a hint.1/ First some setup info: I followed the Sping JSF doc and did thisto integrate the two: (I will try to be being extensive as big errors often small roots...)1.1 Libs were added (in web-inf/lib of course; spring.jar spring-web.jar) Tools I use are: Eclipse 3.2, WTP plugin, Tomcat 5.12 andSpring 1.21.2 web.xml features: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value/context-paramcontext-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/log4j.properties/param-value/context-paramcontext-paramparam-name javax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param... and:listener listener- classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener... and: listenerlistener-classorg.springframework.web.util.Log4jConfigListener /listener-class/listener listenerlistener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener 1.3 faces-config file features:application variable-resolver org.springframework.web.jsf.DelegatingVariableResolver /variable-resolver locale-config default-localefr/default-locale supported-localenl/supported-locale supported-localeen/supported-locale /locale-config/application and an exampe how the JSF Managed beans are declared in thisfaces-config.xml with Spring Managed beans: (webfacade is a SpringManaged bean, cf Sping config file further) managed-beanmanaged-bean-namemanagerbean/managed-bean-namemanaged-bean-classbe.mnemonica.web.beans.ManagerBean/managed-bean-class managed-bean-scopesession/managed-bean-scopemanaged-propertyproperty-namefacade/property-namevalue#{webfacade}/value /managed-property/managed-bean1.4 Sping applicationContext.xml: (extrait)bean id=jdo2Persistorclass=be.mnemonica.persistence.JDO2PersistenceDelegator property name=modelPackageNamedescription The name of the package where the model classes ofthe application reside, for which this Persistence Delegator is written) /descriptionvaluebe.mnemonica.model/value/propertyproperty name=appMgrref local=appmgr//property /beanbean id=webfacade class=be.mnemonica.client.WebFacadeproperty name=persistordescriptionThe Persistor Delegator for the Facade. /description ref local=jdo2Persistor//property/beanThe idea is: this WebFacade is used by all JSF Managed beans todelegate calls to the proper Delegator ( e.g. CRUD Model-related callsare delegated to the PersistenceDelgatorInterface - I have Spinginject this Interface with a JDO2 Implementation implementing thisInterface.Just to be explicit:I have NOT declared my Spring beans as JSF manage beans (should I?) I don't inject any Spring Managed bean with a JSF Managed bean2/ Yet, the problems I'm having are substantial.The JSF Managed beans just DON'T seem to be injected withSping-filled instances (the supposedly injected values are null) E.g. in the case above, modelPackageName remained null.I could solve some issues by putting in all the JSF Managed beans'Constructors: (e.g. in this JSF managerbean)ApplicationContext ctx = FacesContextUtils.getWebApplicationContext(FacesContext.getCurrentInstance());facade = (WebFacade)ctx.getBean(webfacade);Yet of course this is a pity; I'm hardwiring again creating explicit dependancies to Spring. (which is... the opposite of why Iturned to Spring in the first place!! :-))-- Anyone else had issues like this? (or did I forget smth?)Or, even if not, any genious idea how to make this work properly? (a lesser genius idea that works will be admired as well ;-) Just to make sure I get the sequence right, is it correct thatthis is the mechanism:By these settings, every time a JSF Managed bean creates a JSF bean, Spring intervenes and injects (in cascade) the configured properties. SoJSF bean creation USES Spring pre-configured Properties.Last and least (small sub question) I haven't noticed a differencewhen I leave the MyFaces 's StartupServletContextListener in, or out the web.xml. -- Is it necessary?!Thanks,Philippe
Re: MyFaces - Spring integration problems
Hello, here's the config file that i am using- i have a bunch of 'spring-only' xml file that configures some background spring tasks that i am using (for quartz, acegi, hibernate and my persistence layer)- i have 1 jsf-spring config file which contains spring-managed-bean that i am using ALSO as jsf-beans - i have a faces-managed-beans which configures JSF beans (which inject or not jsf-spring managed beans)the number of config files really depends on how you split your configuration filessurely, i could just have had 2 gigantic config files, one for spring and another for JSF, but i decided to: - split spring config files depending on their functionality (i have, for example, a web-context.xml, quartz-context.xml, acegi-security.xml and so on)- split jsf config files in faces-config.xml, faces-managed-beans.xml , faces-navigation.xml On 4/2/06, Philippe Lamote [EMAIL PROTECTED] wrote: Hi Marco,I have quickly looked at it, but the exampe-ZIP provided with it, issues such a bunch of configuration files that my initial enthusiasm quickly cooled off. :-(So, 1/ What would it take to use this (apart from adding the lib in web-inf/lib :-) (if you don't mind, could you make a summary as I did for the Spring - JSF integration? I've seen the question pass by on this list but nowhere a consise, clear stepwise approach for this integration. Also there is a strange total lack of doc of this Sourceforge project) i did it above.. hope it was e nough.. yes, i know docs are not much.. but sometimes you have just to try and find out what's missing etc ... :( 2/ What added value does it have compared to regular integration? (i.e. what can I do more?)cant say for sure.. when i googled jsf-spring at the time when i needed to integrate the two, i got first hit as jsf-spring config library.. it worked fine and i just keep on using it... Another question: what effect would it have (current setup) if I add to my Spring config, the classes used as JSF beans? Which injection would happen first? And would it have any side effects? injection should depend on dependencies (if im correct).. so if you have 5 jsf beans that dont depend at all to spring beans, you shouldnt be concerned to which gets loaded first... when your app will have started, if no config mistakes were done, then you will have all your beans if you have 5 jsf beans that depends on spring beans, then obviously spring beans will be loaded before your jsf beans..Currently I only have JSF beans having managed props in the faces-config.xml, not the other way around. ok let me tell you a concrete example i am usingi have a serviceLocator bean that depends on some other spring beans. i have 3 jsf beans that depends on the serviceLocator beani have declared the serviceLocator bean in my spring files, and i have referred it as a managed property in my faces-managed-beans.xml. jsf-spring config did the rest... and at runtime code works just fine...i have crfeated a faces-context.xml fiel that contains spring beans taht will need to be referred from jsf manage dbeans but again, i didnt need to craete ana dditional faces-context.xml, could have declared my serviceLocator in the spring filesto summarize, if you want to use a jsf bean as spring managed, you hsould declare it in your spring files if you want to have a jsf managed beans that uses a spring bean as managed property, then declare your jsf bean in your faces configuration files jsf-spring will take care of injection..hthmarco Thanks, PhilippeOn 02 Apr 2006, at 17:35, Marco Mistroni wrote:Hello, you might want to try jsf-spring project (it's a sourceforge project), it integrates the two framework just fine i m currently using it, and it work just finehthmarco On 4/2/06, Philippe Lamote [EMAIL PROTECTED] wrote: Hi List,I'm getting unexplainable MyFaces-Spring integration problems, I was hoping someone could give a hint.1/ First some setup info: I followed the Sping JSF doc and did thisto integrate the two: (I will try to be being extensive as big errors often small roots...) 1.1 Libs were added (in web-inf/lib of course; spring.jar spring-web.jar) Tools I use are: Eclipse 3.2, WTP plugin, Tomcat 5.12 andSpring 1.21.2 web.xml features: context-param param-namecontextConfigLocation/param-name param-value/WEB-INF/applicationContext.xml/param-value/context-param context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/log4j.properties/param-value/context-paramcontext-param param-name javax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml/param-value /context-param... and:listener listener- classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener... and: listenerlistener-class org.springframework.web.util.Log4jConfigListener /listener-class/listener listenerlistener-classorg.springframework.web.context.ContextLoaderListener /listener-class /listener 1.3 faces-config file features:application variable-resolver org.springframework
Re: file upload problem
hello, mm don't think so.. i have same functionality working just fine...could you post page bean faces-config?hthmarcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Every thing seems ok. Could it be a Facelet problem?On 3/14/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, have a look at myfaces examples, copy the fileUpload beanmore likely, some of your bean properties are incorrect hthmarcoOn 3/14/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Trying to upload a file I am getting a java.lang.IllegalArgumentException: argument type mismatch exception in the setter method of uploadedFile.I just have a private UploadedFile upFile in my bean and t:inputFileUpload id=file accept=* value=#{fileLogic.upFile} storage=file styleClass=fileUploadInput required=true/in the page. -- from debian manifesto: Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU.
Re: Compile error , dependency on struts tiles
hello,if i remember correctly, that dependency was in the project.xml, but for some reason it was disabled...check your project.xml (or is itnow pom.xml) ...if i m correct, there's a component in myfaces that is an extension of tiles...that's why that dependency is needed.hth marcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: I am trying to compile the head of myFaces but it has dependencies to struts-tiles which edmaven do not dl them. And build breaks. I wonder why Tomahawk should be depend on Struts tiles? It looks very strange. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU.
Re: Managed bean constructor dependencies (Spring)
Hello Nicklas, i think you can do that if you use jsf-spring library.. hthmarcoOn 3/15/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:Shale itself has an example app, that uses Spring for definition of DAOs. That shouldn't be a risk IMHO.-MatthiasOn 3/15/06, Nicklas Karlsson [EMAIL PROTECTED] wrote: but you can use Shale's Viewcontroller ([1], [2]). Its init() method is called *after* all properties are set! How intrusive is this alternative? Is it enough to register the ViewController and you get the additional features and the other stuff will work as before or am I in risk of breaking something else ( e.g. the Spring variable resolving) or are there other dependencies?--Matthias WessendorfZülpicher Wall 12, 23950674 Köln http://www.wessendorf.netmwessendorf-at-gmail-dot-com
Re: file upload problem
Hello, can you put it in a different directory, sicne that looks like is the problem?or is there a limitation for name of file?regardsmarcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: it is no more strange if I try to upload a image I am getting this error message:14:55:49,196 ERROR [MultipartRequestWrapper] Exception while uploading file.org.apache.commons.fileupload.FileUploadException : Processing of multipart/form-data request failed. /temp/upload_0003.tmp (No such file or directory) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429) at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:81) I am using Facelets and seam on jboss head.My page is :..ui:define name=body h2h:outputText value=upload/ /h2 h:form id=form enctype=multipart/form-data input type=hidden name =origin value=#{origin}/ !--h:panelGrid id=myvar columns=2-- h:outputLabel for="" value=#{messages['name']} class=label/br/ t:inputFileUpload id=file accept=*/* value=#{ fileLogic.upFile} storage=file styleClass=fileUploadInput required=true/br/... And my bean is : ..private String reposPath = /home/as/repository/; private String searchString; private UploadedFile upFile; public UploadedFile getUpFile() { return this.upFile; } public void setUpFile(UploadedFile upFile) { this.upFile = upFile; }..and the upload method actually doing nothing but writing a log message right now! On 3/15/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello, mm don't think so.. i have same functionality working just fine...could you post page bean faces-config?hth marcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Every thing seems ok. Could it be a Facelet problem?On 3/14/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, have a look at myfaces examples, copy the fileUpload beanmore likely, some of your bean properties are incorrect hthmarcoOn 3/14/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Trying to upload a file I am getting a java.lang.IllegalArgumentException: argument type mismatch exception in the setter method of uploadedFile.I just have a private UploadedFile upFile in my bean and t:inputFileUpload id=file accept=* value=#{fileLogic.upFile} storage=file styleClass=fileUploadInput required=true/in the page. -- from debian manifesto: Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU.
Re: file upload problem
hello,yes, the file. in c: for example. rgdsmarcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote:Put what in a different directory? On 3/15/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, can you put it in a different directory, sicne that looks like is the problem?or is there a limitation for name of file?regards marcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: it is no more strange if I try to upload a image I am getting this error message:14:55:49,196 ERROR [MultipartRequestWrapper] Exception while uploading file.org.apache.commons.fileupload.FileUploadException : Processing of multipart/form-data request failed. /temp/upload_0003.tmp (No such file or directory) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429) at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:81) I am using Facelets and seam on jboss head.My page is :..ui:define name=body h2h:outputText value=upload/ /h2 h:form id=form enctype=multipart/form-data input type=hidden name =origin value=#{origin}/ !--h:panelGrid id=myvar columns=2-- h:outputLabel for="" value=#{messages['name']} class=label/br/ t:inputFileUpload id=file accept=*/* value=#{ fileLogic.upFile} storage=file styleClass=fileUploadInput required=true/br/... And my bean is : ..private String reposPath = /home/as/repository/; private String searchString; private UploadedFile upFile; public UploadedFile getUpFile() { return this.upFile; } public void setUpFile(UploadedFile upFile) { this.upFile = upFile; }..and the upload method actually doing nothing but writing a log message right now! On 3/15/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello, mm don't think so.. i have same functionality working just fine...could you post page bean faces-config?hth marcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Every thing seems ok. Could it be a Facelet problem?On 3/14/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, have a look at myfaces examples, copy the fileUpload beanmore likely, some of your bean properties are incorrect hthmarcoOn 3/14/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Trying to upload a file I am getting a java.lang.IllegalArgumentException: argument type mismatch exception in the setter method of uploadedFile.I just have a private UploadedFile upFile in my bean and t:inputFileUpload id=file accept=* value=#{fileLogic.upFile} storage=file styleClass=fileUploadInput required=true/in the page. -- from debian manifesto: Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU.
Re: file upload problem
Hello, Sorry but i don't understand what is the problem here.can you upload a file?can you try to upload something else which is NOT an image? i havent great experie3nce of fileupload.i have tried to load excel sheet files and it works fine for mehave you tried myfaces examples? does it work fine?regardsmarco On 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Hi,I could not get you marco. I am not putting the file anywhere. How can I do it?cheers On 3/15/06, Marco Mistroni [EMAIL PROTECTED] wrote:hello,yes, the file. in c: for example. rgdsmarcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote:Put what in a different directory? On 3/15/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, can you put it in a different directory, sicne that looks like is the problem?or is there a limitation for name of file?regards marcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: it is no more strange if I try to upload a image I am getting this error message:14:55:49,196 ERROR [MultipartRequestWrapper] Exception while uploading file.org.apache.commons.fileupload.FileUploadException : Processing of multipart/form-data request failed. /temp/upload_0003.tmp (No such file or directory) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429) at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:81) I am using Facelets and seam on jboss head.My page is :..ui:define name=body h2h:outputText value=upload/ /h2 h:form id=form enctype=multipart/form-data input type=hidden name =origin value=#{origin}/ !--h:panelGrid id=myvar columns=2-- h:outputLabel for="" value=#{messages['name']} class=label/br/ t:inputFileUpload id=file accept=*/* value=#{ fileLogic.upFile} storage=file styleClass=fileUploadInput required=true/br/... And my bean is : ..private String reposPath = /home/as/repository/; private String searchString; private UploadedFile upFile; public UploadedFile getUpFile() { return this.upFile; } public void setUpFile(UploadedFile upFile) { this.upFile = upFile; }..and the upload method actually doing nothing but writing a log message right now! On 3/15/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello, mm don't think so.. i have same functionality working just fine...could you post page bean faces-config?hth marcoOn 3/15/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Every thing seems ok. Could it be a Facelet problem?On 3/14/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, have a look at myfaces examples, copy the fileUpload beanmore likely, some of your bean properties are incorrect hthmarcoOn 3/14/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Trying to upload a file I am getting a java.lang.IllegalArgumentException: argument type mismatch exception in the setter method of uploadedFile.I just have a private UploadedFile upFile in my bean and t:inputFileUpload id=file accept=* value=#{fileLogic.upFile} storage=file styleClass=fileUploadInput required=true/in the page. -- from debian manifesto: Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU. -- from debian manifesto:Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU.
Re: file upload problem
Hello, have a look at myfaces examples, copy the fileUpload beanmore likely, some of your bean properties are incorrecththmarcoOn 3/14/06, Arash Bijanzadeh [EMAIL PROTECTED] wrote: Trying to upload a file I am getting a java.lang.IllegalArgumentException: argument type mismatch exception in the setter method of uploadedFile.I just have a private UploadedFile upFile in my bean and t:inputFileUpload id=file accept=* value=#{fileLogic.upFile} storage=file styleClass=fileUploadInput required=true/in the page. -- from debian manifesto: Debian Linux is a brand-new kind of Linux distribution. Rather than being developed by one isolated individual or group, as other distributions of Linux have been developed in the past, Debian is being developed openly in the spirit of Linux and GNU.
Re: MyFaces + Spring
Hello, htere's a library just for that, it's called Spring integration library... it might helprgds marcoOn 3/7/06, Cagatay Civici [EMAIL PROTECTED] wrote: Hi,Your configuration seems ok at first look, before you add this configuration to your faces-config and web descriptor was everything ok? Also tomcat logs may help more. Cagatay, On 3/7/06, net connect [EMAIL PROTECTED] wrote: Dear all,I am trying to integrate MyFaces and Spring as suggested at Spring reference documentation. I am using org.springframework.web.jsf.DelegatingVariableResolverI have followed two steps as suggested by documentation viz. -The context-param: context-paramparam-namecontextConfigLocation/param-nameparam-value/WEB-INF/applicationContext*.xml/param-value /context-paramThe listener: listenerlistener-classorg.springframework.web.context.ContextLoaderListener/listener-class/listener --and---faces-config application variable-resolverorg.springframework.web.jsf.DelegatingVariableResolver/variable-resolver locale-config default-localeen/default-locale supported-localeen/supported-locale supported-localees/supported-locale /locale-config message-bundlemessages/message-bundle /application/faces-configBut its not working. I am getting following tomcat error message:-- Mar 7, 2006 3:05:21 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart ---Does anyone knows whats wrong here and solution for the same.Also any pointer to working example will be gret help ! I am using Spring 2.0-m1 and MyFaces 1.1.1Thanks and Regards,--balaji
DataTable columns
Hello all,i was wondering, with a datatable how can i display 'more than 1 row of data' on the same table row.Let me explain betterSuppose i have a dataTable containing n of MyObject objects (with two properties, propA and propB) instead of displaying one object per table row, is it possible to, let's say, display 3 objects per row?htanks in advance and regardsmarco
Re: DataTable columns
Thanx Jana, that's exactly what i need ..regardsmarcoOn 3/6/06, Jana Parvanova [EMAIL PROTECTED] wrote: Maybe Tomahawk's Newspaper table could help you? http://myfaces.apache.org/tomahawk/newspaperTable.html- Original Message -From: Marco Mistroni [EMAIL PROTECTED]To: MyFaces Discussion users@myfaces.apache.orgSent: Monday, March 06, 2006 6:13 PMSubject: DataTable columnsHello all, i was wondering, with a datatable how can i display 'more than 1 row of data'on the same table row.Let me explain betterSuppose i have a dataTable containing n of MyObject objects (with twoproperties, propA and propB)instead of displaying one object per table row, is it possible to, let's say, display 3 objects per row?htanks in advance and regards marco
invoking JSF beans directly from jscookmenu
hello all,i wa swondering if it was possible to invoke a JSF bean method from jscookmenu..if so, can anyone post a sample on how to do it?thanks in advance and regardsmarco
MyFAces with FAcelets
hello all, i have just downloaded the latest version of facelets (1.0.10) to be used with myfacesi (literally) copied context parameters from demo application, because i wanted to try touse facelets in my pages... It turned out that, for some weird reasons, the page was not rendered at all..for example, here's my index.html (copied from numberguess application)!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdhtml xmlns= http://www.w3.org/1999/xhtmlheadmeta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /meta http-equiv=refresh content=0; url= "" /titleUntitled Document/title/headbody/body/htmlwhen this gets loaded (and it will try to load the main.jsf )the app fails miserably by saying The requested resource (/TestJSFApp/main.jsf) is not available.For some weird reason, page does not get rendered, which leads me to think thatsome parameters are not set, since i am having a main.xhtml (written usign facelets) that should be rendered properlycan anyone find any reason of why facelets does not work with my applications?regards marco here's my web.xml (be patient, it's long)?xml version=1.0 encoding=UTF-8?!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtdweb-app context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/core-context.xml /WEB-INF/web-context.xml /WEB-INF/aop-context.xml /WEB-INF/applicationContext-acegi-security.xml /WEB-INF/applicationContext- common-authorization.xml /WEB-INF/applicationContext-common-business.xml /WEB-INF/faces-context.xml /WEB-INF/dataSourcePopulator.xml /param-value/context-param context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueresources.MessageResources/param-value/context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml/param-value /context-paramcontext-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value description State saving method: client or server (= default) See JSF Specification 2.5.2 /description /context-param context-param param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name param-valuetrue/param-value 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 /context-param context-param param-nameorg.apache.myfaces.DETECT_JAVASCRIPT /param-name param-valuefalse/param-value /context-param context-param param-nameorg.apache.myfaces.PRETTY_HTML/param-name param-valuetrue/param-value 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 /context-param context-param param-nameorg.apache.myfaces.AUTO_SCROLL /param-name param-valuetrue/param-value description If true, a _javascript_ function will be rendered that is able to restore the former vertical scroll on every request. Convenient feature if you have pages with long lists and you do not want the browser page to always jump to the top if you trigger a link or button action that stays on the same page. Default: false /description /context-param context-param param-nametiles-definitions/param-name param-value/WEB-INF/tiles-defs.xml/param-value description Tiles configuration definition files and a listener need to be defined. the listener will initialize JspTilesViewHandlerImpl with tiles definitions. /description /context-param context-param param-namefacelets.REFRESH_PERIOD/param-name param-value2/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value description Set this flag to true if you want the JavaServer Faces Reference Implementation to validate the XML in your faces-config.xml resources against the DTD. Default value is false. /description /context-param context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value description Set this flag to true if you want the JavaServer Faces Reference Implementation to verify that all of the application objects you have configured (components, converters, renderers, and validators) can be successfully created. Default value is false. /description /context-param !-- Acegi filters --filter filter-nameAcegi
Re: MyFAces with FAcelets
Hello Adam, thanks for your quick reply...in the index.html (in the meta-http data) the page is supposed to load main.jsf.. as in following piece of code!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdhtml xmlns= http://www.w3.org/1999/xhtmlheadmeta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /meta http-equiv=refresh content=0; url="" / titleUntitled Document/title/headbody/body/htmlthat meta-http-equiv should load the main.jsf (which is, actually, main.xhtml.. that hsould be picked up by Facelets FacesServlet) to me it looks like i am having some facelets config parameter wrong but actually the proper parameter is set up correctly..context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-parami'll try to debug more and get back with my findingsregardsmarco On 2/21/06, Adam Brod [EMAIL PROTECTED] wrote: Marco- It sounds to me like your webapp is not properly deployed in your webserver. Can you get a page directly /TestJSFApp/index.html without going through the FacesServlet? Also, you said the code you included was index.html, but your url says it is for main.jsf. You should be hitting index.jsf. Finally, if that doesn't solve it, could you send the relevant sections of your web.xml? Adam Brod Product Development Team Marco Mistroni [EMAIL PROTECTED] 02/21/2006 10:19 AM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject MyFAces with FAcelets hello all, i have just downloaded the latest version of facelets (1.0.10) to be used with myfaces i (literally) copied context parameters from demo application, because i wanted to try to use facelets in my pages... It turned out that, for some weird reasons, the page was not rendered at all.. for example, here's my index.html (copied from numberguess application) !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns= http://www.w3.org/1999/xhtml head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / meta http-equiv=refresh content=0; url= "" / titleUntitled Document/title /head body /body /html when this gets loaded (and it will try to load the main.jsf ) the app fails miserably by saying The requested resource (/TestJSFApp/main.jsf) is not available. For some weird reason, page does not get rendered, which leads me to think that some parameters are not set, since i am having a main.xhtml (written usign facelets) that should be rendered properly can anyone find any reason of why facelets does not work with my applications? regards marco here's my web.xml (be patient, it's long) ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd web-app context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/core-context.xml /WEB-INF/web-context.xml /WEB-INF/aop-context.xml /WEB-INF/applicationContext-acegi-security.xml /WEB-INF/applicationContext- common-authorization.xml /WEB-INF/applicationContext-common-business.xml /WEB-INF/faces-context.xml /WEB-INF/dataSourcePopulator.xml /param-value /context-param context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name param-valueresources.MessageResources/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces-config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value description State saving method: client or server (= default) See JSF Specification 2.5.2 /description /context-param context-param param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name param-valuetrue/param-value 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 /context-param context-param param-nameorg.apache.myfaces.DETECT_JAVASCRIPT /param-name param-valuefalse/param-value /context-param context-param param-nameorg.apache.myfaces.PRETTY_HTML/param-name param-valuetrue/param-value 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
Re: MyFAces with FAcelets
Hello Adam, when i access main.xhtml, INternet explorer does not 'recongnize' it and ask me if i want to open the page.so, yes, something is not configured properly, but i can' tfigure out what...it looks like it does not recongize facelets tags at all.. since the text that is not supposed to be shown instead it is shown..here's my main.xhtml!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdhtml xmlns= http://www.w3.org/1999/xhtml xmlns:ui=http://java.sun.com/jsf/facelets body ui:composition template=/layout/verticalClassicLayout.xhtml This text will not be displayed.Wrong! iw till be.. ui:define name=title BudgetApp version 1.3 - Budget Queries /ui:define This text will also not be displayed. ui:define name=body Simple Test for entry /ui:define /ui:composition /body/html here' s again my wbe.xml?xml version= 1.0 encoding=UTF-8?!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd web-app context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/core-context.xml /WEB-INF/web-context.xml /WEB-INF/aop-context.xml /WEB-INF/applicationContext-acegi-security.xml /WEB-INF/applicationContext-common-authorization.xml /WEB-INF/applicationContext-common-business.xml /WEB-INF/faces-context.xml /WEB-INF/dataSourcePopulator.xml /param-value/context-paramcontext-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext /param-name param-valueresources.MessageResources/param-value/context-paramcontext-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces- config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml/param-value/context-paramcontext-param param-namefacelets.REFRESH_PERIOD/param-name param-value2/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value description Set this flag to true if you want the JavaServer Faces Reference Implementation to validate the XML in your faces-config.xml resources against the DTD. Default value is false. /description /context-param context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value description Set this flag to true if you want the JavaServer Faces Reference Implementation to verify that all of the application objects you have configured (components, converters, renderers, and validators) can be successfully created. Default value is false. /description /context-param !-- Acegi filters --filter filter-nameAcegi Filter Chain Proxy/filter-name filter-classnet.sf.acegisecurity.util.FilterToBeanProxy/filter-class init-param param-nametargetClass/param-name param-value net.sf.acegisecurity.util.FilterChainProxy/param-value /init-param/filterfilter filter-namecontextHolderAwareFilter/filter-name filter-class net.sf.acegisecurity.util.FilterToBeanProxy/filter-class init-param param-nametargetClass/param-name param-valuenet.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter /param-value /init-param/filterfilter filter-nameanonymousProcessingFilter/filter-name filter-classnet.sf.acegisecurity.util.FilterToBeanProxy /filter-class init-param param-nametargetClass/param-name param-valuenet.sf.acegisecurity.util.FilterChainProxy/param-value /init-param /filterfilter filter-nameextensionsFilter/filter-name filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class init-param param-nameuploadMaxFileSize/param-name param-value100m/param-value descriptionSet the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB /description /init-param init-param param-nameuploadThresholdSize/param-name param-value100k/param-value descriptionSet the threshold size - files below this limit are stored in memory, files above this limit are stored on disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB /description /init-param !-- init-param param-nameuploadRepositoryPath/param-name param-value/temp/param-value descriptionSet the path where the intermediary files will be stored. /description /init-param-- /filter!-- JSF-Spring filters --filter filter-nameRequestHandled/filter-name filter-classde.mindmatters.faces.spring.support.RequestHandledFilter/filter-class/filterfilter-mapping filter-nameAcegi Filter Chain Proxy/filter-name url-pattern/*/url-pattern/filter-mappingfilter-mapping filter-namecontextHolderAwareFilter/filter-name url-pattern/*/url-pattern /filter-mappingfilter-mapping filter-nameanonymousProcessingFilter/filter-name
Re: MyFAces with FAcelets
hello richard, thanx for your replyunfortunately, when i enter pagename.jsf i get following errortype Status report message /TestJSFApp/main.jsf description The requested resource (/TestJSFApp/main.jsf) is not available.pls note that this was working when i was usingn tiles... i can't imagine what could be thep roblemam i specifying the wrong handler in jsf-config ?faces-config application locale-config default-localeen/default-locale /locale-config message-bundleresources.MessageResources/message-bundle view-handler com.sun.facelets.FaceletViewHandler /view-handler /application .../faces-config?thanx and regardsmarco On 2/21/06, Richard Frazer [EMAIL PROTECTED] wrote: What's the url you are trying to hit? Based on the web.xml below, you are mapping the faces servlet to *.jsf. The url you enter should be pagename.jsf, not pagename.xhtml. From: Marco Mistroni [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org Date: Tue, 21 Feb 2006 16:45:12 + To: MyFaces Discussion users@myfaces.apache.org Subject: Re: MyFAces with FAcelets Hello Adam, when i access main.xhtml, INternet explorer does not 'recongnize' it and ask me if i want to open the page. so, yes, something is not configured properly, but i can' tfigure out what... it looks like it does not recongize facelets tags at all.. since the text that is not supposed to be shown instead it is shown.. here's my main.xhtml !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns= http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml xmlns:ui=http://java.sun.com/jsf/facelets body ui:composition template=/layout/verticalClassicLayout.xhtml This text will not be displayed.Wrong! iw till be.. ui:define name=title BudgetApp version 1.3 - Budget Queries /ui:define This text will also not be displayed. ui:define name=body Simple Test for entry /ui:define /ui:composition /body /html here' s again my wbe.xml ?xml version= 1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd http://java.sun.com/dtd/web-app_2_3.dtd web-app context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/core-context.xml /WEB-INF/web-context.xml /WEB-INF/aop-context.xml /WEB-INF/applicationContext-acegi-security.xml /WEB-INF/applicationContext-common-authorization.xml /WEB-INF/applicationContext-common-business.xml /WEB-INF/faces-context.xml /WEB-INF/dataSourcePopulator.xml /param-value /context-param context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext /param-name param-valueresources.MessageResources/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces- config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml/param-value /context-param context-param param-namefacelets.REFRESH_PERIOD/param-name param-value2/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value description Set this flag to true if you want the JavaServer Faces Reference Implementation to validate the XML in your faces-config.xml resources against the DTD. Default value is false. /description /context-param context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value description Set this flag to true if you want the JavaServer Faces Reference Implementation to verify that all of the application objects you have configured (components, converters, renderers, and validators) can be successfully created. Default value is false. /description /context-param !-- Acegi filters -- filter filter-nameAcegi Filter Chain Proxy/filter-name filter-classnet.sf.acegisecurity.util.FilterToBeanProxy/filter-class init-param param-nametargetClass/param-name param-value net.sf.acegisecurity.util.FilterChainProxy/param-value /init-param /filter filter filter-namecontextHolderAwareFilter/filter-name filter-class net.sf.acegisecurity.util.FilterToBeanProxy/filter-class init-param param-nametargetClass/param-name param-valuenet.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter /param-value /init-param /filter filter filter-nameanonymousProcessingFilter/filter-name filter-classnet.sf.acegisecurity.util.FilterToBeanProxy /filter-class init-param param-nametargetClass/param-name param-valuenet.sf.acegisecurity.util.FilterChainProxy/param-value /init-param /filter filter filter-nameextensionsFilter/filter-name filter
Re: MyFAces with FAcelets
Hello guys, ok i figured out what's the problem... it's my template layout page that has somethign wrong in it..when i replaced it iwth the template that comes with facelets demo application everything works fine... i guess i'll get back here when i will find out what's wrong with my original template.one quick question: can a template include JSF elements? will i have problems?thanks and regardsmarco On 2/21/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello richard, thanx for your replyunfortunately, when i enter pagename.jsf i get following errortype Status report message /TestJSFApp/main.jsf description The requested resource (/TestJSFApp/main.jsf) is not available.pls note that this was working when i was usingn tiles... i can't imagine what could be thep roblemam i specifying the wrong handler in jsf-config ?faces-config application locale-config default-localeen/default-locale /locale-config message-bundleresources.MessageResources/message-bundle view-handler com.sun.facelets.FaceletViewHandler /view-handler /application .../faces-config?thanx and regardsmarco On 2/21/06, Richard Frazer [EMAIL PROTECTED] wrote: What's the url you are trying to hit? Based on the web.xml below, you are mapping the faces servlet to *.jsf. The url you enter should be pagename.jsf, not pagename.xhtml. From: Marco Mistroni [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org Date: Tue, 21 Feb 2006 16:45:12 + To: MyFaces Discussion users@myfaces.apache.org Subject: Re: MyFAces with FAcelets Hello Adam, when i access main.xhtml, INternet explorer does not 'recongnize' it and ask me if i want to open the page. so, yes, something is not configured properly, but i can' tfigure out what... it looks like it does not recongize facelets tags at all.. since the text that is not supposed to be shown instead it is shown.. here's my main.xhtml !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns= http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml xmlns:ui=http://java.sun.com/jsf/facelets body ui:composition template=/layout/verticalClassicLayout.xhtml This text will not be displayed.Wrong! iw till be.. ui:define name=title BudgetApp version 1.3 - Budget Queries /ui:define This text will also not be displayed. ui:define name=body Simple Test for entry /ui:define /ui:composition /body /html here' s again my wbe.xml ?xml version= 1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd http://java.sun.com/dtd/web-app_2_3.dtd web-app context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/core-context.xml /WEB-INF/web-context.xml /WEB-INF/aop-context.xml /WEB-INF/applicationContext-acegi-security.xml /WEB-INF/applicationContext-common-authorization.xml /WEB-INF/applicationContext-common-business.xml /WEB-INF/faces-context.xml /WEB-INF/dataSourcePopulator.xml /param-value /context-param context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext /param-name param-valueresources.MessageResources/param-value /context-param context-param param-namejavax.faces.CONFIG_FILES/param-name param-value/WEB-INF/faces- config.xml,/WEB-INF/faces-managed-beans.xml,/WEB-INF/faces-navigation.xml/param-value /context-param context-param param-namefacelets.REFRESH_PERIOD/param-name param-value2/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value description Set this flag to true if you want the JavaServer Faces Reference Implementation to validate the XML in your faces-config.xml resources against the DTD. Default value is false. /description /context-param context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value description Set this flag to true if you want the JavaServer Faces Reference Implementation to verify that all of the application objects you have configured (components, converters, renderers, and validators) can be successfully created. Default value is false. /description /context-param !-- Acegi filters -- filter filter-nameAcegi Filter Chain Proxy/filter-name filter-classnet.sf.acegisecurity.util.FilterToBeanProxy/filter-class init-param param-nametargetClass/param-name param-value net.sf.acegisecurity.util.FilterChainProxy/param-value /init-param /filter filter filter-namecontextHolderAwareFilter/filter-name filter-class net.sf.acegisecurity.util.FilterToBeanProxy/filter-class
facelets with MyFAces-1.2.2-SNAPSHOT
hello all, i might have missed some threads about MyFaces and facelets...i m struggling with getting facelets-1.0 at work with myfaces-1.2.2i have configured the viewhandler as followsview-handler com.sun.facelets.FaceletViewHandler/view-handlerobviously, after deploying my application and getting erros, i figured out htatmaybe the view handler is the wrong one..i am including following jars in my WEB-INF\lib facelets-1.0-bsh.jarel-api.jarel-ri.jaranyone has any idea on how to solve my problem? does myfaces has own implementationof facelets view-handler?thanx and regardsmarco
Re: JSF Tiles Action Problem
Hello, i am using Tiles with JSF, and it works just fine...can you tell me what do you think is the problem?what about the page that you are redirecting to? is it using a tilestemplate?i can post privately some of my pages if you need (or even the whole app since i truns with in-memory database)regardsmarcoOn 2/16/06, CHAMBAZ Alexandre [EMAIL PROTECTED] wrote:Thanks for all Matthias and Alexandre,Exactly what I was looking for. So it looks it would be hard to do what I'm looking for, I think I willlhave to give up Tiles with JSF ;-(Extract of the presentation:Apache TilesThings that can go wrong• Navigation rules are relative to the top viewId • Not the tile• Tool support is surprisingly thin• JSF backing beans can't see tiles--- Matthias Wessendorf [EMAIL PROTECTED] aécrit : here goes the linkhttp://developers.sun.com/learning/javaoneonline/2005/webtier/TS-7853.pdf On 2/16/06, Alexandre Poitras [EMAIL PROTECTED] wrote: There is a lot of issues when using Tiles in JSF since Tiles is not a JSF component. Watch the Extreme Reuse in JavaServer Faces Technology JavaOne 2005 presentation if you want to know what I'm talking about. You should use Facelets or Shale-Clay instead. On 2/16/06, CHAMBAZ Alexandre [EMAIL PROTECTED] wrote: Thanks for you're help but still not working. I tried a lot of different combination of navigation rule but it's never working. My problme is not navigation but more in the action thing. I think I need to force JSF to send the action to a specific page, how can I do that? Here is my faces-config.xml: navigation-rule from-view-id*/from-view-id navigation-case from-outcomenavEtablissement/from-outcome to-view-id/etablissement.tiles/to-view-id /navigation-case navigation-case from-outcomenavMairie/from-outcome to-view-id/mairie.tiles/to-view-id /navigation-case navigation-case from-outcomenavDeclaration/from-outcome to-view-id/declaration.tiles/to-view-id /navigation-case /navigation-rule Here it's my command button in a jsf page of my tile(composed of 4 pages): h:commandLink id=lkE action=""> immediate=true h:outputText value=Add/ /h:commandLink and here it's the method called of my managed bean used: public String addE() { . return sucess; } --- Matthias Wessendorf [EMAIL PROTECTED] a écrit : fast shot, -suround your button w/ h:form -ensure that you are using *global* navigation likenavigation-rulefrom-view-id*/from-view-idnavigation-case from-outcomenav_page1/from-outcometo-view-id/page1.jsp/to-view-id/navigation-case navigation-casefrom-outcomenav_page2/from-outcometo-view-id/page2.jsp/to-view-id/navigation-case navigation-casefrom-outcomenav_page3/from-outcometo-view-id/non-tile.jsp/to-view-id /navigation-casenavigation-casefrom-outcomenav_page4/from-outcometo-view-id/page4.jsp/to-view-id /navigation-case/navigation-rule On 2/15/06, CHAMBAZ Alexandre [EMAIL PROTECTED] wrote: Hi everybody, I'm develloping a JSF Site with Tiles (from Struts) using the Tomahawk (I'm new in JSF programming )org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl support. The tile thing is working well. But whenI'm doing action in a jsf (with a command button) it'snot working. Here what I've got: body.jsp : h:commandButton value=add action=""> this page works well alone adding an element to a table menu.jsp : a page with a tree2 object fromtomahawk workingwell also but if I use a tile to structure my design withthe tomahawk support, the action is not executed sonothin is add. Here is my tile definition: definition name=main.tilesextends=main.layout put name=body value=/pages/body.jsp / put name=menu value=/pages/menu.jsp/ /definition Is there someone who could help me? is this had already be solved? ___ Nouveau : téléphonez moins cher avec Yahoo!Messenger ! Découvez les tarifs exceptionnels pourappeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com --Matthias Wessendorf Zülpicher Wall 12, 23950674 Kölnhttp://www.wessendorf.netmwessendorf-at-gmail-dot-com === message truncated ===___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez sur http://fr.messenger.yahoo.com
Re: JSF Tiles Action Problem
Hello, ok i'll try to 'cut' my app a little so taht you have4-5 basic pages ..anyway, i take it for granted that your applicationwas working fine before moving to tiles correct?btw in your bodyMairie i saw no reference to any tiles tag how comeis bodyMairie.jsp being included in some othe rpage?if so your navigation should consider someOtherPage rather thanbodyMairie.jspHTH marcoregards On 2/16/06, CHAMBAZ Alexandre [EMAIL PROTECTED] wrote: Hello,The thing is that if I use my managed bean in a singlepage is working fine but when I'm using it in tilesit's not working anymore.Yes the page that I'm redirecting to is in a tile toobut I tried before in the same tiles just changing a tile of the tiles.I would be very thankfull if you could send someworking code with tile JSF and managed Bean.Great Regards EveryoneSo there it is my code in details:faces-config.xml: faces-configapplicationview-handlerorg.apache.myfaces.application.jsp.JspTilesViewHandlerImpl/view-handlermessage-bundleresources.application/message-bundle locale-configdefault-localeen/default-locale/locale-config/applicationmanaged-beanmanaged-bean-namemairie/managed-bean-name managed-bean-classcom.metier.Mairie/managed-bean-classmanaged-bean-scopesession/managed-bean-scope/managed-beanmanaged-beanmanaged-bean-nameetablissement/managed-bean-name managed-bean-classcom.metier.Etablissement/managed-bean-classmanaged-bean-scopesession/managed-bean-scope/managed-beannavigation-rule from-view-id*/from-view-idnavigation-casefrom-outcomenavEtablissement/from-outcometo-view-id/etablissement.tiles/to-view-id /navigation-casenavigation-casefrom-outcomenavMairie/from-outcometo-view-id/mairie.tiles/to-view-id/navigation-case navigation-casefrom-outcomenavDeclaration/from-outcometo-view-id/declaration.tiles/to-view-id/navigation-case /navigation-rulenavigation-rulefrom-view-id/pages/bodyMairie.jsp/from-view-idnavigation-casefrom-action#{mairie.addE }/from-actionfrom-outcomesucess/from-outcometo-view-id/pages/bodyMairie.jsp/to-view-id/navigation-case/navigation-rule /faces-configand now the tiles-def.xml:tiles-definitionsdefinition name=main.layoutpath=/pages/template.jsp put name=header value=/pages/header.jsp /put name=footer value=/pages/footer.jsp//definitiondefinition name=accueil.tilesextends=main.layout put name=menu value=/pages/menu.jsp /put name=body value=/pages/body.jsp //definitiondefinition name= mairie.tiles extends=main.layoutput name=menu value=/pages/menu.jsp /put name=body value=/pages/bodyMairie.jsp //definitiondefinition name=etablissement.tilesextends=main.layout put name=menu value=/pages/menu.jsp /put name=body value=/pages/bodyEtablissement.jsp //definitiondefinition name=declaration.tilesextends=main.layout put name=menu value=/pages/menu.jsp / put name=bodyvalue=/pages/bodyDeclaration.jsp //definitiondefinition name=toto.layoutpath=/pages/templateEssai.jsp put name=gauche value=/pages/body.jsp /put name=droite value=/pages/body.jsp //definitiondefinition name= toto2.layoutextends=toto.layout put name=gauche value=/pages/body.jsp /put name=droite value=/pages/body.jsp / /definition/tiles-definitionsthe body of template.jsp:bodydiv id=dconteneur class=dconteneurdiv id=dmenu class=dmenu f:subview id=menutiles:insert attribute=menu flush=false //f:subview/div div id=dheader class=dheader f:subview id=headertiles:insert attribute=headerflush=false//f:subview /div div id=dbody class=dbody f:subview id=contenttiles:insert attribute=body flush=false/ /f:subview/divdiv id=dfooter class=dfooter f:subview id=footertiles:insert attribute=footerflush=false/ /f:subview/div/div/body and finally bodyMairie.jsp the jsp in tile that makethe call to the action to add an element to thedataTable:%@ taglib uri=http://java.sun.com/jsf/html prefix=h %%@ taglib uri=http://java.sun.com/jsf/coreprefix=f%%@ taglib uri= http://myfaces.apache.org/tomahawkprefix=t %f:viewh:formh:outputText value=#{mairie.nom}/h:dataTable binding=#{ mairie.dataTable}value=#{mairie.listeEtablissement} var=etabborder=1h:columnf:facet name=header f:verbatim Nom Etablissement/f:verbatim/f:faceth:outputText value=#{etab.nom }//h:columnh:columnf:facet name=headerf:verbatim Raison Sociale/f:verbatim /f:faceth:outputText value=#{etab.raisonSociale}//h:columnh:column f:facet name=headerf:verbatim Numero Siret/f:verbatim/f:facet h:outputText value=#{etab.numeroSiret}//h:columnh:columnf:facet name=header f:verbatim Supprimer/f:verbatim/f:faceth:selectBooleanCheckboxbinding=#{ mairie.checkBox}//h:column/h:dataTable/h:formh:commandLink id=lkE action="" }immediate=trueh:outputText value=Add//h:commandLink/f:view--- Marco Mistroni [EMAIL PROTECTED] a écrit : Hello,i am using Tiles with JSF, and it works just fine... can you tell me what do you think is the problem? what about the page that you are redirecting to? is it using a tiles template? i can post privately some of my pages if you need (or even the whole app since i truns with in-memory database) regardsmarco On 2/16/0
jscookmenu usage problems
hello all,i am currently try to use jscookmenu along with my JSF app which uses tiles.jscookmenu should redirect to a page in which there is another form to be submitted.I followed advices on the list to embed jscookmenu and my other data under the same form..for example, heres' my base layout*** tiles layout HTML HEAD %-- link rel=stylesheet href="" type=text/css --% titletiles:getAsString name=title//title link rel=stylesheet href="" / /HEADbody bgcolor=#ff text=#00 link=#023264 alink=#023264 vlink=#023264 table border=0 width=100% cellspacing=5tr td colspan=2tiles:insert attribute=header //td/tr tr tiles:insert attribute='body'//tr /trtr td colspan=2 tiles:insert attribute=footer / /td /tr/table/body/html end of tile layout ***my jsp is then like this**jsp **tiles:insert definition=budgetLayout tiles:put name=title value=Insert Entry/ tiles:put name=body value=/insertBody.jsp//tiles:insertand my insertBody is ** insertBody *f:view h:form id=insertForm f:loadBundle basename=resources.MessageResources var=msgs/ h:panelGrid id=body_container_grid style=vertical-align:top border=0 cellpadding=0 cellspacing=1 columns=2 f:subview id=body_horizontal_menu_bar jsp:include page=/common/jscookmenu.jsp/ /f:subview f:subview id=body_content f:subview id=msg jsp:include page=statusMsg.jsp/ /f:subviewh:panelGrid columns=3 style=vertical-align:center h:outputLabel value=#{msgs.date} for=""> t:inputCalendar id=date monthYearRowClass=yearMonthHeader weekRowClass=weekHeader currentDayCellClass=currentDayCell value=#{entryBean.entry.date} renderAsPopup=true renderPopupButtonAsImage=true popupDateFormat=dd-MMM- / h:message for=""> h:outputLabel value=#{msgs.description} for=""> h:inputText id=description value=#{ entryBean.entry.description} required=true/h:message for=""> h:outputText value=#{msgs.type}/ h:selectOneMenu id=type value=#{entryBean.entry.type} required=true f:selectItems value=#{applicationBean.expenseTypes } / f:converter converterId=javax.faces.Integer/ /h:selectOneMenu h:message for="">h:outputLabel value=#{ msgs.amount} for=""> h:inputText id=amount value=#{entryBean.entry.amount} required=true/h:message for="" /h:panelGridh:panelGroup h:commandButton id=submitInsert action="" value=Insert/ /h:panelGroup /f:subview /h:panelGrid /h:form/f:view ** end of insertBody *Problem is that somehow even if in different pages i use a new form id, it looks like it is being cached and being instead like the form above..ha sanyone had any issues with jscookmenu and forms ?thanks in advanc and regardsmarcoPS i got jscookmenu from nightly built of last week... i am not aware if there are some changes...
weird error when using jscookmenu / not sure w here problem is
xpense', 'linkDummyForm', null], ['img src="" 'Delete Expense', 'idJsp0_menu:Ago_to_deleteExpense', 'linkDummyForm', null],['img src="" 'TestPage', 'idJsp0_menu:Ago_to_testPage', 'linkDummyForm', null]], [null, 'Savings', null, 'linkDummyForm', null,['img src="" 'Transfer To Savings', 'idJsp0_menu:Ago_to_transferSavings', 'linkDummyForm', null],['img src="" 'Query Savings', 'idJsp0_menu:Ago_to_querySavings', 'linkDummyForm', null], ['img src="" 'Withdraw Savings', 'idJsp0_menu:Ago_to_withdrawSavings', 'linkDummyForm', null],['img src="" 'Debit Savings', 'idJsp0_menu:Ago_to_debitSavings', 'linkDummyForm', null], ['img src="" 'Account Balancing', 'idJsp0_menu:Ago_to_balancing', 'linkDummyForm', null]],[null, 'Admin', null, 'linkDummyForm', null,[null, 'Schedule', null, 'linkDummyForm', null,['img src="" 'View Tasks', 'idJsp0_menu:Ago_to_viewTasks', 'linkDummyForm', null], ['img src="" 'Schedule Tasks', 'idJsp0_menu:Ago_to_scheduleTasks', 'linkDummyForm', null],['img src="" 'Schedule Savings', null, 'linkDummyForm', null]], ['img src="" 'Export Database', 'idJsp0_menu:Ago_to_exportDatabase', 'linkDummyForm', null],['img src="" 'Reports', 'idJsp0_menu:Ago_to_reports', 'linkDummyForm', null]]]; //--/scriptdiv id=idJsp0_menu/ divscript type=text/_javascript_!-- cmDraw ('idJsp0_menu', idJsp0_menu, 'vbr', cmThemeOffice, 'ThemeOffice'); //--/script /td td valign= top align=leftform id =entryForm name=entryForm method= post action=/TestJSFApp/insert.jsf enctype=application/x-www-form-urlencoded table border=0tbody trtd/tdtd/tdtd/ td/tr/tbody/tabletable border=0tbodytrtd label for=entryForm:dateDate/label/td tdinput id=entryForm:date name= entryForm:date type=text onfocus=selectText('null', 'entryForm:date') onclick=selectText('null', 'entryForm:date') value= /span id=entryForm:dateSpan/ spanscript type=text/_javascript_!--var entryForm_3AdateCalendarVar=new org_apache_myfaces_PopupCalendar(); entryForm_3AdateCalendarVar.initData.imgDir = /TestJSFApp/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11390689/calendar.HtmlCalendarRenderer/DB/;entryForm_3AdateCalendarVar.initData.monthName = new Array(January,February,March,April,May,June,July,August,September,October,November,December); entryForm_3AdateCalendarVar.initData.dayName = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);entryForm_3AdateCalendarVar.initData.startAt = 0; entryForm_3AdateCalendarVar.dateFormatSymbols.weekdays = new Array(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);entryForm_3AdateCalendarVar.dateFormatSymbols.shortWeekdays = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat); entryForm_3AdateCalendarVar.dateFormatSymbols.shortMonths = new Array(Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec); entryForm_3AdateCalendarVar.dateFormatSymbols.months = new Array(January,February,March,April,May,June,July,August,September,October,November,December); entryForm_3AdateCalendarVar.dateFormatSymbols.eras = new Array(BC,AD);entryForm_3AdateCalendarVar.dateFormatSymbols.ampms = new Array(AM,PM);entryForm_3AdateCalendarVar.init( document.getElementById('entryForm:dateSpan'));if (!document.layers) {document.write('img src="" style=vertical-align:bottom; document.getElementById(\'entryForm:date\'),\'dd-MMM-\') /');}//--/script/tdtd/ td/trtrtdlabel for=entryForm:descriptionDescription/label/tdtd input id=entryForm:description name=entryForm:description type=text value= //tdtd/td/trtr tdType/tdtdselect id= entryForm:type name=entryForm:type size=1 option value=99Test/option/ select/tdtd/td/trtr tdlabel for=entryForm:amountAmount/label /tdtdinput id=entryForm:amount name=entryForm:amount type=text value=0.0 //tdtd/td /tr/tbody/tableinput id= entryForm:submitInsert name=entryForm:submitInsert type= submit value=Insert onclick=clear_entryForm();document.forms['entryForm'].elements['autoScroll'].value=getScrolling(); /input type=hidden name =entryForm_SUBMIT value=1 / input type=hidden name=autoScroll /input type=hidden name= entryForm:_link_hidden_ /script type=text/_javascript_ !--function clear_entryForm() { var f = document.forms['entryForm']; f.elements['entryForm:_link_hidden_'].value=''; f.target='';}clear_entryForm();//--/ script!--@@JSF_FORM_STATE_MARKER@@--/form /td/ trtr td colspan=2 div id=sourcefont color= #023264 size=-1em Copyright copy; 2005, Marco Mistroni/em br /font/ div /td/tr/table!-- MYFACES _javascript_ -- form id=linkDummyForm name=linkDummyForm style=display:inline method=post action=/TestJSFApp/insert.jsfinput type=hidden name=jsf_tree_64 id=jsf_tree_64 value=H4sIAK2Sv07DMBDGj5YIVaqEgIGVAYktoU1g6UYloFELEgUklCEyrklTEtskTikLGzsPwBOgPgFPwMbKS7Ay4/R/gxEMLJa/z76739nX/wAtjuCARZ6OOMJtood3VwiTWEoe+BgJn1H9NCKkKaIEiyQiDUSRR6LNqVllIWeUULF/sf7+ZH++5WDRgYKL237QiqQPtlOXJYxhCWNUwpgpYfy1RKUOyy4eq2qA4ljAar2DusgIEPU
errror in building myfaces with maven
hello all,i have downloaded myfaces (i suppose is the latest) from svn and tried tobuild with maven..while compiling tomahawk, code is looking for package org.apache.struts.tiles which i supposeis not listed in dependencies of tomahawk has anyone encountered this problem?thanks and regards marco
Re: errror in building myfaces with maven
Hello Martin,yes it was there.i m not familiar with maven2 (having used maven 1.1 all the time), but if i change insteadoptionalfalse/optional in the code you attached, everything works fine rgdsmarcoOn 2/1/06, Martin Marinschek [EMAIL PROTECTED] wrote: h... it should be there. struts. excerpt from tomahawks pom.xmldependencygroupIdstruts/groupIdartifactIdstruts/artifactIdversion 1.2.8/versionscopecompile/scopeoptionaltrue/optional/dependencyregards,MartinOn 2/1/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello all,i have downloaded myfaces (i suppose is the latest) from svn and tried tobuild with maven.. while compiling tomahawk, code is looking for package org.apache.struts.tiles which i suppose is not listed in dependencies oftomahawk has anyone encountered this problem? thanks and regards marco --http://www.irian.atYour JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces
Re: problem with jscookmenu
hello,thanks for your reply. now i have an additional question..where do i find the sources of examples, to see what the misc.NavigationMenu does?thanks and regardsmarco On 1/30/06, Dennis Byrne [EMAIL PROTECTED] wrote: org.apache.myfaces.examples.misc.NavigationMenu is simply the backing bean used in the examples application.You are free to use any type of backing bean you wish.You are probably going to want to focus on what misc.NavigationMenu does (and how it is registered in the faces-config.xml file), rather than what it is.Dennis Byrne-Original Message-From: Marco Mistroni [mailto:[EMAIL PROTECTED] ]Sent: Monday, January 30, 2006 02:19 PMTo: 'MyFaces Discussion', [EMAIL PROTECTED]Subject: Re: problem with jscookmenuHello all, can anyone explain me what is the pr oper bean to be configured iwthjscookmenu?in examples, it is listed asorg.apache.myfaces.examples.misc.NavigationMenubut i guess that package does not come byd efault iwth tomahawk / myfaces. anyone could clarify?thanks and regards marcoOn 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote: Ok, client-side works now, too. I don't see your null, though - nowhere in my pages. regards, Martin On 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote: yeah, we're still working on the jscookmenu stuff. It works ok now, but there's still some stuff which should be handled ;). regards, Martin On 1/30/06, Onur Tokan [EMAIL PROTECTED] wrote: Hi, I checkout latest build and it works!!! Thank you very much and Gerald. However I got a null text in the html page. I don't know where it comes from but it doesn't appear in the previous build I'd used. The html source is: function clear_FORM() { var f = document.forms['FORM']; f.elements['FORM:_link_hidden_'].value=''; f.target=''; } clear_FORM(); //--/script/form null/body /html Regards, Onur On 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote:Hi Onur, Gerald Müllan just fixed that - I just checked in. Thanks! regards, Martin On 1/30/06, Onur Tokan [EMAIL PROTECTED] wrote: Hi, Is the problem about jscookmenu component solved. I've tried with today's nightly build, It still continues. Regards, Onur On 1/27/06, Martin Marinschek [EMAIL PROTECTED] wrote: Ah - cool thanks for the info. I've had that info from one of my developers. well, we'll try to get it working with our current configuration on monday in any case. regards, Martin On 1/27/06, Dudu [EMAIL PROTECTED] wrote: I have posting before the JscookMenu of nightly build was not working Today I downloaded the nigthly build version and it is working now. In exception the external link feature of NavigationMenuItem But is need to put the jscookmenu outside of any form, sometimes I need it inside :( Martin... Make sure the jscookmenu is outside of any form and the Myfaces extension filter is correctly configured... And the _javascript_s is automatic included on the head of the page. thanks On 1/27/06, Martin Marinschek [EMAIL PROTECTED] wrote:We know that jscookmenu is currently not working. We've been hit bythat as well for a current project. That is on top of my list ofthings to be fixed, hopefully on monday everything will be up to speedagain. regards, Martin On 1/27/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello all,i have huge problems iwth jscookmenu. :( i have downloaded, from nightly, tomahawk-1.1.2 and myfaces-core-1.1.2 i took the jscookmenu sample from apps and 'adapted' to my app (at hte end i reduced it to folloowing lines) [EMAIL PROTECTED] file=/taglibs.jsp% [EMAIL PROTECTED] file=/inc/head.inc% f:view f:loadBundle basename= org.apache.myfaces.examples.resource.example_messages var=example_messages / t:jscookMenu layout=vbr theme=ThemeOffice %/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack, ThemeOffice, ThemePanelAvailaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl, vur, vulrespect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu */% t:navigationMenuItem id=nav_1 actionListener=#{ navigationMenu.actionListener} itemLabel=nav_Home itemValue=insertExpense action=""> /t:jscookMenu /f:view [EMAIL PROTECTED] file=/inc/page_footer.jsp% i added 'config data' for jscookmenu in my faces-config.xml component component-type org.apache.myfaces.JSCookMenu /c
Re: MyFaces nightly build and JBoss UseJBossWebLoader issue
Hello, might not be same issue, but i found out that somehow, with jboss4, fi you have deployed 2 wars that contains different versions of same myfaces/jsf libraries, jboss gets confused and may load the wrong one... HTH marco On 1/31/06, Werner Punz [EMAIL PROTECTED] wrote: JBoss comes with its own myfaces jars, remove them out of the wayand it should work, alternatively revert the class loader order. Saurabh Rasinghaney schrieb: Hi All, We deployed myfaces nightly build sample application in JBoss 403sp1With attribute attribute name=UseJBossWebLoadertrue/attribute set to true in "jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar\META-INF\ jboss-service.xml" And we got this exception when we try to access these URL's: http://localhost:8080/myfaces-example-simple/collapsiblePanel.jsf http://localhost:8080/myfaces-example-simple/tree2.jsf http://localhost:8080/myfaces-example-simple/tabbedPane.jsf 12:08:18,783 ERROR [[jsp]] Servlet.service () for servlet jsp threw exception java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHiddenInputField(Ljavax/faces/context/ResponseWriter;Ljava/lang/Object;Ljava/lang/Object;)V at org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanelRenderer.encodeChildren(HtmlCollapsiblePanelRenderer.java:80) at javax.faces.component.UIComponentBase.encodeChildren (UIComponentBase.java:319) at org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanel.encodeChildren(HtmlCollapsiblePanel.java:148) at javax.faces.webapp.UIComponentTag.encodeChildren (UIComponentTag.java:343) When we set the attribute to false attribute name=UseJBossWebLoaderfalse/attribute Everything works fine. This is there only when we use nightly build. If we use myfacesall.jar production version it works fine with this parameter set to true. Anyone having any clue what's happening here. Coz. we are facing same problem in our application and we cannot set this parameter to false in our application, if we do so we face other problems in our application. The details of attribute in jboss-service.xml in tomcat service folder is given below. Please suggest. Best Regards, *Saurabh Raisinghaney * The parameter details as given in service.xml !-- A flag indicating if the JBoss Loader should be used. This loaderuses a unified class loader as the class loader rather than the tomcatspecific class loader.The default is false to ensure that wars have isolated class loadingfor duplicate jars and jsp files. -- attribute name=UseJBossWebLoaderfalse/attribute !--Default attribute name=UseJBossWebLoaderfalse/attribute-- !-- The list of package prefixes that should not be loaded withoutdelegating to the parent class loader before trying the web app class loader. The packages listed here are those tha are used bythe web container implementation and cannot be overriden. The formatis a comma separated list of the package names. There cannot be any whitespace between the package prefixes.This setting only applies when UseJBossWebLoader=false. -- attribute name=FilteredPackages javax.servlet,org.apache.commons.logging/attribute
Re: problem with jscookmenu
Hello,thank you for your advices..i have one more question to ask you..am i correct in assuming that, if i take jscookmen 'out of the box' as in the tomahawk example, theonly thing that i have to configure are only navigation-rule elements corresponding to the actions of my navigationmenuitems?thanks in advance and regardsmarcoOn 1/31/06, Onur Tokan [EMAIL PROTECTED] wrote:You can download the sourcecode from the following url http://myfaces.apache.org/source.cgiThe source code includes examples about jscookmenuRegards,OnurOn 1/31/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello,thanks for your reply. now i have an additional question.. where do i find the sources of examples, to see what the misc.NavigationMenu does? thanks and regards marco On 1/30/06, Dennis Byrne [EMAIL PROTECTED] wrote: org.apache.myfaces.examples.misc.NavigationMenu is simply the backing bean used in the examples application.You are free to use any type of backing bean you wish.You are probably going to want to focus on what misc.NavigationMenu does (and how it is registered in the faces-config.xml file), rather than what it is. Dennis Byrne -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] ] Sent: Monday, January 30, 2006 02:19 PM To: 'MyFaces Discussion', [EMAIL PROTECTED] Subject: Re: problem with jscookmenuHello all, can anyone explain me what is the pr oper bean to be configured iwth jscookmenu? in examples, it is listed asorg.apache.myfaces.examples.misc.NavigationMenubut i guess that package does not come byd efault iwth tomahawk / myfaces.anyone could clarify?thanks and regards marcoOn 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote: Ok, client-side works now, too. I don't see your null, though - nowhere in my pages. regards, Martin On 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote:yeah, we're still working on the jscookmenu stuff. It works ok now,but there's still some stuff which should be handled ;). regards, Martin On 1/30/06, Onur Tokan [EMAIL PROTECTED] wrote: Hi, I checkout latest build and it works!!! Thank you very much and Gerald. However I got a null text in the html page. I don't know where it comes from but it doesn't appear in the previous build I'd used. The html source is: function clear_FORM() { var f = document.forms['FORM']; f.elements['FORM:_link_hidden_'].value=''; f.target=''; } clear_FORM(); //--/script/form null/body /html Regards, Onur On 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote: Hi Onur, Gerald Müllan just fixed that - I just checked in. Thanks! regards, Martin On 1/30/06, Onur Tokan [EMAIL PROTECTED] wrote: Hi, Is the problem about jscookmenu component solved. I've tried with today's nightly build, It still continues. Regards, Onur On 1/27/06, Martin Marinschek [EMAIL PROTECTED] wrote:Ah - cool thanks for the info. I've had that info from one of my developers. well, we'll try to get it working with our current configuration onmonday in any case. regards, Martin On 1/27/06, Dudu [EMAIL PROTECTED] wrote: I have posting before the JscookMenu of nightly build was not working Today I downloaded the nigthly build version and it is working now. In exception the external link feature of NavigationMenuItem But is need to put the jscookmenu outside of any form, sometimes I need it inside :( Martin... Make sure the jscookmenu is outside of any form and the Myfaces extension filter is correctly configured... And the _javascript_s is automatic included on the head of the page. thanks On 1/27/06, Martin Marinschek [EMAIL PROTECTED] wrote: We know that jscookmenu is currently not working. We've been hit by that as well for a current project. That is on top of my list of things to be fixed, hopefully on monday everything will be up to speed again. regards, Martin On 1/27/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello all, i have huge problems iwth jscookmenu. :( i have downloaded, from nightly, tomahawk-1.1.2 and myfaces-core-1.1.2 i took the jscookmenu sample from apps and 'adapted' to my app (at hte end i reduced it to folloowing lines) [EMAIL PROTECTED] file=/taglibs.jsp% [EMAIL PROTECTED] file=/inc/head.inc% f:view f:loadBundle basename
Building myfaces with Maven2 / missing commons-logging ?
hello all,i am trying to build myfaces with maen..i checked out sources from SVN and launched myfaces-currentmvn install -Dmaven.test.skip=true -Dmaven.test.failure.ignore=truemyfaces-common is fine, however while compilin tomahawk core i got this exception (actuallyp lenty of htem with similar message) C:\Sw\myfaces-current\tomahawk\core\src\main\java\org\apache\myfaces\custom\jslistener\JsValueChangeListenerRenderer.java:[25,19] cannot find symbolsymbol : class Loglocation: class org.apache.myfaces.custom.jslistener.JsValueChangeListenerRender eri guess commons-logging should be included in the dependencies of tomahawk\core\pom.xml?rgdsmarco
Re: problem with jscookmenu
Hello all,can anyone explain me what is the pr oper bean to be configured iwthjscookmenu?in examples, it is listed asorg.apache.myfaces.examples.misc.NavigationMenubut i guess that package does not come byd efault iwth tomahawk / myfaces. anyone could clarify?thanks and regardsmarcoOn 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote:Ok, client-side works now, too.I don't see your null, though - nowhere in my pages. regards,MartinOn 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote: yeah, we're still working on the jscookmenu stuff. It works ok now, but there's still some stuff which should be handled ;). regards, Martin On 1/30/06, Onur Tokan [EMAIL PROTECTED] wrote: Hi, I checkout latest build and it works!!! Thank you very much and Gerald. However I got a null text in the html page. I don't know where it comes from but it doesn't appear in the previous build I'd used. The html source is: function clear_FORM() { var f = document.forms['FORM']; f.elements['FORM:_link_hidden_'].value=''; f.target=''; } clear_FORM(); //--/script/form null/body /html Regards, Onur On 1/30/06, Martin Marinschek [EMAIL PROTECTED] wrote: Hi Onur, Gerald Müllan just fixed that - I just checked in. Thanks! regards, Martin On 1/30/06, Onur Tokan [EMAIL PROTECTED] wrote:Hi, Is the problem about jscookmenu component solved. I've tried withtoday's nightly build, It still continues. Regards, Onur On 1/27/06, Martin Marinschek [EMAIL PROTECTED] wrote: Ah - cool thanks for the info. I've had that info from one of my developers. well, we'll try to get it working with our current configuration on monday in any case. regards, Martin On 1/27/06, Dudu [EMAIL PROTECTED] wrote: I have posting before the JscookMenu of nightly build was not working Today I downloaded the nigthly build version and it is working now. In exception the external link feature of NavigationMenuItem But is need to put the jscookmenu outside of any form, sometimes I need it inside :( Martin... Make sure the jscookmenu is outside of any form and the Myfaces extension filter is correctly configured... And the _javascript_s is automatic included on the head of the page. thanksOn 1/27/06, Martin Marinschek [EMAIL PROTECTED] wrote: We know that jscookmenu is currently not working. We've been hit by that as well for a current project. That is on top of my list of things to be fixed, hopefully on monday everything will be up to speed again. regards, Martin On 1/27/06, Marco Mistroni [EMAIL PROTECTED] wrote:hello all, i have huge problems iwth jscookmenu. :(i have downloaded, from nightly, tomahawk-1.1.2 and myfaces-core-1.1.2i took the jscookmenu sample from apps and 'adapted' to my app (at hte end ireduced it to folloowing lines) [EMAIL PROTECTED] file=/taglibs.jsp%[EMAIL PROTECTED] file=/inc/head.inc% f:viewf:loadBundle basename=org.apache.myfaces.examples.resource.example_messagesvar=example_messages / t:jscookMenu layout=vbr theme=ThemeOffice%/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack, ThemeOffice, ThemePanel Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl,vur, vul respect to Heng Yuanhttp://www.cs.ucla.edu/~heng/JSCookMenu*/% t:navigationMenuItem id=nav_1actionListener=#{ navigationMenu.actionListener }itemLabel=nav_Home itemValue=insertExpenseaction=""> /t:jscookMenu/f:view[EMAIL PROTECTED] file=/inc/page_footer.jsp% i added 'config data' for jscookmenu in my faces-config.xml componentcomponent-type org.apache.myfaces.JSCookMenu/component-type component-classorg.apache.myfaces.custom.navmenu.jscookmenu.HtmlCommandJSCookMenu/component-class /component renderercomponent-familyjavax.faces.Command/component-family renderer-typeorg.apache.myfaces.JSCookMenu/renderer-typerenderer-class org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer/renderer-class/renderer and when i click on a menuitem i am gettign following exception in my logs 11:12:48,582 WARN[ReducedHTMLParser] Invalid tag found: unexpected inputwhile looking for attr name or '/' at line 287 11:12:48,582 WARN[ReducedHTMLParser] Invalid tag found: unexpected inputwhile looking for attr name or '/' at line 290 i have checked the myfaces-example, but i m no
Re: problem with jscookmenu / still problems
Hello,i m still havingp roblems...i have downloaded the nightly build dated 30/1, version 1.1.2-SNAPSHOT of both myfaces core and tomahawk, and now i am gettign this exception :19:28:45,468 ERROR [[jsp]] Servlet.service() for servlet jsp threw exceptionjava.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.getDummyFormResponseWriter(Ljavax/faces/context/FacesContext;)Lorg/apache/myf aces/renderkit/html/util/DummyFormResponseWriter; at org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.encodeChildren(HtmlJSCookMenuRenderer.java:169) at javax.faces.component.UIComponentBase.encodeChildren (UIComponentBase.java:524) at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:474) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:361) at org.apache.jsp.common.jscookmenu_jsp._jspService (org.apache.jsp.common.jscookmenu_jsp:182) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service (HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java :574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:604) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude (TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at org.apache.jsp.layout.VerticalclassicLayout_jsp._jspx_meth_tiles_insert_1(org.apache.jsp.layout.VerticalclassicLayout_jsp:162) at org.apache.jsp.layout.VerticalclassicLayout_jsp._jspService(org.apache.jsp.layout.VerticalclassicLayout_jsp:85) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp atcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java :499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:604) at org.apache.struts.tiles.TilesUtilImpl.doInclude (TilesUtilImpl.java:137) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag (InsertTag.java:881) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at org.apache.jsp.main_jsp._jspx_meth_tiles_insert_0(org.apache.jsp.main_jsp:117) at org.apache.jsp.main_jsp._jspService(org.apache.jsp.main_jsp:62) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)anyone could help?thanx a nd regards marco
problem with jscookmenu
hello all,i have huge problems iwth jscookmenu. :(i have downloaded, from nightly, tomahawk-1.1.2 and myfaces-core-1.1.2i took the jscookmenu sample from apps and 'adapted' to my app (at hte end i reduced it to folloowing lines) [EMAIL PROTECTED] file=/taglibs.jsp%[EMAIL PROTECTED] file=/inc/head.inc%f:view f:loadBundle basename=org.apache.myfaces.examples.resource.example_messages var=example_messages / t:jscookMenu layout=vbr theme=ThemeOffice %/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack, ThemeOffice, ThemePanel Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl, vur, vul respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu */% t:navigationMenuItem id=nav_1 actionListener=#{navigationMenu.actionListener} itemLabel=nav_Home itemValue=insertExpense action="" /t:jscookMenu/f:view[EMAIL PROTECTED] file=/inc/page_footer.jsp%i added 'config data' for jscookmenu in my faces-config.xml component component-typeorg.apache.myfaces.JSCookMenu/component-type component-classorg.apache.myfaces.custom.navmenu.jscookmenu.HtmlCommandJSCookMenu/component-class /componentrenderer component-familyjavax.faces.Command/component-family renderer-typeorg.apache.myfaces.JSCookMenu/renderer-type renderer-class org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer/renderer-class /rendererand when i click on a menuitem i am gettign following exception in my logs11:12:48,582 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/' at line 28711:12:48,582 WARN [ReducedHTMLParser] Invalid tag found: unexpected input whilelooking for attr name or '/' at line 290i have checked the myfaces-example, but i m not really sure if jscookmenu is working there since whenever i click on any link, the main page does not change.can anyone help me out? is there still something that i need to configure?thanks in advancea nd regardsmarco
jscookmenu source code
hello all, it looks tome that jscookmenu to work properly needs a backed bean... where i can find the source code of the examples so that i can see which code to put in my backed bean? thanks and regards marco
sandbox jar file
hello all, can anyone provide me the link to download the latest sandbox jar file?i cannt find from any nightly 'repositories'thanks in advance and regardsmarco
jscookmenu usage / backed bean
hello all,i may have missed completely docs, but in order to use jscookmenu in my applicationdo i need a backed bean?how to integrate the backed bean with jscookmenu?anyone could provide me a starting point? thanks in advance and regardsmarco
Re: jscookmenu usage / backed bean
Hello james, thanx for fast reply.. could you pls send me the link to souce code of example?thanks and regards MarcoOn 1/24/06, James Reynolds [EMAIL PROTECTED] wrote: Here's a spot: http://wiki.apache.org/myfaces/JSCook_Menu Plus you'll definitely want to download the source files for the example wars. I've found many answers to my questionsin there! From: Marco Mistroni [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 24, 2006 3:17 PMTo: MyFaces DiscussionSubject: jscookmenu usage / backed bean hello all,i may have missed completely docs, but in order to use jscookmenu in my applicationdo i need a backed bean?how to integrate the backed bean with jscookmenu?anyone could provide me a starting point? thanks in advance and regardsmarco
Tiles jsCookMenu
Hello all, i am trying to use jscookmenu inside tiles layout... basically what ihave done is take the jscookmenu.jsp and declare it in tiles-config.xml as follows definition name=budgetLayout path=/layout/jscookmenu.jsf put name=title value=MM's JSF Application / put name=header value=/common/header.jsp / put name=footer value=/common/footer.jsp / put name=body value=/main.jsp //definition obviously, teh fact that we have tiles and jsf tags at same time causes problems, and in fact i am receiving the following exception [ServletException in:/layout/jscookmenu.jsf] Cannot forward after response has been committed' which if i remember correctly is the one that you find if you use tiles along with jsf tags i am currently usign tiles.jar (not the one coming from myfaces) will the use of myfaces tiles solve the problem? or do ihave to 'restructure' my tiles layout not to include jsf pages? anyone has had similar situation? thanks in advance and regards marco
Re: Tiles jsCookMenu
Hello Jamie, thanks for your reply.. i m curious about your setup... let me see if i understand it correctly.. you would have something like this in tiles-defs.xml ? definition name=budgetLayout path=/layout/default put name=title value=MM's JSF Application / put name=header value=/common/header.jsp / put name=header value=/common/menu.jsf / put name=footer value=/common/footer.jsp / put name=body value=/main.jsp / /definition ? so would it be menu.jsp or menu.jsf when declaring it in tiles-defs.xml? thanx and regards marco On 1/18/06, Cash, Jamie [EMAIL PROTECTED] wrote: I have used this setup (jsf tiles and jscookmenu) and my setup was as follows:Used struts.jar which includes the tiles stuff.Created my default.jsp (tiles template) file as a standard tiles layout, minimialising the use of jsf tags (This works well, as you have much more control over the site layout).Put the jscookmenu code in a menu.jsp file, that was one of the tiles declared in my tiles-config file and added in my default.jsp.I found that I experienced problems when trying to use more than one jscookmenu per page though.My website ( www.ecommerce-consultancy.co.uk) has been build using this approach, I can send you some of the files if you need them.I hope this helps.Jamie-Original Message- From: Wei Chiang [mailto:[EMAIL PROTECTED]]Sent: 18 January 2006 11:59To: MyFaces DiscussionSubject: Re: Tiles jsCookMenuI havea different problem regarding tile + jscookmenu.Please see yesterday's mail (jscookmenu problem?).I have not solved the problem yet.In my case,the jscookmenu tags are in the mina.jsp , the main layout(corresponding to your jscookmenu.jsp) does not have jscookmenu tags but have view related jsf tags. As far as I can tell, my problem is not directlyrelated to tiles.WeiOn Wednesday 18 January 2006 13:41, Marco Mistroni wrote: Hello all, i am trying to use jscookmenu inside tiles layout... basically what ihave done is take the jscookmenu.jsp and declare it in tiles-config.xml as follows definition name=budgetLayout path=/layout/jscookmenu.jsf put name=titlevalue=MM's JSF Application /put name=header value=/common/header.jsp /put name=footer value=/common/footer.jsp / put name=body value=/main.jsp / /definition obviously, teh fact that we have tiles and jsf tags at same time causes problems, and in fact i am receiving the following exception [ServletException in:/layout/jscookmenu.jsf] Cannot forward after response has been committed' which if i remember correctly is the one that you find if you use tiles along with jsf tags i am currently usign tiles.jar (not the one coming from myfaces) will the use of myfaces tiles solve the problem? or do ihave to 'restructure' my tiles layout not to include jsf pages? anyone has had similar situation? thanks in advance and regardsmarcoINTERNATIONAL FINANCIAL DATA SERVICES (UK) LTD Tel: +44 1268 44 3000** N O T I C E * This message and any attachments is intended only for the individual or company to which it is addressed and may containinformation which is privileged, confidential or prohibited from disclosure or unauthorised use. If the recipient of this transmission is not the intended recipient, or the employee or agent responsible for delivering such materials to theintended recipient, you are hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message or its attachments other than by it's intendedrecipient is strictly prohibited by the sender. If you have received it in error, please notify us immediately by telephone on the number above and destroy the message and all copies in your possession.International Financial Data Services (UK) Ltd is authorised and regulated by the Financial Services Authority.This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. **
Re: MyFaces + Shale + Facelets
Hello all, it seems to me that the Spring-JSF project allows you to scope beans... isn't that so? pls correct me if i m wrong./... regards marco On 1/12/06, Werner Punz [EMAIL PROTECTED] wrote: Laurie Harper schrieb: Spring provides a much more capable IoC solution than Faces alone; I prefer to use it for everything I can, to get things like automatic dependency injection. I'd use it to manage all my beans, but it doesn't have support for scoping beans (i.e. request/session/application scope), so for things that need to be scoped I use Faces. For everything *else* I use Spring :-)unfortunately yes, this is a huge problem, but the next major springversion will have the scopes of jsf to my knowledge, so the mess to have beans partially defined in jsf and partially defined in spring soonwill have an end.
referencing a managed bean property problem
hello all, this code results in an error f:view h:form id=savingsForm h:dataTable value=#{savingsBean.savingsList} var=row border=1 h:column h:outputText value=#{row}/ /h:column h:column h:inputText value=#{savingsBean.recentBlogEntries[#{row}]}/ /h:column /h:dataTable h:panelGroup h:commandButton id=submitInsert action="" value=Insert/ /h:panelGroup /h:form/f:view at this point h:inputText value=#{savingsBean.recentBlogEntries[#{row}]}/ recentBlogEntries is a Map. i tried, for hte sake of trying, to put in a List (savingsList, the one used for DataTable)all keys of the Map, and tried to generate inputText for the Map by passing the value of #{row} (which woul dbe the key of the map) it didnt work out. is that impossible or is my syntax wrong somehow? thanks and regards marco
Re: Indexed Properties and dataTable
Hello Simon, sorry for late reply... i was on holiday basically, what i really need is the ability to specify indexed properties in myfaces so, let's say, i have 5 entries iin my database table.. my page should render like this... ---row 1--- h:column h:inputText value=#{myBean.prop1[0]}/ /h:column h:column h:inputText value=#{myBean.prop2[0]}/ /h:column row 2 --- h:column h:inputText value=#{myBean.prop1[1]}/ /h:column h:column h:inputText value=#{myBean.prop2[1]}/ /h:column -- row 3 --- h:column h:inputText value=#{myBean.prop1[2]}/ /h:column h:column h:inputText value=#{myBean.prop2[2]}/ /h:column i tried dataList, but instead of displaying data in multiple rows, everything is displayed in one row.. i tried t:dataList or t:dataTAble with property forceIndexId set to true, and what i got is the id with prop[] ... not the value do you have any more suggestions? thanks anyway and happy new year marco On 12/23/05, Simon Kitching [EMAIL PROTECTED] wrote: Marco Mistroni wrote: hello all,how can i use indexed properties in jsf? i have folllowig scenario table align=centertr td t:dataTable id=tablevalue=#{savingsBean.savingsList }var=expense rowIndexVar=rowrowClasses=oddRow, evenRowheaderClass=tableHeader h:columnf:facet name=headerh:outputTextvalue=Description//f:facet h:inputText value=#{ savingsBean.descriptions[#{row}]}/ /h:column/t:dataTable description is a String[] property in my backed Bean,(if my expense variable contains 5 items, i will have 5 input parameter named descriptions) but i don't know how to specify the index. the above code obviously resolve in an error at runtime There is no way to use indexed properties from a JSF EL _expression_.Are you trying to render 5 input text fields in the same table column?If so, you might like to look at the t:dataList tomahawk component. Or are you trying to render 5 columns in the table? If so, you mightlike to look at the t:columns tomahawk component.Regards,Simon
How to implement this usecase with JSF/MyFaces
Hello all, i have following problem / usecase in mydatabase i have a table called 'transfertypes', which contains 2 columns, id and description. ideally, this is populated with 8 rows. Now, in my JSF application, i should load the content of that table, and for each row i need to create following input parameters date / description / id (from db table) / amount so, if i have 8 rows i will have 32 input parameters.. I decided to define following properties in my ManagedBean date of type Date[] description of type STring[] id of type int[] amount of type double[] i am having huge problems in the JSP when i need to acually write the code, for example i am using following h:dataTable id=tablevalue=#{savingsBean.transferList}var=expense rowClasses=oddRow, evenRow headerClass=tableHeader h:column f:facet name=header h:outputText value=Description/ /f:facet h:inputText value=#{ savingsBean.descriptions}/ /h:column /h:dataTable This is a very simple case that i have tried, it results in 8 input parameters of type String (where 8 is thenumber of entries in my database table the problem is that i THOUGHT, since i will have 8 parameters with same name (description), it's safe to define a property of type String[] named description. looks it doesnoto work like that i suspect i should somehow write, for each row, h:inputText value=#{savingsBean.descriptions[i]}/ but i dont know how to access the index of the row... nor if the above syntax is correct .. can anyone help? thanks in advance and regards marco
Indexed Properties and dataTable
hello all, how can i use indexed properties in jsf? i have folllowig scenario table align=center tr td t:dataTable id=table value=#{savingsBean.savingsList } var=expense rowIndexVar=row rowClasses=oddRow, evenRow headerClass=tableHeader h:column f:facet name=header h:outputText value=Description/ /f:facet h:inputText value=#{ savingsBean.descriptions[#{row}]}/ /h:column/t:dataTable description is a String[] property in my backed Bean, (if my expense variable contains 5 items, i will have 5 input parameter named descriptions) but i don't know how to specify the index. the above code obviously resolve in an error at runtime anyone could help? thanks in advance and regards marco
partially OT / issue with DataTAble
hello all, sorry for this partially off topic question i have a dataTable which contains a list of Expense objects. (which has a data, name and amount fields) i would like to have all rows of my datatable displayed, and at the end the sum of the amount field of each row.. is that possible using dataTAble? or do i need to calculate it myself in my Web java code? thanks in advance and regards marco
LayoutManager for JSF / Myfaces
hello all, i was wondering if any of you guys are using any particular LayoutManager toggether with JSF.. i am using Tiles, but i wanted to move away and try to use something else... what layoutmanager / template mechanism are you using? any particular suggestions? thanks in advance and regards marco
Re: LayoutManager for JSF / Myfaces
Hello, well, i am trying to move away from declaring tld files.. and althought it's not a problem, i want to avoid to include the struts.jar just to use tiles i tried to use only tiles.jar, but i was not able to find any tiles.jar that contains TilesServlet.. thanx for comments regards marco On 11/18/05, Julián García [EMAIL PROTECTED] wrote: I am also using tiles. Why do you want to move?Although I do not use it, I think SiteMesh would be worth a trydo not know how to integrate that with MyFaces...http://www.opensymphony.com/sitemesh/Marco Mistroni wrote: hello all,i was wondering if any of you guys are using any particular LayoutManager toggether with JSF..i am using Tiles, but i wanted to move away and try to use something else...what layoutmanager / template mechanism are you using? any particular suggestions? thanks in advance and regards marco
Re: LayoutManager for JSF / Myfaces
ah, i got it from different site mayb that will do.. thanx again marco On 11/18/05, Greg Reddin [EMAIL PROTECTED] wrote: On Nov 18, 2005, at 10:55 AM, Marco Mistroni wrote: Hello, well, i am trying to move away from declaring tld files.. and althought it's not a problem, i want to avoid to include the struts.jar just to use tiles i tried to use only tiles.jar, but i was not able to find any tiles.jar that contains TilesServlet.. The Standalone Tiles Jar found here (http://cvs.apache.org/repository/tiles/jars/) should have TilesServlet in it.Does it not?Greg
Re: ClassLoading problem
Hello, where are you deploying to? i deployed on jboss 3.2.5.. all my classes are in my webapp, including spring,acegi jsf-spring regards marco On 11/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I guess I have some more problems here. We use acegi-security(depends on spring.jar)and depend on container level contexts for addressing certain security requirements.Therefore spring.jar is loaded from the common/lib directory. Now bundling myfaces along with my app seems to lead to some classloader problems integrating with spring beans :-( The curious part is that I had the same working with SUN RI jar files in the common/lib directory. When I moved to MyFaces, I thought it would be as easy to replace the jar files and make changes to the taglib imports. Seems like I need to do more homework on this classloading issue. Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 From: Wayne Fay [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 16, 2005 9:42 PM To: MyFaces DiscussionSubject: Re: ClassLoading problem Be sure to shut down jboss, then delete the various jars including anything in tmp/work, then restart and redeploy your app including the Myfaces jars... Wayne On 11/16/05, Marco Mistroni [EMAIL PROTECTED] wrote: hello agree... got same error package your spring/myfaces/webapp files in your app and don't trust jboss more than that, delete your tmp/work directory to make sure... once i struggled a day to find out where my app faces file were clashing..and found out that in tmp/work directory i had old copies... regards marco On 11/16/05, Wayne Fay [EMAIL PROTECTED] wrote: From the stack trace, I think your application is failing to find one of your Managed Beans specified in faces-config.xml. buildManagedBean is calling ClassUtils to find and instantiate the bean, but JBoss just can't find it, so it bombs out. I could easily be wrong, but that's what it looks like to me. at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:138)at org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:157)at org.apache.myfaces.util.ClassUtils.newInstance (ClassUtils.java:265)at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49) Also I generally suggest that you not use the JBoss MyFaces jar files and instead bundle each application with its own jars -- shared libs are great until you need NB 20051115 MyFaces for your app, and another person with a different application on your JBoss server says that anything after 1.1.1 breaks his app, now what do you do? Wayne On 11/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I get such error in my application. MyFaces jar files are present under Jboss/server/default/lib directory whereas my beans are packaged in the web application. I suspect that to be the error, but jsut wanted to make sure , it is. Does anyone have any suggestion? 2005-11-16 20:08:54,015 ERROR [ClassUtils] Class com.nortel.ems.mgmt.linux.webInterface.UserManagementHandler not foundjava.lang.ClassNotFoundException: No ClassLoaders found for: com.nortel.ems.mgmt.linux.webInterface.UserManagementHandlerat org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java :475)at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoaderjava:377) at java.lang.ClassLoader.loadClass(ClassLoader.java:251)at java.lang.ClassLoader.loadClassInternal(ClassLoader.java :319)at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242)at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:138)at org.apache.myfaces.util.ClassUtils.simpleClassForName (ClassUtils.java:157)at org.apache.myfaces.util.ClassUtils.newInstance (ClassUtils.java:265)at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49)at org.apache.myfaces.el.VariableResolverImpl.resolveVariable (VariableResolverImpl.java:311)at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:103)at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable (DelegatingVariableResolver.java:103) at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:571)at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)at org.apache.commons.el.ComplexValue.evaluate (ComplexValue.java:140)at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java Thanks Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 Confidentiality Notice The information contained in this electronic message and any
Re: ClassLoading problem
hello, sorry can't help here it's been 2 days that i am trying to deploy my JSF app into jboss 4.0.2 and still got a nasty exception when jboss tries to scan some tld for myfaces.. java.util.zip.ZipException: too many length or distance symbolsat java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)at java.util.jar.JarInputStream.read (JarInputStream.java:171)at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)at java.io.BufferedInputStream.read(BufferedInputStream.java:313)at java.util.jar.JarInputStream.getBytes(JarInputStream.java :88)at java.util.jar.JarInputStream.init(JarInputStream.java:65)at java.util.jar.JarInputStream.init(JarInputStream.java:43)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.scanJar(TagLibCache.java :310)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:263)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:256)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.init (TagLibCache.java:100)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation(TagLibCache.java:88)at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)at org.apache.jasper.compiler.Parser.parseTaglibDirective (Parser.java:417)at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) have you ever seen that? i am going to post another msg to the list to see if someone has find something similar.. thanks and regars marco On 11/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I use JBoss4.0.2 and as I said, I have the acegi-security and spring.jar under common/lib directory to achieve single signon related functional requirements. Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 From: Marco Mistroni [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 17, 2005 3:12 PM To: MyFaces DiscussionSubject: Re: ClassLoading problem Hello, where are you deploying to? i deployed on jboss 3.2.5.. all my classes are in my webapp, including spring,acegi jsf-spring regards marco On 11/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I guess I have some more problems here. We use acegi-security(depends on spring.jar)and depend on container level contexts for addressing certain security requirements.Therefore spring.jar is loaded from the common/lib directory. Now bundling myfaces along with my app seems to lead to some classloader problems integrating with spring beans :-( The curious part is that I had the same working with SUN RI jar files in the common/lib directory. When I moved to MyFaces, I thought it would be as easy to replace the jar files and make changes to the taglib imports. Seems like I need to do more homework on this classloading issue. Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 From: Wayne Fay [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 16, 2005 9:42 PM To: MyFaces DiscussionSubject: Re: ClassLoading problem Be sure to shut down jboss, then delete the various jars including anything in tmp/work, then restart and redeploy your app including the Myfaces jars... Wayne On 11/16/05, Marco Mistroni [EMAIL PROTECTED] wrote: hello agree... got same error package your spring/myfaces/webapp files in your app and don't trust jboss more than that, delete your tmp/work directory to make sure... once i struggled a day to find out where my app faces file were clashing..and found out that in tmp/work directory i had old copies... regards marco On 11/16/05, Wayne Fay [EMAIL PROTECTED] wrote: From the stack trace, I think your application is failing to find one of your Managed Beans specified in faces-config.xml. buildManagedBean is calling ClassUtils to find and instantiate the bean, but JBoss just can't find it, so it bombs out. I could easily be wrong, but that's what it looks like to me. at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:138)at org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:157)at org.apache.myfaces.util.ClassUtils.newInstance (ClassUtils.java:265)at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49) Also I generally suggest that you not use the JBoss MyFaces jar files and instead bundle each application with its own jars -- shared libs are great until you need NB 20051115 MyFaces for your app, and another person with a different application on your JBoss server says that anything after 1.1.1 breaks his app, now what do you do? Wayne On 11/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I get such error in my application. MyFaces jar files are present under Jboss
Re: JSF-basede application on jboss 4.0.2 fails miserably
thanks, but that won't help much :( fact that i can deploy under jboss 3.2.5 without any problems make me think that problem maybe is some jboss setting, variables, don't know what are you using JDK 1.5? regards marco On 11/17/05, Rogerio Pereira [EMAIL PROTECTED] wrote: I can deploy my ear in 4.0.2 and 4.0.3 without any problem.2005/11/17, Marco Mistroni [EMAIL PROTECTED]: hello all, i have developed a JSF app that i have deployed successfully on jboss 3.2.5 i decided to move to jboss 4.02., and got this awful exception java.io.FileNotFoundException: C:\Sw\jboss-4.0.2\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs\myfaces-impl.jarat org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java :80)at org.jboss.net.protocol.file.FileURLConnection.getInputStream (FileURLConnection.java:89)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.scanJar(TagLibCache.java:309)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.loadStandardTlds(TagLibCache.java:229)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.init (TagLibCache.java:99)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation (TagLibCache.java:88)at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)at org.apache.jasper.compiler.Parser.parseTaglibDirective (Parser.java:417) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)at org.apache.jasper.compiler.Parser.parse (Parser.java :126)at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) at org.apache.jasper.compiler.Compiler.generateJava (Compiler.java:146)at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)at org.apache.jasper.compiler.Compiler.compile (Compiler.java:267)at org.apache.jasper.compiler.Compiler.compile(Compiler.java :255)at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314)at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264)at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java :252)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) trying to add the jsf-lib with myfaces jar inside results still in this exception 2005-11-17 10:02:07,726 DEBUG [org.jboss.web.tomcat.tc5.jasper.TagLibCache] Scanning for tlds in: file:/C:/Sw/jboss-4.0.2/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs/myfaces- impl.jar 2005-11-17 10:02:07,944 ERROR [ org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/JSFApp].[jsp]] Servlet.service() for servlet jsp threw exception java.util.zip.ZipException : too many length or distance symbolsat java.util.zip.InflaterInputStream.read (InflaterInputStream.java:140)at java.util.zip.ZipInputStream.read(ZipInputStream.java:139)at java.util.jar.JarInputStream.read(JarInputStream.java:171)at java.io.BufferedInputStream.read1(BufferedInputStream.java :254)at java.io.BufferedInputStream.read(BufferedInputStream.java :313)at java.util.jar.JarInputStream.getBytes(JarInputStream.java:88)at java.util.jar.JarInputStream.init(JarInputStream.java:65) at java.util.jar.JarInputStream.init( JarInputStream.java:43)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.scanJar(TagLibCache.java:310)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem (TagLibCache.java :263)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:256)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.init(TagLibCache.java:100)at org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation (TagLibCache.java:88)at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java :417)at org.apache.jasper.compiler.Parser.parseDirective (Parser.java:483)at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)at org.apache.jasper.compiler.Parser.parse (Parser.java:126)at org.apache.jasper.compiler.ParserController.doParse(ParserController.java :211)at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)at org.apache.jasper.compiler.Compiler.compile(Compiler.java :286)at org.apache.jasper.compiler.Compiler.compile (Compiler.java:267)at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :556)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314
Re: MyFaces and Spring.
Yes, but it can happen for million of reasons.. send me your web.xml file as well as applicationcontext files / jsf files that you are using... thanks an dregards marco On 11/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Marco, Have you seen any errors like this before in your integration? java.lang.ExceptionInInitializerErrorat de.mindmatters.faces.spring.support.DelegatingVariableResolver.getFacesSpringWebApplicationContext (DelegatingVariableResolver.java:156)at de.mindmatters.faces.spring.support.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:140)at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable (ValueBindingImpl.java:571)at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)at org.apache.myfaces.el.ValueBindingImpl.getValue (ValueBindingImpl.java:380)at javax.faces.component.UIOutput.getValue(UIOutput.java:75)at org.apache.myfaces.renderkit.RendererUtils.getStringValue(RendererUtils.java:219)at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderOutput (HtmlTextRendererBase.java:65)at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:53)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331 Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 From: Marco Mistroni [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 12, 2005 7:41 PMTo: MyFaces Discussion; [EMAIL PROTECTED] Subject: Re: MyFaces and Spring. Hello Mike, i am actually using this filter filter-nameRequestHandled/filter-name filter-classde.mindmatters.faces.spring.support.RequestHandledFilter/filter-class /filter in your faces config you don't need to declare anything in particular in application tag.. just your beans and navigations. check jsf-spring docs for which beans you would declare in jsf-config.xml as opposed to applicationContext.xml HTH MARCO Confidentiality Notice The information contained in this electronic message and any attachments to this message are intendedfor the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
problem with SelectItem value to be set on a Bean
hello all, i am trying to populate a selectable list with some items... the value selected will be associated to a bean property the bean property (named 'type') is of type int. In building the selectableList i am using this code (in java)] List list = new ArrayList();SelectItem item = new SelectItem();item.setValue(new Integer(10));item.setLabel(Hardcoded value);System.err.println(ApplicationBean. adding hardcoded item..); list.add(item);return list; and here's the jsf code in the jsp h:selectOneMenu id=typevalue=#{entryBean.entry.type} required=true f:selectItems value=#{applicationBean.expenseTypes} //h:selectOneMenu i am getting following exception when accessing the page java.lang.IllegalArgumentException: Value is no String and component entryForm:type does not have a Converterat org.apache.myfaces.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:548)at org.apache.myfaces.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:566)at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderSelectOptions(HtmlRendererUtils.java:392)at org.apache.myfaces.renderkit.html.HtmlRendererUtils.internalRenderSelect (HtmlRendererUtils.java:292)at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:246)at org.apache.myfaces.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java :54)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:454)at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren (HtmlGridRendererBase.java:215)at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:97)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253)at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java :55)at org.apache.jsp.insertBody_jsp._jspx_meth_h_panelGrid_0(insertBody_jsp.java:297)at org.apache.jsp.insertBody_jsp._jspx_meth_h_form_0(insertBody_jsp.java:199)at org.apache.jsp.insertBody_jsp._jspx_meth_f_view_0 (insertBody_jsp.java:169)at org.apache.jsp.insertBody_jsp._jspService(insertBody_jsp.java:118)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)at javax.servlet.http.HttpServlet.service(HttpServlet.java :810)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:236)at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157)at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)at org.apache.jasper.runtime.PageContextImpl.include (PageContextImpl.java:581)at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)at org.apache.struts.tiles.taglib.InsertTag.doInclude (InsertTag.java:756)at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:888)at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:458) anyone could help? thanks in advance and regards marco
Re: problem with SelectItem value to be set on a Bean / solved
Hello all, sorry 2 bother.. problem fixed. i had accidentally deleted all faces config files... sorry again regards marco On 11/16/05, Marco Mistroni [EMAIL PROTECTED] wrote: hello all, i am trying to populate a selectable list with some items... the value selected will be associated to a bean property the bean property (named 'type') is of type int. In building the selectableList i am using this code (in java)] List list = new ArrayList();SelectItem item = new SelectItem();item.setValue(new Integer(10));item.setLabel(Hardcoded value);System.err.println(ApplicationBean. adding hardcoded item..); list.add(item);return list; and here's the jsf code in the jsp h:selectOneMenu id=typevalue=#{entryBean.entry.type} required=true f:selectItems value=#{applicationBean.expenseTypes} //h:selectOneMenu i am getting following exception when accessing the page java.lang.IllegalArgumentException: Value is no String and component entryForm:type does not have a Converterat org.apache.myfaces.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:548)at org.apache.myfaces.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:566)at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderSelectOptions(HtmlRendererUtils.java:392)at org.apache.myfaces.renderkit.html.HtmlRendererUtils.internalRenderSelect (HtmlRendererUtils.java:292)at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:246)at org.apache.myfaces.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java :54)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:454)at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren (HtmlGridRendererBase.java:215)at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:97)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253)at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java :55)at org.apache.jsp.insertBody_jsp._jspx_meth_h_panelGrid_0(insertBody_jsp.java:297)at org.apache.jsp.insertBody_jsp._jspx_meth_h_form_0(insertBody_jsp.java:199)at org.apache.jsp.insertBody_jsp._jspx_meth_f_view_0 (insertBody_jsp.java:169)at org.apache.jsp.insertBody_jsp._jspService(insertBody_jsp.java:118)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)at javax.servlet.http.HttpServlet.service( HttpServlet.java :810)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:236)at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157)at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)at org.apache.jasper.runtime.PageContextImpl.include (PageContextImpl.java:581)at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)at org.apache.struts.tiles.taglib.InsertTag.doInclude (InsertTag.java:756)at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:888)at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:458) anyone could help? thanks in advance and regards marco
Re: ClassLoading problem
hello agree... got same error package your spring/myfaces/webapp files in your app and don't trust jboss more than that, delete your tmp/work directory to make sure... once i struggled a day to find out where my app faces file were clashing..and found out that in tmp/work directory i had old copies... regards marco On 11/16/05, Wayne Fay [EMAIL PROTECTED] wrote: From the stack trace, I think your application is failing to find one of your Managed Beans specified in faces-config.xml. buildManagedBean is calling ClassUtils to find and instantiate the bean, but JBoss just can't find it, so it bombs out. I could easily be wrong, but that's what it looks like to me. at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:138)at org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:157)at org.apache.myfaces.util.ClassUtils.newInstance (ClassUtils.java:265)at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49) Also I generally suggest that you not use the JBoss MyFaces jar files and instead bundle each application with its own jars -- shared libs are great until you need NB 20051115 MyFaces for your app, and another person with a different application on your JBoss server says that anything after 1.1.1 breaks his app, now what do you do? Wayne On 11/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I get such error in my application. MyFaces jar files are present under Jboss/server/default/lib directory whereas my beans are packaged in the web application. I suspect that to be the error, but jsut wanted to make sure , it is. Does anyone have any suggestion? 2005-11-16 20:08:54,015 ERROR [ClassUtils] Class com.nortel.ems.mgmt.linux.webInterface.UserManagementHandler not foundjava.lang.ClassNotFoundException: No ClassLoaders found for: com.nortel.ems.mgmt.linux.webInterface.UserManagementHandlerat org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java :475)at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)at java.lang.ClassLoader.loadClass(ClassLoader.java:251)at java.lang.ClassLoader.loadClassInternal(ClassLoader.java :319)at java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Class.java:242)at org.apache.myfaces.util.ClassUtils.classForName(ClassUtils.java:138)at org.apache.myfaces.util.ClassUtils.simpleClassForName (ClassUtils.java:157)at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49)at org.apache.myfaces.el.VariableResolverImpl.resolveVariable (VariableResolverImpl.java:311)at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:103)at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable (DelegatingVariableResolver.java:103)at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:571)at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java Thanks Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 Confidentiality Notice The information contained in this electronic message and any attachments to this message are intendedfor the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
Re: MyFaces and Spring.
Hello Mike, i am actually using this filter filter-nameRequestHandled/filter-name filter-classde.mindmatters.faces.spring.support.RequestHandledFilter/filter-class /filter in your faces config you don't need to declare anything in particular in application tag.. just your beans and navigations. check jsf-spring docs for which beans you would declare in jsf-config.xml as opposed to applicationContext.xml HTH MARCO
Re: MyFaces and Spring.
Hello, i am using successfullly myfaces spring .. how ar eyou integrating the two? i personally use a library called JSF-Spring, version 3.0.0M2 and it works fine.. can you post more details about how are you integrating the two so i could help finding out the problem? thanks and regards marco On 11/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm moving from Sun RI to MyFaces. When I replace the Sun RI jars with MyFaces my application fails to load giving the following exception in Spring framework. at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315) at org.jboss.Main.boot(Main.java:195) at org.jboss.Main$1.run (Main.java:463) at java.lang.Thread.run(Thread.java:595)14:27:27,187 ERROR [Util] Can't instantiate class: 'org.springframework.web.jsf.DelegatingVariableResolver'.:org.springframework.web.jsf.DelegatingVariableResol ver:exception:org.springframework.web.jsf.DelegatingVariableResolver14:27:28,390 ERROR [URLDeploymentScanner] Incomplete Deployment listing: On seeing the source for the DelegatingVariableResolver.java, I find the following statement. bNote:/b Spring's JSF support has been developed and tested againstJSF 1.1. Unfortunately, the JSF 1.1 RI (as of June 2004) does not apply a custom VariableResolver to property values of JSF-managed beans: This hasto be considered a bug, as it is supposed to work according to the JSF spec.It does work in a href="" http://www.marinschek.com/myfaces/tikiMyFaces/a 1.0.5, for example. I use MyFaces nightly build, to be exact myfaces-20051105. Do anyone have any pointers as to what might be wrong? Thanks Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 Confidentiality Notice The information contained in this electronic message and any attachments to this message are intendedfor the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
Re: MyFaces and Spring.
Hello Balaji, i cannot comment for org.springframework.web.jsf.DelegatingVariableResolver when i started to code with JSF i tried to find a way to integrate spring into it (my whole struts-based application was centered on spring). so by doing a freesearch i found out the JSF-Spring API http://jsf-spring.sourceforge.net/ i was not aware (or probably i didnt search properly, though i found reference to it into spring documentation) that it was simply a matter of declaring a VariableResolver if anyone on this list is integrating JSF Spring NOT using jsf-spring libraries, then i suppose they are the proper person that can help. HTH marco On 11/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I have this line in my faces-config.xml application!-- This variable resolver makes the Spring beans (like userManager etc)available to the JSF context -- variable-resolverorg.springframework.web.jsf.DelegatingVariableResolver /variable-resolverlocale-config default-localeen /default-localesupported-locale en/supported-locale/ locale-config/application Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 From: Marco Mistroni [mailto:[EMAIL PROTECTED]] Sent: Friday, November 11, 2005 2:39 PM To: MyFaces DiscussionSubject: Re: MyFaces and Spring. Hello, i am using successfullly myfaces spring .. how ar eyou integrating the two? i personally use a library called JSF-Spring, version 3.0.0M2 and it works fine.. can you post more details about how are you integrating the two so i could help finding out the problem? thanks and regards marco On 11/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm moving from Sun RI to MyFaces. When I replace the Sun RI jars with MyFaces my application fails to load giving the following exception in Spring framework. at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315) at org.jboss.Main.boot(Main.java:195) at org.jboss.Main$1.run (Main.java:463) at java.lang.Thread.run(Thread.java:595)14:27:27,187 ERROR [Util] Can't instantiate class: 'org.springframework.web.jsf.DelegatingVariableResolver'.:org.springframework.web.jsf.DelegatingVariableResol ver:exception:org.springframework.web.jsf.DelegatingVariableResolver14:27:28,390 ERROR [URLDeploymentScanner] Incomplete Deployment listing: On seeing the source for the DelegatingVariableResolver.java, I find the following statement. bNote:/b Spring's JSF support has been developed and tested againstJSF 1.1. Unfortunately, the JSF 1.1 RI (as of June 2004) does not apply a custom VariableResolver to property values of JSF-managed beans: This hasto be considered a bug, as it is supposed to work according to the JSF spec.It does work in a href="" http://www.marinschek.com/myfaces/tikiMyFaces/a 1.0.5, for example. I use MyFaces nightly build, to be exact myfaces-20051105. Do anyone have any pointers as to what might be wrong? Thanks Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 Confidentiality Notice The information contained in this electronic message and any attachments to this message are intendedfor the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intendedfor the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
Re: MyFaces and Spring.
Hello Balaji, this link might interest you http://jroller.com/page/RickHigh/20041114 i think it can solve your problem.. HTH marco On 11/11/05, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Balaji, i cannot comment for org.springframework.web.jsf.DelegatingVariableResolver when i started to code with JSF i tried to find a way to integrate spring into it (my whole struts-based application was centered on spring). so by doing a freesearch i found out the JSF-Spring API http://jsf-spring.sourceforge.net/ i was not aware (or probably i didnt search properly, though i found reference to it into spring documentation) that it was simply a matter of declaring a VariableResolver if anyone on this list is integrating JSF Spring NOT using jsf-spring libraries, then i suppose they are the proper person that can help. HTH marco On 11/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I have this line in my faces-config.xml application!-- This variable resolver makes the Spring beans (like userManager etc)available to the JSF context -- variable-resolverorg.springframework.web.jsf.DelegatingVariableResolver /variable-resolverlocale-config default-localeen /default-localesupported-locale en/supported-locale/ locale-config/application Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 From: Marco Mistroni [mailto:[EMAIL PROTECTED]] Sent: Friday, November 11, 2005 2:39 PM To: MyFaces DiscussionSubject: Re: MyFaces and Spring. Hello, i am using successfullly myfaces spring .. how ar eyou integrating the two? i personally use a library called JSF-Spring, version 3.0.0M2 and it works fine.. can you post more details about how are you integrating the two so i could help finding out the problem? thanks and regards marco On 11/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm moving from Sun RI to MyFaces. When I replace the Sun RI jars with MyFaces my application fails to load giving the following exception in Spring framework. at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315) at org.jboss.Main.boot(Main.java:195) at org.jboss.Main$1.run (Main.java:463) at java.lang.Thread.run(Thread.java:595)14:27:27,187 ERROR [Util] Can't instantiate class: 'org.springframework.web.jsf.DelegatingVariableResolver'.:org.springframework.web.jsf.DelegatingVariableResol ver:exception:org.springframework.web.jsf.DelegatingVariableResolver14:27:28,390 ERROR [URLDeploymentScanner] Incomplete Deployment listing: On seeing the source for the DelegatingVariableResolver.java, I find the following statement. bNote:/b Spring's JSF support has been developed and tested againstJSF 1.1. Unfortunately, the JSF 1.1 RI (as of June 2004) does not apply a custom VariableResolver to property values of JSF-managed beans: This hasto be considered a bug, as it is supposed to work according to the JSF spec.It does work in a href="" http://www.marinschek.com/myfaces/tikiMyFaces/a 1.0.5, for example. I use MyFaces nightly build, to be exact myfaces-20051105. Do anyone have any pointers as to what might be wrong? Thanks Balaji Saranathan Wipro Technologies - ESN: 6 877 8715 Tel : 91 80 2852 0408 * 82333 Fax : 91 80 5138 1761 Cell : 91 98868 61757 Confidentiality Notice The information contained in this electronic message and any attachments to this message are intendedfor the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intendedfor the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
Re: sandbox and WebXml.init must be called before!
hello, have you checked that your myfaces sandbox are of same version? i think if you are using myfaces-20050101 jars you should pick also sandbox-20050101 jars HTH marco On 11/10/05, Bruno Aranda [EMAIL PROTECTED] wrote: Does the sandbox.war work for you?Bruno2005/11/10, Francesco Consumi [EMAIL PROTECTED]: Hi all, If I try to include sandbox.jar in my project, when I launch it I obtain: exception javax.servlet.ServletException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before! javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:362) root cause java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before! org.apache.myfaces.webapp.webxml.WebXml.getWebXml (WebXml.java:123) org.apache.myfaces.application.jsp.JspViewHandlerImpl.getServletMapping(JspViewHandlerImpl.java:346) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java :199) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter (MonitorFilter.java:362) Obviously, in my web.xml file is included the listener: listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener /listener-class /listener suggestion ? I need sandbox in order to use s:convertDateTime instead of the f: one, because of famous date shifting. thanks to all. -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
FileUpload, selecting directory
Hello all, i want to use the fileUpload tag from myfaces to allow the user to select a directory, but for some reason (maybe i am missing some parameters) with that tag it's possible only to select files... how can i specify directory instead? do i need to set different values for some parameters? here's my tag t:inputFileUpload id=directoryName accept=image/* value=#{databaseBean.directoryName} storage=file styleClass=fileUploadInput required=true/ thanks in advance and regards marco
Re: Providing spring-like InitializingBean interface for JSF managed beans
Hello Mike, sorry for previous post...i pressed 'send' by mistake dunno if you know it already, but have you checked the jsf-spring project @sourceforge? it integrates Spring JSF perfectly and i am sure it does what you want.. thanks and regards marco On 10/26/05, Mike Kienenberger [EMAIL PROTECTED] wrote: I've been reviewing open issues with my current application, and someof them seem to deal with using Spring.This is kind of frustrating because I'm finding that JSF managed beans do ALMOST everything I wantwithout Spring, except for providing aInitializingBean.afterPropertiesSet() method call after a new bean'sproperties have been set. So after pondering it for a bit, it occurred to me that there's noreason why support for this interface (repackaged for MyFaces) can'tbe added to the org.apache.myfaces.el.VariableResolverImpl or to theorg.apache.myfaces.config.ManagedBeanBuilder class.It seems to me that modifying one of the above classes to call thebelow code would provide this functionality in a backward-compatibleway that does not affect the TCK.if (newBean instanceof InitializingBean) ((InitializingBean)newBean).afterPropertiesSet();This could be done either as the last line inManagedBeanBuilder.buildManagedBean() or right after the call tobuildManagedBean() in VariableResolverImpl.resolveVariable .Unfortunately, I can't see a way to adding this functionality cleanlyas a generic JSF tomahawk extension, so it would have to remain aMyFaces-only feature.Thoughts?
Re: error with sandbox ajax component on
hello, actually i have deployed the sandbox.war application from examples nightly build Martin, since i get hold of you, forgive me if i ask you a question about the ajax tag. The method of the backing bean that is supposed to be called, what would be its signature? public List myMethod() or public List myMethod(String inputParam) ? thanks for your answer and regards marco On 10/25/05, Martin Marinschek [EMAIL PROTECTED] wrote: Are you using a different version of sandbox.jar and myfaces-all.jar?regards,Martin On 10/25/05, Marco Mistroni [EMAIL PROTECTED] wrote: hello all, i m trying to get acquainted wiht Ajax tag from sandbox i downloaded the latest nightly build (as of now, it is myfaces-20051024-examples.zip).. i have deployed the sandbox.war application on jboss 3.2.5, and what i got is the following error javax.faces.FacesException: org.apache.myfaces.component.html.util.AddResource.addJavaScriptToHeader (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;ZLjavax/faces/context/FacesContext;)V org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView (JspViewHandlerImpl.java:234) org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter (ExtensionsFilter.java:122) anyone could help me out? thanks in advance and regardsmarco--http://www.irian.at Your JSF powerhouse -JSF Trainings in English and German
Re: error with sandbox ajax component on
hELLO Bruno, thanx but i m still on jboss 3.2.5. regards marco On 10/25/05, Bruno Aranda [EMAIL PROTECTED] wrote: FYI, the default implementation in JBoss4.0.3 is in%JBOSS_HOME%/server/%JBOSS_CONF%/deploy/jbossweb-tomcat55.sar /jsf-libsRegards,Bruno2005/10/25, Martin Marinschek [EMAIL PROTECTED]: It really looks as if you would use an older version of the implementation. JBoss supplies a version with MyFaces already, so try to get rid of this and replace it with your new version. regards, Martin On 10/25/05, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Martin, here's stack trace 2005-10-25 11:23:06,220 ERROR [org.jboss.web.localhost.Engine ] ApplicationDispatcher[/sandbox] Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: org.apache.myfaces.component.html.util.AddResource.addJavaScriptToHeader (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;ZLjavax/faces/context/FacesContext;)V at org.apache.myfaces.custom.inputsuggestajax.InputSuggestAjaxRenderer.encodeJavascript(InputSuggestAjaxRenderer.java :73) at org.apache.myfaces.custom.inputsuggestajax.InputSuggestAjaxRenderer.encodeEnd(InputSuggestAjaxRenderer.java:98) at javax.faces.component.UIComponentBase.encodeEnd (UIComponentBase.java:331) at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:450) at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren (HtmlGridRendererBase.java:203) at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:85) at javax.faces.component.UIComponentBase.encodeEnd (UIComponentBase.java:331) at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java :253) at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:55) at org.apache.jsp.inputSuggestAjax_jsp._jspx_meth_h_panelGrid_0 (inputSuggestAjax_jsp.java:245) at org.apache.jsp.inputSuggestAjax_jsp._jspx_meth_h_form_0(inputSuggestAjax_jsp.java:190) at org.apache.jsp.inputSuggestAjax_jsp._jspx_meth_f_view_0 (inputSuggestAjax_jsp.java:157) at org.apache.jsp.inputSuggestAjax_jsp._jspService(inputSuggestAjax_jsp.java:106) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java :398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch (ServletExternalContextImpl.java:415) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render (LifecycleImpl.java:300) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter (ExtensionsFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:102) at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275) at org.apache.catalina.core.StandardValveContext.invokeNext
Re: error with sandbox ajax component on
Hello, i solved my problem... just to let anyone know if they run in same situation Martin was right (partially :) )... on my deploy directory i have deployed 3 .war files all related to myFaces (blank.war, simple.war and sandbox.war) sandbox.war was using the latest myfaces jars, while blank and simple were using old jars (i guess from some time ago.) for some reason, it looks like jboss was trying use for sandbox.war the same myfaces jar files used by previous applications. In fact, when i undeploy blank.war and simple.war, everything went fine thanx again and regards marco On 10/25/05, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, right for some reasons, it works with jboss 4.0.2.. so problem is entirely mine.. i m going to do further testing thanx anyway and regards marco On 10/25/05, Marco Mistroni [EMAIL PROTECTED] wrote: hELLO Bruno, thanx but i m still on jboss 3.2.5. regards marco On 10/25/05, Bruno Aranda [EMAIL PROTECTED] wrote: FYI, the default implementation in JBoss4.0.3 is in%JBOSS_HOME%/server/%JBOSS_CONF%/deploy/jbossweb-tomcat55.sar /jsf-libsRegards,Bruno2005/10/25, Martin Marinschek [EMAIL PROTECTED] : It really looks as if you would use an older version of the implementation. JBoss supplies a version with MyFaces already, so try to get rid of this and replace it with your new version. regards, Martin On 10/25/05, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Martin, here's stack trace 2005-10-25 11:23:06,220 ERROR [org.jboss.web.localhost.Engine ] ApplicationDispatcher[/sandbox] Servlet.service () for servlet jsp threw exception java.lang.NoSuchMethodError: org.apache.myfaces.component.html.util.AddResource.addJavaScriptToHeader (Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;ZLjavax/faces/context/FacesContext;)V at org.apache.myfaces.custom.inputsuggestajax.InputSuggestAjaxRenderer.encodeJavascript(InputSuggestAjaxRenderer.java :73) at org.apache.myfaces.custom.inputsuggestajax.InputSuggestAjaxRenderer.encodeEnd (InputSuggestAjaxRenderer.java:98) at javax.faces.component.UIComponentBase.encodeEnd (UIComponentBase.java:331) at org.apache.myfaces.renderkit.RendererUtils.renderChild (RendererUtils.java:450) at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren (HtmlGridRendererBase.java:203) at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd (HtmlGridRendererBase.java:85) at javax.faces.component.UIComponentBase.encodeEnd (UIComponentBase.java:331) at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java :349) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java :253) at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java :55) at org.apache.jsp.inputSuggestAjax_jsp._jspx_meth_h_panelGrid_0 (inputSuggestAjax_jsp.java:245) at org.apache.jsp.inputSuggestAjax_jsp._jspx_meth_h_form_0 (inputSuggestAjax_jsp.java:190) at org.apache.jsp.inputSuggestAjax_jsp._jspx_meth_f_view_0 (inputSuggestAjax_jsp.java:157) at org.apache.jsp.inputSuggestAjax_jsp._jspService (inputSuggestAjax_jsp.java:106) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java :810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703) at org.apache.catalina.core.ApplicationDispatcher.processRequest (ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java :398) at org.apache.catalina.core.ApplicationDispatcher.forward (ApplicationDispatcher.java:312) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch (ServletExternalContextImpl.java:415) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView (JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render (LifecycleImpl.java:300) at javax.faces.webapp.FacesServlet.service(FacesServlet.java :95) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :237) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter (ExtensionsFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157
Re: Ajax Tags usage
Hello Matthias, thanks for suggestion, but i am getting this ugly exception with the tag javax.servlet.ServletException: org.apache.myfaces.component.html.util.AddResource.addJavaScriptToHeader(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;ZLjavax/faces/context/FacesContext;)V i have just copied the sample from sandbox.war, and i substitute my bean instead of the one of the sandbox.war application.. One further question... the method of the backed bean that is supposed to be invoked.. does it have to have no arguments at all? there should be t least 1 parameter for the selection criteria..correct? thanks and regards marco On 10/24/05, Matthias Wessendorf [EMAIL PROTECTED] wrote: you must build a list, containing Strings (inside of your backing bean)-MatthiasOn 10/23/05, Marco Mistroni [EMAIL PROTECTED] wrote: hello all, i plan to use Sandbox'sAjax input suggest tag and i have a few questions about that: 1 - are there any examples jsf page for that? 2 - what should be the value of the 'binding' attribute? suppose this situation: i have a backing bean named 'StockController' which has one method, queryStock(), which returns a list of stock objects (each stock has a name, a description and a value) I would like to use the inputSuggest tag to call #{StockController.queryStock}, but that method returns me a list of Stock objects, and i would like to pick just the name of the stock. Is it possible then to use the ajaxInputSuggest tag, or do i have to build a list of String objects? thanks in advance and regardsMarco--Matthias WessendorfZülpicher Wall 12, 23950674 Kölnhttp://www.wessendorf.netmwessendorf-at-gmail-dot-com
Re: Ajax Tags usage
Hello again, beside error that i am getting, i have some problems in undestanding the usage of the tag. i guess the inputSuggest would, depending on the characters entered by the user, filter the result of the list in the backend bean/ Assume this: my backend bean retrieves a List of stocks and i want to use the inputAjaxSuggest on that list (the method would be queryStock) Assume that the backend bean retrieves that list of stock from a database. Does the List of stocks need to be populated only once, and the tag will filter out result all the time, or the list is populated dynamically depending on the characters entered ? hope you can undestand what i mean.. because i have also problems in explaining it... could you describe exactly what is supposed to be the interaction between the ajax tag and the backend bean? thanks in advance and regards marco On 10/24/05, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Matthias, thanks for suggestion, but i am getting this ugly exception with the tag javax.servlet.ServletException: org.apache.myfaces.component.html.util.AddResource.addJavaScriptToHeader(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/StriZLjavax/faces/context/FacesContext;)V i have just copied the sample from sandbox.war, and i substitute my bean instead of the one of the sandbox.war application.. One further question... the method of the backed bean that is supposed to be invoked.. does it have to have no arguments at all? there should be t least 1 parameter for the selection criteria..correct? thanks and regards marco On 10/24/05, Matthias Wessendorf [EMAIL PROTECTED] wrote: you must build a list, containing Strings (inside of your backing bean)-MatthiasOn 10/23/05, Marco Mistroni [EMAIL PROTECTED] wrote: hello all, i plan to use Sandbox'sAjax input suggest tag and i have a few questions about that: 1 - are there any examples jsf page for that? 2 - what should be the value of the 'binding' attribute? suppose this situation: i have a backing bean named 'StockController' which has one method, queryStock(), which returns a list of stock objects (each stock has a name, a description and a value) I would like to use the inputSuggest tag to call #{StockController.queryStock }, but that method returns me a list of Stock objects, and i would like to pick just the name of the stock. Is it possible then to use the ajaxInputSuggest tag, or do i have to build a list of String objects? thanks in advance and regardsMarco--Matthias WessendorfZülpicher Wall 12, 23950674 Köln http://www.wessendorf.netmwessendorf-at-gmail-dot-com
Ajax Tags usage
hello all, i plan to use Sandbox's Ajax input suggest tag and i have a few questions about that: 1 - are there any examples jsf page for that? 2 - what should be the value of the 'binding' attribute? suppose this situation: i have a backing bean named 'StockController' which has one method, queryStock(), which returns a list of stock objects (each stock has a name, a description and a value) I would like to use the inputSuggest tag to call #{StockController.queryStock}, but that method returns me a list of Stock objects, and i would like to pick just the name of the stock. Is it possible then to use the ajaxInputSuggest tag, or do i have to build a list of String objects? thanks in advance and regards Marco
Troubles with Calendar tag
Hello all, i am trying to use the inputCalendar tag in my webapplication the default Locale on my machine is en_GB here's the declaration in my faces-config.xml application locale-config default-localeen/default-locale /locale-config message-bundleresources.MessageResources/message-bundle /application However, when i choose one date from the Calendar, what gets put in the textfield is MMDDYY (like en_US i suppose) anyone could tell me where is the problem? thanks in advance and regards marco
Re: Ajax Tags usage
Hello Volker, thanks very much for your reply... i have one additional question.. i wasnot able to find a site from where i could download sandbox.jar sandbox.war, would you mind pointing met o the correct URL? thanks ina dvance and regards marco On 10/23/05, Volker Weber [EMAIL PROTECTED] wrote: Hello,1) the only example that i know is the sandbox example.2) the value of the binding should be a InputSuggesAjax component. you do not need to instanciate it just provide getter and setter, theframework will do it if you don't.But, even if it is in the docu, i don't think its needed. (I don't seewere its used in the source, and it worked also without) The suggested values are the result of toString() on the objects in the,by the suggestMethod returned, list.see the exaple in sandbox.warregardsVolker WeberMarco Mistroni wrote: hello all, i plan to use Sandbox'sAjax input suggest tag and i have a few questions about that: 1 - are there any examples jsf page for that? 2 - what should be the value of the 'binding' attribute? suppose this situation: i have a backing bean named 'StockController' which has one method, queryStock(), which returns a list of stock objects (each stock has a name, a description and a value) I would like to use the inputSuggest tag to call #{StockController.queryStock}, but that method returns me a list of Stock objects, and i would like to pick just the name of the stock. Is it possible then to use the ajaxInputSuggest tag, or do i have to build a list of String objects? thanks in advance and regardsMarco--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 byconcatenating my forename to my senders domain.
Re: problems wiht date extension tag
Hello, i am getting little confused... i have downloaded myfaces-examples-1.1.0 and all the date tags work perfectly fine i hten downloded one of the nightly build (dated 14/10/2005) and the date tag was messed up.. ami correct in assuming that the libraries in myfacs-exmaples-1.1.0 are old? thanks and regards marco On 10/17/05, Martin Marinschek [EMAIL PROTECTED] wrote: Yes, sorry, there is currently a bug as the new date formatting doesnot seem to work in IE.We'll fix that as soon as possible. regards,MartinOn 10/17/05, Marco Mistroni [EMAIL PROTECTED] wrote: Hello Werner,thanx.. i filed a bug on Jira here's the title Date tag does not display properly, _javascript_ errors are returned the date is 17 oct 2005, 12:57 thanks and regardsmarco On 10/16/05, Werner Punz [EMAIL PROTECTED] wrote: Seems like a bug in the _javascript_s to me (sorry I did not notice that you were referring to _javascript_s for the SimpleDateFormat), best is to file a bug report on the jira system so that it does not get lost and is fixed soon.Werner Marco Mistroni wrote: Hello Werner, i am using 1.4.2_07, running on Jboss 3.2.5 which uses Tomcat 5.0 i got this error only after downloading latest myfaces release.. before i was using still the old URI http://myfaces.apache.org/extensions prefix=x i got a myfaces-1.1.jar from some rick's hightower tutorials on JSF when i found problem in validating the selectManyCheckbox, i went thru a post that discovered the bug (from Mr Hightower), so i decided to download the most recent code so the validation of selectManyCheckbox was solved,but i got problem with the date tag how can i solve my problem? if i try with tomcat 5.5, will the problem go away? ..i got DateFormatSymbolsis undefined from _javascript_ in IE when i try to access same page with Firefox, i see calendar but it is displayed in an odd position in the page.. On 10/16/05, *Werner Punz* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Do you use a jdk older than 1.4 SimpleDateFormat was introduced in 1.4+ Werner Marco Mistroni wrote:hello all, i am having troubles with myfaces date tag... i have recently downloaded the most recent binaries (today, 16 october) i am deploying on jboss 3.2.5, which uses tomcat 5.0, and in my libdirectory i am including followign files myfaces-api.jarmyfaces-impl.jar sandbox.jartomahawk.jar this is my jsp page.. %@ taglib uri= http://java.sun.com/jsf/html prefix=h %%@ taglib uri=http://java.sun.com/jsf/core http://java.sun.com/jsf/core http://java.sun.com/jsf/core prefix=f % %@ taglib prefix='c' uri='http://java.sun.com/jstl/core http://java.sun.com/jstl/core ' %%@ taglib prefix=fmt uri= http://java.sun.com/jstl/fmt %%@ taglib uri= http://myfaces.apache.org/tomahawk prefix=t% f:loadBundle basename= resources.MessageResources var=msgs/f:viewh:form id=entryForm h:panelGrid columns=3 h:outputLabel value=#{ msgs.date} for=""> t:inputDate type=date id=date value=#{ entryBean.entry.date}popupCalendar=true required=true /h:message for=""> . When the page loads, the date tag (with calendar) gets messed up, and iam receiving following _javascript_ errors 'DateFormatSymbols' is undefined 'SimpleDateFormat' is undefined here's _javascript_ generated.. link rel=stylesheet href="">type=text/css /link rel=stylesheet href=""> type=text/css / script src="">type=text/_javascript_!-- //--/scriptscript src="" type=text/_javascript_!-- //--/scriptscript src="">type=text/_javascript_!-- //--/scriptscript type=text/_javascript_!-- jscalendarSetImageDirectory('/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/'); //--/scriptscript type=text/_javascript_!--jscalendarMonthName = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarMonthName2 = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDayName = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarStartAt= 0; jscalendarDateFormatSymbols = new DateFormatSymbols();jscalendarDateFormatSymbols.weekdays = new Array(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);jscalendarDateFormatSymbols.shortWeekdays = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarDateFormatSymbols.shortMonths = new Array(Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec);jscalendarDateFormatSymbols.months = new Array(January,February,March,April,May,June,July,August,Septe
Re: problems wiht date extension tag
Hello Werner, thanx.. i filed a bug on Jira here's the title Date tag does not display properly, _javascript_ errors are returned the date is 17 oct 2005, 12:57 thanks and regards marco On 10/16/05, Werner Punz [EMAIL PROTECTED] wrote: Seems like a bug in the _javascript_s to me (sorry I did not notice thatyou were referring to _javascript_s for the SimpleDateFormat), best is to file a bug report on the jirasystem so that it does not get lost and is fixed soon.WernerMarco Mistroni wrote: Hello Werner, i am using 1.4.2_07, running on Jboss 3.2.5 which uses Tomcat 5.0 i got this error only after downloading latest myfaces release.. before i was using still the old URI http://myfaces.apache.org/extensions prefix=x i got a myfaces-1.1.jar from some rick's hightower tutorials on JSF when i found problem in validating the selectManyCheckbox, i went thru a post that discovered the bug (from Mr Hightower), so i decided to download the most recent code so the validation of selectManyCheckbox was solved,but i got problem with the date tag how can i solve my problem? if i try with tomcat 5.5, will the problem go away? ..i got DateFormatSymbolsis undefined from _javascript_ in IE when i try to access same page with Firefox, i see calendar but it is displayed in an odd position in the page.. On 10/16/05, *Werner Punz* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Do you use a jdk older than 1.4 SimpleDateFormat was introduced in 1.4+ Werner Marco Mistroni wrote: hello all, i am having troubles with myfaces date tag... i have recently downloaded the most recent binaries (today, 16 october) i am deploying on jboss 3.2.5, which uses tomcat 5.0, and in my lib directory i am including followign files myfaces-api.jar myfaces-impl.jar sandbox.jar tomahawk.jar this is my jsp page..%@ taglib uri=http://java.sun.com/jsf/html prefix=h % %@ taglib uri=http://java.sun.com/jsf/core http://java.sun.com/jsf/core http://java.sun.com/jsf/core prefix=f % %@ taglib prefix='c' uri='http://java.sun.com/jstl/core http://java.sun.com/jstl/core' % %@ taglib prefix=fmt uri= http://java.sun.com/jstl/fmt % %@ taglib uri= http://myfaces.apache.org/tomahawk prefix=t% f:loadBundle basename=resources.MessageResources var=msgs/ f:view h:form id=entryForm h:panelGrid columns=3 h:outputLabel value=#{ msgs.date} for=""> t:inputDate type=date id=date value=#{ entryBean.entry.date} popupCalendar=true required=true / h:message for=""> . When the page loads, the date tag (with calendar) gets messed up, and i am receiving following _javascript_ errors 'DateFormatSymbols' is undefined 'SimpleDateFormat' is undefined here's _javascript_ generated.. link rel=stylesheet href=""> type=text/css / link rel=stylesheet href=""> type=text/css / script src=""> type=text/_javascript_!-- //--/script script src=""> type=text/_javascript_!-- //--/script script src="" type=text/_javascript_!-- //--/script script type=text/_javascript_!-- jscalendarSetImageDirectory('/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/'); //--/script script type=text/_javascript_!-- jscalendarMonthName = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarMonthName2 = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDayName = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarStartAt = 0; jscalendarDateFormatSymbols = new DateFormatSymbols(); jscalendarDateFormatSymbols.weekdays = new Array(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);jscalendarDateFormatSymbols.shortWeekdays = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarDateFormatSymbols.shortMonths = new Array(Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec);jscalendarDateFormatSymbols.months = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDateFormatSymbols.eras = new Array(BC,AD);jscalendarDateFormatSymbols.ampms = new Array(AM,PM); //--/script script src=""> type=text/_javascript_!-- //--/script/headtbodytrtdlabel for=""> span id=entryForm:dateinput id=entryForm: date.day name=entryForm:date.day size=2 maxlength=2 value=16 /select id=entryForm:date.month name=entryForm: date.month size=1option value=1January/optionoption value=2February/optionoption value=3March/optionoption value=4April/optionoption value=5May/optionoption value=6June/optionoption value=7July/optionoption value=8August/optionoption value=9September/optionoption value=10 selected=selectedOctober/optionoption value=11November/optionoption value=12December/option/selectinput id=entryForm: date.year name=entryForm:date.year size=4 maxlength=4 value=2005 /script
Re: Bean access in Java code
have you imported your Partner class in the JSP? HTH marco On 10/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How can I access to the Partner bean in my JSF page. Simply using Partnervariable % if (!Partner.isLoggedIn()) { % [EMAIL PROTECTED] file=meinlogin.jsp % % } %generates errorjavax.servlet.ServletException: Unable to compile class for JSPAn error occurred at line: 23 in the jsp file: /meinkonto.jsp Generated servlet error:Partner cannot be resolved
problems wiht date extension tag
hello all, i am having troubles with myfaces date tag... i have recently downloaded the most recent binaries (today, 16 october) i am deploying on jboss 3.2.5, which uses tomcat 5.0, and in my lib directory i am including followign files myfaces-api.jar myfaces-impl.jar sandbox.jar tomahawk.jar this is my jsp page.. %@ taglib uri=http://java.sun.com/jsf/html prefix=h %%@ taglib uri=http://java.sun.com/jsf/core prefix=f %%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %%@ taglib prefix=fmt uri= http://java.sun.com/jstl/fmt % %@ taglib uri=http://myfaces.apache.org/tomahawk prefix=t% f:loadBundle basename=resources.MessageResources var=msgs/f:view h:form id=entryForm h:panelGrid columns=3 h:outputLabel value=#{ msgs.date} for="">t:inputDate type=date id=date value=#{entryBean.entry.date} popupCalendar=true required=true / h:message for="" . When the page loads, the date tag (with calendar) gets messed up, and i am receiving following _javascript_ errors 'DateFormatSymbols' is undefined 'SimpleDateFormat' is undefined here's _javascript_ generated.. link rel=stylesheet href="" type=text/css /link rel=stylesheet href="" type=text/css / script src="" type=text/_javascript_!-- //--/scriptscript src="" type=text/_javascript_!-- //--/scriptscript src="" type=text/_javascript_!-- //--/scriptscript type=text/_javascript_!--jscalendarSetImageDirectory('/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/');//--/script script type=text/_javascript_!--jscalendarMonthName = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarMonthName2 = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDayName = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarStartAt = 0; jscalendarDateFormatSymbols = new DateFormatSymbols();jscalendarDateFormatSymbols.weekdays = new Array(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);jscalendarDateFormatSymbols.shortWeekdays = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarDateFormatSymbols.shortMonths = new Array(Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec);jscalendarDateFormatSymbols.months = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDateFormatSymbols.eras = new Array(BC,AD);jscalendarDateFormatSymbols.ampms = new Array(AM,PM); //--/scriptscript src="" type=text/_javascript_!-- //--/script/headtbodytrtdlabel for="">span id=entryForm:dateinput id=entryForm: date.day name=entryForm:date.day size=2 maxlength=2 value=16 /select id=entryForm:date.month name=entryForm:date.month size=1option value=1January/optionoption value=2February/optionoption value=3March/optionoption value=4April/optionoption value=5May/optionoption value=6June/optionoption value=7July/optionoption value=8August/optionoption value=9September/optionoption value=10 selected=selectedOctober/optionoption value=11November/optionoption value=12December/option/selectinput id=entryForm: date.year name=entryForm:date.year size=4 maxlength=4 value=2005 /script type=text/_javascript_!--loadPopupScript();jscalendarSetImageDirectory('/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/'); //--/scriptscript type=text/_javascript_!--jscalendarMonthName = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarMonthName2 = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDayName = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarStartAt = 0; jscalendarDateFormatSymbols = new DateFormatSymbols();jscalendarDateFormatSymbols.weekdays = new Array(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);jscalendarDateFormatSymbols.shortWeekdays = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarDateFormatSymbols.shortMonths = new Array(Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec);jscalendarDateFormatSymbols.months = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDateFormatSymbols.eras = new Array(BC,AD);jscalendarDateFormatSymbols.ampms = new Array(AM,PM); //-- /script can anyone help me out pls? thanks in advance and regards marco
Re: problems wiht date extension tag
Hello Werner, i am using 1.4.2_07, running on Jboss 3.2.5 which uses Tomcat 5.0 i got this error only after downloading latest myfaces release.. before i was using still the old URI http://myfaces.apache.org/extensions prefix=x i got a myfaces-1.1.jar from some rick's hightower tutorials on JSF when i found problem in validating the selectManyCheckbox, i went thru a post that discovered the bug (from Mr Hightower), so i decided to download the most recent code so the validation of selectManyCheckbox was solved,but i got problem with the date tag how can i solve my problem? if i try with tomcat 5.5, will the problem go away? ..i got DateFormatSymbols is undefined from _javascript_ in IE when i try to access same page with Firefox, i see calendar but it is displayed in an odd position in the page.. On 10/16/05, Werner Punz [EMAIL PROTECTED] wrote: Do you use a jdk older than 1.4SimpleDateFormat was introduced in 1.4+WernerMarco Mistroni wrote: hello all,i am having troubles with myfaces date tag... i have recently downloaded the most recent binaries (today, 16 october) i am deploying on jboss 3.2.5, which uses tomcat 5.0, and in my lib directory i am including followign files myfaces-api.jar myfaces-impl.jar sandbox.jar tomahawk.jar this is my jsp page.. %@ taglib uri=http://java.sun.com/jsf/html prefix=h % %@ taglib uri=http://java.sun.com/jsf/core http://java.sun.com/jsf/core prefix=f % %@ taglib prefix='c' uri='http://java.sun.com/jstl/core ' % %@ taglib prefix=fmt uri= http://java.sun.com/jstl/fmt % %@ taglib uri= http://myfaces.apache.org/tomahawk prefix=t% f:loadBundle basename=resources.MessageResources var=msgs/ f:view h:form id=entryForm h:panelGrid columns=3 h:outputLabel value=#{ msgs.date} for="">t:inputDate type=date id=date value=#{ entryBean.entry.date} popupCalendar=true required=true / h:message for=""> . When the page loads, the date tag (with calendar) gets messed up, and i am receiving following _javascript_ errors 'DateFormatSymbols' is undefined 'SimpleDateFormat' is undefined here's _javascript_ generated.. link rel=stylesheet href=""> type=text/css / link rel=stylesheet href="" type=text/css / script src=""> type=text/_javascript_!-- //--/script script src=""> type=text/_javascript_!-- //--/script script src=""> type=text/_javascript_!-- //--/script script type=text/_javascript_!-- jscalendarSetImageDirectory('/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/'); //--/script script type=text/_javascript_!-- jscalendarMonthName = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarMonthName2 = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDayName = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarStartAt = 0; jscalendarDateFormatSymbols = new DateFormatSymbols(); jscalendarDateFormatSymbols.weekdays = new Array(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);jscalendarDateFormatSymbols.shortWeekdays = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarDateFormatSymbols.shortMonths = new Array(Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec);jscalendarDateFormatSymbols.months = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDateFormatSymbols.eras = new Array(BC,AD);jscalendarDateFormatSymbols.ampms = new Array(AM,PM); //--/script script src="" type=text/_javascript_!-- //--/script/headtbodytrtdlabel for="" span id=entryForm:dateinput id=entryForm: date.day name=entryForm:date.day size=2 maxlength=2 value=16 /select id=entryForm:date.month name=entryForm:date.month size=1option value=1January/optionoption value=2February/optionoption value=3March/optionoption value=4April/optionoption value=5May/optionoption value=6June/optionoption value=7July/optionoption value=8August/optionoption value=9September/optionoption value=10 selected=selectedOctober/optionoption value=11November/optionoption value=12December/option/selectinput id=entryForm: date.year name=entryForm:date.year size=4 maxlength=4 value=2005 /script type=text/_javascript_!-- loadPopupScript();jscalendarSetImageDirectory('/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/'); //--/scriptscript type=text/_javascript_!-- jscalendarMonthName = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarMonthName2 = new Array(January,February,March,April,May,June,July,August,September,October,November,December);jscalendarDayName = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarStartAt = 0; jscalendarDateFormatSymbols = new DateFormatSymbols(); jscalendarDateFormatSymbols.weekdays = new Array(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);jscalendarDateFormatSymbols.shortWeekdays = new Array(Sun,Mon,Tue,Wed,Thu,Fri,Sat);jscalendarDateFormatSymbols.shortMonths = new
Error in using StringArrayConverter
Hello all, i am writing a JSF app using mYFaces.. In one of my pages, i have a h:selectManyCheckbox input field, which is mapped to a String[] property on my backed bean. after stumbling against the 'Invalid value' entered, i found out that there is a converter for a String[] array in myfaces, the StringArrayConverter. so i defined the converter in my faces-config.xml and declared it in the h:selectManyCheckbox input field. At bean creation, i am even initializing the String array with values {foo, bar} However, when the page gets loaded , i am receiving the following exception : 2005-10-15 15:56:21,937 ERROR [org.apache.myfaces.renderkit.html.HtmlGridRenderer] Exception while rendering children of panel-grid.java.lang.ClassCastExceptionat org.apache.myfaces.convert.StringArrayConverter.getAsString (StringArrayConverter.java:56)at org.apache.myfaces.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:677)at org.apache.myfaces.renderkit.RendererUtils.internalSubmittedOrSelectedValuesAsSet(RendererUtils.java :712)at org.apache.myfaces.renderkit.RendererUtils.getSelectedValuesAsSet(RendererUtils.java:653)at org.apache.myfaces.renderkit.html.HtmlCheckboxRendererBase.renderCheckboxList(HtmlCheckboxRendererBase.java:146) at org.apache.myfaces.renderkit.html.HtmlCheckboxRendererBase.encodeEnd(HtmlCheckboxRendererBase.java:99)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)at org.apache.myfaces.renderkit.RendererUtils.renderChild (RendererUtils.java:494)at org.apache.myfaces.renderkit.html.HtmlGridRenderer.renderChildren(HtmlGridRenderer.java:253)at org.apache.myfaces.renderkit.html.HtmlGridRenderer.encodeEnd(HtmlGridRenderer.java:131) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:616)at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java :539)at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:98)at org.apache.jsp.modifyBody_jsp._jspx_meth_h_panelGrid_0(modifyBody_jsp.java:316)at org.apache.jsp.modifyBody_jsp._jspx_meth_h_form_0 (modifyBody_jsp.java:206)at org.apache.jsp.modifyBody_jsp._jspx_meth_f_view_0(modifyBody_jsp.java:176)at org.apache.jsp.modifyBody_jsp._jspService(modifyBody_jsp.java:120)at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:94)at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:292)at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)at org.apache.jasper.runtime.JspRuntimeLibrary.include (JspRuntimeLibrary.java:966)at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)at org.apache.struts.tiles.TilesUtil.doInclude (TilesUtil.java:177)at org.apache.struts.tiles.taglib.InsertTag.doInclude(InsertTag.java:756)at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:888)at org.apache.struts.tiles.taglib.InsertTag.doEndTag (InsertTag.java:458)at org.apache.jsp.layout.classicLayout_002dsm_jsp._jspx_meth_tiles_insert_1(classicLayout_002dsm_jsp.java:302)at org.apache.jsp.layout.classicLayout_002dsm_jsp._jspService(classicLayout_002dsm_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :324)at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)at javax.servlet.http.HttpServlet.service(HttpServlet.java :810)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)at org.apache.catalina.core.ApplicationDispatcher.invoke (ApplicationDispatcher.java:703)at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)at