Re: [COMMUNITY] Paul Nicolucci - PMC member
Welcome Paul! On Wed, Jul 15, 2015 at 10:00 AM, Mike Kienenberger mkien...@gmail.com wrote: The MyFaces PMC is proud to announce an addition to our project management committee. Please welcome Paul Nicolucci as the newest MyFaces PMC Member! Paul has been an active committer and community member in the MyFaces community for years. Welcome regards, Mike -- Grant Smith - V.P. Information Technology Marathon Computer Systems, LLC.
Re: [COMMUNITY] MyFaces += Jakob Korherr
Welcome, Jakob! On Tue, Jan 19, 2010 at 8:48 AM, Matthias Wessendorf mat...@apache.orgwrote: The Myfaces PMC is proud to announce a new addition to our community. Please welcome Jakob Korherr as the newest MyFaces committer! Jakob is an active member of the myfaces community, especially on the MyFaces 2.0 core efforts. @Jakob: Please add yourself to the Master-POM at https://svn.apache.org/repos/asf/myfaces/myfaces-master-pom/trunk/pom.xml -Matthias -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Grant Smith - V.P. Information Technology Marathon Computer Systems, LLC.
Re: pop up for delete confirmation
I use RichFace's ModelPanel for this... On Wed, Dec 9, 2009 at 8:39 AM, pbr...@johnson.ca wrote: So that's the second person who is using the regular old javascript confirm dialog. Doesn't it seem odd that there is no tomahawk popup component? My leader seems to think that we shouldn't use this because it is ancient. I wish he could come up with a better excuse than that. However, does anyone an idea for a better looking component? Pat Luka Surija l...@iytim.hr 09/12/2009 01:01 PM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Re: pop up for delete confirmation onclick=return(confirm('#{msg.AreYouSure}')); Luka Surija On 12/03/2009 12:02 PM, Anton Gavazuk wrote: I'm using the basic javascript... 2009/11/30pbr...@johnson.ca I am using the Tomahawk set of tags for this project. I need a pop to confirm the deletion of a record. There doesn't seem to be any concept of a popup in JSF or Tomahawk. I can use a basic javascript cofirm popup and functionaly it works perfect but the color scheme doesn't match my application and it doesn't look good. Just wondering what everyone else does to confirm a delete? Pat -- Grant Smith
Re: [COMMUNITY] MyFaces += Jan-Kees van Andel
Hi Jan-Kees, Congratulations and welcome ! On Thu, Feb 26, 2009 at 8:14 AM, Simon Lessard simon.lessar...@gmail.comwrote: Congratulations, welcome in! ~ Simon On Thu, Feb 26, 2009 at 5:49 AM, Hazem Saleh haz...@apache.org wrote: Congratulations Jan-kees. On Thu, Feb 26, 2009 at 9:08 AM, Matthias Wessendorf mat...@apache.orgwrote: The Myfaces PMC is proud to announce a new addition to our community. Please welcome Jan-Kees van Andel as the newest MyFaces committer! Jan-Kees is an active member of the myfaces community, especially in the myfaces 2.0 section of the code @Jan-Kees: Please add yourself to the Master-POM at https://svn.apache.org/repos/asf/myfaces/myfaces-master-pom/trunk/pom.xml -Matthias -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Hazem Ahmed Saleh Ahmed Author of (The Definitive Guide to Apache MyFaces and Facelets): http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370 Web blog: http://www.jroller.com/page/HazemBlog [Web 2.0] Google Maps Integration with JSF: http://code.google.com/p/gmaps4jsf/ http://www.theserverside.com/tt/articles/article.tss?l=IntroductiontoGMaps4JSF -- Grant Smith
Re: How to insert a new line into a message
Try setting the escape attribute to false. On Fri, Oct 31, 2008 at 2:16 PM, senore100 [EMAIL PROTECTED] wrote: I am using tr:message and trying to format the message through introducing new lines. I've tried to add BR into the message, but in the final html it is translated into lt;, so on the final webpage, BR will show up as BR! Is there a way around this? Thanks! -- Grant Smith
Re: Tomahawk + Facelets+ state_saving_method = server navigation problem
Are your command links enclosed in a form ? On Mon, Sep 29, 2008 at 12:42 AM, ciscolos [EMAIL PROTECTED] wrote: Hi Simon thanks for your answer, no we dont use any cluster nether we're using load balancing. So do you have any other idea wich may solve our problem ? cheers ciscolos Simon Kitching wrote: ciscolos schrieb: Hi forum , we're using Tomahawk 1.1.7 with Myfaces 1.2.4 and Facelets 1.1.14.After changing the context-param javax.faces.STATE_SAVING_METHOD from client to server. We're not able use command links any more. if we try to perform a view action wich calls a bean we get the following error. We found a lot of stuff about such errors, but unfortunatly nobody wrote any solution. Is there a way to use tomahawk wihle configuring the framwork to server statesaving? thanks a lot for help, cheers ciscolos /pages/start/actuell.jsfThe expected view was not returned for the view identifier: /pages/start/actuell.jsf +- Stack Trace javax.faces.application.ViewExpiredException: /pages/start/actuell.jsfThe expected view was not returned for the view identifier: /pages/start/actuell.jsf at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103) It works fine for me. You must be doing something unusual with the request somehow. Do you perhaps have a load-balancing system where requests are redirected to a pool of servers? If so, then when using server-side-state you will of course need to configure http-session clustering. Regards, Simon -- View this message in context: http://www.nabble.com/Tomahawk-%2B-Facelets%2B-state_saving_method-%3D-server-navigation-problem-tp19692252p19719517.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Grant Smith
Re: MyFaces PMC += Matt Cooper
Welcome, Matt On Fri, Jun 6, 2008 at 6:12 AM, Andrew Robinson [EMAIL PROTECTED] wrote: Congratulations Matt! On 6/6/08, Matthias Wessendorf [EMAIL PROTECTED] wrote: Dear MyFaces community, please welcome our new MyFaces PMC member Matt Cooper. Matt is working on the Apache MyFaces and Trinidad stuff. Therefore last week there was a vote to invite him to the MyFaces Project Management Committee (PMC) and fortunately he did accept. Matt, Please subscribe to the [EMAIL PROTECTED] list and update your status on the site. Thanks. -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org -- Grant Smith
Re: Source Code for sandbox
I'm pretty sure he meant Myfaces Tomahawk's sandbox http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/ Theres two subdirectories under that... sandbox, and sandbox15 On Thu, Apr 17, 2008 at 11:49 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hemanth Abburi schrieb: Hi, Where can i get the source code for sandbox components? Thanks and Regards, Hemanth. You will find all the commons code under here: http://svn.apache.org/repos/asf/commons The sandbox projects are of course under the sandbox subdir. Don't check that out directly, though, as each subproject has tags/branches subdirs as well as trunk. To get a single project, check out the sandbox/{project}/trunk subdir. To get trunks for all sandbox projects, try the trunks-sandbox dir, which has svn:external links to the trunk for each project. Regards, Simon -- Grant Smith
Re: Using t:dataList with Ajax4JSF
Please note that this issue has already been addressed in the current Tomahawk snapshot. On Thu, Apr 10, 2008 at 6:46 AM, [EMAIL PROTECTED] wrote: Fix if anyone's interested : *public* *class* HtmlDataList *extends*org.apache.myfaces.custom.datalist.HtmlDataList { *public* Object saveState(FacesContext context) { Object [] values = *new* Object[2]; values[0] = *super*.saveState(context); values[1] = getItemStyleClass(); *return* values; } *public* *void* restoreState(FacesContext context, Object state) { Object [] values = (Object[])state; *super*.restoreState(context, values[0]); setItemStyleClass((String)values[1]); } } Then just override it in your config file : component component-typeorg.apache.myfaces.HtmlDataList/component-type component-classcom.sag.ibee.web.gui.component.datalist.HtmlDataList/component-class /component Just tested and it works fine for me. -- *De :* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *Envoyé :* jeudi 10 avril 2008 15:35 *À :* users@myfaces.apache.org *Objet :* RE: Using t:dataList with Ajax4JSF Ok I found the problem already, this would appear to be a bug with Tomahawk (as I have the source attached here). Looks like itemStyleClass was omitted from the saveState method. When I was debugging this I noticed the value for it was null. Listing from HtmlDataList.java public Object saveState(FacesContext context) { Object values[] = new Object[17]; values[0] = super.saveState(context); values[1] = _layout; values[2] = _rowIndexVar; values[3] = _rowCountVar; values[4] = _onclick; values[5] = _ondblclick; values[6] = _onkeydown; values[7] = _onkeypress; values[8] = _onkeyup; values[9] = _onmousedown; values[10] = _onmousemove; values[11] = _onmouseout; values[12] = _onmouseover; values[13] = _onmouseup; values[14] = _style; values[15] = _styleClass; values[16] = _title; return values; } As you can see itemStyleClass is not there. I'm using MyFaces 1.1.5, not sure if this problem exists in 1.2 but we're not upgrading at this point. I guess for now I'll just override this component to make it work. I'll see about opening a proper bug maybe? I haven't done so before so I'm not sure what the process is for that. -- *De :* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *Envoyé :* jeudi 10 avril 2008 15:23 *À :* users@myfaces.apache.org *Objet :* Using t:dataList with Ajax4JSF Hi, I have a small problem with t:dataList and Ajax4JSF. I'm going to step through this in the debugger soon but maybe someone's already encountered this. I have a t:dataList like so: t:dataList id=dataList var=element value=#{mbDataList.folderList} layout=unorderedList styleClass=DataList itemStyleClass=DataList Elsewhere I'm doing some Ajax4JSF action and I pass dataList to be rerendered. For the most part it rerenders correctly except it seems to omit the 'itemStyleClass=DataList' attribute. The data gets updated, but the formatting gets broken since the lis don't have their class attribute anymore. Thanks, Matt -- Grant Smith
Re: html table with fixed headers and scrollable rows?
Yes, use the following CSS: div.tableContainer { clear: both; border: 1px solid #963; height: 505px; overflow: hidden; width: 976px } div.tableContainer thead tr { position: relative; display: block; width: 960px; } div.tableContainer tbody { display: block; height: 450px; overflow: auto; width: 976px; } Then wrap your datatable in a div, like this: div id=tableContainer class=tableContainer t:dataTable. t:column style=width:60px; padding-left: 3px; headerstyle=width:60px; /t:dataTable /div Note the style on the column is just an example. the left padding is quite important because the scrollbar pushes your content inwards and then it doesn't quite line up with the headings. I couldn't find any easier way than this. On Feb 4, 2008 12:16 PM, CL [EMAIL PROTECTED] wrote: Hi All, Is there a way for tomahawk data tables to get fixed headers and scrollable rows like the one shown at this URL: http://www.imaputz.com/cssStuff/bigFourVersion.html# or at http://www.cssplay.co.uk/menu/tablescroll.html Any help is appreciated. Thanks. -- Never miss a thing. Make Yahoo your homepage.http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs -- Grant Smith
Re: JSF Performance
On 11/15/07, Andrew Robinson [EMAIL PROTECTED] wrote: It seems like, for the most part, tomahawk is a dead project (no releases for a long time, no promotion of the sandbox to the core tomahawk project in a long time, etc.). Hopefully Trinidad will swallow Tomahawk in the near future and we can be done with the ExtensionsFilter. -- Grant Smith
Re: Tomahawk 1.1.6: Still having problems with jscookmenu
Have you tried the latest snapshot of Tomahawk ? This problem was fixed pretty recently. As a frame of reference, I am using RI 1.2, Tomahawk snapshot, Seam, Tomcat, Embedded EJB pretty successfully. I had the same issue with jsCookMenu until upgrading Tomahawk. On 10/15/07, Marcus Schmidke [EMAIL PROTECTED] wrote: Hello all, I really have a lot of problems getting jscookmenu up and running in my environment: - JBoss 4.2 with JSF RI 1.2 - JBoss Seam - Facelets - Tomahawk 1.1.6 After solving a couple of xhtml problems (mainly by replacing the very old version of JSCookmenu used in Tomahawk with a newer one and patching DefaultAddResource to force it to generate xhtml), the Menu is finally displayed. But the next pitfall is right ahead: selecting a menu item does not work. Reason is the hidden jscook_action field which is not rendered by RI Form element. What am I doing wrong? What do I have to do that JSF RI renders Tomahawk's hidden fields? Marcus. _ prosystems IT GmbH Anwendungsentwicklung Postfach 31 51 53021 Bonn (Germany) Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329 mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de Amtsgericht Bonn - HR B 13189 Geschaeftsfuehrer: Vassilios Timiliotis, Richard Adams Der Austausch von Nachrichten mit der prosystems IT GmbH via E-Mail dient ausschliesslich Informationszwecken. Rechtsgeschaeftliche Erklaerungen duerfen ueber dieses Medium nicht ausgetauscht werden. Verfaelschungen des urspruenglichen Inhaltes dieser Nachricht bei der Datenuebertragung koennen nicht ausgeschlossen werden. -- Grant Smith
Re: WIKI on Trinidad maven-faces-plugin
Wow, That is an awesome document. Thank you very much Andrew ! On 9/26/07, Andrew Robinson [EMAIL PROTECTED] wrote: Okay, I'm all WIKI'd out for a while. I just posted a new article on the MyFaces WIKI that is a getting started guide for using the Trinidad 1.2.3 version of the maven-faces-plugin with JSF 1.1 and Facelets 1.1. Tiny URL: http://tinyurl.com/yonhyv Enjoy, -Andrew -- Grant Smith
Re: MyFaces 1.2 + Tomahawk Kickstart was: Re: Myfaces 1.2.0 setup issues (again)
Very nice, thanks ! On 7/23/07, Werner Punz [EMAIL PROTECTED] wrote: Matthias Wessendorf schrieb: release often, release early ... :-) Ok guys I am dropping the tomahawk builds and the blank application as well as a working myfaces 1.2 sandbox war into http://people.apache.org/~werpu/ as we speak, first of all there is a slight build error, once extracted you safely can remove the jstl-1.1.jar from the WEB-INF/lib the wars should work out of the box on a tomcat 6 install with a jdk5+ most tomahawk components seem to work, the same goes for the sandbox, 3-4 fail on tomahawk, and the same on the sandbox for various reasons (most of them are slight programming errors, or misuse of the 1.1 spec to achieve a certain functionality) Note, all this wont work with jdk 1.4 or a non JEE5 compliant servlet runner since myfaces relies on the latest JSP and Servlet implementations (as defined by the spec) The blank application should get you kickstarted and the tomahawk build should give you an overview which components work. Have much fun with myfaces 1.2 As for a short explanation on how to get the build simply check out myfaces and do a mvn clean pack -Djsf=12 on the examples and it will configure everything for myfaces 1.2 a -Djsf=ri12 should make the packing for the ri according to Bruno. I will add a wiki page the next few days explaining everything so that people have an easier time to kickstart with myfaces 1.2. Werner -- Grant Smith
Re: disable/enable h:inputText dynamically
Is the bean request scoped ? If so, use saveState on #{loginBean.flag}. On 7/12/07, ...Gargi [EMAIL PROTECTED] wrote: I have an inputText component whose disable attribute is bound to a booelan in the backing bean in request scope. while the page is loading flag = true. Later when i change the flag to false (on button click), the inputText component does become enabled, but its value does not get set in the backing bean. JSP code : h:inputText id = input value = #{loginBean.text} disabled = #{loginBean.flag}/ h:commandButton id = disable value = DISABLE action = #{loginBean.disable} / h:commandButton id = enable value = ENABLE action = #{loginBean.enable} / Backing Bean code : public String text; public boolean flag = true; public void disable() { this.setFlag(true);} public void enable() { this.setFlag(false);} (+ getter-setter methods..) This is strange because the situation is nto the same when inputText component is enabled to begin with. In that case it functions as expected. Solutions/discussions will be appreciatedthanks -- View this message in context: http://www.nabble.com/disable-enable-%3Ch%3AinputText%3E-dynamically-tf4070769.html#a11568580 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Grant Smith
Re: [ANNOUNCEMENT] New sandbox component -- roundedDiv
Very cool, Thanks! On 7/8/07, Adrian Mitev [EMAIL PROTECTED] wrote: Nice! 2007/7/8, Andrew Robinson [EMAIL PROTECTED]: New component available in SVN called roundedDiv. See the documentation for more information: http://myfaces.apache.org/sandbox/roundedDiv.html TinyURL: http://tinyurl.com/38nrk9 -Andrew -- Grant Smith
Re: Bug in t:div tag??
Congratulations!!! On 6/30/07, Andrew Robinson [EMAIL PROTECTED] wrote: Sorry, just had a kid, barely any time to just read my email :-) On 6/30/07, Marty Bergerud [EMAIL PROTECTED] wrote: Andrew, I ran the test successfully, the jsp contained... t:div forceId=true id=searchClosed1 styleClass=#{'tmsHidden'} 123 /t:div The resultant browser view source correctly yeilded... div id=searchClosed1 class=tmsHidden 123 /div This shows that the faces back end is properly parsing the #{'tmsHidden'} expression. now if I replace the jsf code with... t:div forceId=true id=searchClosed1 styleClass=#{ras$jsf$interestRate.searchClosedClass} 123 /t:div Note: the interestRate backing bean is being successfully used thruout the page. Here is the source for the method.. private String searchClosedClass = tmsHidden; ... public String getSearchClosedClass() { System.out.println(getSearchClosedClass called); return searchClosedClass; } The method does not get called. The resultant browser view source yeilds... div id=searchClosed1 123 /div Would it be possible for you to try a similiar test? Thanks, Marty *Andrew Robinson [EMAIL PROTECTED]* 06/29/2007 10:19 PM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Re: Bug in t:div tag?? Is your bean returning null? Try this to ensure that the tag/component is working: t:div forceId=true id=searchClosed styleClass=#{'abcd'} 123 /t:div If that works, then you know it is the code. As for not throwing an error, I'm not sure of the situations where Base is null is thrown, or null is used. I know that most of the time #{blah} will return null for me if blah doesn't exist. On 6/29/07, Marty Bergerud [EMAIL PROTECTED] wrote: I am experiencing a problem with the t:div tag, I cannot load the styleClass attribute from a backing bean. (The styleClass works fine when it is a static entry) The funny thing is that I can pass a completely wrong backing bean expression and Faces does not detect the error. Can someone please try to reproduce this, It should be easy, just copy this code into any jsf page and run it. t:div forceId=true id=searchClosed styleClass=#{doesNotExistBB.searchClosedClass} 123 /t:div I am using MyFaces 1.1.5 Thanks, Marty -- Grant Smith
[COMMUNITY] Andrew Robinson - Committer
The Myfaces PMC is proud to announce a new addition to our community. Please welcome Andrew Robinson as the newest MyFaces committer. Andrew has been exceedingly helpful in both the users and dev lists and is a great value to this project ! Thanks Andrew! -- Grant Smith
[COMMUNITY] Peter Mahoney - Committer
The Myfaces PMC is proud to announce a new addition to our community. Please welcome Peter Mahoney as the newest MyFaces committer. Peter has been exceedingly helpful in providing patches in JIRA and is a great value to this project ! Thanks Peter! -- Grant Smith
Re: [COMMUNITY] Danny Robinson - Committer
Welcome Danny! On 6/14/07, Adam Winer [EMAIL PROTECTED] wrote: Great to have you! -- Adam On 6/14/07, Cagatay Civici [EMAIL PROTECTED] wrote: Welcome Danny, Cagatay On 6/14/07, Manfred Geiler [EMAIL PROTECTED] wrote: Welcome! --Manfred On 6/14/07, Matthias Wessendorf [EMAIL PROTECTED] wrote: Congratulations to Danny Robinson for becoming the newest Myfaces committer ! Danny has provided patches and enhancements to Trinidad and has been active on the mailing list to help other users on how to get up to speed with Trinidad. Thanks Danny, and welcome to the team! -Matthias -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- Grant Smith
Re: [COMMUNITY] Ernst Fastl - Committer
Welcome Ernst ! On 5/29/07, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! Thanks Ernst, and welcome to the team! Welcome on board! Ciao, Mario -- Grant Smith
Re: Why so many problems with MyFaces?
Not knowing the nature of your project, or the nature of the delays you've experienced, this question is impossible to answer. If you could be more specific ? On 5/23/07, SiSi'mon [EMAIL PROTECTED] wrote: Does anyone know why Myfaces sucks so much? It was supposed to solve some problems but we have seen nothing but project delays since deciding to use it. Is it a poor specification or a poor implementation of a very bad specification or a very bad implementation of a very bad idea? Si'mon -- View this message in context: http://www.nabble.com/Why-so-many-problems-with-MyFaces--tf3804863.html#a1070 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Grant Smith
Re: Tomahawk nightly
Hmm.. thats a good question. Our Continuum configuration was redone a few days ago, so perhaps we're missing something important there. I'll see if I can figure out what's happening... On 5/20/07, Joost Schouten [EMAIL PROTECTED] wrote: Hi, Where can I find the tomahawk-1.1.6-SNSPAHOT.* nightly builds? http://people.apache.org/builds/myfaces/nightly/ only has 1.1.5 Thanks, Joost -- Grant Smith
Re: Tomahawk nightly
Following up to dev list... Looks like the Tomahawk maven build is failing from continuum with: Missing: -- 1) javax.servlet.jsp:jsp-api:jar:1.2.0 Wendy, do you know if we have to manually install that jar on the zone, or is something being built out of sequence ? On 5/21/07, Grant Smith [EMAIL PROTECTED] wrote: Hmm.. thats a good question. Our Continuum configuration was redone a few days ago, so perhaps we're missing something important there. I'll see if I can figure out what's happening... On 5/20/07, Joost Schouten [EMAIL PROTECTED] wrote: Hi, Where can I find the tomahawk-1.1.6-SNSPAHOT.* nightly builds? http://people.apache.org/builds/myfaces/nightly/ only has 1.1.5 Thanks, Joost -- Grant Smith -- Grant Smith
Re: Tomahawk nightly
Done. I'm not sure if this will solve the problem of the nightly builds not being copied over though. That may still be outstanding... On 5/21/07, Paul Spencer [EMAIL PROTECTED] wrote: Grant and Wendy, I am problem the blame for the build failure since I added the Build Definition which required javax.servlet.jsp:jsp-api:jar:1.2.0. Currently I do not have access to contunuum, but the simplest solution/workaround it to remove the -Djsf=ri from the second Build Definition. This definition tests Tomahawk using the RI, instead of MyFaces. Paul Spencer Grant Smith wrote: Following up to dev list... Looks like the Tomahawk maven build is failing from continuum with: Missing: -- 1) javax.servlet.jsp:jsp-api:jar:1.2.0 Wendy, do you know if we have to manually install that jar on the zone, or is something being built out of sequence ? On 5/21/07, Grant Smith [EMAIL PROTECTED] wrote: Hmm.. thats a good question. Our Continuum configuration was redone a few days ago, so perhaps we're missing something important there. I'll see if I can figure out what's happening... On 5/20/07, Joost Schouten [EMAIL PROTECTED] wrote: Hi, Where can I find the tomahawk-1.1.6-SNSPAHOT.* nightly builds? http://people.apache.org/builds/myfaces/nightly/ only has 1.1.5 Thanks, Joost -- Grant Smith -- Grant Smith
Re: how to reference tomahawk-sandbox on a JSP?
Did you include the tomahawk-sandbox.jar as well as the tomahawk.jar ? (Sandbox is a separate jar) On 5/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'd like to use some of the tomahawk sandbox components. After downloading http://people.apache.org/builds/myfaces/nightly/tomahawk-sandbox-1.1.5-SNAPSHOT-bin.zipand extracting lib/tomawhawk- 1.1.15-SNAPSHOT.jar into my webapp's WEB-INF/lib directory and restarting, I get an error when including the sandbox taglib on a JSP: %@ taglib uri=http://myfaces.apache.org/sandbox; prefix=s% ***The absolute uri: http://myfaces.apache.org/sandbox cannot be resolved in either web.xml or the jar files deployed with this application Are there other steps I should take in order to use tomahawk-sandbox? Thanks for any help, Eric Jung _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer. Thank you. -- Grant Smith
Re: Leveraging the header/resource usage of A4J in MyFaces Tomahawk?
Andrew, I'm following up to this on the Dev list, as it really belongs there. I agree with you regarding the ExtentionFilter issue, and I have seen criticism to the Tomahawk approach in the past. There is an ongoing discussion on the Dev list considering the direction Tomahawk (or Tomahawk2), so please feel free to comment. On 5/18/07, Andrew Robinson [EMAIL PROTECTED] wrote: After a while of using Ajax4Jsf, I am really liking how they handle component rendering resources (JavaScript and CSS files mainly). Their method seems to be cleaner and (I think) have better performance than Tomahawk. The major difference that I see: - Tomahawk uses the extension filter which buffers the entire response and then sticks in the CSS and JS references into the HEAD element - A4J scans the renderers of the components in the component tree and finds out which resources are needed by the component and adds them to the Page Obviously the A4J library is enhanced for Ajax and has functionality to add script tags and CSS files to the page during AJAX requests. I've had issues with the Tomahawk approach with Ajax in the past (not with A4J's help) as components that were rendered on non-initial page renderings were left without their javascript. I am not trying to step on anyone's toes, but wanted to see what others felt about the different approaches and perhaps move the Tomahawk code to using more of an A4J approach. I would love to be able to remove the extensions filter all together (perhaps moving the file upload code out of the extensions filter and putting it into its own filter?). Maybe even having both teams work together to maybe publish the A4J resource handling code into a separate project/jar from the A4J so that other JSF projects can leverage the functionality without having to use A4J? I am not completely versed in the mechanics of both approaches, so please excuse any bad oversights on my part. -- Grant Smith
Re: how to reference tomahawk-sandbox on a JSP?
Well, what you've included is the Tomahawk jar. There is ANOTHER one for sandbox components. Look for something named tomahawk-sandbox-1.1.5-SNAPSHOT.jar. Theres actually another one called tomahawk-sandbox15-1.1.5-SNAPSHOT.jar which contains some JDK1.5-requiringcomponents too. On 5/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Grant, Yes, I've included tomahawk-sandbox.jar, in WEB-INF/lib, although it's named tomawhawk-1.1.15-SNAPSHOT.jar. Any other ideas? *Grant Smith [EMAIL PROTECTED]* 05/18/2007 05:02 PM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Re: how to reference tomahawk-sandbox on a JSP? Did you include the tomahawk-sandbox.jar as well as the tomahawk.jar ? (Sandbox is a separate jar) On 5/18/07, [EMAIL PROTECTED] * [EMAIL PROTECTED]* [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'd like to use some of the tomahawk sandbox components. After downloading *http://people.apache.org/builds/myfaces/nightly/tomahawk-sandbox-1.1.5-SNAPSHOT-bin.zip *http://people.apache.org/builds/myfaces/nightly/tomahawk-sandbox-1.1.5-SNAPSHOT-bin.zipand extracting lib/tomawhawk-1.1.15-SNAPSHOT.jar into my webapp's WEB-INF/lib directory and restarting, I get an error when including the sandbox taglib on a JSP: %@ taglib uri=*http://myfaces.apache.org/sandbox*http://myfaces.apache.org/sandbox prefix=s% ***The absolute uri: *http://myfaces.apache.org/sandbox*http://myfaces.apache.org/sandboxcannot be resolved in either web.xml or the jar files deployed with this application Are there other steps I should take in order to use tomahawk-sandbox? Thanks for any help, Eric Jung _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer. Thank you. -- Grant Smith _ CONFIDENTIALITY NOTICE The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer. Thank you. -- Grant Smith
Re: Source code of myfaces and tomahawa 1.1.3
Why not just check out the version from SVN, and build the src jars with maven ? On 5/16/07, Nebinger, David [EMAIL PROTECTED] wrote: That's great if you don't mind surfing through SVN to find the head for a specific file. But try finding the version in the list that represents the file that was released for 1.1.3... If we can download the jars, why can we not also download a zip of the source used for the jar? I mean seriously, if you're trying to debug something in eclipse you need the source just to set breakpoints, step through the code, etc. -- *From:* Dennis Byrne [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, May 15, 2007 10:35 PM *To:* MyFaces Discussion *Subject:* Re: Source code of myfaces and tomahawa 1.1.3 http://svn.apache.org/viewvc/myfaces/tomahawk/tags/1_1_3/ http://svn.apache.org/viewvc/myfaces/core/tags/1_1_3/ Dennis Byrne On 5/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Where can I find the source code of myfaces and tomahawk 1.1.3? Thanks in advance Mario Buonopane This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- Dennis Byrne -- Grant Smith
Re: Source code of myfaces and tomahawa 1.1.3
On 5/16/07, Nebinger, David [EMAIL PROTECTED] wrote: Because I don't need to build yet another package just to get source. Plus I don't want to be on the cutting edge, I want to stay with production releases. Go to any other apache project (i.e. all of the jakarta guys) and SVN is an option, but you can also download the binary jars, source zips, and (sometimes) a javadoc archive. Why should myfaces, tomahawk, tobago, etc. be any different? Well, unfortunately back in the days of 1.1.3 we were still getting up to speed with the new Maven 2 build process, and the source packaging was only included as of version 1.1.5. So yes, to get Tomahawk's 1.1.3 sources requires a little more effort.
Re: Tomahawk 1.1.5 and MyFaces 1.2 ?
done.. On 5/10/07, Dennis Gesker [EMAIL PROTECTED] wrote: t:collapsiblePanel also has problems. There was a patch posted in March but I don't know the eta for it. https://issues.apache.org/jira/browse/TOMAHAWK-872 --Dennis On 5/10/07, Kem Elbrader [EMAIL PROTECTED] wrote: The schedule component also does not fully work with the reference implementation but a fix is in progress. See https://issues.apache.org/jira/browse/TOMAHAWK-971 On 5/10/07, Bruno Aranda [EMAIL PROTECTED] wrote: Hi, you may use tomahawk with JSF 1.2 (at least with the snapshot of MyFaces 1.2). However this is uncharted waters and some components might not work. For instance, a quick test with the snapshot shows that the tree2 or the datascroller seem not to be working. I haven't investigated it yet, but I guess some components might need to be adapted to work ok in JSF 1.1 and in 1.2. Feel free to try, and to report anything that you think is not working properly! Thanks, Bruno On 09/05/07, Josué Alcalde González [EMAIL PROTECTED] wrote: Is Tomahawk 1.1.5 compatible with JSF 1.2? Can I use Tomahawk 1.1.5 with JSF RI 1.2 or a MyFaces 1.2 snapshot? -- Dennis R. Gesker email: [EMAIL PROTECTED] Key Id: 0xEFA10A51 First things first, but not necessarily in that order. -- Unknown -- Grant Smith
Re: New to MyFaces
Then you shouldn't have posted such garbage to begin with. I'm sorry if that sounds harsh, but when you post to a public forum such as this one, you expose yourself to public criticism and review. If you cannot back up your assertions with substance then your assertions are likely to be rejected. I have been through the pain of writing huge servlet-based systems, then JSP, then JSF with JSP, and finally settled happily on JSF with Facelets. This a key element to being a programmer - moving with and keeping up with technology. If you find that this is too burdensome, you may wish to question your chosen profession. On 4/6/07, Iordanov, Borislav (GIC) [EMAIL PROTECTED] wrote: You've missed the point. Unfortunately, I don't know how to explain it more clearly. Sorry ;( -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Friday, April 06, 2007 11:30 AM To: MyFaces Discussion Subject: Re: New to MyFaces On 4/6/07, Iordanov, Borislav (GIC) [EMAIL PROTECTED] wrote: tag, you have to use h:graphicImage. A graphic image as opposed to what? To a linux distribution CD image? To a mental image? Naming API design is a serious problem, I'm not joking! Obviously having a component framework, any not completely idiotic component framework, is good. But then the details matter a lot when it comes to usability. How dull and trivial :-) Just change it if it bothers you :-) ?xml version=1.0? !DOCTYPE facelet-taglib PUBLIC -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN http://java.sun.com/dtd/facelet-taglib_1_0.dtd; facelet-taglib namespacehttp://java.sun.com/jsf/html/namespace tag tag-nameimg/tag-name component component-typejavax.faces.HtmlGraphicImage/component-type renderer-typejavax.faces.Image/renderer-type /component /tag /facelet-taglib -- Grant Smith
Re: New to MyFaces
On 4/6/07, Iordanov, Borislav (GIC) [EMAIL PROTECTED] wrote: The assertion is: beginning with year 2000, every serious programmer knows the value components, modularity, pluggability etc. Also, nearly every serious programmer is perfectly capable of coming up with a UI component framework of their own (be it only because UI component frameworks have been the big hit of object-orientation, they epitomized object-orientation for a long time). There's nothing special about the idea, or the architectural principles. What differentiates then one component framework from another is the ease of use, the intuitiveness, the applicability, the moto that I mentioned simple things should be easy, and complex thing possible etc. In other words, it's the myriad of details one has to pay attention to in order to make the whole feel right. I deliberately chose the most idiotic example of a detail, the incongruous naming of perhaps the least important tag. You would expect 'img' or 'image' because _*everybody*_ has one or the other, but no it's 'graphicImage'. I just find it funny. And I don't find it a problem to remember that a component called graphicImage will give me a graphic image. If you wanted to, you could just use xhtml, and use facelet's jsfid attribute to connect img to the component. I think your fundamental lack of knowledge of JSF and Facelets is evident in this area, and I fail to see how it qualifies you to be a detractor of the technology. Now, two quick substantial issues since you insist (and I'd be more than happy to be proven wrong, I might have misunderstood the spec or myfaces, for that matter): 1) Component state management: all component state needs to be saved, even static state that is defined at compile (or jsp translation time). This is bad architecture. And I hope you are not going to argue that this is fine, because we have so much computing power now ;) Component state management is well defined in the spec. Myfaces Tomahawk gives you even more power with saveState. There are technologies which fit on top of JSF, like Seam, which give you even more power, like conversational and page scoped components. In any case, your statement is flawed: you do not _have_ to save component state. You _can_, by simply using the Session scope, but that is bad design. 2) No clear definition of development roles within the framework. Being a complex and all encompassing webdev framework, one would expect that it provides well for labor division between programmers and UI designers. But what I see from a UI designer perspective is a new set of tags to learn with not much control over how the output looks, with sometimes unpredictable behavior and no more expressive power than regular HTML. Having an extra layer on top of HTML (the JSF tags) is an opportunity to insulate looks from behavioral logic. JSF didn't cease that opportunity. The components mix appearance and functional attributes. Actually JSF and Facelets allows for reasonable separation of developer roles, as far as this ideal is practical. The UI designers can write pure XHTML, and simply connect to the corresponding beans using jsfid. Way more separation than what JSP gives you... with JSP, your UI folks have to understand JSP.. Finally, the whole API is designed around fat classes, not interfaces. This is a serious and in my opinion unnecessary constraints on code that extends JSF in one way or another. I assume you can back this up, and have extensive experience with extending the API. Please feel free to discuss it in the developer's mailing list (myfaces-dev). Cheers, Bolerio -- *From:* Grant Smith [mailto:[EMAIL PROTECTED] *Sent:* Friday, April 06, 2007 11:59 AM *To:* MyFaces Discussion *Subject:* Re: New to MyFaces Then you shouldn't have posted such garbage to begin with. I'm sorry if that sounds harsh, but when you post to a public forum such as this one, you expose yourself to public criticism and review. If you cannot back up your assertions with substance then your assertions are likely to be rejected. I have been through the pain of writing huge servlet-based systems, then JSP, then JSF with JSP, and finally settled happily on JSF with Facelets. This a key element to being a programmer - moving with and keeping up with technology. If you find that this is too burdensome, you may wish to question your chosen profession. On 4/6/07, *Iordanov, Borislav** (GIC)* [EMAIL PROTECTED] wrote: You've missed the point. Unfortunately, I don't know how to explain it more clearly. Sorry ;( -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] ] Sent: Friday, April 06, 2007 11:30 AM To: MyFaces Discussion Subject: Re: New to MyFaces On 4/6/07, Iordanov, Borislav (GIC) [EMAIL PROTECTED] wrote: tag, you have to use h:graphicImage. A graphic image as opposed to what? To a linux distribution CD image? To a mental image? Naming API design
Re: Usage of h1 Tag with JSF
On 3/15/07, Marcel Stonitsch [EMAIL PROTECTED] wrote: Another possibility I forgot in my previous mail: Put your html-code into f:verbatim-tags. Mixing html-tags and jsf-tags can cause several problems. Unless you use Facelets, which is recommended. Hans Reip schrieb: Hi, I'm doing my first steps with JSF and myFaces and I hav a question regarding html-tags and JSF. I want to output a resource bundle key inside a h1 html element. So I did following: h1h:outputText value=#{msg.inputname_header}//h1 What happens is, that the message from the resource bundle is printed out and after this the empty h1. No error is returned, so I think it is an basical understanding problem. I saw, that there is a t:div tag in the tomahawk tld but no t:h1 tag. What do I do wrong? Isn't it possible to use html tags together with JSF? Thanks in advance Regards Hans -- Grant Smith
Re: [Solved] Never before seen exception (facelets.FaceletViewHandler handleRenderException) - ??
Also, please provide more information regarding the version on myfaces you're using (did you build from the current svn head ?). From previous posts, it appears you have been using myfaces successfully ? Did this occur recently ? What changed in your setup, etc... that will help others to diagnose your issue. On 2/28/07, Mike Kienenberger [EMAIL PROTECTED] wrote: Are you generating any components programmically? The situation you describe sounds like this 1) first time -- construct some components, all unique ids 2) second time -- start with components from first time, and add more copies of them. At this point, my suggestion would be to narrow down the problem to the minimal page necessary to reproduce the problem, then post the relevent page code. On 2/28/07, Lisa [EMAIL PROTECTED] wrote: I removed all included files. Also if it displays properly the first time (indicating no duplicate id's) why would it fail the second time I try the page? L Mike Kienenberger wrote: Is the id specified in an included file? Is the included file wrapped in an f:subView so that multiple includes of it don't conflict? On 2/28/07, Lisa [EMAIL PROTECTED] wrote: I checked everywhere, even grep'd through everything and there is no conflict. Any ideas would be appreciated. thanks L is_maximum wrote: Hi Lisa it seems there are two components that have the same id. check for id attribute you set for components in your pages (all pages) and find duplicated id. it conflicts with this: idSummaryForm:idSummaryTable:_id79 On 2/28/07, Lisa [EMAIL PROTECTED] wrote: In my application, when I click the first time on a page, it displays. When I click a second time I get this never before seen error. --- Feb 28, 2007 12:19:31 AM com.sun.facelets.FaceletViewHandler handleRenderException SEVERE: Error Rendering View[/web/summary.xhtml] java.lang.IllegalStateException: Client-id : _id79 is duplicated in the faces tr ee. Component : idSummaryForm:idSummaryTable:_id79, path: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /web/g ro/PtManageGroups_Summary.xhtml][Class: org.apache.myfaces.custom.document.Docum ent,Id: _id12][Class: javax.faces.component.html.HtmlForm,Id: idSummaryForm] [Class: org.apache.myfaces.component.html.ext.HtmlDataTable,Id: idTable] [Class: javax.faces.component.UIColumn,Id: _id79] [Class: javax.faces.component.html.HtmlOutputText,Id: _id79]} at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplic ateIds(JspStateManagerImpl.java:329) at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplic -- View this message in context: http://www.nabble.com/Never-before-seen-exception-%28facelets.FaceletViewHandler-handleRenderException%29--tf3307206.html#a9199115 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Regards, Mohammad -- View this message in context: http://www.nabble.com/Never-before-seen-exception-%28facelets.FaceletViewHandler-handleRenderException%29--tf3307206.html#a9208680 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Never-before-seen-exception-%28facelets.FaceletViewHandler-handleRenderException%29--tf3307206.html#a9222357 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Grant Smith
Re: sitemesh and jsf
I seem to remember having similar issues with Sitemesh when I tried to incorporate components into the actual template. It became a moot point after I switched to Facelets, as Facelets accomplished all the templating I needed. Would switching to Facelets be an option for you ? On 2/27/07, Garner Shawn [EMAIL PROTECTED] wrote: Why not, you can have JSF if you use tiles? Tiles does the same sort of thing. Should be able to do something to have Sitemesh allow for it too. Anyone find a way to get this to work? Shawn On 2/27/07, Ricardo Tercero Lozano [EMAIL PROTECTED] wrote: As far as I know you cannot use JSF in Sitemesh decorators. Ricardo. On 2/26/07, Garner Shawn [EMAIL PROTECTED] wrote: I'm trying to use sitmesh with JSF and am getting the following exception: This is my template decorator page and has a f:view page. Is there something I have to do with this to initialize the FacesContext for the decorators/templates? javax.faces.FacesException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to *.jsf (with the servlet-mapping-element), you need to access your pages as 'sample.jsf'. If you tried to access 'sample.jsp', you'd get this error-message. javax.faces.webapp.UIComponentTag.setupResponseWriter (UIComponentTag.java:926) javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313) org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:73) org.apache.jsp.decorators.andreasTemplate_jsp._jspx_meth_f_view_0 (andreasTemplate_jsp.java:146) org.apache.jsp.decorators.andreasTemplate_jsp._jspService (andreasTemplate_jsp.java:122) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service (HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service (JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.age.j.soft.sitemesh.TemplateFilterImpl.applyDecorator( TemplateFilterImpl.java:49) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter (PageFilter.java:62) org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter( ExtensionsFilter.java:144) -- Grant Smith
Re: jsf 508 accessibility requirement satisfaction and use of label for=.. tag.
h:outputLabel for=foobar value=Select one of:/ h:selectOneRadio id=foobar value=#{BeanName.readioButtonSelected} f:selectItems value=#{BeanName.radioButtonList}/ /h:selectOneRadio On 2/8/07, Nael Ramadan [EMAIL PROTECTED] wrote: Anyone else have an insight on this issue? -Original Message- From: Nael Ramadan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 5:56 PM To: 'MyFaces Discussion' Subject: RE: jsf 508 accessibility requirement satisfaction and use of label for=.. tag. Maybe I have not explained myself correctly. What if I am doing this: h:selectOneRadio value=#{BeanName.readioButtonSelected} f:selectItems value=#{BeanName.radioButtonList}/ /h:selectOneRadio What you are suggesting below, will not work unless I misunderstood again. -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 5:34 PM To: MyFaces Discussion Subject: Re: jsf 508 accessibility requirement satisfaction and use of label for=.. tag. When you get a reply you should really read it properly. As I said, and as described here, a label tag can wrap another tag in which case for is not needed: http://www.w3schools.com/tags/tag_label.asp label a label input type=checkbox name=cb1 /label div just some text input type=checkbox name=cb2 /div Clicking on the text a label will toggle the checkbox, ie the text really is a label. Clicking on just some text will NOT toggle the checkbox. However if you want a label that is not adjacent to the input control, then do: h:inputText id=input1 .../ some other stuff h:outputLabel for=input1 value=labeltext/ See also: http://www.nabble.com/How-to-reply-to-emails-tf3182877.html Nael Ramadan wrote: The for attribute enables the target component to be selected via its label. For example: hrSelect Type version of MyFaces /hr label for=comp_id1Version 1/labelinput type=radio name=comp_id1 label for=comp_id2Version 2/labelinput type=radio name=comp_id2 label for=comp_id3Version 3/labelinput type=radio name=comp_id3 By clicking on Version 1 label, the radio button (with name = comp_id1 ) is selected. By clicking on Version 2 label, the radio button (with name = comp_id2 ) is selected. By clicking on Version 3 label, the radio button (with name = comp_id3 ) is selected. This is for html. By definition, a label serves no purpose without its for attribute. How can this be done in JSF? -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:57 PM To: MyFaces Discussion Subject: Re: jsf 508 accessibility requirement satisfaction and use of label for=.. tag. Nael Ramadan wrote: 1. Dear listner, My JSF pages must satisify 508 accessibility requirement through the use of the html label tag. In html, you wrap the html component (i.e. input type=radio id=id_name ..) with the label for=id_name .. /label tag where the id links the label with the component. This allows ease of selection where users would just have to click on the label of the html component in order to select the component. So how is this achieved in JSF? When JSF renders an html equivalent components (i.e. h:selectOneRadioButton) into html, the component is surrounded automatically with label../label tag but without the for attribute. How can I get around this issue such that I can control the label and not the JSF rendering engine? I tried surrounding the component with h:outputLabel for=.. .. /h:outputLabel but JSF pretty much seems to ignore it. Do I need to create my own custom JSF component? When a label tag *wraps* am HTML tag then there is *no need* for a for attribute - the tag the label refers to is obvious. This is standard HTML, not JSF-specific. I'm sure your 508 spec does NOT require the for attribute if the label tag wraps the target tag. If the label tag cannot wrap its target tag for any reason, then (and only then) the for attribute is needed. http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/index.html Regards, Simon -- Grant Smith
Re: resotring state
Hi Matt, Just out of curiosity, why aren't you using Tomahawk's saveState component ? Seems like you might be reinventing the wheel... On 12/13/06, Matt Tyson [EMAIL PROTECTED] wrote: Hello, This works using server-side state saving: UIViewRoot viewRoot = context.getApplication().getViewHandler().restoreView(context, viewId); And then I can get the component I'm interested in. The viewRoot has no children if its client-side state saving. Do I need to manually restore the state? If so, how do I do that - I've got the value from the jsf_tree_64 field, but how do you convert it to a State object to give to the viewRoot.restoreState() method? Thanks, Matt -- View this message in context: http://www.nabble.com/resotring-state-tf2816777.html#a7861687 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- Grant Smith
Re: Example jars
Hi Marcus, The list of dependencies [1], does in fact show the commons-fileupload dependency. Thanks, Grant [1] http://myfaces.apache.org/tomahawk/dependencies.html On 11/28/06, Marcus Bond [EMAIL PROTECTED] wrote: Great, thanks! From: Matthias Wessendorf [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org Subject: Re: Example jars Date: Fri, 24 Nov 2006 17:52:05 +0100 not up to date, but here: http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/myfaces-example-simple/1.1.4-SNAPSHOT/ On 11/24/06, Marcus Bond [EMAIL PROTECTED] wrote: Thanks, provides a fair bit of info. Are there are any projects for download so the java source in backing beans can be looked at? From: Sudhakar Mekathotti [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org Subject: Re: Example jars Date: Fri, 24 Nov 2006 14:47:25 + Marcus, You can see the examples at http://www.irian.at/training.jsf On 11/24/06, Marcus Bond [EMAIL PROTECTED] wrote: Hi, Have been looking around the myFaces site trying to find some examples to help out with using tomahawk features and saw a link to example apps for tomahawk. On clicking it I ended up on the page where all the librarys are but the only one with an example was Tobago. Can someone tell me where the tomahawk examples are please? Also, when trying to use the tomahawk features, I ended up with problems once the filter mapping was placed in web.xml as there was a class not found exeption which has since been resolved (took a while though to work out the problem) by including the commons-fileupload.jar file. There is no mention anywhere on the tomahawk page that this jar is required or clue as to where it can be found. Would it be possible to include this information on the tomahawk pages if only to save others from despair? Thanks, Marcus. P.S. Love the work of this project! _ Windows Live™ Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb _ Windows Live™ Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com _ Download the new Windows Live Toolbar, including Desktop search! http://toolbar.live.com/?mkt=en-gb -- Grant Smith
[COMMUNITY] Paul Spencer - Committer
Congratulations to Paul Spencer for becoming the newest Myfaces committer ! Paul has provided numerous patches and has been active in multiple JIRA and mailing list issues, and we are extremely grateful for his contributions. Paul is an existing committer for the Portals project. Thanks Paul, and welcome to the team! -- Grant Smith
Re: Very strange problem: conversion error
Recent changes to SelectItem in 1.1.5 SNAPSHOT remove the convenient conversion between types for this component to make it work like the RI. Is #{TransactionReportBean.beginHour} a String ? On 11/14/06, Fraley, Taylor [EMAIL PROTECTED] wrote: So I'm having a very strange problem.I have a jsp that's using ah:selectOneMenu populated by an ArrayList within a bean, which is allpretty standard.In one environment, on my desktop PC running Tomcat5.5, everything works fine.On my SPARC running the same version of Tomcat, configured, from what I can tell, identically, I get thefollowing exception when loading the page:org.apache.jasper.JasperException: org.apache.jasper.JasperException:javax.servlet.jsp.JspException : {2} Conversion Error setting value''{0}'' for ''{1}''.org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:377)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)javax.servlet.http.HttpServlet.service (HttpServlet.java:802)org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)I've done some poking around on Google, but haven't found anythingterribly useful.The two possible explanations I've found (getter for the ArrayList returning null and a mistype of the managed bean name inthe jsp vs. the faces-config.xml) both don't seem to apply here.Hereare the relevant snippets of code:...from faces-config.xml... managed-beanmanaged-bean-nameTransactionReportBean/managed-bean-namemanaged-bean-classcom.level3.ssid.idd.report.web.TransactionReportBean/managed-bean-class managed-bean-scopesession/managed-bean-scope/managed-bean...from the TransactionReportBean... public TransactionReportBean() {availableTimes.add(new SelectItem(0, 12:00 AM)); availableTimes.add(new SelectItem(1, 01:00 AM));availableTimes.add(new SelectItem(2, 02:00 AM));availableTimes.add(new SelectItem(3, 03:00 AM)); availableTimes.add(new SelectItem(4, 04:00 AM));availableTimes.add(new SelectItem(5, 05:00 AM));availableTimes.add(new SelectItem(6, 06:00 AM)); availableTimes.add(new SelectItem(7, 07:00 AM));availableTimes.add(new SelectItem(8, 08:00 AM));availableTimes.add(new SelectItem(9, 09:00 AM)); availableTimes.add(new SelectItem(10, 10:00 AM));availableTimes.add(new SelectItem(11, 11:00 AM));availableTimes.add(new SelectItem(12, 12:00 PM)); availableTimes.add(new SelectItem(13, 01:00 PM));availableTimes.add(new SelectItem(14, 02:00 PM));availableTimes.add(new SelectItem(15, 03:00 PM)); availableTimes.add(new SelectItem(16, 04:00 PM));availableTimes.add(new SelectItem(17, 05:00 PM));availableTimes.add(new SelectItem(18, 06:00 PM)); availableTimes.add(new SelectItem(19, 07:00 PM));availableTimes.add(new SelectItem(20, 08:00 PM));availableTimes.add(new SelectItem(21, 09:00 PM)); availableTimes.add(new SelectItem(22, 10:00 PM));availableTimes.add(new SelectItem(23, 11:00 PM)); } public ArrayListSelectItem getAvailableCnamOptions() { return availableCnamOptions; }...from the jsp...h:selectOneMenu id=beginHourvalue=#{TransactionReportBean.beginHour} styleClass=rptSmallInputs f:selectItems value=#{TransactionReportBean.availableTimes}//h:selectOneMenuJudging by all the hits on Google, it seems to be a pretty commonproblem, but I'm sort of stumped on what to do next to figure out the problem.Has anyone seen this?Any pointers?Thanks,Taylor-- Grant Smith
Re: ClassCastException AjaxDecodePhaseListener ?
You have some com.sun.faces.* stuff in the exception which leads me to believe you've got some old Sun JSF stuff clashing...On 11/13/06, Michael Heinen [EMAIL PROTECTED] wrote:strange, it starts under Tomcat 5.5.17-Original Message-From: Martin Marinschek [mailto:[EMAIL PROTECTED]]Sent: Montag, 13. November 2006 17:54To: MyFaces Discussion Subject: Re: ClassCastException AjaxDecodePhaseListener ?Class loading problem? Have you tried shuffling around your libs?regards,MartinOn 11/13/06, Michael Heinen [EMAIL PROTECTED] wrote: Hi all, I just tried to install a jsf application on another machine and gotthis exception on start: java.lang.ClassCastException: org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListeneratcom.sun.faces.config.ConfigureListener.configure(ConfigureListener.java :711)atcom.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)atcom.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListe ner.java:328)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)atorg.apache.catalina.core.StandardContext.start(StandardContext.java :4127)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)atorg.apache.catalina.core.StandardService.start (StandardService.java:450)at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)at org.apache.catalina.startup.Catalina.start(Catalina.java:536) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:413) Environment: Tomcat 5.5.12 Jdk 1.5.0.6 MyFaces core 1.1.3 Tomahawk 1.1.3 The app runs fine on other machines. Has anybody an idea how to solve this ? Michael-- http://www.irian.atYour JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces -- Grant Smith
Re: Is it possible to get the faces context from a non-managed, non-jsf bean?
http://wiki.apache.org/myfaces/AccessFacesContextFromServlet might help...On 10/22/06, Bjørn T Johansen [EMAIL PROTECTED] wrote: If so, how?Regards,BTJ-Bjørn T Johansen[EMAIL PROTECTED] ---Someone wrote:I understand that if you play a Windows CD backwards you hear strange Satanic messages To which someone replied:It's even worse than that; play it forwards and it installs Windows--- -- Grant Smith
Re: selectOneMenu looses values with myFacesCore 1.1.4
I'm not sure if this is related, but see my comment on the commit r449566, which definitely breaks UISelect* components for me. Although that didn't make it into 1.1.4, did it ?On 9/28/06, Martin Marinschek [EMAIL PROTECTED] wrote: Hi Michael,if you create a new View-Root, it is expected that the old componentsget lost - I would say that the selectItems should be recreated. Isthat the case in your backing bean? Can you try to clean out the binding as well, and see what happens then?regards,MartinOn 9/28/06, Michael Heinen [EMAIL PROTECTED] wrote: Hi, could anybody of the developers please respond to this issue? I would like to update to 1.1.4 but the below issue is of course a show stopper. This code works with 1.1.3 so there must be something working different in 1.1.4. Michael From: Michael Heinen [mailto:[EMAIL PROTECTED]]Sent: Mittwoch, 27. September 2006 14:51To: MyFaces DiscussionSubject: RE: selectOneMenu looses values with myFacesCore 1.1.4 Sorry for posting answers to my own question but could further isolate the problem. The action listeners that are called by the immediate links, contain the following code in order to create new views: FacesContext context = FacesContext.getCurrentInstance(); ViewHandler viewHandler = context.getApplication().getViewHandler(); UIViewRoot viewRoot = viewHandler.createView(context, context.getViewRoot().getViewId()); context.setViewRoot(viewRoot); context.renderResponse(); When I remove these lines then the dropdpwn contains all the expected values. But I have to create a new view in the action listener. So what's going wrong inside ??? Michael From: Michael Heinen [mailto:[EMAIL PROTECTED] ]Sent: Mittwoch, 27. September 2006 14:34To: MyFaces DiscussionSubject: RE: selectOneMenu looses values with myFacesCore 1.1.4 I forgot to mention that SearchControllerBean has sessionScope. During debugging I found out that the corresponding setter setSavedSearchesMenu is called two times. public void setSavedSearchesMenu(UISelectOne savedSearchesMenu) {this.savedSearchesMenu = savedSearchesMenu; } The first time the parameter savedSearchesMenu is correctly populated. Then getSavedSearchesMenu is called. The setter is called again then and savedSearchesMenu (of type HtmlSelectOneMenu) is not initialized anymore. All attributes are null or false except _valid which is true. Any ideas? Is this a bug (It did work with 1.1.3) ? Michael From: Michael Heinen [mailto: [EMAIL PROTECTED]]Sent: Mittwoch, 27. September 2006 14:07To: MyFaces DiscussionSubject: selectOneMenu looses values with myFacesCore 1.1.4 After updating myFacesCore to 1.1.4 a selectOneMenu is not working anymore. I use tomahawk-1.1.3. The entries of the select one menu are cleared after clicking an immediate link. When I go back to myFacesCore 1.1.3 everything works fine. Here is the jsp snippet: h:panelGrouph:outputText value=Quick Search/ t:selectOneMenu id=lastSearch binding=#{SearchControllerBean.savedSearchesMenu}/ /h:panelGroup SearchControllerBean: public UISelectOne getSavedSearchesMenu() { if (this.savedSearchesMenu==null){ this.populateSavedSearchesMenu(); } return this.savedSearchesMenu; } I set a breakpoint into the above method. savedSearchesMenu is a HtmlSelectOneMenu and it's childrenList contains two objects: An UISelectItem and an UISelectItems with 5 SelectItems. But these are not displayed anymore in the html. The dropdown is empty. Any ideas?-- http://www.irian.atYour JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces -- Grant Smith
Re: can we set some request parameter using an action method ?
I haven't tried this, but how about something like:FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().put(key,value);On 9/27/06, Legolas Woodland [EMAIL PROTECTED] wrote: HiThank you for reading my postcan we set some request parameter using action methods?thanks-- Grant Smith
Re: Tomahawk 1.1.5 vs 1.1.4 [Was: MyFaces-1377 min fix versions? / panelNavigation2 breakage]
I agree. I vote let's just call it 1.1.5.On 9/20/06, Mike Kienenberger [EMAIL PROTECTED] wrote: We no longer release Core and Tomahawk at the same svn revision level.In theory, there are no dependencies between them so it shouldn't matter.In practice, we keep finding little things we need to tweakto make this the case.It's already a monstrous task to try to release a product (be it Coreor Tomahawk) without a critical flaw or regression.It'd be an order of magnitude harder if we had to do so for both at the same time(and our past releases for MyFaces Core+Tomahawk show that we neverhit the mark.There's no real reason why we have to release a new version of Tomahawk just because we released Core, even though that's currentlyour tradition (or vise-versa).At some point, we hope to stop releasing Core 1.1 -- no more bugs tofix :-) -- but we will continue to release new versions of Tomahawk. On 9/20/06, Jeff Bischoff [EMAIL PROTECTED] wrote: Isn't that just taking 1.1.5 and renaming it 1.1.4? Won't that just add to the confusion? Clearly, it has confused me anyway! ;) Wendy Smoak wrote: On 9/20/06, Jeff Bischoff [EMAIL PROTECTED] wrote: According to the release plan [1], the 1.1.4 Tomahawk branch will likely be abandoned in favor of 1.1.5... We're not skipping 1.1.4.The existing (very old) 1.1.4 branch will be deleted, and we'll copy the 1.1.5-SNAPSHOT trunk to tomahawk/branches/1_1_4. -- Grant Smith
Re: Tomahawk 1.1.5 vs 1.1.4 [Was: MyFaces-1377 min fix versions? / panelNavigation2 breakage]
My concern is that the current maven build is labelled 1.1.5, and that releasing it as 1.1.4 will cause more confusion for our users. I'm not sure of the history of *why* the current build is 1.1.5 (there was an animated discussion about branching, tagging, merging up, branching down, etc, which at this point due to the delays I'm not sure matters anymore). Either way it doesn't make much difference. I just thought it would be simpler. Am I off base ?On 9/20/06, Mike Kienenberger [EMAIL PROTECTED] wrote:Not sure I understand why we'd want to skip 1.1.4 for Tomahawk.Last version was 1.1.3.Next version would be 1.1.4. It's a separateproduct so why skip a version?On 9/20/06, Grant Smith [EMAIL PROTECTED] wrote: I agree. I vote let's just call it 1.1.5. On 9/20/06, Mike Kienenberger [EMAIL PROTECTED] wrote: We no longer release Core and Tomahawk at the same svn revision level. In theory, there are no dependencies between them so it shouldn't matter.In practice, we keep finding little things we need to tweak to make this the case. It's already a monstrous task to try to release a product (be it Core or Tomahawk) without a critical flaw or regression.It'd be an order of magnitude harder if we had to do so for both at the same time (and our past releases for MyFaces Core+Tomahawk show that we never hit the mark. There's no real reason why we have to release a new version of Tomahawk just because we released Core, even though that's currently our tradition (or vise-versa). At some point, we hope to stop releasing Core 1.1 -- no more bugs to fix :-) -- but we will continue to release new versions of Tomahawk.On 9/20/06, Jeff Bischoff [EMAIL PROTECTED] wrote: Isn't that just taking 1.1.5 and renaming it 1.1.4? Won't that just add to the confusion? Clearly, it has confused me anyway! ;) Wendy Smoak wrote:On 9/20/06, Jeff Bischoff [EMAIL PROTECTED] wrote:According to the release plan [1], the 1.1.4 Tomahawk branch will likelybe abandoned in favor of 1.1.5... We're not skipping 1.1.4.The existing (very old) 1.1.4 branch will be deleted, and we'll copy the 1.1.5-SNAPSHOT trunk totomahawk/branches/1_1_4. -- Grant Smith -- Grant Smith
Re: jsf + jsp/servlet hybrid
Jorge,I have worked on a project which migrated from a PURE servlet environment to JSF. We gradually moved the functionality from the servlets to JSF pages. Overall the experience was not a bad one, as there are ways to access beans from the servlets, and the request / session info in the servlets can be reached from the JSF beans. Performance wise the servlets performed much better than the JSF pages, but we could accept that. The fact that there was a combination of servlets and JSF pages did not slow down either though.Hope that helps. -Grant.On 8/4/06, Jorge Vásquez [EMAIL PROTECTED] wrote: Hi, Has anybody used a hybrid as an integration strategy with an old application that uses the JSP Model 2 architecture (jsp + servlets with clean separation of model, view and control). In theory it should be possible since the jsf architecture uses servlet mappings, so we can play with the URIs sent by the legacy code and the new code in JSF but my curiosity is more aimed at consulting if anyone of you has done something similar in your projects and what have you concluded (complex to maintain?, performance issues?, etc.). Cheers, Jorge Vásquez -- Grant Smith
Re: jsf + jsp/servlet hybrid
The decision was to move *as much as possible* to JSF. All of the reports were left as servlets as they used iText and would have been just too tedious to change.On 8/4/06, Jorge Vásquez [EMAIL PROTECTED] wrote: Thanks Grant, One question though, your decision on that Project was to keep a hybrid or to migrate everything to JSF? JV. De: Grant Smith [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 04 de agosto de 2006 10:23 Para: MyFaces Discussion Asunto: Re: jsf + jsp/servlet hybrid Jorge, I have worked on a project which migrated from a PURE servlet environment to JSF. We gradually moved the functionality from the servlets to JSF pages. Overall the experience was not a bad one, as there are ways to access beans from the servlets, and the request / session info in the servlets can be reached from the JSF beans. Performance wise the servlets performed much better than the JSF pages, but we could accept that. The fact that there was a combination of servlets and JSF pages did not slow down either though. Hope that helps. -Grant. On 8/4/06, Jorge Vásquez [EMAIL PROTECTED] wrote: Hi, Has anybody used a hybrid as an integration strategy with an old application that uses the JSP Model 2 architecture (jsp + servlets with clean separation of model, view and control). In theory it should be possible since the jsf architecture uses servlet mappings, so we can play with the URIs sent by the legacy code and the new code in JSF but my curiosity is more aimed at consulting if anyone of you has done something similar in your projects and what have you concluded (complex to maintain?, performance issues?, etc.). Cheers, Jorge Vásquez -- Grant Smith -- Grant Smith
Re: RE : Re: RE : Re: facelets and tomahawk issues
Sean could you post a URL ? I googled, and failed...On 8/4/06, Sean Schofield [EMAIL PROTECTED] wrote:There is also a brand new shale-goodies project hosted at google.Its a spinoff of the Apache Shale project.Its going to contain ashale-petstore app that use facelets, jsf, myfaces, spring, hibernate,etc.Its just getting set up now but look for more action in a few weeks. We're discussing on the shale dev list at the moment but everything isgoing to move to google shorlty.Apache Shale will stay at Apache ofcourse.SeanOn 8/4/06, rahmoune patrick [EMAIL PROTECTED] wrote: I will let you know. No problem. patrick Andrew Robinson [EMAIL PROTECTED] a écrit : If you don't mind, keep us updated -- I am interested in that combination of environment/jars to hopefully support AJAX using the invoke on component feature of 1.2. On 8/4/06, rahmoune patrick wrote: Thank you for the answer. I get it work. Cool. I've found a pb in my web.xml file (a filter mapping pb :-)). I haven't port all my jsp pages, but the test with my login page which use t:inputTextHelp is working (_javascript_ are added). I'm currently on the JSF RI 1.2 + facelets 1.0.14 + tomahawk 1.1.5 (nightly) on tomcat 5.5. I don't know if it is a good combination, I'm going to see it in the next few days. Thank you again. patrickMike Kienenberger a écrit : On 8/4/06, rahmoune patrick wrote: I'd like to move my application from tiles to facelets and I'm using some tomahawk components (tree2, saveState, table, inputTextHelper, etc...). I am using tomcat 5.5 on J2SE5.0 When I try to set up an environment using JSF1.2 RI + facelets 1.0.14 +tomahawk 1.1.3, the application failed to start because of the extension filter ExtensionFilter not correctly configured exception. I have look at the wiki page and it seems that nothing is wrong on my side (maybe I have something wrong :-)) Most common error is having your web.xml elements in the wrong oder. But you will get a better answer if you post your web.xml file on the myfaces-users mailing list and ask for help. There's nothing facelets or JSF1.2 RI specific about it.When I try to set up an environment using Myfaces 1.1.5 (downloaded today) + facelets 1.0.14 +tomahawk 1.1.5, I have an exception I'm currently using MyFaces core 1.1.4 release candidate, Tomahawk 1.1.5, and Facelets 1.1.11. I've also replaced MyFaces core with 1.1.5 without problems. I've never used the JSF RI, but I've been using Facelets + MyFaces + Tomahawk for more than a year. java.lang.NoClassDefFoundError javax/el/ExpressionFactory This looks like you're missing the el-api.jar and/or el-ri.api jars that Facelets requires. See the facelets readme file.Does someone has succeed in using tomahawk with facelets on tomcat with either the JSF RI or MyFaces impl and tell me the best path (the version of components, advices, etc...) ? I'm using it on Jetty. Once in a great while, I also test it on Tomcat, and I've never hit any issues. Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. Cliquez ici. Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. Cliquez ici.-- Grant Smith
Re: Can Sandbox components be used in production app?
I would not recommend it, however I do so myself for some components. Obviously bad things can happen, the scope of which is impossible to predict. Remember that when components get promoted from sandbox to tomahawk, you will have to change the namespace on your .jsp / .jspx sources. On 6/8/06, Raj Rajendran [EMAIL PROTECTED] wrote: Is it recommended ? I understand that sandbox stuff can change, but curious if people are using it in real applications.When it works, what is the worst thing that can happen? -- Grant Smith
Re: How to pass argument in a JSF action
This is true, however, you can access Map entries via index, which is almost a poor man's function.. of sorts :)#{someBean.someMap[index]}is allowed.should work perfectly. On 3/8/06, Dennis Byrne [EMAIL PROTECTED] wrote: Again, actions cannot take arguments.Dennis Byrne-Original Message-From: Anthony Hong [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 9, 2006 02:05 AM To: 'MyFaces Discussion'Subject: Re: How to pass argument in a JSF actionI sawtomahawk example sort tablet:commandSortHeader columnName=color arrow=true h:outputTextvalue=#{example_messages['sort_carcolor']} //t:commandSortHeaderIt has a backend method, sort(String columnname), is this a action method or delegate method?On 3/9/06, Dennis Byrne [EMAIL PROTECTED] wrote: Actions cannot take arguments.Try creating a property called argu on the backing bean.Inside your commandLink, you can then do this t:updateActionListener property=#{DebtorController.argu} value=foo / This says assign 'foo' to the argu property just before the action is called.In the action, you will have access to the argu String internally. Dennis Byrne -Original Message- From: Anthony Hong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 8, 2006 10:04 PM To: 'MyFaces Discussion' Subject: How to pass argument in a JSF action I want to have following function In page a have command button h:commandButton id=btCreate value=#{ tagVar.CREATE} action=""> Can I pass some argument to this backing bean functon? Say the orignial is public string createDebtor() I want it to be public string createDebtor(String argu) Can it be? -- Anthony Hong --Anthony Hong -- Grant Smith
Re: Confused wrt inputText
Adam, Things to try: 1. use t:saveState id=type value=#{treeBacker.editState} /2. instead of using an input output container, try: t:inputText value=#{MIFExternal.type} displayValueOnly=#{treeBacker.editState} / Out of curiousity, what is the scope of your backing bean ? -Grant On 2/27/06, Adam [EMAIL PROTECTED] wrote: Dear All,I am trying to build a jsf page which can alternate between showinginput output text elements dependant upon a boolean (i.e. if you areallowed to edit the data).e.g.tr td halign='left'h:outputText value= Typetitle=The Type of the Element //tdtd width=10:/tdtd halign='left'h:outputText value=#{ MIFExternal.type}rendered=#{!treeBacker.editState} /h:inputText value=#{MIFExternal.type}rendered=#{treeBacker.editState} //td/tr Basically the OutputText works fine, it calls getType shows thevalue in the bean however the inputText never calls getType.I have tried simply using an inputText (i.e. w/o any rendered yet nothing)Any ideas why the inputText should not be getting any values from thebacking bean?Some of the fields are always ineligible for editing thus are alwaysoutputText they work fine where the inputText fields are always empty. TIAAdam-- Grant Smith
Re: Confused wrt inputText
That should occur automatically.On 2/27/06, Adam [EMAIL PROTECTED] wrote: BTW all this is to pre-populate the inputText element with the valuesalready contained in the bean.TIAAdamAdam wrote: Dear All, I am trying to build a jsf page which can alternate between showing input output text elements dependant upon a boolean (i.e. if you are allowed to edit the data). e.g. tr td halign='left'h:outputText value= Type title=The Type of the Element / /td td width=10:/td td halign='left'h:outputText value=#{MIFExternal.type} rendered=#{!treeBacker.editState} / h:inputText value=#{MIFExternal.type} rendered=#{treeBacker.editState} / /td /tr Basically the OutputText works fine, it calls getType shows the value in the bean however the inputText never calls getType. I have tried simply using an inputText (i.e. w/o any rendered yet nothing) Any ideas why the inputText should not be getting any values from the backing bean? Some of the fields are always ineligible for editing thus are always outputText they work fine where the inputText fields are always empty. TIA Adam-- Grant Smith
Re: Does file upload work in a Portlet ?
I have applied the patches. See if they help.On 1/2/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Yes,MyFaces' upload *can* cause problems in a portlet container.This topic has already been addressed inside of our Jira issue tracker. http://issues.apache.org/jira/browse/MYFACES-758Perhaps Stan could clearify this?-MatthiasOn 1/2/06, Dean Schulze [EMAIL PROTECTED] wrote: Has anyone tried to use the MyFaces file upload in a Portlet?I know that the Struts file upload doesn't work in a Portlet, but this is probably due to it using Servlet Filters to handle the multipart/form-data.If MyFaces doesn't rely on Servlet filters for file upload it may work in a Portlet. Thanks.--Matthias WessendorfZülpicher Wall 12, 239 50674 Kölnhttp://www.wessendorf.netmwessendorf-at-gmail-dot-com-- Grant Smith
Re: [COMMUNITY] Welcome Mike Kienenberger
Welcome Mike!On 11/23/05, Dennis Byrne [EMAIL PROTECTED] wrote: Mike has been providing many patches over the very long timehe hasbeen active with Apache MyFaces, and has donated invaluablehelp toall users of Apache MyFaces - most of you can confirm this from yourown experience.Yes, we all know Mike ;) .Congrats.Dennis Byrne-- Grant Smith
Re: Tomahawk extended data table
Adding it to 426 should be fine. Just document what you're doing in the JIRA comment. The format should prefereably be as a patch against the current most up-to-date SVN version (HEAD).On 11/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I found there is already a request for this in JIRA, MYFACES-426. Should I add it there? Does it need to be in any format, or can I just zip up my well documented files (the changed files)? From: Grant Smith [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 19, 2005 4:50 PMTo: MyFaces Discussion; [EMAIL PROTECTED]Subject: Re: Tomahawk extended data table Hi Lance,Generall you should create a JIRA, and attach the patch to it. It will be reviewed and if accepted, incorporated by one of the committers.Thanks for contributing ! On 11/19/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I needed to extend the Tomahawk extended data table to include colspan. I could contribute my code to the project if you want (it's very simple). What is involved? Thanks, Lance -- Grant Smith -- Grant Smith
Re: Tomahawk extended data table
Hi Lance, Generall you should create a JIRA, and attach the patch to it. It will be reviewed and if accepted, incorporated by one of the committers. Thanks for contributing ! On 11/19/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I needed to extend the Tomahawk extended data table to include colspan. I could contribute my code to the project if you want (it's very simple). What is involved? Thanks, Lance -- Grant Smith
Re: CSS-Property-Database needed!
Yes, I agree. I've needed a quick-reference like this for ages. Theres a million online resources of course, but nothing in XML or as MArtin says, machine-readable format. Go for it...On 11/17/05, Hendrik Neumann [EMAIL PROTECTED] wrote: 2005/11/17, Martin Marinschek [EMAIL PROTECTED] : Have you asked them if they provide this information machine readable as well?Yes I did. This is the answer from Mr. Jacobs: I am not aware of adatabase or a service that already exists. So if the opensource-community has not created such a database yet...I think we need to do it now!-- Grant Smith
Re: Exception
You'll have to provide more information, perhaps your web.xml and faces config etc... But from what I can see immediately is that you have com.sun.* stuff in your setup. I presume you're trying to use myfaces exclusively. In that case make sure you dont have any Sun JSF jars anywhere.. and then clean out all the Tomcat work/temp files. I'll assume you're using Tomcat. Really though, you need to provide MUCH more information when asking questions like this, in ANY forum.On 11/17/05, Katareek [EMAIL PROTECTED] wrote:Hi,I have got the following exception and I do not know where is the problem: Can You help me ?javax.servlet.ServletException: javax.servlet.jsp.JspException: nullorg.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:844)org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:781)org.apache.jsp.test.myfaces_005fdt_jsp._jspService(org.apache.jsp.test.myfaces_005fdt_jsp:125)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :314)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)javax.servlet.http.HttpServlet.service(HttpServlet.java:802)com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java :322)com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)com.sun.faces.lifecycle.LifecycleImpl.phase (LifecycleImpl.java:200)com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)*root cause*java.lang.NullPointerException com.sun.faces.renderkit.html_basic.CommandLinkRenderer.getHiddenFieldName(CommandLinkRenderer.java:136)com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeEnd(CommandLinkRenderer.java:318) javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.renderFacet(HtmlDataScrollerRenderer.java:294)org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.renderScroller (HtmlDataScrollerRenderer.java:236)org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.encodeEnd(HtmlDataScrollerRenderer.java:207)javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java :720)com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233) javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren (GroupRenderer.java:130)javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)javax.faces.webapp.UIComponentTag.doEndTag (UIComponentTag.java:544)com.sun.faces.taglib.html_basic.PanelGroupTag.doEndTag(PanelGroupTag.java:116)org.apache.jsp.test.myfaces_005fdt_jsp._jspx_meth_h_panelGroup_0(org.apache.jsp.test.myfaces_005fdt_jsp:197 )org.apache.jsp.test.myfaces_005fdt_jsp._jspx_meth_f_view_0(org.apache.jsp.test.myfaces_005fdt_jsp:153)org.apache.jsp.test.myfaces_005fdt_jsp._jspService(org.apache.jsp.test.myfaces_005fdt_jsp:112) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)javax.servlet.http.HttpServlet.service(HttpServlet.java:802)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :322)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)javax.servlet.http.HttpServlet.service(HttpServlet.java :802)com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)com.sun.faces.lifecycle.RenderResponsePhase.execute (RenderResponsePhase.java:87)com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)javax.faces.webapp.FacesServlet.service (FacesServlet.java:198)regards-- Grant Smith
Re: life cycle in version 1.1
Try immediate=true in your commandLink.On 11/16/05, ::SammyRulez:: [EMAIL PROTECTED] wrote: i notice that if I have a page with a action that drive to anotherpage like this h:commandLink action="" f:param name=id value=0 /h:outputText value=#{labels.new} styleClass=text/ /h:commandLinkwith a navigation like this navigation-rulefrom-view-id/jsp/admin/listUsers.jsp/from-view-id navigation-casedescription/descriptionfrom-outcomeEDIT_USER/from-outcometo-view-id/jsp/admin/editUser.jsp/to-view-id redirect //navigation-case /navigation-rulethe page with the command link is reintepreted before loading the target page.I mean that the methods in the beans in thefrom-view-id are called before loading to-view-id page and calling the methods of theo-view-id page beans.I tried with and without redirection but with no effects...any suggestions?Thanks--::SammyRulez:: http://sammyprojectz.blogspot.com-- Grant Smith
Re: dataTable: why are row states cleared before render?
I'm having problems with this too. In my application, I now have to submit twice before I see the changes effect the datatable, even though the model is updated correctly after the first submit. I presume it's work in progress :)On 11/13/05, Simon Kitching [EMAIL PROTECTED] wrote: Hi,I see that recently some work has been done on implementing apreserveRowStates flag for the dataTable component.As is (now) documented, the ancestor UIData component uses theflyweight pattern so that only one set of child objects is used to represent the columns and their contents. As each row is selected viasetRowIndex, the component state is saved in _rowStates array, and thecomponents are reinitialised with the _rowStates entry appropriate for the next row.However unless preserveRowState is set (it is false by default), theencodeBegin method discards all row state before rendering begins.I'm puzzled by this. Why is the row state cleared? And if row state is going to be ignored, what's the point of saving itat all?Regards,Simon-- Grant Smith
Re: AJAX tree -Amazon Catalogue Tree
Looks really cool, Veerendra :) How about donating the components to the Myfaces Sandbox ? On 11/12/05, Veerendra Shivhare [EMAIL PROTECTED] wrote: My name is Veerendra Shivhare and I work as asoftware professional in bangalore (india).I have made a small one page application which Iwill like to share with you and get yourvaluable thoughts/comments on this. I modified JS Cook Tree to make it use AJAX,support n level hierarchy. I used this to DisplayAmazon Catalogue in a new innovative way.URL :- http://lmap.co.nr/Amazon1.htm In the tree, one can browse amazon catalogues basedon the browse id. On reaching the item level (markedwith red dots) one can click on it to view detailssuch as price, image etc.I made a small app which searches for locations in india. I used AJAX with google maps to make this.URL :- http://www.lmap.co.nrWaiting for your feedback.Regards,Veerendra Shivhare__ Enjoy this Diwali with Y! India Click here http://in.promos.yahoo.com/fabmall/index.html-- Grant Smith
Re: HTML And JSF Component Mixing
You're enclosing your JSF components in the f:verbatim tags. Try to have multiple f: verbatim tags sothat this does not occur.On 11/8/05, robinhoo [EMAIL PROTECTED] wrote: I'm using jsf components inside html table and i want commandbutton to make action when it was clicked and this didn't happen her is my code h:form f:verbatim table width=100% id=filterTable tr class=contacts_header td width=20%h:selectBooleanCheckbox id=nameCheckbox /Name contains/td td width=10%h:selectBooleanCheckbox id=statusCheckbox /Status/td td width=10%Actions/td /tr tr tdh:inputText value= //td td h:selectOneMenu id=statusOption tabindex=2 value=#{filterBean.status} f:selectItems value=#{filterBean.statuses}/ /h:selectOneMenu /td td h:commandButton title =Apply Filter styleClass=contrack_button value=Apply Filter action="" /td /tr /table p/ /f:verbatim thanx in advance-- Ali abd el aziz aliSoftWare Developer, OpenCraft -- Grant Smith
Re: Error at startup
It looks like your deployed .war file was copied (perhaps over a slow link) to your app server. Sometimes the app server starts to deploy the .war before the copy has completed. I would recommend first copying the .war to a different directory on your app server, then moving it locally. If you are using Tomcat, use the ANT tasks to deploy instead of trying to do a remote copy.On 11/8/05, sri [EMAIL PROTECTED] wrote: Hi I am getting the following error, can somebody tell why would this occur. The error is being thrown while the server is being started. The myfaces.jar file is fine and worksok with other application. Nov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedStandardConfigINFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurationsINFO: Reading config jndi:C:\oc4j904Test\oc4j9.0.4.1\j2ee\home\applications\TestApp\web\WEB-INF\lib\myfaces.jar/META-INF/faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedContextSpecifiedConfigINFO: Reading config /WEB-INF/faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.webapp.StartupServletContextListener initFaces SEVERE: Error initializing ServletContextjavax.faces.FacesException: java.util.zip.ZipException: The system cannot find the file specifiedat org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java :123)at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java :46)at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:771)at com.evermind.server.http.HttpApplication.init(HttpApplication.java:497)at com.evermind.server.Application.getHttpApplication (Application.java:886)at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)at com.evermind.server.http.HttpSite.setConfig (HttpSite.java:263)at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)at com.evermind.server.ApplicationServer.initializeHttp (ApplicationServer.java:2330)at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1503)at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)at java.lang.Thread.run (Thread.java:534)Thanks in advance Srikanth -- Grant Smith
Re: Error at startup
Sorry.. I had a kneejerk reaction when I saw ZipException. Looking more closely at the error, it looks like perhaps your config file cannot be found. Could you show the contenent of your /WEB-INF/faces-config.xml On 11/8/05, sri [EMAIL PROTECTED] wrote: Hi Thanks for the reply. My application is not in a war file. It is deployed in exploded formated. My app server and web server arebeing deployedon the same machine and same server instance. Srikanth On 11/8/05, Grant Smith [EMAIL PROTECTED] wrote: It looks like your deployed .war file was copied (perhaps over a slow link) to your app server. Sometimes the app server starts to deploy the .war before the copy has completed. I would recommend first copying the .war to a different directory on your app server, then moving it locally. If you are using Tomcat, use the ANT tasks to deploy instead of trying to do a remote copy. On 11/8/05, sri [EMAIL PROTECTED] wrote: Hi I am getting the following error, can somebody tell why would this occur. The error is being thrown while the server is being started. The myfaces.jar file is fine and worksok with other application. Nov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedStandardConfigINFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurationsINFO: Reading config jndi:C:\oc4j904Test\oc4j9.0.4.1\j2ee\home\applications\TestApp\web\WEB-INF\lib\myfaces.jar/META-INF/faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedContextSpecifiedConfigINFO: Reading config /WEB-INF/faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.webapp.StartupServletContextListener initFaces SEVERE: Error initializing ServletContextjavax.faces.FacesException: java.util.zip.ZipException: The system cannot find the file specifiedat org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java :123)at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java :46)at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:771)at com.evermind.server.http.HttpApplication.init(HttpApplication.java:497)at com.evermind.server.Application.getHttpApplication (Application.java:886)at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)at com.evermind.server.http.HttpSite.setConfig (HttpSite.java:263)at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)at com.evermind.server.ApplicationServer.initializeHttp (ApplicationServer.java:2330)at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1503)at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)at java.lang.Thread.run (Thread.java:534)Thanks in advance Srikanth-- Grant Smith -- Grant Smith
Re: Error at startup
*content* sorry for the typoOn 11/8/05, Grant Smith [EMAIL PROTECTED] wrote: Sorry.. I had a kneejerk reaction when I saw ZipException. Looking more closely at the error, it looks like perhaps your config file cannot be found. Could you show the contenent of your /WEB-INF/faces-config.xml On 11/8/05, sri [EMAIL PROTECTED] wrote: Hi Thanks for the reply. My application is not in a war file. It is deployed in exploded formated. My app server and web server arebeing deployedon the same machine and same server instance. Srikanth On 11/8/05, Grant Smith [EMAIL PROTECTED] wrote: It looks like your deployed .war file was copied (perhaps over a slow link) to your app server. Sometimes the app server starts to deploy the .war before the copy has completed. I would recommend first copying the .war to a different directory on your app server, then moving it locally. If you are using Tomcat, use the ANT tasks to deploy instead of trying to do a remote copy. On 11/8/05, sri [EMAIL PROTECTED] wrote: Hi I am getting the following error, can somebody tell why would this occur. The error is being thrown while the server is being started. The myfaces.jar file is fine and worksok with other application. Nov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedStandardConfigINFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurationsINFO: Reading config jndi:C:\oc4j904Test\oc4j9.0.4.1\j2ee\home\applications\TestApp\web\WEB-INF\lib\myfaces.jar/META-INF/faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedContextSpecifiedConfigINFO: Reading config /WEB-INF/faces-config.xmlNov 8, 2005 11:18:47 AM org.apache.myfaces.webapp.StartupServletContextListener initFaces SEVERE: Error initializing ServletContextjavax.faces.FacesException: java.util.zip.ZipException: The system cannot find the file specifiedat org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java :123)at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java :46)at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:771)at com.evermind.server.http.HttpApplication.init(HttpApplication.java:497)at com.evermind.server.Application.getHttpApplication (Application.java:886)at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)at com.evermind.server.http.HttpSite.setConfig (HttpSite.java:263)at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)at com.evermind.server.ApplicationServer.initializeHttp (ApplicationServer.java:2330)at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1503)at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)at java.lang.Thread.run (Thread.java:534)Thanks in advance Srikanth-- Grant Smith -- Grant Smith -- Grant Smith
Re: Error at startup
Please show me your WEB-INF/web.xml too... On 11/8/05, sri [EMAIL PROTECTED] wrote: I dont have the faces-config.xml in the META-INF. The path you are seeing in the log is a different config file which exists in the myfaces.jar file. Srikanth On 11/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sri [EMAIL PROTECTED] wrote on 11/08/2005 12:04:25 PM: Nov 8, 2005 11:18:47 AM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations INFO: Reading config jndi:C:\oc4j904Test\oc4j9.0.4. 1\j2ee\home\applications\TestApp\web\WEB-INF\lib\myfaces.jar/META- INF/faces-config.xml Hi Sri, Is the META-INF directory supposed to contain a faces-config.xml? Wondering if the wrong faces-config file is being read..? I know a while ago I had a problem which (I think) was something like this and soembody on google said the config file in the META-INF directory was at fault and should be removed. Not sure this is your problem of course..! Geeta -- Grant Smith
Re: HTML And JSF Component Mixing
On 11/8/05, Sloan, Noah M [EMAIL PROTECTED] wrote: Can f:verbatim tags contain incomplete HTML elements? Yes. That's not valid XML. Correct. Exactly why f:verbatim is such a hot topic. Hopefully JSF 1.2 resolves this. But if they can't, what good are they for his problem? He's trying to put components inside a table. A better approach would be to nest the components inside an h:panelGrid, and avoid f:verbatim altogether. From: Grant Smith [mailto: [EMAIL PROTECTED]]Sent: Tue 08-Nov-05 10:14 AMTo: MyFaces Discussion; [EMAIL PROTECTED]Subject: Re: HTML And JSF Component MixingYou're enclosing your JSF components in the f:verbatim tags. Try to have multiple f: verbatim tags sothat this does not occur.On 11/8/05, robinhoo [EMAIL PROTECTED] wrote:I'm using jsf components inside html table and i want commandbutton to make action when it was clicked and this didn't happenher is my codeh:formf:verbatimtable width=100% id=filterTabletr class=contacts_header td width=20%h:selectBooleanCheckbox id=nameCheckbox /Name contains/tdtd width=10%h:selectBooleanCheckbox id=statusCheckbox /Status/tdtd width=10%Actions/td/trtrtdh:inputText value= //tdtd h:selectOneMenu id=statusOption tabindex=2 value=#{filterBean.status}f:selectItems value=#{filterBean.statuses}/ /h:selectOneMenu/tdtdh:commandButton title =Apply Filter styleClass=contrack_buttonvalue=Apply Filter action="">/td/tr/tablep//f:verbatim thanx in advance--Ali abd el aziz aliSoftWare Developer, OpenCraft--Grant Smith-- Grant Smith
Re: tree2
The nightly builds build the jars. If you'd prefer to build them yourself, simply checkout from SVN and do so. See the website for recent changes in the build procedure. CONNER, BRENDAN (SBCSI) wrote: Question: Do the nightly builds build the impl, api, and tomahawk JAR files, or do they put the source files out on SVN for us to grab and do our own Ant builds? - Brendan -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED]] Sent: Monday, July 11, 2005 5:52 PM To: MyFaces Discussion; fabio quimbay Subject: Re: tree2 Also, nightly builds *should* be working as of tonight. sean On 7/11/05, fabio quimbay [EMAIL PROTECTED] wrote: Greetings ... You can download the "myfaces-simple-examples.war", in this file you will find a example that use x:tree2 tag. 2005/7/11, Edwin Mercado [EMAIL PROTECTED]: Hello everyone, I'm fairly new to myFaces. Where I can find sample code using the x:tree2 tag? thanks -- fabio quimbay .
Re: From Mrs.Grace Minor
Bite me. Mrs Grace Minor John wrote: From Mrs.Grace Minor John. Good Day , I know this mail will come to you as a surprise, nevertheless I am Mrs. Grace Minor, aged 55 years, the wife of Gen. John Minor, Chief Security Officer and Aide-de?camp to the president Charles Taylor of Liberia. As a result of the on-going war in my country, I am saddled with problems of my ill health of protracted diabetes and high blood pressure which is getting of increase in the resent times and also getting a trust worthy individual abroad to receive the sum of US$9.5million and 125 carat worth of Diamond on our behalf. Due to this war crises presently in my city Monrovia our home town, my husband managed to sneak me and my son David 24 years of age and four other of my daughters out of Monrovia to Dakar senegal for safety. We were sneaked into Dakar Senegal through the land boarder by the help of some government militant group. My husband adviced me to get a trust worthy individual abroad to receive the deposit.I feel confident therefore to introduce myself and this offer to you based on this problem of war in my country and our present condition as all our foreign contacts and connections got lost during this crises, all properties burnt by the rebels. I and my children are desperately in need to move and re-locate this huge deposit to your country for safe keeping on the advice of my husband as this is the only wealth remaining for the future survival and well being of our large family. For your percentage for assistance, a negotiable percentage will be discussed as soon as I receive your response based on this plea for your assistance as our lives are highly in danger due to war.I pray and plead for your help. You can email me back or call me on 00221-556-5520 for further clarifications. God bless you as you help to my plea for assistance. Sincerely yours. Mrs.Grace Minor John and Son David. ___ Book yourself something to look forward to in 2005. Cheap flights - http://www.tiscali.co.uk/travel/flights/ Bargain holidays - http://www.tiscali.co.uk/travel/holidays/
Re: initial navigation
The best way to do this is with a navigation handler decorator. Take a look at: http://www.jsftutorials.net/jsfNavigation/jsf-login-navigation-redirect.html [EMAIL PROTECTED] wrote: Is there a way in jsf to navigate (redirect or forward) when a .jsf is opened, depending on data in the session? Basically, I want to do authorization/authentication inside the application, keep the auth data in the session object, and redirect to the signon page if there is no auth data in the session object (no action="").
Re: Getting Subclipse to connect
Neal Haggard wrote: Hi, I'm using Eclipse 3.1M4 and Subclipse 0.9.30 and I'm having trouble connecting to the Apache repository for MyFaces. My work has a Proxy for web connections, which I have configured under the Install/Update portion of the preferences per the Subclipse instructions. When I try and add a new SVN Repository: Url: http://svn.apache.org/repos/asf/myfaces/trunk Root url: http://svn.apache.org/repos Try making the root URL http://svn.apache.org/repos/asf/myfaces No Authentication Validate Connection on Finish I get: Error validating location: org.tigris.subversion.javahl.ClientException: RA layer request failed svn: PROPFIND request failed on '/repos/asf/myfaces/trunk' svn: PROPFIND of '/repos/asf/myfaces/trunk': could not connect to server (http://svn.apache.org) Keep location anyway? Has anyone seen anything like this before? Anyone have any suggestions? For read-only access, can I still use CVS? No, CVS is now gone. If you can still access it, it is old sources.
Re: ClassCastException with f:verbatim
Is there a JIRA issue for this ? If not, please add one :) Thanks, Grant Sean Radford wrote: Ok, looks like my problem is related to this one: http://www.mail-archive.com/users@myfaces.apache.org/msg03517.html (and if I remove my verbatim tags I get the duplicate ID problem instead) I presume there has been no progress on this issue as yet? Regards, Sean Sean Radford wrote: Hi, I'm getting an odd intermittent problem with the f:verbatim tag: 005-05-06 13:04:27,511 ERROR [org.jboss.web.localhost.Engine] - Root Cause - java.lang.ClassCastException at org.apache.myfaces.taglib.core.VerbatimTag.doAfterBody(VerbatimTag.java:76) at org.apache.jsp.project.projectPage_jsp._jspx_meth_f_verbatim_1(projectPage_jsp.java:741) at org.apache.jsp.project.projectPage_jsp._jspx_meth_h_panelGroup_2(projectPage_jsp.java:632) at org.apache.jsp.project.projectPage_jsp._jspx_meth_h_panelGrid_2(projectPage_jsp.java:592) at org.apache.jsp.project.projectPage_jsp._jspx_meth_f_view_0(projectPage_jsp.java:198) at org.apache.jsp.project.projectPage_jsp._jspService(projectPage_jsp.java:103) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) In my case the VerbatimTag contains nbsp; public int doAfterBody() throws JspException { BodyContent bodyContent = getBodyContent(); if (bodyContent != null) { UIOutput component = (UIOutput)getComponentInstance(); component.setValue(bodyContent.getString()); } return super.doAfterBody(); } The offending line is: UIOutput component = (UIOutput)getComponentInstance(); where the getComponentInstance() is returning an HTMLCommandLink (and it is expecting UIOutput) A snippet of the offending JSP is: f:view ... h:panelGrid columns=1 styleClass=rightAlignedTable style=width:100% h:panelGroup h:commandLink action=#{ProjectController.editProject} styleClass=button h:commandButton value=Edit Project styleClass=buttonMedium/ f:param name=projectUuid value=#{ProjectController.project.uuid} / /h:commandLink f:verbatimnbsp;/f:verbatim h:commandLink action=#{ProjectController.manageProject} styleClass=button h:commandButton value=Manage Project styleClass=buttonMedium disabled=true/ /h:commandLink f:verbatimnbsp;/f:verbatim h:commandLink action=#{ProjectController.closeProject} styleClass=button h:commandButton value=Close Project styleClass=buttonMedium/ /h:commandLink /h:panelGroup /h:panelGrid /f:view (I know it is 'odd' to have commandButtons within commandLinks) Any ideas? Is there a better way to render non-breaking spaces? Thanks, Sean (I'm using the latest source from svn)
Re: bad java doc link off of myfaces.apache.org
ced_the.bear wrote: idem for the taglib doc http://myfaces.apache.org/tlddoc/ http://myfaces.apache.org/javadoc/ The two links are dead since yesterday. They're fixed now :) *De:* Duncan Krebs [EMAIL PROTECTED] *A:* MyFaces Discussion users@myfaces.apache.org *Objet:* bad java doc link off of myfaces.apache.org *Date:* Mon, 2 May 2005 14:29:27 -0500 Can anyone tell me where I can look at the javadocs for myfaces. The link http://myfaces.apache.org/javadoc/ seems to be a bad link. Thanks http://secure.caramail.lycos.fr/services/content/advdetail.jsp?advid=advprotekonadvsvc=advsecureTARGETCODE=FR_footermail_link CaraMail met en oeuvre un nouveau *Concept de Scurit Globale* http://secure.caramail.lycos.fr/services/content/advdetail.jsp?advid=advprotekonadvsvc=advsecureTARGETCODE=FR_footermail_link
Re: JSF RI to MyFaces switch and problem
Koci, could you please get the latest nightly build and see if your problem is resolved. MYFACES-187 should resolve this - if it doesn't, please let me know. Thanks, Grant. Koci Martin wrote: Hi, I recently switch my project from JSF RI to MyFaces. The are three problem but one is major: when cancelling h:form with inputTexts elements with commandButton immediate=true attr. submittedValue in UIInput is set to submitted values in HTTP request. This is OK but when rendering again - submittedValue in UIInput are used for output in renderer, not values from model binded with value=#{}! I found this in RenderUtils (used in HtmlTextRendererBase.renderInput method): if (component instanceof EditableValueHolder) { Object submittedValue = ((EditableValueHolder)component).getSubmittedValue(); if (submittedValue != null) { -- if submitted value exists it's used for rendering instead of value returned by ValueHolder.getValue() if (submittedValue instanceof String) { return (String)submittedValue; } else { throw new IllegalArgumentException(Expected submitted value of type String for component : +getPathToComponent(component)); } } } Everything works fine when submitting form with not immediate button because submitted values are set to null in UIInput.validate method after validation. Is that behavior ok or I've missed something? Thanks Martin
Re: Menu Example
Glenn Davidson wrote: Does anyone have an example of a menu? Yes, in the examples-webapp of the distribution. Thanks Glenn __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com .
Re: [website] update
Matt, On Wednesday 12 January 2005 07:05, Matt Raible wrote: I've got a couple of demos for the JSF starter apps I use: http://demo.raibledesigns.com/equinox-jsf Produces this error when you start the demo... An Error has occurred in this application. javax.faces.el.EvaluationException: Expression: '#{userList.users}' at net.sourceforge.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:463) at javax.faces.component.UIData.getValue(UIData.java:934) at javax.faces.component.UIData.createDataModel(UIData.java:661) at javax.faces.component.UIData.getDataModel(UIData.java:650) at javax.faces.component.UIData.getRowCount(UIData.java:114) at net.sourceforge.myfaces.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:121) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:317) at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:370) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:278) at net.sourceforge.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:79) at org.apache.jsp.userList_jsp._jspx_meth_h_dataTable_0 (userList_jsp.java:372) at org.apache.jsp.userList_jsp._jspService(userList_jsp.java:148) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 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:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.appfuse.web.MessageFilter.doFilter(MessageFilter.java:36) 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) at net.sourceforge.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:404) at net.sourceforge.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:241) at net.sourceforge.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:287) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:93) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.appfuse.web.MessageFilter.doFilter(MessageFilter.java:36) 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