Fwd: Tree2
-- Forwarded message -- From: De Prez Hans hans.dep...@health.fgov.be Date: Wed, May 6, 2009 at 9:32 AM Subject: Tree2 To: sc...@apache.org Sean, I have just started using the tomahawk library and I have a question regarding the use of the tree2 component. When I display my tree with the clientSideToggle option = true everything works fine but when I set the option to false The navigation icons (+ and -) are displayed with a blue border. Is this normal behaviour? Kind regards, Hans. FPS HEALTH, FOOD CHAIN SAFETY AND ENVIRONMENT De Prez Hans ICT Architecture Team Tel : +32 2 524.70.72 Victor Hortaplein 40 Email : hans.dep...@health.fgov.be 1060 Brussel Disclaimer : https://portal.health.fgov.be/portal/page?_pageid=56,8674425_dad=portal_schema=PORTAL
Re: Using Tomahawk Table with facelets
I'm using Tomahawk dataTable just fine with facelets. Mike's excellent wiki and the developer docs on the facelets site is all you need. Sean On 11/28/06, Mike Kienenberger [EMAIL PROTECTED] wrote: My guess is that the tomahawk.jar isn't in your classpath. Rather than invent a new table taglib definition, simply use the existing t:dataTable tag. On 11/28/06, Dudu [EMAIL PROTECTED] wrote: I'm trying to use the component Table of tomahawk 1.1.3. I've followed the page http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk but this error is occuring. What I need to do? In My WEB-INF/tomahawk.taglib.xml has the table defined as bellow: tag tag-nametable/tag-name component component-type org.apache.myfaces.component.html.ext.HtmlDataTable /component-type renderer-typeorg.apache.myfaces.Table/renderer-type /component /tag I do this reading the component page: http://myfaces.apache.org/tomahawk/extDataTable.html the error: javax.faces.FacesException: Undefined component type org.apache.myfaces.component.html.ext.HtmlDataTable at org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389) at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:224) at com.sun.facelets.tag.jsf.ComponentHandler.apply (ComponentHandler.java:135) at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58) at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128) at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply (DefaultFaceletContext.java:306) at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279) at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68) at com.sun.facelets.tag.CompositeFaceletHandler.apply (CompositeFaceletHandler.java:47) at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) at com.sun.facelets.compiler.EncodingHandler.apply (EncodingHandler.java:25) at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248) at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294) at com.sun.facelets.impl.DefaultFacelet.include (DefaultFacelet.java:273) at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143) at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113) at com.sun.facelets.compiler.NamespaceHandler.apply (NamespaceHandler.java:49) at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) at com.sun.facelets.FaceletViewHandler.buildView (FaceletViewHandler.java:510) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service (FacesServlet.java:138)
JSF Shopping Cart
I'm toying with the idea of building a JSF-based shopping cart that provides access to the PayPal gateway. Does anyone have a serious interest in helping? I know a lot of people might want to *use* it. I'm looking for someone to help me develop it. Also, if you know of anything that already exists for shopping carts that is written in Java please let me know. TIA, Sean
Re: RE : Re: RE : Re: facelets and tomahawk issues
There is also a brand new shale-goodies project hosted at google. Its a spinoff of the Apache Shale project. Its going to contain a shale-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 is going to move to google shorlty. Apache Shale will stay at Apache of course. Sean On 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. patrick Mike 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.
[OT] Anyone know a good linux/unix hosting company
Looking for a good hosting solution. I need at least some control over the box so I can install my own SVN, JIRA, etc. Sean
Re: Tree2 - a new node scroll to?
I haven't tried using anchors in JSF but presumably that would be the solution. Since the nodes are all JSF objects if you can find a way to add a '#foo' to the URL then you could scroll to the specific location. I don't believe there is a way to do this in the JSF spec but its probably something that should be supported. Your use case is a pretty common one (I've experienced this before.) There is a post on the Sun forum that deals with the issue[1]. Maybe this is a case for a new attribute for commandLink/commandButton? Sean [1] http://forum.java.sun.com/thread.jspa?threadID=490215messageID=2301780 On 7/31/06, Adam [EMAIL PROTECTED] wrote: Dear All, we are happily using tree2 the problem I have is to do with the scrolling. Is there anyway to tell the scrooling mechanism to scroll to a given node? i.e. we have a tree which is sufficiently large that it needs a scroll bar etc. When we add a new node, it is added to the end of the tree in some applications in a sorted position in others (e.g. the nodes are alphabetically sorted).his means that when a user clicks to add a new node, he has to scroll down to the end of what might be a large tree every time which can get to be a pain for those inserting data. I add a node as follows: Node XPNode = deb.addChildN(); String path = dtb.getpathToRoot(XPNode); dtb.tree.expandPath(dtb.tree.getPathInformation(path)); the node happily expands etc butthat in no way interacts with the scrolling. i..e the node is expanded but it's still off the page requires scrolling to get to it. So how do I (can I?) set the focus to the node added as above such that the scrolling mechanism takes the user to that node? TIA Adam
[tree2] Anyone using tree2 and hibernate?
I'm working on a full blown example of several technologies (including tomahawk and hibernate.) I haven't actually used tree2 with a dynamic model yet so I'm curious to test my own creation and see what's lacking. I will be going through the old dynamic tree2 discussions of course but I have some specific questions as it pertains to hibernate. So if anyone wants to share their tree2/hibernate experience please respond. TIA, Sean
Re: Tomahawk components
http://myfaces.apache.org/download.html Sean On 7/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Tomahawk components In which jar file are these components? Thanks for Your answer. Urs
Re: Tomahawk Maven2 oddity: 1.1.3 requires Shale and Struts1.2.8. Why?
The struts dependency is most likely for Struts Tiles integration. Yes this is why we have it. Hopefully one day it will be stand alone tiles. Sean
Re: Tree2 component in Version1.1.3 is not working
Do you have the extension filter hooked up properly? Check the wiki and/or the simple examples to see how this is done. Sean On 7/5/06, Kasturi Mudulodu [EMAIL PROTECTED] wrote: Hi, When I moved to the new version of Myfaces 1.1.3 (and Tomahawk), Tree2 component stopped working. I get a javascript error : A Runtime error has occurred. Do you wish to debug? Line 613: Object expected When I viewed the source, I noticed that the javascripts that Tree2 component requires got commented out. In addition, I see a stray SCRIPT -- on my screen. The script looks like this = !-- MYFACES JAVA script type=text/javascript src=/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11521155/tree2.HtmlTreeRenderer/javascript/tree.js!-- //--/script script type=text/javascript src=/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11521155/tree2.HtmlTreeRenderer/javascript/cookielib.js!-- //--/scriptSCRIPT -- == Instead it should like this !-- MYFACES JAVA SCRIPT -- script type=text/javascript src=/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11521155/tree2.HtmlTreeRenderer/javascript/tree.js!-- //--/script script type=text/javascript src=/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11521155/tree2.HtmlTreeRenderer/javascript/cookielib.js!-- //--/script == I tried the example which implements Tree2 (tree2.jsp and TreeBacker.java bean)and get the same error as well. Please find my jsp code, bean, view source and screen shot enclosed as attachments. How do I work around this problem? Is this a known bug that will be fixed ? Please help me with this. Regards, Kasturi Mudulodu, Sr Software Engineer, Senior Systems Inc.
Re: Tree2 component in Version1.1.3 is not working
There have been some important changes so check the wiki for details. I suspect you are no longer getting the javascript and that would be related to the extension filter not working. Sean On 7/5/06, Kasturi Mudulodu [EMAIL PROTECTED] wrote: Hi Sean, Thank you! My ExtensionsFilter is hooked up properly. I checked it again. Here are the entries from my web.xml. It used to work in previous version without any problems what so ever. What else could have changed in this version? !-- Faces Servlet -- servlet servlet-nameFacesServlet/servlet-name servlet-classcom.senior.servlet.SeniorFacesServlet/servlet-class load-on-startup1/load-on-startup /servlet filter filter-nameMyFacesExtensionsFilter/filter-name filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter- class init-param param-namemaxFileSize/param-name param-value20m/param-value descriptionSet the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB /description /init-param /filter !-- Filter Mappings -- filter-mapping filter-nameMyFacesExtensionsFilter/filter-name !-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -- servlet-nameFacesServlet/servlet-name /filter-mapping filter-mapping filter-nameMyFacesExtensionsFilter/filter-name url-pattern*.faces/url-pattern /filter-mapping -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 05, 2006 5:16 PM To: MyFaces Discussion Subject: Re: Tree2 component in Version1.1.3 is not working Do you have the extension filter hooked up properly? Check the wiki and/or the simple examples to see how this is done. Sean On 7/5/06, Kasturi Mudulodu [EMAIL PROTECTED] wrote: Hi, When I moved to the new version of Myfaces 1.1.3 (and Tomahawk), Tree2 component stopped working. I get a javascript error : A Runtime error has occurred. Do you wish to debug? Line 613: Object expected When I viewed the source, I noticed that the javascripts that Tree2 component requires got commented out. In addition, I see a stray SCRIPT -- on my screen. The script looks like this = !-- MYFACES JAVA script type=text/javascript src=/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.rende rkit.html.util.MyFacesResourceLoader/11521155/tree2.HtmlTreeRenderer/jav ascript/tree.js!-- //--/script script type=text/javascript src=/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.rende rkit.html.util.MyFacesResourceLoader/11521155/tree2.HtmlTreeRenderer/jav ascript/cookielib.js!-- //--/scriptSCRIPT -- == Instead it should like this !-- MYFACES JAVA SCRIPT -- script type=text/javascript src=/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.rende rkit.html.util.MyFacesResourceLoader/11521155/tree2.HtmlTreeRenderer/jav ascript/tree.js!-- //--/script script type=text/javascript src=/SeniorApps/faces/myFacesExtensionResource/org.apache.myfaces.rende rkit.html.util.MyFacesResourceLoader/11521155/tree2.HtmlTreeRenderer/jav ascript/cookielib.js!-- //--/script == I tried the example which implements Tree2 (tree2.jsp and TreeBacker.java bean)and get the same error as well. Please find my jsp code, bean, view source and screen shot enclosed as attachments. How do I work around this problem? Is this a known bug that will be fixed ? Please help me with this. Regards, Kasturi Mudulodu, Sr Software Engineer, Senior Systems Inc.
Re: Any myFaces presentations at ApacheCon US this year?
Matthias, Are you planning on another presentation again this year? Hopefully someone will be there to represent MyFaces. I'm hoping to attend but I probably won't have time to prepare a presentation. Sean On 6/26/06, David Chandler [EMAIL PROTECTED] wrote: Hello, Just wondering if there is any interest in myFaces at ApacheCon US in Oct. The Call for Papers (http://www.us.apachecon.com/html/cfp-form.html) doesn't seem to have a topic for it unless it's under the ASF umbrella? I've done some work on Internet banking software to secure myFaces against the oWASP Top Ten attacks (especially forced browsing prevention and paramter tampering / information hiding in menu options). Is anyone interested in meeting to discuss JSF security at ApacheConUS? David Chandler Java Web Developer
[OT] I'm Available For JSF/Shale Consulting Work
I'm currently available for JSF/Shale Consutling work if anyone is interested. Please email me off list if you would like to discuss. Sean ps. ASF is ok with messages of this sort as long as they are marked [OT]
Re: Unregistering temporarily from the list
Nope. Just unsubscribe. Or even better, just set up a rule to auto delete them and remove the rule when you are back. Sean On 6/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everybody, Sorry to post this here but I cannot find any information regarding this on the myfaces page. I'm going to be away from the office for a couple of weeks and want to stop receiving the mailing list's mail for that time. Is there a way to do so or should I unregister and then re-register? Thanks and sorry to post this here, Gregory
Re: Something Simple
I agree with the user who suggested facelets. Its working well for me so far. Sean On 6/21/06, CD [EMAIL PROTECTED] wrote: Troy, Another thought is to use components like panelGrids and whatnot that give you such an ability by virtue of what they do and how they do it. Keep in mind that I'm not claiming a silver bullet to all scenarios. I will say that I've seen/read/been told that avoiding html tags is generally a best practice approach. I do like the discussion though. Anyone else want to chime in and discuss this matter further? Regards, C. Dillon On 6/21/06, Julian Ray [EMAIL PROTECTED] wrote: If you are using tomahawx then t:htmlTag value=br / will work. Otherwise use f:verbatimbr//f:verbatim -Original Message- From: Troy Bull [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 4:33 PM To: MyFaces Discussion Subject: Re: Something Simple Ok, in the vein of avoiding HTML all together how do i do a /BR without html? Thanks troy CD said the following on 6/21/2006 2:17 PM: I also would recommend the stylesheet approach rather than the h2. In fact, avoiding HTML tags altogether would be in your best interest. On 6/21/06, *Clement, James* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: af:outputText styleClass=my-own-h2-from-my-css value=Welcome #{authedUser.firstName }/ *From:* CD [mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED]] *Sent:* Wednesday, June 21, 2006 3:10 PM *To:* MyFaces Discussion *Subject:* Re: Something Simple f:verbatim h2 /f:verbatim af:outputText value=Welcome #{authedUser.firstName}/ f:verbatim /h2 /f:verbatim On 6/21/06, *Troy Bull* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Greetings: I have an attribute in a backing bean and I want to display it in a jsp inline. I tried to use OutputText and it doesn't seem to work correctly. Here is what I want to do: f:verbatim h2Welcome #{authedUser.firstName}/h2 /f:verbatim This doesn't work. So I tried f:verbatim h2Welcome af:outputText value=#{authedUser.firstName} binding=#{backing_mainMenu.outputText1} id=outputText1//h2 /f:verbatim This doesnt work either. The first one prints out the #{authedUs..., the second one prints out the firstName but outside the h2 tag. Thanks troy
[tree2] Navigation Problem
The other day I was experiencing a problem using tree2 with command links navigation rules. I have since found a solution to the problem and added it to the wiki[1]. Just thought I would post here in case others have had similar issues. Maybe there is a better solution then what I came up with ??? Sean [1] http://wiki.apache.org/myfaces/Tree2
Re: source code for tomahawk 1.1.3
Its been fixed as of tomahawk 1.1.4. Why don't you just grab it from the SVN repository? Sean On 6/19/06, Costa Basil [EMAIL PROTECTED] wrote: Where can I find the source archive for tomahawk 1.1.3? I know you can find it for the nightly builds but I am interested to get it for tomahawk 1.1.3. I thought that you guys are going to fix this and provide the source code with each major realease. Thanks Share your photos with the people who matter at Yahoo! Canada Photos
Re: Deleting Nodes/Branch from Tree
@Andrew: What is the issue number? Sean On 6/17/06, Andrew Robinson [EMAIL PROTECTED] wrote: Rows state is by row index not row ID unfortunately (I sumbitted an issue on this). As a result you will have that issue. Best thing you can do is write a custom tree state object for your model or manually expand/collapse the paths when you add/remove nodes. BTW - You shouln't have to rebuild the branch, but simply remove the nodes you need to (unless you really need to rebuild the nodes for some reason). -Andrew On 6/17/06, Hughes, Stan [EMAIL PROTECTED] wrote: This may seem counter-productive to some, but, I need to be able to dynamically delete and rebuild a tree structure. The thing is, I need the data to always be real-time… So, given the tree following: A | A1 |A1.1 B How do I, when the user clicks the A node, delete everything beneath it so that I can rebuild it? I have tried various things, but, nothing seems to work. The only way I can see to do it is, HtmlTree tree = (HtmlTree) component; selectedNode = (TreeNodeBase) tree.getNode(); selectedNode.getChildren().removeAll(selectedNode.getChildren()); But, this does not work. When the tree is rebuilt, the nodes seem to keep the state of the node that previously occupied that position. Here is what happens: if the user selects A, then selects A1 (to expand them), and then collapses A by selecting it again, everything looks normal. But if he then selects A to expand it (again), the code is supposed to delete everything below A and rebuild the first level below A (like lazy loading). This appears to work also, but, A1, though it has been deleted and newly created, has the state of being expanded – forcing you to select it twice to expand it… Is there some way to COMPLETELY remove everything below a node? Or, is my description not clear enough of what is going on? Thanks for any help…
Re: InputSuggest (non-AJAX)
We kind of stopped work on it because it runs into trouble on IE with large data sets (renders really slow.) I don't have a need for a suggest control at the moment so I'm no longer working on it. I'll probably try to help with the ajax version when I get enough time again. Why not try modifying the existing source code so that you can make it work the way you want? It might be a good opportunity to learn more about JSF and open source in general. Just dive right in and you'll be suprised how fast you will be able to fix things yourself! Sean On 6/17/06, Dennis Gesker [EMAIL PROTECTED] wrote: Are there any plans for moving the non-AJAX inputSuggest from the sandbox into tomahawk? I gave the latest snapshot a try and this control is so close to being exactly what I need but there are properties that can't seem to be set (size, etc.). If there are no plans to promote this control could someone recommend another non-AJAX inputSuggest control? Dennis
Re: Force creation of managed bean
Maybe you should consider two features of Struts Shale: 1.) view controllers, 2.) remoting. This could give you what you want. At a minimum, you may want to steal some of the source code for your own custom solution if you want to go that route. Sean On 6/15/06, Julian Ray [EMAIL PROTECTED] wrote: Gregg, thats a good idea. I will have a shot at a wiki post. From: Gregg Bolinger [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 2:33 PM To: MyFaces Discussion; Julian Ray Subject: Re: Force creation of managed bean Julian, thanks a bunch for the code. Worked like a champ. This should be on the wiki. There is a jsffaq link in the conversation but it doesn't appear to work. Gregg On 6/15/06, Gregg Bolinger [EMAIL PROTECTED] wrote: I found the info. Thanks. Trying it out. On 6/15/06, Gregg Bolinger [EMAIL PROTECTED] wrote: This list or a forum? On 6/15/06, Julian Ray [EMAIL PROTECTED] wrote: I posted some code oin the forum which shows how to get the faces context from within a servlet. You might want to do a search and get take a look. - Original Message From: Gregg Bolinger [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Thursday, June 15, 2006 1:42:28 PM Subject: Re: Force creation of managed bean Ok, the problem with all this is that it's being done from within JSF driven code. I need to be able to do this from a plain jane servlet that just happens to exist along side all the JSF stuff, if possible. Either method listed thus far returns a null faces context from within the servlet. Thanks. On 6/15/06, octoberdan [EMAIL PROTECTED] wrote: I beleive... I may be wrong. -- View this message in context: http://www.nabble.com/Force-creation-of-managed-bean-t1792885.html#a4886098 Sent from the MyFaces - Users forum at Nabble.com.
Re: Are tomahawk sample codes still downloadable?
This is the official location: http://people.apache.org/builds/myfaces/nightly/ Matthias was pointing you to the maven repository which happens to have copies of the WAR files (for now.) You're better off pointing to the nightly dir. Sean On 6/12/06, Jim the Standing Bear [EMAIL PROTECTED] wrote: Thank you, Matthias. On 6/12/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Here it goes http://people.apache.org/builds/myfaces/nightly/tomahawk-sandbox-examples-1.1.4-SNAPSHOT.war a WAR with java sources inside of WEB-INF/src On 6/12/06, Jim the Standing Bear [EMAIL PROTECTED] wrote: Are the sample codes for using tomahawk still available for download? They used to be listed in the download page, but I cannot see them anymore. Thanks. -- Jim -- -- Standing Bear Has Spoken -- -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- -- Standing Bear Has Spoken --
Re: Are tomahawk sample codes still downloadable?
Sorry. Matthias is right. I saw the WAR file and thought it was the repos. There's actually a problem with the maven build there. It should be a tarball instead of a WAR file. @Catalin: Can we fix this in the trunk? Sean On 6/12/06, Sean Schofield [EMAIL PROTECTED] wrote: This is the official location: http://people.apache.org/builds/myfaces/nightly/ Matthias was pointing you to the maven repository which happens to have copies of the WAR files (for now.) You're better off pointing to the nightly dir. Sean On 6/12/06, Jim the Standing Bear [EMAIL PROTECTED] wrote: Thank you, Matthias. On 6/12/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Here it goes http://people.apache.org/builds/myfaces/nightly/tomahawk-sandbox-examples-1.1.4-SNAPSHOT.war a WAR with java sources inside of WEB-INF/src On 6/12/06, Jim the Standing Bear [EMAIL PROTECTED] wrote: Are the sample codes for using tomahawk still available for download? They used to be listed in the download page, but I cannot see them anymore. Thanks. -- Jim -- -- Standing Bear Has Spoken -- -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- -- Standing Bear Has Spoken --
Re: Tomahawk Schedule WORKWEEK Problem
If you think this is a bug, please submit an issue in JIRA. See our website for details on bug reporting. Sean On 6/9/06, Jason Long [EMAIL PROTECTED] wrote: Anyone else having this problem? Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com HJBUG Founder and President http://www.hjbug.com From: Jason Long [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 10:55 AM To: 'MyFaces Discussion' Subject: Tomahawk Schedule WORKWEEK Problem I am using MyFaces 1.1.4 Snapshot and Tomahawk 1.1.4 Snapshot. I am experimenting with the schedule component. When I set mode to SimpleScheduleModel.WORKWEEK the calendar does not display. All other modes seem to work. Is there some additional setup required for this mode? Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com HJBUG Founder and President http://www.hjbug.com
Re: How does DefaultTreeModel and HtmlTree relate?
There are a lot of users here who have done dynamic tree models without subclassing tree. Take a look at some of the archive posts on dynamic trees for some ideas. I haven't done it myself so I'm not the best person to comment on that. Sean On 6/8/06, Todd Patrick [EMAIL PROTECTED] wrote: Sean: The big reason is I have a third-party method that returns a list of *any number* of transactions, it could 4 or 30: Transaction 1 Transaction 2 Transaction 3 Transaction 4 Not knowing the number or the number of transactions always changes is the challenge. The other change is each Transaction has *any number* of child transactions. Transaction 1 |_ Child Transaction 1 |_ Child Transaction 1 Transaction 2 |_ Child Transaction 2 Transaction 3 |_ Child Transaction 3 |_ Child Transaction 3 |_ Child Transaction 3 Transaction 4 |_ Child Transaction 4 Thus, I need to dynamically create the list of transactions and when I click on a transaction I need to figure out how to run an event that gets the child transaction. When I click on the child transaction, I need to get it's child as well... That's why a lack of documentation had me pulling my hair out at first. I am slowly figuring out a solution... Thanks, --Todd -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 6:20 PM To: MyFaces Discussion Subject: Re: How does DefaultTreeModel and HtmlTree relate? Just out of curiosity, why are you creating an HtmlTree in java code? Normally you would just use the JSP tags and backing beans or extend one of the classes. Creating it directly seems strange but I'm sure you have your reasons. Sean On 6/7/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Ok, you can post it here before. but wiki has also *notification* mails, when sb. addes content to it. Sounds good to me. Looking forward to see your work. -Matthias On 6/7/06, Todd Patrick [EMAIL PROTECTED] wrote: Matthias: Already ahead of you on that. I'm documenting as I develop and learn all about the HtmlTree. I really didn't mean to complain, (Sorry, I guess I did...) - it's just important that information on how to use *ALL* of MyFaces is available. Not just Hello World crap. My $.02 Anyways, I'll submit my documentation here first before I post it too the WIKI. Thanks, --Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Wednesday, June 07, 2006 4:53 PM To: MyFaces Discussion Subject: Re: How does DefaultTreeModel and HtmlTree relate? Todd- cool that you figured out how things are working. since you complain about lack of documentation, I'd like to ask you to help out in this area. Can you go ahead an create some documentation in our wiki ? Thanks, Matthias On 6/7/06, Todd Patrick [EMAIL PROTECTED] wrote: Ok, I think this would work: HtmlTree tree = (HtmlTree) application.createComponent(HtmlTree.COMPONENT_TYPE); tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html. Html TreeRenderer); tree.setId(tree); ValueBinding vb = application.createValueBinding(#{tbrowser.treeModel}); tree.setValueBinding(value, vb); tree.setVar(treeItem); tree.setStyleClass(tree); tree.setNodeClass(treenode); tree.setRowClasses(a, b); tree.setColumnClasses(col1, col12); tree.setSelectedNodeClass(treenodeSelected); And my getter is still valid. public DefaultTreeModel getTreeModel() { return treeModel; } Thanks, --Todd From: Todd Patrick Sent: Wednesday, June 07, 2006 4:38 PM To: 'MyFaces Discussion' Subject: How does DefaultTreeModel and HtmlTree relate? I've created a HtmlTree in Java code: HtmlTree tree = (HtmlTree) application.createComponent(HtmlTree.COMPONENT_TYPE); tree.setRendererType(org.apache.myfaces.custom.tree.renderkit.html. Html TreeRenderer); tree.setId(tree); tree.setVar(treeItem); tree.setStyleClass(tree); tree.setNodeClass(treenode); tree.setRowClasses(a, b); tree.setColumnClasses(col1, col12); tree.setSelectedNodeClass(treenodeSelected); How do I apply the DefaultTreeModel that I am returning from a getter? public DefaultTreeModel getTreeModel() { return treeModel; } I know that the getter does return a valid DefaultTreeModel object. How does DefaultTreeModel and HtmlTree relate? Thanks, --Todd -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http
Re: Re: SERIOUS BUG!!!!!!! Re: commandLinks don't work on Tomcat 5.5.17
It's only available in the nightly builds currently - on the next release, it will be there again! Technically it will be in the release *after* the next release. The next release should be Monday (if all goes well.) No examples in that one but the SVN trunk already has the code for the next release after that (1.1.4). Sean
Re: SERIOUS BUG!!!!!!! Re: commandLinks don't work on Tomcat 5.5.17
OK this sounds like it might be a bug. Please report in JIRA as Jeff suggested. Please also test against Tomahawk 1.1.3 SNAPSHOT in the nightly dir. This is basically a release candidate for the upcoming release. If that works then we know the problem is in MyFaces core (since its working fine with version 1.1.2 of the core for me.) Sean On 6/7/06, Mike Duffy [EMAIL PROTECTED] wrote: I am using myfaces-api-1.1.4-SNAPSHOT.jar, myfaces-impl-1.1.4-SNAPSHOT.jar, and tomahawk-1.1.2.jar or tomahawk-1.1.4-SNAPSHOT.jar. If I use the tomahawk.jar that comes with the simple application, the commandLinkworks fine. If I substitute tomahawk-1.1.4-SNAPSHOT.jar into the simple.war app, the commandLinks in that app fail. I also get an erro on startup: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper I think there is a bug. Mike --- Murray Brandon [EMAIL PROTECTED] wrote: Do you have a properly resolved processAction method on your bean? If you don't have this properly resolving, you will not get a commandLink rendering, (just text? cant remember). I find it difficult to believe commandLink has a bug all of a sudden. It's such a simple component and it works fine on my Tomcat 5.5.15 (which I use for testing cos it's so blindingly fast). Which version of Myfaces? The latest? Are you using a nightly build? Let me know what you find. Your bean must implement: ie. public void processAction(ActionEvent e) throws AbortProcessingException An example of my commandLink is below (am using the superb facelets too, but you get the gist): h:commandLink actionListener=#{mybean.processAction} disabled=#{disabled} type=submit rendered=#{rendered} c:if test=${not empty imageUrl and empty mouseoverImageUrl} t:graphicImage value=${imageUrl} styleClass=noborder / /c:if c:if test=${not empty imageUrl and not empty mouseoverImageUrl} t:graphicImage value=${imageUrl} styleClass=noborder onmouseover=auiChangeImage(this,'${mouseoverImageUrl}') onmouseout=auiChangeImage(this,'${imageUrl}') / /c:if c:if test=${not empty text} h:outputText value=${text} / /c:if /h:commandLink Mike Duffy wrote: This did not work for me. The fact that the command link does not work is a SERIOUS BUG in MyFaces. Any suggestions on the best way to report this bug? Mike --- Garner Shawn [EMAIL PROTECTED] wrote: I got my commandLinks to work by adding the JSP-API.jar that came with facelets to my /web-inf/lib directory instead of the one in the tomcat/commons/lib directory. However this gives me another problem where my JSP forward isn't working. Seems to be some incompatibilty somewhere. I'm getting fed up and am going to back to Struts real soon. Shawn __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Missing myfaces-X.X.X-examples.zip
Yes. The 1.1.4 release will have this (thanks to Catalin) but not the upcoming 1.1.3 release. Sean On 6/7/06, Martin Marinschek [EMAIL PROTECTED] wrote: What we should do is release the examples - right? regards, Martin On 6/6/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: I created a jira ticket for this task: http://issues.apache.org/jira/browse/MYFACES-1324 -Matthias On 6/6/06, David Van Stone [EMAIL PROTECTED] wrote: Thanks, Todd! I found examples for MyFaces 1.1.3 under Tomahawk (who knew?): http://svn.apache.org/repos/asf/myfaces/tomahawk/branches/1_1_3/examples/ I used the blank directory and succeeded in making a Hello World JSF application under Weblogic 9.1. My recommendation to the MyFaces web folks is to update the Getting Started section. It's *not* clear at all where the examples can be found. Having just this blank example (which has the key information in web.xml) would be a helpful addition outside of Tomahawk. Thanks for the help, and I'm sure I'll be writing in again later with more question! David Van Stone -- View this message in context: http://www.nabble.com/RE%3A-Missing-myfaces-X.X.X-examples.zip-t1737930.html#a4736223 Sent from the MyFaces - Users forum at Nabble.com. -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: question regarding html Tree dependencies
Not many users on this list are using the original tree these days. Most seem to be using the new tree2. You will probably get more answers to your questions if you switch. From your stacktrace it looks like your problem is a class cast exception as opposed to a missing library (Class not found) problem. Sean On 6/7/06, Jim the Standing Bear [EMAIL PROTECTED] wrote: Hi, I am new to myfaces and JSF. I am trying to create a webapp using the html tree, but it would give me the following exception. Before, it worked because the code was written using the namespace org.apache.myfaces.examples.tree . but now I have refactored them to a different namespace (my.jsf) and got rid of some junk which I think we didn't need (apparently i was wrong), and problems started to emerge. Could someone give me a 101 lesson on what the dependencies are for the myfaces html tree? Also what does this exception try to say? Thanks! Here are the jars I have in my WEB-INF/lib commons-beanutils-1.6.1.jar commons-codec-1.2.jar commons-collections-3.0.jar commons-digester-1.5.jar commons-discovery.jar commons-el.jar commons-fileupload-1.0.jar commons-logging.jar commons-validator.jar jakarta-oro-2.0.8.jar myfaces.jar (I am still using an old version of myfaces, before it is separated into myfaces-core and tomahawk) my-publish.jar (this is my compile) servlet-2.3-jsp-1.2.jar struts.jar wsif.jar Here is the exception MyTreeModel getTreeModelListeners - Servlet.service() for servlet jsp threw exception java.lang.ClassCastException: my.jsf.MyTreeModel at org.apache.myfaces.custom.tree.taglib.TreeSelectionListenerTag.doStartTag (TreeSelectionListenerTag.java:92) at org.apache.jsp.tree2_jsp._jspx_meth_x_treeSelectionListener_0(org.apache.jsp.tree2_jsp:1294) at org.apache.jsp.tree2_jsp._jspx_meth_x_tree_0(org.apache.jsp.tree2_jsp:1268) at org.apache.jsp.tree2_jsp._jspx_meth_h_panelGroup_1(org.apache.jsp.tree2_jsp:1230) at org.apache.jsp.tree2_jsp._jspx_meth_f_facet_1(org.apache.jsp.tree2_jsp:1194) at org.apache.jsp.tree2_jsp._jspx_meth_x_panelLayout_0 (org.apache.jsp.tree2_jsp:1161) at org.apache.jsp.tree2_jsp._jspx_meth_h_panelGrid_7(org.apache.jsp.tree2_jsp:1124) at org.apache.jsp.tree2_jsp._jspx_meth_h_panelGrid_5(org.apache.jsp.tree2_jsp:1024) at org.apache.jsp.tree2_jsp._jspx_meth_h_panelGrid_4 (org.apache.jsp.tree2_jsp:973) at org.apache.jsp.tree2_jsp._jspx_meth_h_panelGrid_2(org.apache.jsp.tree2_jsp:783) at org.apache.jsp.tree2_jsp._jspx_meth_h_panelGrid_0(org.apache.jsp.tree2_jsp:360) at org.apache.jsp.tree2_jsp._jspx_meth_h_form_0 (org.apache.jsp.tree2_jsp:312) at org.apache.jsp.tree2_jsp._jspx_meth_f_view_0(org.apache.jsp.tree2_jsp:252) at org.apache.jsp.tree2_jsp._jspService(org.apache.jsp.tree2_jsp:209) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward (ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:405) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java :283) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:303) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:113) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java :112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at
Re: question regarding html Tree dependencies
137: x:treeSelectionListener type=#{MyTreeModel}/ 138: x:iconProvider type=#{MyTreeModel}/ These are value bindings. You need getters in your backing bean that return the appropriate String values. Then you use something like x:iconProvider type=#{SomeBean.getModelType}/ Those were defined in the config.xml as managed-bean managed-bean-nameMyTreeModel/managed-bean-name managed-bean-classmy.jsf.MyTreeModel/managed-bean-class managed-bean-scopesession/managed-bean-scope /managed-bean but as soon as I changed the jsp to 137: x:treeSelectionListener type=my.jsf.MyTreeModel/ 138: x:iconProvider type=my.jsf.MyTreeModel/ it started to work. So can someone tell me why this is the case? Thanks. Basically you supplied a hard-coded String value which is probably what you wanted all along. The value binding needs to evaluate to a String and you weren't providing a method that did that. Sean
Re: SERIOUS BUG!!!!!!! Re: commandLinks don't work on Tomcat 5.5.17
I'm using commandLinks in TC 5.5 right now. Try deploying the simple examples to a default TC 5.5 install. You will find that the commandLinks work (at least some of them.) Sean On 6/6/06, Murray Brandon [EMAIL PROTECTED] wrote: Do you have a properly resolved processAction method on your bean? If you don't have this properly resolving, you will not get a commandLink rendering, (just text? cant remember). I find it difficult to believe commandLink has a bug all of a sudden. It's such a simple component and it works fine on my Tomcat 5.5.15 (which I use for testing cos it's so blindingly fast). Which version of Myfaces? The latest? Are you using a nightly build? Let me know what you find. Your bean must implement: ie. public void processAction(ActionEvent e) throws AbortProcessingException An example of my commandLink is below (am using the superb facelets too, but you get the gist): h:commandLink actionListener=#{mybean.processAction} disabled=#{disabled} type=submit rendered=#{rendered} c:if test=${not empty imageUrl and empty mouseoverImageUrl} t:graphicImage value=${imageUrl} styleClass=noborder / /c:if c:if test=${not empty imageUrl and not empty mouseoverImageUrl} t:graphicImage value=${imageUrl} styleClass=noborder onmouseover=auiChangeImage(this,'${mouseoverImageUrl}') onmouseout=auiChangeImage(this,'${imageUrl}') / /c:if c:if test=${not empty text} h:outputText value=${text} / /c:if /h:commandLink Mike Duffy wrote: This did not work for me. The fact that the command link does not work is a SERIOUS BUG in MyFaces. Any suggestions on the best way to report this bug? Mike --- Garner Shawn [EMAIL PROTECTED] wrote: I got my commandLinks to work by adding the JSP-API.jar that came with facelets to my /web-inf/lib directory instead of the one in the tomcat/commons/lib directory. However this gives me another problem where my JSP forward isn't working. Seems to be some incompatibilty somewhere. I'm getting fed up and am going to back to Struts real soon. Shawn __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Where is the TreeItem Javadoc?
There is a new Tomahawk coming out shortly. *After* this release all future releases will also have an examples release which includes the full source. Since everything is available in subversion it hasn't been a big priority up until now. Sean On 6/5/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: Well, this class is pretty simple. It is a pojo, not more. So tree (aka tree1) doesn't need it. It is up to you. You can also use treeItem inside of your code. It's up to you. Tree2 has a *different* concept, so an interface like TreeNode is there. But it's also up to you to use one of the default impls or create your own. -Matthias On 6/5/06, Todd Patrick [EMAIL PROTECTED] wrote: Matthias: I really don't want to sound like I'm whining, but how are we suppose to use this? It caught me off guard that the example contains objects that aren't defined in the MyFaces Tomahawk Core. IMO: This isn't developer friendly by any means. When I downloaded the MyFaces Tomahawk Core 1.1.2, I would had thought that the examples would be in line with the Core. Thanks, --Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Monday, June 05, 2006 10:04 AM To: MyFaces Discussion Subject: Re: Where is the TreeItem Javadoc? Hey, since TreeItem,java is not part of MyFaces Tomahawk Core It was introduced *into* the EXAMPLE application here the SRC goes http://tinyurl.com/zpygz BTW. Tree2 has some thing like that TreeNode (an interface...) with two impls of that Interface HTH, Matthias On 6/5/06, Todd Patrick [EMAIL PROTECTED] wrote: Great. There isn't a TreeItem, so this example for TreeTable is absolutely worthless. When I added: TreeItem item = new TreeItem(); TreeItem wasn't found in MyFaces Tomahawk 1.1.2. This is frustrating... --Todd From: Todd Patrick [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 9:26 AM To: MyFaces Discussion Subject: Where is the TreeItem Javadoc? In the example: /org/apache/myfaces/examples/listexample/TreeTable.java There is the following: DefaultMutableTreeNode root = new DefaultMutableTreeNode(new TreeItem(1, XY, 9001, XY 9001)); DefaultMutableTreeNode a = new DefaultMutableTreeNode(new TreeItem(2, A, 9001, A 9001)); root.insert(a); DefaultMutableTreeNode b = new DefaultMutableTreeNode(new TreeItem(3, B, 9001, B 9001)); root.insert(b); DefaultMutableTreeNode c = new DefaultMutableTreeNode(new TreeItem(4, C, 9001, C 9001)); root.insert(c); Where is the TreeItem Javadoc on http://myfaces.apache.org/tomahawk/apidocs/index.html? I've looked without success. Thanks, --Todd -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com -- Matthias Wessendorf Aechterhoek 18 48282 Emsdetten blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
[ANNOUNCE] Nightly Sandbox Builds Available
Due to popular demand, the sandbox core is now available in the nightly builds directory[1]. Both source and binary distributions are available. We also hope to have an examples distribution for sandbox shortly. The MyFaces Team [1] http://people.apache.org/builds/myfaces/nightly/
Re: source code for myfaces core 1.1.3 and tomahawk 1.1.2
There are some good reasons for not doing this. It was discussed extensively on the dev list for several months so I won't rehash the entire discussion here. These classes need to be shared between core and tomahawk since we don't want two maintain sets of source code. They need to have different namespaces so that tomahawk and core can be released independently of one another. Sean On 6/2/06, Costa Basil [EMAIL PROTECTED] wrote: I think it would be better if the shared classes are distributed in a separate jar file to avoid the class duplication. It is confusing the way it is right now having the same classes in two separate distribution jar files. Matthias Wessendorf [EMAIL PROTECTED] wrote: Now, I noticed there is a package that I couldn't find in the source code and that is org.apache.myfaces.shared_tomahawk. What's going on, why is this package missing? Is it actually built by the build process? If yes, could you please provide the information on how to create it? Good question. I created [1] today. If it is not clear enough, please ask and I'll add more content to it! -Matthias [1] http://wiki.apache.org/myfaces/Shared_-_impl_or_tomahawk __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [tree2] Re: Get selected node with getNode()
I understand that its no longer there. I was trying to give you an alternate way to do what you want. getNode() is not coming back so you will need to adapt. Reread my last answer again. Basically you use the binding attribute of tree2 to bind a reference to the tree to your backing bean. (The binding attribute is common to most components and this strategy is described in lots of JSF books.) Once you have a reference to the tree in your backing bean, your selectedNode() method can just ask the tree what the current node is. Sean On 5/30/06, Daniel Haensse [EMAIL PROTECTED] wrote: Hi Sean, thanks for the quick reply. I don't understand your answer :-( My problem is that getNode() does not exist anymore in class TreeModelBase. Eclipse claims that The method getNode() is undefined for the type TreeModelBase in the line this.selectedNode = this._treeModel.getNode(); (see class abstract below) Before the update of the tomahawk library everything worked fine :-( When I dig in the source code repository of the tree2 implementation, I can see that TreeModelBase has no getNode() function. old code worked fine before update: public class MainScreenView { private TreeModelBase _treeModel = null; private TreeNode selectedNode; public TreeModel getTreeData() { // Create tree if TreeModel is null if (_treeModel == null) { ... create tree } return _treeModel; } public String selectedNode() { this.selectedNode = this._treeModel.getNode(); return (main); } } t:tree2 id=serverTree value=#{mainScreenView.treeData} var=node varNodeToggler=t clientSideToggle=false f:facet name=location-folder h:panelGroup h:commandLink immediate=true actionListener=#{t.setNodeSelected} action=#{mainScreenView.selectedNode} ... rendered elements removed /h:commandLink /h:panelGroup /f:facet regards Dani
Re: Sandbox download..
Sandbox stuff is considered experimental. You should post a new message with a subject describing your problem so people can try to help you.SeanOn 5/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks. Unfortunately I was hoping that just plugging in the new jar would keep my InputSuggestAjax working. No such luck. The suggest method is not even being called whereas other items on the page are being refreshed on every character I enter. Not nice... Jean pokkie [EMAIL PROTECTED] 31/05/2006 14:03 Please respond to MyFaces Discussion users@myfaces.apache.org To users@myfaces.apache.org cc Subject Re: Sandbox download.. http://people.apache.org/maven-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk-sandbox/ -- View this message in context: http://www.nabble.com/Sandbox+download..-t1709464.html#a4643091 Sent from the MyFaces - Users forum at Nabble.com.
Re: Alternative to tree2
Tree2 basically can do everything but #5. With some work I'm sure #5 would be possible although I can't say that I would find it very useful. You would need a submit button to tell the tree component that you are done selecting. Otherwise how would the component handle your selections? Seems awkward. Sean On 5/29/06, Hans Sowa [EMAIL PROTECTED] wrote: So, I always get an error-message If I try to send to [EMAIL PROTECTED] This is my last try: Hi Andrew Here are the points which I hade/have problems: 1) The possibility to close the whole tree. 2) The possibility to open a certain path. 3) If the tree is created the first time we would like to open the first level. 4) The possiblity to close the last path if the user opens an other path. (This means only one path should open at any time and all other paths should be closed). 5) Multiselect should work. (Maybe with checkboxes). 6) The created HTML code should be as small as possible. (I don't think if this is really possible but it is not so important for me yet). The really important thinks for me are 1,2, 3 and 4. Becuase of 5) I think this should work with checkboxes without any problems but I had not try it so far. Because of 6) The created HTML Code is really to much. I saw a .NET Tree from a colleague and the created code are really small. So it would be great if the tree2 could make a diet for the future. So, it would be great if I could help for this items. Thanks in advance. best regards Hans On 5/26/06, Andrew Robinson [EMAIL PROTECTED] wrote: A good thought, but not always very practical. If there are a lot of visible nodes, and the visible nodes have a lot of children, the performance would be really bad. With the work Jacob and others are doing on the Avatar front, an AJAX request to get the nodes could take milliseconds, so the user wouldn't really notice it. Perhaps we can make sure that someone could extend the tree and do this if they want under specific circumstances where they know it would work. -Andrew On 5/25/06, Sean Schofield [EMAIL PROTECTED] wrote: Here's something to think about in your free time. I was thinking that all nodes one level below all visible closed nodes should be buffered and made visible instanly via DHTML. Then an AJAX request goes out and creates a buffer for the nodes below the one you just opened. It should be as fast as client side toggle that way but without the overhead of tens of thousands of nodes in your DOM that never get shown anyways. Sean On 5/25/06, Andrew Robinson [EMAIL PROTECTED] wrote: Will do, just may be a month or two before I have time for some open source development. On 5/25/06, Sean Schofield [EMAIL PROTECTED] wrote: I'm definitely interested in adding AJAX support to tree2. Perhaps you would like to help me with it? As a starting point you should familiarize yourself with the realtively new TreeWalker stuff if you are not already. My thinking with the TreeWalker is that it will ultimately be easier to render a portion of the Tree during AJAX requests b/c you can specify a start and end point, etc. Let me know how serious you are about helping and I can make some time for it. Sean On 5/25/06, Andrew Robinson [EMAIL PROTECTED] wrote: I have used AjaxAnywhere and put a aa:zoneJSF tag around the tree. With the Ajax4Jsf library getting some press, it would be interesting to see how to make tree2 have AJAX support built in, or to create a new tree component that extends or is similar to tree2 that would support AJAX natively. I have avoided non-JSF AJAX solutions (like DOJO integration?) as I want the full JSF lifecycle (no hacks) and AjaxAnywhere supports it (and it looks from the website that Ajax4Jsf does as well - and does it better). Who knows, maybe we can scrounge up a team of volunteers to integrate Ajax4Jsf into some new Tomahawk and/or Sandbox components. Once I get some of the projects I am working on, on the side, done I may be interested in looking into this (too bad writing open source code doesn't pay well - or at all). -Andrew PS - I think we need a tax amendment in the US to get tax breaks for open source development On 5/25/06, Vesa Lindfors [EMAIL PROTECTED] wrote: We have also used tree2 successfully, with more or less similar requirements - but only for small trees (100 nodes) In the near future we will also need tree for quite large amount of data ( 10 000 nodes). Andrew, it would be very usefully, if you could share some of your knowledge of combining the tree2 and Ajax... Or is there any known plans to add ajax support directly to the MyFaces tree2 component? ---VLi--- On 5/24/06, Andrew Robinson [EMAIL PROTECTED] wrote: What is the problem(s) with tree2? I
[tree2] Re: Get selected node with getNode()
Store a reference to your tree in your backing bean with: t:tree2 id=foo ... binding=#{treeBacker.tree} Then in your action method you have public String selectedNode() { this.selectedNode = tree.getNode(); return(main); } The tree always knows the current node when processing an event (much like a data table knows the current row.) Sean On 5/27/06, Daniel Haensse [EMAIL PROTECTED] wrote: Dear list, with tomahawk 1.1.2 in tree2 the getNode() member function is no longer implemented in the class TreeModelBase. Is their a work around, I would like to get the user selected item of the tree, currently I placed a action=#{mainScreenView.selectedNode} as commandLink on each item. Then I catch the action with public String selectedNode() { this.selectedNode = this._treeModel.getNode(); return(main); } Any hints? Why was this removed? best regards Dani
Re: forceId not supported in Tobago?
@Volker: Please see the myfaces archives for some lengthy discussions on why forceId is necessary for many developers (some of those reasons have been mentioned in this thread already.) Maybe we won't support it in Tobago but that doesn't mean that its not a good idea. Sean On 5/25/06, John [EMAIL PROTECTED] wrote: Then if forceId is not supported, how do you use pre-existing javascript methods that need to be passed an id, since the html Ids are dynamically generated and fully qualified. -Original Message- From: Volker Weber [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 8:28 AM To: MyFaces Discussion Subject: Re: forceId not supported in Tobago? Just another reason to avoid the IE ;-) There is no need for css things in tobago, the theming does this for you. Regards, Volker Jeff Bischoff wrote: because you can't escape the ':' symbol in IE CSS. So you run into trouble with CSS, and potentially make things harder in javascript too. Volker Weber wrote: Hi John, yes, thats correct. And i still can't see any good reason to need it. What is the problem having fully-qualified ids in generated html? You have still full controll over the generated ids by assigning a id to each namingContainer component tag. Tobago tags with UIComponents implementing NamingContainer are: sheet, form, page, popup, tree and treeListbox. IMHO using forceId will introduce more problems than it solves. Regards, Volker John wrote: Is this correct - has some other method been chosen to ensure that ids are not fully-qualified in the generated HTML? John -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.
Re: Alternative to tree2
I'm definitely interested in adding AJAX support to tree2. Perhaps you would like to help me with it? As a starting point you should familiarize yourself with the realtively new TreeWalker stuff if you are not already. My thinking with the TreeWalker is that it will ultimately be easier to render a portion of the Tree during AJAX requests b/c you can specify a start and end point, etc. Let me know how serious you are about helping and I can make some time for it. Sean On 5/25/06, Andrew Robinson [EMAIL PROTECTED] wrote: I have used AjaxAnywhere and put a aa:zoneJSF tag around the tree. With the Ajax4Jsf library getting some press, it would be interesting to see how to make tree2 have AJAX support built in, or to create a new tree component that extends or is similar to tree2 that would support AJAX natively. I have avoided non-JSF AJAX solutions (like DOJO integration?) as I want the full JSF lifecycle (no hacks) and AjaxAnywhere supports it (and it looks from the website that Ajax4Jsf does as well - and does it better). Who knows, maybe we can scrounge up a team of volunteers to integrate Ajax4Jsf into some new Tomahawk and/or Sandbox components. Once I get some of the projects I am working on, on the side, done I may be interested in looking into this (too bad writing open source code doesn't pay well - or at all). -Andrew PS - I think we need a tax amendment in the US to get tax breaks for open source development On 5/25/06, Vesa Lindfors [EMAIL PROTECTED] wrote: We have also used tree2 successfully, with more or less similar requirements - but only for small trees (100 nodes) In the near future we will also need tree for quite large amount of data ( 10 000 nodes). Andrew, it would be very usefully, if you could share some of your knowledge of combining the tree2 and Ajax... Or is there any known plans to add ajax support directly to the MyFaces tree2 component? ---VLi--- On 5/24/06, Andrew Robinson [EMAIL PROTECTED] wrote: What is the problem(s) with tree2? I have been using it with the functionality you requested. The only I find myself doing is using server side nodes most of the time (with AJAX, as I have trees with 100,000 nodes), and I usually create custom tree models and custom tree nodes as the Base ones don't ever have what I need. Perhaps we can help you through your tree2 problems? -Andrew On 5/24/06, Hansjörg Meuschel [EMAIL PROTECTED] wrote: Hi you could take a look at http://www.ourfaces.net or http://www.jamesholmes.com/JavaServerFaces/#software-comp (a list of jsf comp.) I'm not sure if there is a tree meeting your requirements ... maybe this helps... greets hans Hans Sowa wrote: Hi all We had a lot of problems with the tree2 component and we search now for an alternative. The tree component is the most important component in our webapplication and therefore this is a big risk in our application. Following behaviour to we need: - The possibility to klick on every node and to be able to react (ActionListener). - The possibility to show graphics on the right side of the node. - The possibility to close the whole tree. - The possibility to open a certain path. - The possiblity to close the last path if the user opens an other path. (This means only one path should open at any time and all other paths should be closed). - Multiselect should work. (Maybe with checkboxes). - The created HTML code should be as small as possible. - If the tree is created the first time we would like to open the first level. It would be great if someone has experience with an other tree component and could help me. Thanks in advance. -- mfg Hans Sowa mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: Maven Repo with 1.1.3?
See the archives from a day or two where the ibiblio repository is discussed. Short answer: we're working on it.SeanOn 5/25/06, Adam Brod [EMAIL PROTECTED] wrote: Hi- Do I have something configured wrong? I don't see MyFaces 1.1.3 on the standard ibiblio maven repository. I tried browsing the repository and I only see version 1.1.2: http://www.ibiblio.org/maven2/org/apache/myfaces/core/myfaces-api/ Here's what's in my pom file. dependency groupId org.apache.myfaces.core/groupId artifactId myfaces-api/artifactId version 1.1.2/version scope compile/scope /dependency dependency groupId org.apache.myfaces.core/groupId artifactId myfaces-impl/artifactId version 1.1.2/version scope compile/scope /dependency Any ideas? Adam Brod Product Development Team John [EMAIL PROTECTED] 05/25/2006 03:34 PM Please respond to MyFaces Discussion users@myfaces.apache.org To users@myfaces.apache.org cc Subject Tobago sheets don't gridLayout with other components? It seems that sheets don't participate in a gridLayout like normal components. When a sheet is involved (even when wrapped in a cell), it seems to break the gridLayout and the components (including the sheet) are layed out as if no layout existed. John Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: Alternative to tree2
Here's something to think about in your free time. I was thinking that all nodes one level below all visible closed nodes should be buffered and made visible instanly via DHTML. Then an AJAX request goes out and creates a buffer for the nodes below the one you just opened. It should be as fast as client side toggle that way but without the overhead of tens of thousands of nodes in your DOM that never get shown anyways. Sean On 5/25/06, Andrew Robinson [EMAIL PROTECTED] wrote: Will do, just may be a month or two before I have time for some open source development. On 5/25/06, Sean Schofield [EMAIL PROTECTED] wrote: I'm definitely interested in adding AJAX support to tree2. Perhaps you would like to help me with it? As a starting point you should familiarize yourself with the realtively new TreeWalker stuff if you are not already. My thinking with the TreeWalker is that it will ultimately be easier to render a portion of the Tree during AJAX requests b/c you can specify a start and end point, etc. Let me know how serious you are about helping and I can make some time for it. Sean On 5/25/06, Andrew Robinson [EMAIL PROTECTED] wrote: I have used AjaxAnywhere and put a aa:zoneJSF tag around the tree. With the Ajax4Jsf library getting some press, it would be interesting to see how to make tree2 have AJAX support built in, or to create a new tree component that extends or is similar to tree2 that would support AJAX natively. I have avoided non-JSF AJAX solutions (like DOJO integration?) as I want the full JSF lifecycle (no hacks) and AjaxAnywhere supports it (and it looks from the website that Ajax4Jsf does as well - and does it better). Who knows, maybe we can scrounge up a team of volunteers to integrate Ajax4Jsf into some new Tomahawk and/or Sandbox components. Once I get some of the projects I am working on, on the side, done I may be interested in looking into this (too bad writing open source code doesn't pay well - or at all). -Andrew PS - I think we need a tax amendment in the US to get tax breaks for open source development On 5/25/06, Vesa Lindfors [EMAIL PROTECTED] wrote: We have also used tree2 successfully, with more or less similar requirements - but only for small trees (100 nodes) In the near future we will also need tree for quite large amount of data ( 10 000 nodes). Andrew, it would be very usefully, if you could share some of your knowledge of combining the tree2 and Ajax... Or is there any known plans to add ajax support directly to the MyFaces tree2 component? ---VLi--- On 5/24/06, Andrew Robinson [EMAIL PROTECTED] wrote: What is the problem(s) with tree2? I have been using it with the functionality you requested. The only I find myself doing is using server side nodes most of the time (with AJAX, as I have trees with 100,000 nodes), and I usually create custom tree models and custom tree nodes as the Base ones don't ever have what I need. Perhaps we can help you through your tree2 problems? -Andrew On 5/24/06, Hansjörg Meuschel [EMAIL PROTECTED] wrote: Hi you could take a look at http://www.ourfaces.net or http://www.jamesholmes.com/JavaServerFaces/#software-comp (a list of jsf comp.) I'm not sure if there is a tree meeting your requirements ... maybe this helps... greets hans Hans Sowa wrote: Hi all We had a lot of problems with the tree2 component and we search now for an alternative. The tree component is the most important component in our webapplication and therefore this is a big risk in our application. Following behaviour to we need: - The possibility to klick on every node and to be able to react (ActionListener). - The possibility to show graphics on the right side of the node. - The possibility to close the whole tree. - The possibility to open a certain path. - The possiblity to close the last path if the user opens an other path. (This means only one path should open at any time and all other paths should be closed). - Multiselect should work. (Maybe with checkboxes). - The created HTML code should be as small as possible. - If the tree is created the first time we would like to open the first level. It would be great if someone has experience with an other tree component and could help me. Thanks in advance. -- mfg Hans Sowa mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: Where is the source code for the examples?
You need to check out that URL because its an SVN external (think symlink.) It points you to all of the trunk sections of the relevant modules. If you want to browse online without checking out you need to go to the module you are intrested in. Example: https://svn.apache.org/repos/asf/myfaces/tomahawk/trunk Sean On 5/24/06, James Richards [EMAIL PROTECTED] wrote: Has the SVN curent location been relocated? When I visit: http://myfaces.apache.org/source-repository.html and click on the http://svn.apache.org/viewcvs.cgi/myfaces/current link, I am directed to a page which has a single Maven2 pom.xml file. I can navigate to the parent directory and then browse around but is that the expected behavior? Thanks, James -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Wed 5/24/2006 6:24 PM To: MyFaces Discussion; [EMAIL PROTECTED] Subject: Re: Where is the source code for the examples? No worries. See also: http://myfaces.apache.org/source-repository.html for details on SVN checkout. Sean On 5/24/06, Jason Long [EMAIL PROTECTED] wrote: Many thanks. Now that I know the URL it is easily obtainable. Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com HJBUG Founder and President http://www.hjbug.com -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 4:59 PM To: MyFaces Discussion Subject: Re: Where is the source code for the examples? The source code is easily obtainable. latest and greatest source code can be found at: http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/ 1.1.2 release source can be found at: http://svn.apache.org/repos/asf/myfaces/tomahawk/tags/1_1_2/examples/ On 5/24/06, Philippe Lamote [EMAIL PROTECTED] wrote: +1 from me, the examples used to be just downloads. Certainly as substancial (java/other-)doc is still missing, this would be a big help. Phil On 24 May 2006, at 22:00, Jason Long wrote: I have been looking everywhere for source code for the example webapps. I want to try tree2, but I would like to see the code for TreeBacker.java. Why is this code not easily obtainable? I am about to decompile this, but is that really necessary? Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com HJBUG Founder and President http://www.hjbug.com -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 9:35 AM To: MyFaces Discussion Subject: Re: Source code and examples for MyFaces Core 1.1.3 and Tomahawk 1.1.2 On 5/9/06, Lindholm, Greg [EMAIL PROTECTED] wrote: I wasn't able to find the source code or examples downloads for MyFace 1.1.3 or Tomahawk 1.1.2. Are these going to be available soon in the download area? I don't know, but it seems unlikely. You can check out the source code from svn. You can also find pre-built maven artifacts in the maven repository: http://cvs.apache.org/maven-snapshot-repository/org/apache/myfaces/
Re: Netbeans integration with MyFaces
Well suppose the RI had a crucial bug or performance issue with their implementation and you wanted to or needed to use an alternate implmentation. Its happened before ... Sean On 5/25/06, Eric Hedström [EMAIL PROTECTED] wrote: On 5/24/06, Sean Schofield [EMAIL PROTECTED] wrote: Right. But its lame that you can't easily switch to another implementation. Lets pretend there is a MyFaces JSF 1.2 TCK compliant version today. How does one switch implementations? I doubt customers would see locking themselves into Sun's implementation for 100% of JEE services as an improvement. Sean If I were a Glassfish user, why would I want to swap out JSF implementations? It gives me no value unless I have some broken JSF widget collection (like some versions of Tomahawk :) that only works with MyFaces core. On the other hand, if I didn't care to have Sun's implementation of everything, I wouldn't use Glassfish.
Tomahawk 1.1.2 now in MyFaces maven repo
For you maven2 users, please be advised we have a copy of the tomahawk jar now available on the myfaces repo[1]. Sometime later this week we should have it up on ibiblio. Sean [1] http://myfaces.zones.apache.org/dist/maven-repository
Re: Unit testing backing beans / custom components in JSF
Can shale-test be used for testing custom JSF components as well? Sure. Check out the source code for tree2. There are several shale tests there. Regards, Arti Sean
Re: NetBeans5.5 and MyFaces
I'm about to setup MyFaces in NetBeans so I'm interested in this problem. I'll report back what I find and I'm definitely interested in fixing things if there is a problem on the MyFaces end. Sean On 5/24/06, Romanowski, Tim [EMAIL PROTECTED] wrote: Francesco, would you be willing to post your setup? What jars did you have to remove from the applications server? Did you replace any particular ones? Any dependency issues you had to work around? Are you usng glassfish or another AS? -Original Message- From: Francesco Consumi [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 2:50 PM To: MyFaces Discussion; Bogdan Sava Cc: users@myfaces.apache.org Subject: Re: NetBeans5.5 and MyFaces Bogdan Sava ha scritto: Last version of Linux NetBeans5.5 beta code editor is not able to resolve taglib absolute uri from myfaces implementation myfaces-impl-1.1.x.jar . Taglib uri for tomahowk,sandbox,struts etc are resolved and work fine. Because of that, editor doesn't have any auto popup completion windows but many annoying red underline errors. Any ideea ? we noticed this behaviour too. We're still using NB 5.5 build 20060313, the last version working with MyFaces. further versions don't work. -- Francesco Consumi Ufficio Sistemi informativi Istituto degli Innocenti Piazza SS.Annunziata, 12 50122 Firenze consumi at istitutodeglinnocenti.it Tel. +39 055 2037320 ICQ# 12516133
Re: Where is the source code for the examples?
The source code is easily obtainable. latest and greatest source code can be found at: http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/ 1.1.2 release source can be found at: http://svn.apache.org/repos/asf/myfaces/tomahawk/tags/1_1_2/examples/ On 5/24/06, Philippe Lamote [EMAIL PROTECTED] wrote: +1 from me, the examples used to be just downloads. Certainly as substancial (java/other-)doc is still missing, this would be a big help. Phil On 24 May 2006, at 22:00, Jason Long wrote: I have been looking everywhere for source code for the example webapps. I want to try tree2, but I would like to see the code for TreeBacker.java. Why is this code not easily obtainable? I am about to decompile this, but is that really necessary? Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com HJBUG Founder and President http://www.hjbug.com -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 9:35 AM To: MyFaces Discussion Subject: Re: Source code and examples for MyFaces Core 1.1.3 and Tomahawk 1.1.2 On 5/9/06, Lindholm, Greg [EMAIL PROTECTED] wrote: I wasn't able to find the source code or examples downloads for MyFace 1.1.3 or Tomahawk 1.1.2. Are these going to be available soon in the download area? I don't know, but it seems unlikely. You can check out the source code from svn. You can also find pre-built maven artifacts in the maven repository: http://cvs.apache.org/maven-snapshot-repository/org/apache/myfaces/
Re: Netbeans integration with MyFaces
Note that making such a change today on Glassfish would turn it into a non-JavaEE5 container, since MyFaces is a 1.1 implementation and the EE spec requires JSF 1.2. Right. But its lame that you can't easily switch to another implementation. Lets pretend there is a MyFaces JSF 1.2 TCK compliant version today. How does one switch implementations? I doubt customers would see locking themselves into Sun's implementation for 100% of JEE services as an improvement. Craig Sean
Re: Where is the source code for the examples?
No worries. See also: http://myfaces.apache.org/source-repository.html for details on SVN checkout. Sean On 5/24/06, Jason Long [EMAIL PROTECTED] wrote: Many thanks. Now that I know the URL it is easily obtainable. Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com HJBUG Founder and President http://www.hjbug.com -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 4:59 PM To: MyFaces Discussion Subject: Re: Where is the source code for the examples? The source code is easily obtainable. latest and greatest source code can be found at: http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/ 1.1.2 release source can be found at: http://svn.apache.org/repos/asf/myfaces/tomahawk/tags/1_1_2/examples/ On 5/24/06, Philippe Lamote [EMAIL PROTECTED] wrote: +1 from me, the examples used to be just downloads. Certainly as substancial (java/other-)doc is still missing, this would be a big help. Phil On 24 May 2006, at 22:00, Jason Long wrote: I have been looking everywhere for source code for the example webapps. I want to try tree2, but I would like to see the code for TreeBacker.java. Why is this code not easily obtainable? I am about to decompile this, but is that really necessary? Thank you for your time, Jason Long CEO and Chief Software Engineer BS Physics, MS Chemical Engineering http://www.supernovasoftware.com HJBUG Founder and President http://www.hjbug.com -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 9:35 AM To: MyFaces Discussion Subject: Re: Source code and examples for MyFaces Core 1.1.3 and Tomahawk 1.1.2 On 5/9/06, Lindholm, Greg [EMAIL PROTECTED] wrote: I wasn't able to find the source code or examples downloads for MyFace 1.1.3 or Tomahawk 1.1.2. Are these going to be available soon in the download area? I don't know, but it seems unlikely. You can check out the source code from svn. You can also find pre-built maven artifacts in the maven repository: http://cvs.apache.org/maven-snapshot-repository/org/apache/myfaces/
Re: tree2 expand/collapse
I think this is the issue: http://issues.apache.org/jira/browse/TOMAHAWK-437 Its on my list of tree2 issues to address. Right now we're sorting through some big picture tomahawk and core issues. Sean On 5/23/06, Chris Hane [EMAIL PROTECTED] wrote: This isn't going to help too much; but I started to run into the same things when I was using tree2 and client side expand/collapse. What I tracked it down to was the expand/collapse state is stored in a cookie that is relevant for a the tree2 component on a specific screen. For me that meant when I had to the same screen open in two windows (different records though), they shared the expand/collapse state. This causes weird looking behavior (e.g., expand three node in one screen, go to the second screen and expand a node and three are expanded (the same three from the first screen)). At the time I wasn't setup to explore the tomahawk code so I found a work around for my specific case (I expand all nodes all the time and don't let the user collapse). I opened a JIRA on this issue - the archives have the specific #. Having said that, I'm not an expert with tomahawk - actually just starting so I might be doing something wrong... Chris Christopher J. Bowerman wrote: Hi, I'm using a tree2 component. My problem seems to have to do with tree state. The tree works fine the first time I render it, but I have a home button that starts the user input over again and builds a new tree. When the new tree is rendered the nodes that were expanded in the earlier tree are expanded in this one as well. I'd like the tree to be fully collapsed whenever I've built a new tree. Can anybody actually tell me how I can do this? I've seen other mention of it on previous posts, but they were almost a year ago and no mention how to actually go about it. Any help would be greatly appreciated. Thanks. == Christopher J. Bowerman Internet Applications Developer SAIC-Frederick phone: 301.846.5275 email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006
Re: Tomahawk 1.1.2 is not in Maven repository
No you are in the right place. There was some kind of mixup. We'll be getting to this (hopefully this week.) Right now focus is on another release. Sean On 5/23/06, Paul Spencer [EMAIL PROTECTED] wrote: Tomahawk 1.1.2 is not in the Maven repository http://myfaces.zones.apache.org/dist/maven-repository/ Am I looking in the wrong place? Paul Spencer
Re: Sandbox nightly
Sandbox is not built nightly (at the moment.) Sean On 5/23/06, Paul Spencer [EMAIL PROTECTED] wrote: Dennis, The short answer is : http://cvs.apache.org/maven-snapshot-repository Below is the configuration from my POM.xml that downloads the newest snapshot automatically. dependency groupIdorg.apache.myfaces.core/groupId artifactIdmyfaces-api/artifactId version1.1.4-SNAPSHOT/version /dependency dependency groupIdorg.apache.myfaces.core/groupId artifactIdmyfaces-impl/artifactId version1.1.4-SNAPSHOT/version /dependency dependency groupIdorg.apache.myfaces.tomahawk/groupId artifactIdtomahawk/artifactId version1.1.3-SNAPSHOT/version /dependency ... repositories repository releases enabledtrue/enabled /releases snapshots enabledtrue/enabled /snapshots idmyfaces-repo/id urlhttp://myfaces.zones.apache.org/dist/maven-repository/url /repository repository releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots idapache-maven-snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url /repository /repositories Paul Spencer Dennis Gesker wrote: I was hoping to find a recent copy of the sandbox jar to try out the inputSuggest control. I thought I might find it at http://people.apache.org/builds/myfaces/nightly/ but no luck. Is there another url where I might find a current snapshot? Thanks Dennis
Re: java.lang.NoSuchMethodError: .DummyFormUtils.isWriteDummyForm...
This seems to work well, though one must be careful to account for the resulting changes to the id attribute of all enclosed components. Note that some of these components may be rendered inaccessible to CSS # statements in IE, which does not recognize the \: escape sequence for CSS. That's why I created forceId. IMO the JSF EG did not take into consideration all of the CSS and javascript that is not going to be generated by the component. That's a big problem with JSF 1.1 although it appears to be partially addressed in JSF 1.2. Search the archives for the older threads on forceId and also see the simple examples. Jeff Bischoff Kenneth L Kurz Associates, Inc. Sean
Re: Tree2
Well a lot of people will appreciate that ;-) It's being worked on now. Sean On 5/18/06, Ooschn [EMAIL PROTECTED] wrote: The Tree now works so far ;-) I simply replaced Sun's RI with MyFaces' JAR-Files and as far as i can see it also runs on Sun's AppServer PE 8.2. Nevertheless I'd really appreciate if it Tomahawk would also run with Sun's RI ;-) -- View this message in context: http://www.nabble.com/Tree2-t1625729.html#a419 Sent from the MyFaces - Users forum at Nabble.com.
Re: Re: Error transferring file when build with maven.
Try this ... mirrors mirror idcodehaus snapshot mirror/id nameMirror site of Codehaus/name urlhttp://repo1.maven.org/maven2/url mirrorOfsnapshots/mirrorOf /mirror mirror idcodehaus mirror/id nameMirror Site of Codehaus/name urlhttp://repo1.maven.org/maven2/url mirrorOfcodehaus/mirrorOf /mirror /mirrors On 5/16/06, Michael Heinen [EMAIL PROTECTED] wrote: Thanks for your answer. I added your mirror. mvn install fails now a few steps later: [INFO] Building Master POM [INFO]task-segment: [install] [INFO] - --- Downloading: http://dist.codehaus.org/org.mortbay.jetty/jars/servlet-api-2.5-6.0 .0beta12.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Error transferring file org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus (http://dist.codehaus.org), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5 2) org.mortbay.jetty:jetty:jar:6.0.0beta12 3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12 Caused by I/O exception: Connection refused: connect [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Tue May 16 15:09:01 CEST 2006 [INFO] Final Memory: 4M/8M [INFO] Any help is appreciated again Michael From: Zhi [mailto:[EMAIL PROTECTED] Sent: Dienstag, 16. Mai 2006 15:01 To: MyFaces Discussion Cc: Murat Hazer; Michael Heinen Subject: Re: Re: Error transferring file when build with maven. I got the answer from Maven users mail list. The solution is tell maven to use another a mirror site like this, maven location/conf/settings.xml settings ... mirrors ... mirror idcodehaus mirror/id nameMirror site of Codehaus/name urlhttp://repo.mergere.com/maven2/url mirrorOfsnapshots/mirrorOf /mirror ... /mirrors ... /settings Here is the thread explains, http://www.nabble.com/Error-updating-2.0.4-plugins-t1625800.html 2006/5/16, Emmanuel Venisse [EMAIL PROTECTED]: codehaus.org is temporarily down so request on it generate an error. A temporary solution is to define a mirror of snapshots.maven.codehaus.orgto repo1.maven.org until codehaus.org is back George - Original Message - From: Murat Hazer To: MyFaces Discussion Sent: Tuesday, May 16, 2006 3:47 PM Subject: Re: Error transferring file when build with maven. if your job is urgent and only need jar files i can send them (i just built) On 5/16/06, Michael Heinen [EMAIL PROTECTED] wrote: I tried „mvn clean before „mvn install. mvn install still fails with the same message. Any other idea ? I spent now a lot of hours to get the sources into eclipse and build it with maven but it doesn't work. This procedure is really a little bit annoying. Michael From: Murat Hazer [mailto:[EMAIL PROTECTED] Sent: Dienstag, 16. Mai 2006 09:36 To: MyFaces Discussion Subject: Re: Error transferring file when build with maven. i had the same problem, i run mvn clean before mvn install everthing worked fine. regards... On 5/16/06, Michael Heinen [EMAIL PROTECTED] wrote: I have the same problem this morning. mvn install downloads a lot of files but fails at the same step as mentioned below. -Original Message- From: Zhi [mailto: [EMAIL PROTECTED] Sent: Dienstag, 16. Mai 2006 05:16 To: MyFaces Discussion Subject: Error transferring file when build with maven. Dears, I successfully checkouted the files from respository just now. But when I started building, build error arised. Does this caused by SVN or MAVEN site down? Any help would be greatly appreciated. George
Re: location of samples
I don't know if the examples are being distributed in a binary form yet since our maven reorg. No they are not. But its something we will get to once some maven guru steps up and volunteers. Sean
Fwd: Doxia/site problems - FIXED
Thanks to Wendy for updating us on this. -- Forwarded message -- From: Wendy Smoak [EMAIL PROTECTED] Date: May 16, 2006 7:05 PM Subject: Fwd: Doxia/site problems - FIXED To: Sean Schofield [EMAIL PROTECTED] Not sure if you still need this... -- Forwarded message -- From: Brett Porter [EMAIL PROTECTED] Date: May 16, 2006 9:44 AM Subject: Doxia/site problems - FIXED To: Maven Users List users@maven.apache.org Hi, This should now be fixed. Please remove the following files from your local repository to correct the issue: org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-8/doxia-site-renderer-1.0-alpha-8.pom org/mortbay/jetty/project/6.0.0beta15/project-6.0.0beta15.pom org/apache/maven/plugins/maven-site-plugin/2.0-beta-5/maven-site-plugin-2.0-beta-5.pom Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomahawk sandbox 1.1.2 from svn
The sandbox is not part of the release because its still experimental stuff. So it has been intentionally excluded. Now that SVN is up, people should be able to build their own. Sean
Re: MyFaces support for Facelets
I don't see these as significant advantages to making it a separate JAR. None of these should be marked as required dependencies for standard tomahawk use - they should all be marked as provided scope, which avoids the issue. I agreee. Why not include the facelets config file in the META-INF of the regular old tomahawk.jar? It certainly doesn't hurt anyone not using facelets and it would be a major incentive to use MyFaces components if they were able to be used with facelets out of the box. -- Adam Sean
Re: When tomahawk-1.1.2 and myfaces-core-1.1.3 will be in ibiblio?
It takes a little doing and there aren't enough volunteers for the less glamorous stuff like this ;-) Its on my todo list (along with documenting the process so others can more easily step in and help.) Sean On 5/11/06, Bruno Aranda [EMAIL PROTECTED] wrote: Not sure, but in the meanwhile you can find them in the myfaces zone repository [1], so you can setup this repository in your pom file. Devs: to put the artifacts in ibiblio we should only deploy them in the apache repository, right? Is there any special reason we have not done that yet? Regards, Bruno [1] http://myfaces.zones.apache.org/dist/maven-repository/ On 5/11/06, Ronen Naor [EMAIL PROTECTED] wrote: Hi, Can you tell us when tomahawk-1.1.2 and myfaces-core-1.1.3 will be in ibiblio repository? Thanks.
Re: myfaces-commons-1.1.3.jar
Yes we should have been more clear all along that these formerly commons classes are not to be relied upon in your applications as they are unstable and subject to change. We are contemplating a project that would have a stable API and pull out the stuff from shared that might be useful to other developers. Sean On 5/15/06, Bill Schneider [EMAIL PROTECTED] wrote: yes, you'll have to change. those classes are now in: org.apache.myfaces.shared_tomahawk.renderkit Great. actually, it turned out to be a little trickier than that. Some classes moved to shared_impl. Other APIs like AddResource changed altogether. Certainly not a big deal, just a little surprising for a patch-level version number. -- Bill -- Bill Schneider Chief Architect Vecna Technologies, Inc. 5004 Lehigh Road College Park, MD 20740 [EMAIL PROTECTED] t: 240-737-1640 f: 301-699-3180
Re: MyFaces support for Facelets
Part of the release notes will be what version of facelets that particular tomahawk release is compatible with. We will probably just try to keep in sync with the most current stable facelets release. You could always rebuild from SVN and switch in a prior (or custom) taglib xml file. Plus if Adam is correct, it doesn't sound like it will be much of an issue. Sean On 5/15/06, Adam Winer [EMAIL PROTECTED] wrote: Andrew, I don't see any changes coming in the tag handler API or XML format, and just asked Jacob, who agrees. -- Adam On 5/15/06, Andrew Robinson [EMAIL PROTECTED] wrote: What if there is a need for a different JAR for different facelets versions? For example, if Jacob changed the tag handler API in Facelets 1.2, then the code would be different for Facelets 1.1 and 1.2. This is the big reason I see for having the Jars separate. -Andrew On 5/15/06, Sean Schofield [EMAIL PROTECTED] wrote: I don't see these as significant advantages to making it a separate JAR. None of these should be marked as required dependencies for standard tomahawk use - they should all be marked as provided scope, which avoids the issue. I agreee. Why not include the facelets config file in the META-INF of the regular old tomahawk.jar? It certainly doesn't hurt anyone not using facelets and it would be a major incentive to use MyFaces components if they were able to be used with facelets out of the box. -- Adam Sean
Re: [m2] Problems when getting artifacts using an internal repo (proxy problem?)
Maybe you could hack it by labeling your internal artifacts as snapshots and then listing my-repo as snapshot only? Still learning maven so that may be way off. Sean On 5/10/06, Bruno Aranda [EMAIL PROTECTED] wrote: Mmm, I see what is happening, When it goes to search a dependency already present in the internal repository no problem, but when it tries to search a dependency not present in the repo (such as commons-logging, for instance), it gets a Missing page html. How can avoid that? Because if it gets the missing page, it does not try to look for the dependency in the central repository... Adding the ibiblio repo in the pom fixes the issue, as it tries first now to look for the central repo and then the internal... repositories repository idcentral-repo/id nameIbiblio repository/name urlhttp://www.ibiblio.org/maven2/url /repository repository idmy-repo/id nameMy interlanl repository/name urlhttp://www.myorganization.org/m2repo/url /repository /repositories At least it works now, but is there a more elegant solution? Thanks, Bruno On 5/10/06, Bruno Aranda [EMAIL PROTECTED] wrote: Hi, I am trying to create a pom for an existing project and I have setup an internal repository for all those jars that I need which are not present in ibiblio. In the institution where I work, there is a proxy. When I include the repository section in my pom: ... repositories repository idmy-repo/id nameMy interlanl repository/name urlhttp://www.myorganization.org/m2repo/url /repository /repositories ... I keep getting these kind of warnings: Downloading: http://www.ebi.ac.uk/~maven/m2repo/org/apache/maven/wagon/wagon-ssh-external/1.0-alpha-5/wagon-ssh-external-1.0-alpha-5.pom 50K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '93acd1eaeb3d27ec9f89ab480f384fdce57578ca'; remote = 'html script' - RETRYING ... and later: [WARNING] POM for 'commons-collections:commons-collections:pom:3.1:compile' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. [WARNING] POM for 'commons-logging:commons-logging:pom:1.0.4:compile' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. ... It seems to me like there is a proxy problem. I have setup the proxy details in my settings.xml file to no avail... Possibly I have something misconfigured somewhere... anywhere have an idea where to look? Thanks! Bruno
Re: Source release
Actually I would go with the *tagged* release since that is *exactly* what goes into the artifacts (they should be the same as the branch though.) https://svn.apache.org/repos/asf/myfaces/core/tags/1_1_3/ Even better, you can browse the source online with your browser without even checking out. Sean On 5/9/06, Mike Kienenberger [EMAIL PROTECTED] wrote: Your best bet for grabbing the source used to build the binary is to check out the 1.1.3 core branch from svn. For instance, https://svn.apache.org/repos/asf/myfaces/core/branches/1_1_3 On 5/9/06, Andrew Robinson [EMAIL PROTECTED] wrote: But if I grab a snapshot or SVN, the source will probably be different from the release right? I would like to be able to get the exact source code used to build the binary release. Is that what the snapshot is for 1.1.3 core for example? On 5/9/06, Mike Kienenberger [EMAIL PROTECTED] wrote: Not that I know of. You'll need to either grab the source from svn or from the maven artifact repository: http://cvs.apache.org/maven-snapshot-repository/org/apache/myfaces/ On 5/9/06, Andrew Robinson [EMAIL PROTECTED] wrote: Are there going to be source releases for tomahawk and core (and sandbox hopefully too) to go along with the binary distributions? The binary distributions do not contain a source jar or folder. Thanks, Andrew
Re: Source release
Well you are free to disagree. Or even better, you are encouraged to help document the existing limitations or tweak the maven scripts so we can more easily release the source bundles. Sean On 5/9/06, Lindholm, Greg [EMAIL PROTECTED] wrote: I think it is entirely acceptable to ask interested parties (MyFaces users) to go grab source code for the distributions from svn. It's not too much to ask. Sorry, but I have to disagree. Source should either be included or available as a separate distribution. The build process should include building the source distributions. It is clearly not straight forward and obvious how to retrieve the source that matches the binary distributions.
Re: Using tree2 with facelets
FYI - just checked in a fix for tree2 and facelets. Can the tree2/facelets people please test that it is working for you (without any hacks)? My initial tests look promising but I am not really using facelets in a project ATM so I have limited usecases to test. Sean On 4/24/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 4/22/06, Sean Schofield [EMAIL PROTECTED] wrote: Let me know what needs to be changed (and why) and I will be happy to try and help. (The why part I think I am understanding more as I read about how facelets works.) Sean, Pull up a thread named tree2 and JFSAttr org.apache.myfaces.tree2.* attributes (MYFACES-760) from Nov 23rd, 2005. A gmail search of Kienenberger Sean Facelets tree2 should make it obvious.
Re: error while resolving artifact xslt-plugin
Ahh this is because we dropped the atanion snapshot repo since this plugin has been finalized. The issue has already been resolved on the latest maven/shared/core branches and so will be fixed on the trunk as soon as I merge them down (probably tomorrow.) @Bernd: You want to address the tobago one? Sean On 4/26/06, Rogerio Pereira [EMAIL PROTECTED] wrote: And with tobago too: Downloading: http://www.apache.org/dist/maven-repository//org/apache/maven/wagon/wagon-ssh-external/1.0-alpha-6/wagon-ssh-external-1.0-alpha-6.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.maven.wagon:wagon-ssh-external Reason: Error getting POM for 'org.apache.maven.wagon:wagon-ssh-external' from the repository: Error transferring file org.apache.maven.wagon:wagon-ssh-external:pom:1.0-alpha-6 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache-maven-repository ( http://www.apache.org/dist/maven-repository/), apache-maven-snapshots (http://cvs.apache.org/maven-snapshot-repository)
Re: error while resolving artifact xslt-plugin
The xslt ref is SNAPSHOT though and that was only on the antanion server. So that remains a problem AFAIK. Sean On 4/26/06, Arvid Hülsebus [EMAIL PROTECTED] wrote: No, it's already configured... the URL http://repo1.maven.org/maven2 will redirect you to http://www.ibiblio.org/maven2/ So http://www.ibiblio.org/maven2/org/apache/maven/wagon/wagon-ssh-external/1.0-alpha-6/ is equivalent to http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh-external/1.0-alpha-6/ Rogerio Pereira wrote: So i must add ibiblio repo here.
Re: [ANNOUNCE] MyFaces 1.1.2
Tomahawk 1.2 is coming very soon. We have some last minute Maven confusion to sort out. Voting should start any day now (with a release a few days after that.) Most likely we are looking at early next week. (Along with an updated MyFaces Core 1.1.3 that fixes some more issues.) Sean On 4/25/06, Joel Wilson [EMAIL PROTECTED] wrote: I really look forward to trying this out, but because I use Tomahawk quite a bit will have to wait until you release the Tomahawk 1.2 library. Just wondering if anyone has an estimate of when that will be released?
Re: t:tree2 id=eventTree reposition to the top
If your tree is small enough you could try using the client side toggle. That works with javascript and basically doesn't require a new post. Sean On 4/23/06, MYyfaces Chaminda Siyasin [EMAIL PROTECTED] wrote: Hi All, I am using Myfaces t:tree2 id=eventTree Event Tree.when navigating in the tree nodes Scroll Bar appears.When clicking on a node of the Tree and readjusts to the top,then has to scroll down again to navigate further.But I want to keep it as it is which clicked position.Could you please give me a hint regarding this issue. Regards, Chaminda -- View this message in context: http://www.nabble.com/%3Ct%3Atree2-id%3D%22eventTree%22-reposition-to-the-top-t1494057.html#a4049253 Sent from the MyFaces - Users forum at Nabble.com.
Re: Building 1.1.2 Sandbox
However, it appears to build 1.1.3-SNAPSHOT rather than 1.1.2. Could someone quickly outline the process for building 1.1.2? That's b/c we are about to release 1.1.2 and have created a branch. 1.1.3 is now the latest and greatest (even though at this exact moment there is very little difference.) You can always check out the branch if you really want 1.1.2 https://svn.apache.org/repos/asf/myfaces/tomahawk/branches/1_1_2 Just do a mvn install on your checkout Thanks! Sean
Re: Using tree2 with facelets
Andrew, Are you interested in reworking the patch? Now that we've refactored we need a new one. I will get to it eventually but if you supply a proper patch I will do it much quicker ;-) Sean ps. Make sure you edit your patch so that the file refs are relative to tomahawk root. That makes it easier. On 4/22/06, Andrew Robinson [EMAIL PROTECTED] wrote: Yes there is one: http://issues.apache.org/jira/browse/TOMAHAWK-47 On 4/21/06, Sean Schofield [EMAIL PROTECTED] wrote: Andrew, Is there a JIRA issue on this? If not, please add one. I'm starting to dabble in facelets so I might be able to help fix this. Sean On 4/10/06, Andrew Robinson [EMAIL PROTECTED] wrote: Have you setup the MyFaces extension correctly? Also make sure you read through the WIKI on getting your tagHandlers setup correctly as the tree 2 UIComponent is not developed normally. The wiki is here: http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk -Andrew On 4/10/06, Shekhar Yadav [EMAIL PROTECTED] wrote: I am facing issues using tree2 with facelets. I get java script errors on IE page (Object not found types) and on Firefox it only shows the root node with no +/- to expand the tree. Thanks, Shekhar - I am running to get my tea.
Re: Using tree2 with facelets
Well I'm done the more significant aspects of tree2 so I think we could go forward now. Free time is still scarce (with all of the releases) but I am trying to learn more about facelets so this one caught my eye. Let me know what needs to be changed (and why) and I will be happy to try and help. (The why part I think I am understanding more as I read about how facelets works.) Sean On 4/22/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 4/22/06, Sean Schofield [EMAIL PROTECTED] wrote: Are you interested in reworking the patch? Now that we've refactored we need a new one. I will get to it eventually but if you supply a proper patch I will do it much quicker ;-) Hey Sean, I've been waiting to deal with this issue (as well as the extended data table issue) for quite some time. You told me to hold off until you were done refactoring tree2, but you never seemed to get back to me on it :) At this point, our solution probably needs to create compatible setter/getters on the component, but to continue to use the same generic attributes internally to store the values for backwards compatibility. At some point down the road, we should internally stop supporting the generic attributes.
Re: Using tree2 with facelets
Andrew, Is there a JIRA issue on this? If not, please add one. I'm starting to dabble in facelets so I might be able to help fix this. Sean On 4/10/06, Andrew Robinson [EMAIL PROTECTED] wrote: Have you setup the MyFaces extension correctly? Also make sure you read through the WIKI on getting your tagHandlers setup correctly as the tree 2 UIComponent is not developed normally. The wiki is here: http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk -Andrew On 4/10/06, Shekhar Yadav [EMAIL PROTECTED] wrote: I am facing issues using tree2 with facelets. I get java script errors on IE page (Object not found types) and on Firefox it only shows the root node with no +/- to expand the tree. Thanks, Shekhar - I am running to get my tea.
Re: MyFaces 1.1.2 Listener startup probs Deltas in web.xml
Yes it will take some time to get everything promoted but that shouldn't stop users from using the sandbox stuff now. The Dojo stuff especially needs to be heavily discussed before we promote it. We'd like to figure out a few best practices for all of this Ajax stuff and stick with them in all of our components. Sean On 4/19/06, Werner Punz [EMAIL PROTECTED] wrote: Philippe Lamote schrieb: Well the problem is that the sandbox components are very experimental and often under heavy code fluctuation und to make things worse, mostly undocumented yet. -- Everybody understands. Suffices to add a disclaimer? (like always with betas) So if you use them use them with care and have in mind that some of this stuff might break in the near future. One vendor has integrated them in his product, which is not a good idea, using them at that state in a big project would mean a huge money loss for those who use them and maybe not find them the same way or totally altered at the next major release. -- Well, I guess they were convinced a rework with cool components is better than no/lesser components and a not-so-impressed client. Good clients understand software lives.It also allows them to get feedback already and then integrate the feedback with the final of the components later on. A defendable path no? but all this aside: the components are very cool ;-) -- XXX Yeah man, that's why we want to get our hands on them!!When they compile, ship'em!! ;-) Well one of the big things coming after the next tomahawk stable is to push some of the sandbox components down into the main Tomahawk. It already is a shame that the sandbox almost has become as big as Tom itself. The first component as it seems will be or already is the Calendar component. The ajax stuff will probably go down into the main core once we have moved towards Dojo 0.3. My personal feeling is that our supportive codebase (the entire intialization api) now is stable enough, thanks to a few really complicated implementations that it wont break in the near future. Once dojo is down in tom a few components will follow...
Re: Missing tomahawk.jar in MyFaces1.2
I'm not sorry to say it ;-) This is a good thing. It should mean more frequent releases of tomahawk which changes often as opposed to the core which is stable but requires lots of testing before a release. Sean On 4/18/06, Werner Punz [EMAIL PROTECTED] wrote: Hi Balaji, sorry to say that, but the Tomahawk release cycles are now decoupled due to the addition of the Tobago component set and soon also the ADF Faces framework to the myfaces mix. So currently there first was the core released and soon also a stable Tomahawk 1.1.2 will be released (the fork for stable is imminent as we speak), in the meantime I only can recommend to revert to the nighlies until the stable Tomahawk is in sync. In the future there will be decoupled releases of the core and the component sets, with a much higher release frequency. Werner Balaji Kalyansundaram schrieb: Hi Dennis Thanks for the reply. Please pay attention to the fact that you cannot use this release of MyFaces Core with the MyFaces Tomahawk library in version 1.1.1 - it will only work with the Tomahawk library in version 1.1.2 and onward. - I cannot find the new version of tomahawk separately @ http://myfaces.apache.org/download.html Only the old 1.1.1 is available. But it is mentioned above that this will not work with new verion of myfaces core. Balaji -Original Message- From: Dennis Byrne [mailto:[EMAIL PROTECTED] Sent: Tuesday, 18 April 2006 5:13 PM To: MyFaces Discussion Subject: Re: Missing tomahawk.jar in MyFaces1.2 You may want to check your inbox for the announcement notes. Tomahawk is now released seperately. Dennis Byrne -Original Message- From: Balaji Kalyansundaram [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 03:11 AM To: dev@myfaces.apache.org, users@myfaces.apache.org Subject: Missing tomahawk.jar in MyFaces1.2 Hi All Glad to hear that the new verison is available. I cannot find the the tomahawk.jar @ http://www.apache.org/dyn/closer.cgi/myfaces/binaries/myfaces-core-1.1.2-bin.zip But it has myfaces-impl.jar, etc. Am I lloking at the wrong place? Thanks in advance. Balaji This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland. This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.
Re: Missing tomahawk.jar in MyFaces1.2
If tomahawk1.2 is not released yet, whey does the relase notes for MyFaces Core 1.2, have details of bug fixes, in Tomahawk components, like t:commandSortHeader,etc.??? This is misleading/confusing me. At one point the two projects were intertwined and shared the same JIRA instance. So all of the bugs that were already closed before we split the JIRA instance into two projects stayed in the core. We were in a rush to release so we did not go back and move them all. So in the future things will be more clear. Balaji Sean
Re: TreeModelBase/HtmlTree : Java heap space
You are probably trying to load way too much data into the tree. How much data are you talking about? I would suggest looking at the archives for discussions on dynamic trees. You can customize tree2 model to use a database. Sean On 4/17/06, Sunil Kulkarni [EMAIL PROTECTED] wrote: Hi, I am using MyFaces 1.1.1/Tomcat 5.5.12. I am using sample TreeBacker.java file to render a tree. If I don't get data from Database, then everything works fine. But, if I am trying to get Tree information from database and then construct 'TreeNode' then I get the following exception. There is similar issue reported in users list with subject Java heap space: Error with Tree2, but I did not find any answer to it. Please let me know, if you know the solution. Thanks. javax.faces.FacesException: Caused by: javax.servlet.ServletException: ServletException in '/common/login_menu.jsp': Java heap space at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781) at org.apache.jsp.template.logintemplate_jsp._jspService(logintemplate_jsp.java:78) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
Re: [ANNOUNCE] Struts Shale Framework 1.0.2 Alpha
Wendy, Thanks for your tireless efforts getting this all squared away for us. Now we can go ahead with the MyFaces release. Sean On 3/29/06, Werner Punz [EMAIL PROTECTED] wrote: Congratulations Craig, Wendy and the others... Wendy Smoak schrieb: The Struts team is pleased to announce the release of Struts Shale 1.0.2 Alpha. http://struts.apache.org/downloads.html The Struts Shale Framework is a set of loosely coupled services, fundamentally based on JavaServer Faces, which may be combined as needed to meet particular application requirements. Compared to version 1.0.0, (version 1.0.1 was retired due to packaging issues,) this version includes a substantial number of bugfixes and enhancements -- details are in the Release Notes -- and the following major new features: * Shale Remoting is a complete overhaul of the remoting support in 1.0.0, providing support for application or component developers who need to implement the server side behavior for AJAX callbacks. It is packaged as a small (40k) JAR that has no dependencies on the rest of Shale. * Tiger Extensions is an optional add-on layer for those running on Java SE 5 (code named Tiger). The extensions let you use Java annotations to declare managed beans or register JSF components, without needing entries in a faces-config.xml file. * A new blank starter application to get you up and running with a new project quickly. * A new mailreader demo application that duplicates the functionality of the Struts 1.x version of this app, so you can compare implementation approaches. * A new SQL Browser demo application that illustrates use of the Tiger Extensions, as well as the ability to modify JSF component trees on the fly. Although this is considered an alpha release, various developer APIs should be considered at a more stable (in terms of assurances of backwards compatibility in future releases) point than might otherwise be expected. Please see the following web page for more details: http://struts.apache.org/struts-shale/api-stability.html Your comments and questions are welcome on the Struts User list. Subscription information can be found on the following web page: http://struts.apache.org/mail.html -- Wendy Smoak
Re: [ANNOUNCE] MyFaces Core 1.1.2 Ready For Testing
The phaselistener issue was fixed in trunk about 8 hours ago, but you it should be discovered if you have tomahawk in the classpath. The latest nightly build that I forced this morning should contain this fix. Please let us know if you continue to experience problems. Sean
[ANNOUNCE] MyFaces Core 1.1.2 Ready For Testing
We now have a stable 1.1.2 build of the MyFaces Core ready for testing. You can find the build at http://cvs.apache.org/builds/myfaces/nightly/. Please be sure to test the core 1.1.2 snapshot *only*. The rest (including core 1.1.3) is nightly stuff that is automatically produced from the trunk and isnot to be released in the near term. NOTE: This build will automatically be deleted after 5 days due to a cron script. Please report any issues in the jira instance for core (https://issues.apache.org/jira/browse/MYFACES) and mark the version found as 1.1.2-SNAPSHOT. Leave version to be fixed as blank. If you provide a patch for an issue make sure to use the new Provide Patch operation to flag the issue as having a patch. If all goes well with the testing we will release in the day or two. We're looking to start releasing on a more rapid schedule now that several barriers to this have been removed. So don't worry if your bug fixes do not make it into this next release as there should be more coming soon. Sean
Re: [ANNOUNCE] MyFaces Core 1.1.2 Ready For Testing
We'll look into that after the release. I think the exclusion was deliberate since the sandbox is not officially supported but I think that it would probably be helpful to have the sandbox stuff available to users without them having to build it themselves. Sean On 3/6/06, Andrew Robinson [EMAIL PROTECTED] wrote: Is it possible to support the sandbox in these nightly builds as well as tomahawk? (create archives for sandbox just like those of the tomahawk) On 3/6/06, Sean Schofield [EMAIL PROTECTED] wrote: We now have a stable 1.1.2 build of the MyFaces Core ready for testing. You can find the build at http://cvs.apache.org/builds/myfaces/nightly/. Please be sure to test the core 1.1.2 snapshot *only*. The rest (including core 1.1.3) is nightly stuff that is automatically produced from the trunk and isnot to be released in the near term. NOTE: This build will automatically be deleted after 5 days due to a cron script. Please report any issues in the jira instance for core (https://issues.apache.org/jira/browse/MYFACES) and mark the version found as 1.1.2-SNAPSHOT. Leave version to be fixed as blank. If you provide a patch for an issue make sure to use the new Provide Patch operation to flag the issue as having a patch. If all goes well with the testing we will release in the day or two. We're looking to start releasing on a more rapid schedule now that several barriers to this have been removed. So don't worry if your bug fixes do not make it into this next release as there should be more coming soon. Sean
Re: tree2 does not expand
This doesn't sound like a tree2 specific problem then. It sounds like its a more general problem with AddResource and you dynamic include. I would create a JIRA issue on this. Sean On 2/26/06, Carsten Burghardt [EMAIL PROTECTED] wrote: Am Monday 20 February 2006 22:37 schrieb Sean Schofield: Last I checked the examples in the nightly worked. Can you point to a problem with one of the examples? If not, try sending an SVN patch for an existing example that can be tweaked to demonstrate the problem. If you're uncomfortable with SVN then just a brief explanation of what lines need to be changed. Since we just mad a major change to tree2 its certainly possible that a new bug was introduced. The example works but not my page. The tree2 definition is the same and the bean is also session based. The only difference I see is that my page is included as navigation with f:facet name=navigation f:subview id=menu [EMAIL PROTECTED] file=inc/navigation.jsp % /f:subview /f:facet I had a look at the html source: the problem is that when the user logs in the first time the Javascript from the tree is not included. The tree definition itself is ok but the Javascript is simply missing. If the user logs in again with the same session everything is fine. There must be a regression somewhere in the nightly. Carsten
Re: Shale Dialog Manager vs. t:saveState
If memory serves me its whatever is in #{dialog.data}. I believe that object is a Map that you can put whatever you want into it. I can't say for sure b/c I don't have the source in front of me and its been a while since I worked on it. Sean On 2/27/06, Werner Punz [EMAIL PROTECTED] wrote: Sean, I could not figure out form the documentation which data is kept during conversation time, is it the page controller, or all data accessed during conversation time? Werner Sean Schofield schrieb: Shale dialogs do, however, have a mechanism for storing objects between requests. So in that sense they are similar to t:saveState. I've never really used save-state before but I have some experience with Shale dialogs. Shale dialogs are excellent. Its the only feature of Shale that I am using in a production system at the moment (also view controllers.) But there is plenty more to Shale then dialogs. Check out the link that was suggested in the previous message. Sean On 2/10/06, Laurie Harper [EMAIL PROTECTED] wrote: CONNER, BRENDAN (SBCSI) wrote: After having done several native MyFaces application implementations, I'm just starting to do initial research into Shale. The motivation to do this is that, from my understanding, Shale offers a framework allowing relatively painless debugging of JSF actions. I noticed on the site that Shale provides support for multi-screen conversations via its Dialog Manager. Can someone comment on how using this compares to using t:saveState? Are there situations in which using one is preferred to using the other? They do rather different things. t:saveState allows you to 'attach' arbitrary data to the saved view state, effectively allowing you to preserve backing bean state or other data across requests. Shale Dialogs is more like a simple workflow management framework; it allows you to describe a series of states and state transitions that represent a 'dialog' between the user and your application. I think Shale Dialogs and Spring Webflow are pretty similar in intent, if the comparison helps. Also, what other benefits (or drawbacks) can I expect from using Shale? (I probably should ask this in the Shale user group, but I figured people in this user group would have some interesting feedback as well.) Shale is a 'value added' framework for JSF; in other words, it adds various useful features on top of what JSF already provides. For an overview of what's available, see the Shale Features section of the project site: http://struts.apache.org/struts-shale/index.html#Shale_Features L.
Re: Next stable version of sandbox?
IMO schedule is getting close to emerging from the sandbox. It will probably be the first component we promote once we get a new tomahawk release and the commons refactoring behind us. Sean On 2/23/06, Andrew Robinson [EMAIL PROTECTED] wrote: Yeah I know. I don't mind using it as unstable, I just want the core to be stable. Under 1.1.1, the latest validateCompareTo is looking for ResourceLoader, and hence stops my project from loading. The two components I want are validateCompareTo and schedule for now. From what others have said, it sounds like schedule is getting close to becoming part of tomahawk. Tonight I'm going to try to rip the validate compare to out of myfaces and into my source tree to try to get it to work against 1.1.1. Hopefully schedule works in the 1.1.1 version (I see the code is in the sandbox.jar for 1.1.1) well. -Andrew On 2/23/06, Werner Punz [EMAIL PROTECTED] wrote: Hi Andrew always have in mind that the sandbox is sort of a Tomahawk unstable ... anything in there can get a major overhaul between versions and to the worse might be pulled. (although for most components it is very very unlikely) Andrew Robinson schrieb: I have a bit of a dilemma. I would like to have the stability of MyFaces 1.1.1, but I'd like to use some of the new Sandbox components (like validateCompareTo) which are not in the 1.1.1 release and seem to require the newest core of myfaces to work (validateCompareTo was throwing class and method not found errors when I tried using it on myfaces 1.1.1). In the SVN branch, I find I come across many errors. The last one was a bad one. About a week ago t:commandButton tried to treat the action property as a ValueBinding instead of a MethodBinding. Any idea on the next scheduled release? (rc or beta would be nice over source control updates). Thanks, Andrew
Re: Failure checking out release 1.1.1 from SVN.
The SVN is really screwed up due to the use of externals and the fact that we moved stuff around. We've dropped the use of externals in the current trunk to avoid this problem in the future. Sorry about this. Believe me that we regret this as well. We may sort it all out one day but in the meantime you can download the source distro here: http://myfaces.apache.org/download.html Sean On 2/23/06, Steve McCoole [EMAIL PROTECTED] wrote: When I try to check version 1.1.1 out of the svn repository I keep getting the following error. Should I be using a different URL? I'm using the subclipse plugin. checkout -r HEAD https://svn.apache.org/repos/asf/myfaces/release/tags/1_1_1 U C:/ws/smm/myfaces-1.1.1 Updating external location at: C:/ws/smm/myfaces-1.1.1/api Bad URL passed to RA layer svn: URL 'https://svn.apache.org/repos/asf/myfaces/api/tags/1_1_1' doesn't exist Thanks, Steve
Re: myfaces tree2 delete node
Well that sounds like we're making progress if you can't reproduce one of the bugs. Sean On 2/23/06, Hendrik Neumann [EMAIL PROTECTED] wrote: Well I'm sorry, but I think that the problem descriped was not a bug - the problem was related with my populateTree-Method which did some really ugly things. At least the Node is expanded but it is also considered a leaf is gone and not reproducible for me. Nevertheless, thank you for your helpfulness! 2006/2/22, Sean Schofield [EMAIL PROTECTED]: I am happy to try and help out but I need a little more investigation from you guys. You will need to investigate the latest source code and let me know where things are breaking down. Unfortunately there are some issues getting the new release done that are taking up most of my time. So if you are serious about fixing this, please dig in and provide an explanation as to where exactly things are failing (in the code iself) instead of just describing the usecase. If you do this, I can likely help you better. Keep in mind I'm not doing any dynamic tree stuff myself (yet) so you will need to help me help you. Sean On 2/22/06, Hendrik Neumann [EMAIL PROTECTED] wrote: I have the same problem... this issue still seems not to be fixed 2006/2/8, Michal [EMAIL PROTECTED]: I've got the same problem - I believe that's the problem of storing old tree somewhere (as it's client side toggle tree). Is there any way to update it? Some flush cache method's ;) or something? I really stuck with this, tried almost all. -- Mit freundlichen Grüßen / Greetings, Hendrik Neumann; Ruhr-University of Bochum -- Mit freundlichen Grüßen / Greetings, Hendrik Neumann; Ruhr-University of Bochum
Re: Issues with Tree2 - Heap Space Probleme - HTML Code
As Onur suggested the server-side toggle is the way to go for large trees. Eventually I envision an Ajax version of the tree2 component. Some of the recent tree2 changes reflect a step in that direction. Sean On 2/22/06, Onur Tokan [EMAIL PROTECTED] wrote: Make the tree2 attribute to clientSideToggle=false. Regards, Onur On 2/22/06, Hans Sowa [EMAIL PROTECTED] wrote: Hi I need to realize a tree which can have about 30.000 nodes and every node is clickable. I know this is a lot but this is my requirement from the business. I have now the situation that it is not possible at the moment so we have a workaround: Up 250 nodes we will show a scrollable list instead of the tree. But for the future I need a tree solution. I have now two issues with the tree2. 1. The html code which is created is very large and the browser runs in trouble. 2. There is a heap space problem in MyFaces for a certain number of nodes ( 250). My actually questions are Is there a solution for such large trees? Should I use an other tree instead of tree2? Is there anybody who has a similar problem and solved it? Thanks in advance. -- mfg Hans Sowa mailto:[EMAIL PROTECTED]
Re: Issues with Tree2 - Heap Space Probleme - HTML Code
How much heap space do you have available? You probably want to increase beyond the standard amount (64 M I think is the default?) I would also recommend that you consider populating your tree model dynamically. There's no need to have all 30,000 nodes sitting in the memory all the time. Sean On 2/22/06, Hans Sowa [EMAIL PROTECTED] wrote: Hi Thanks, I know that I can you clientSideToggle but this doesn't solve my problem with the heap space. I tried it but it seams myfaces has problem with too much nodes. 2006/2/22, Onur Tokan [EMAIL PROTECTED]: Make the tree2 attribute to clientSideToggle=false. Regards, Onur On 2/22/06, Hans Sowa [EMAIL PROTECTED] wrote: Hi I need to realize a tree which can have about 30.000 nodes and every node is clickable. I know this is a lot but this is my requirement from the business. I have now the situation that it is not possible at the moment so we have a workaround: Up 250 nodes we will show a scrollable list instead of the tree. But for the future I need a tree solution. I have now two issues with the tree2. 1. The html code which is created is very large and the browser runs in trouble. 2. There is a heap space problem in MyFaces for a certain number of nodes ( 250). My actually questions are Is there a solution for such large trees? Should I use an other tree instead of tree2? Is there anybody who has a similar problem and solved it? Thanks in advance. -- mfg Hans Sowa mailto:[EMAIL PROTECTED] -- mfg Hans Sowa mailto: [EMAIL PROTECTED]
Re: Issues with Tree2 - Heap Space Probleme - HTML Code
TreeWalker helps us get a good way there. We can provide a custom tree walker that renders the tree from a specified point (not necessarily starting at the root.) Sean On 2/22/06, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! Eventually I envision an Ajax version of the tree2 component. +1 It will definitely be great to have a ajaxed tree2. Ciao, Mario
Re: simple identification of incorrect fields
Do you only want to show them when they fail to submit a required value or do you want to show them all of the time? Sean On 2/22/06, Michael Heinen [EMAIL PROTECTED] wrote: I was afraid of having to do this. Actually I don't want to override the messages because I want to show them in a summary list at the top of my page. I just want to mark the incorrect fields in addition. Is there no other possibility or workaround? -Original Message- From: Sean Schofield [mailto:[EMAIL PROTECTED] Sent: Dienstag, 21. Februar 2006 19:19 To: MyFaces Discussion Subject: Re: simple identification of incorrect fields The required message doesn't work this way. You need to override the value in Message.properties if you want to use just an asterisk character. The defaults are ... javax.faces.component.UIInput.REQUIRED= Validation Error javax.faces.component.UIInput.REQUIRED_detail = {0}: Value is required. If you check the spec docs you can see the various ways to overload these and replace them with your own. Sean On 2/21/06, Michael Heinen [EMAIL PROTECTED] wrote: Hi all, I display at the top of my page a summary of all error messages. In addition I try to mark all incorrect fields with a '*' or another symbol. Currently I have no idea how to implement this in an easy way. The following simple approach is not working: h:inputText id=searchName value=#{ControllerBean.searchName} required=true/ t:message for=searchName showDetail=false showSummary=false*/t:message If I enclose the '*' with a verbatim tag it will be always displayed (even without errors). I'am sure this is a common requirement therefore this question. Michael
Re: myfaces tree2 delete node
I am happy to try and help out but I need a little more investigation from you guys. You will need to investigate the latest source code and let me know where things are breaking down. Unfortunately there are some issues getting the new release done that are taking up most of my time. So if you are serious about fixing this, please dig in and provide an explanation as to where exactly things are failing (in the code iself) instead of just describing the usecase. If you do this, I can likely help you better. Keep in mind I'm not doing any dynamic tree stuff myself (yet) so you will need to help me help you. Sean On 2/22/06, Hendrik Neumann [EMAIL PROTECTED] wrote: I have the same problem... this issue still seems not to be fixed 2006/2/8, Michal [EMAIL PROTECTED]: I've got the same problem - I believe that's the problem of storing old tree somewhere (as it's client side toggle tree). Is there any way to update it? Some flush cache method's ;) or something? I really stuck with this, tried almost all. -- Mit freundlichen Grüßen / Greetings, Hendrik Neumann; Ruhr-University of Bochum
Re: JSF ID's
Why do you need these special characters? Is it for javascript purposes? If so look at the forceId attribute of the tomahawk components. That would be a much safer option. Sean On 2/21/06, Onur Tokan [EMAIL PROTECTED] wrote: Hi, I need to use some special characters in JSF component ids. Like @ and dot(.) You know that it's invalid for specification. So I change the UIComponentBase class so it accepts, all other than : What are the risk of this. Regards, Onur ,
Re: JSF ID's
Tomahawk has an extended version of most of the standard components. Since forceId is not part of the JSF spec it has to be implemented in Tomahawk. Take a look at some of the examples. This sounds like what you need. Sean On 2/21/06, Onur Tokan [EMAIL PROTECTED] wrote: Yes, actucally for using existing js libraries. I am creating the components on the fly from java code. I couldn't find an approviate method to force id? PS: I am importing my faces libraries Regards, On 2/21/06, Sean Schofield [EMAIL PROTECTED] wrote: Why do you need these special characters? Is it for javascript purposes? If so look at the forceId attribute of the tomahawk components. That would be a much safer option. Sean On 2/21/06, Onur Tokan [EMAIL PROTECTED] wrote: Hi, I need to use some special characters in JSF component ids. Like @ and dot(.) You know that it's invalid for specification. So I change the UIComponentBase class so it accepts, all other than : What are the risk of this. Regards, Onur ,
Re: Apache ADF Faces requires JDK 1.5
The ADF stuff is in incubation right now so there are all sorts of possibilities for change. I envision a lively discussion where discuss the pros and cons of allowing tomahawk, tobago or adf to use jdk 1.5 functionality. Currently tomahawk does not have any jdk 1.5 stuff (that I am aware of.) Sean On 2/21/06, Martin [EMAIL PROTECTED] wrote: Craig McClanahan craigmcc at apache.org writes: On 2/21/06, Martin mjdenham at gmail.com wrote: I have tried this already, but unfortunately it does not work (although I am not experienced with maven).I changed the source and target tags in adf-faces/pom.xml as below: source1.5/source target1.4/target but get the error: [INFO] Compilation failure Failure executing javac, but could not parse the error: javac: source release 1.5 requires target release 1.5 That is not a Maven issue ... it is a Java restriction. If you want to say target=1.4, then you cannot say source=1.5 because the new source format requires features in the class format that were not present in the 1.4 version. Regards Craig Thanks for the responses and clarifications. This means there is no way to use the Apache ADF Faces as it stands on JDK 1.4. Maybe the JDK 1.5 specific code could be edited to make it compatible with JDK 1.4. I don't think this would be too hard as the oracle ea19 version was compatible with JDK 1.4.
Re: JSF ID's
He knows. He just wants to get around this b/c of existing javascript. That's why I'm suggesting forceId which doesn't care about such things. Sean On 2/21/06, Dennis Byrne [EMAIL PROTECTED] wrote: I believe the spec does not permit ids w/ '@' . Dennis Byrne -Original Message- From: Onur Tokan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 09:06 AM To: 'MyFaces Discussion' Subject: JSF ID's Hi, I need to use some special characters in JSF component ids. Like @ and dot(.) You know that it's invalid for specification. So I change the UIComponentBase class so it accepts, all other than : What are the risk of this. Regards, Onur ,
Re: JSF ID's
Check the website[1] and examples. Sean [1] http://myfaces.apache.org/tomahawk/forceId.html On 2/21/06, Onur Tokan [EMAIL PROTECTED] wrote: Hi, Ok, I know It's easy to force id's with JSP declerations. However I still can't find a method to force it's id. public void setId(java.lang.String id) is only method to set component id. Can you tell me a method to force id's? Regards, Onur On 2/21/06, Dennis Byrne [EMAIL PROTECTED] wrote: I believe the spec does not permit ids w/ '@' . Dennis Byrne -Original Message- From: Onur Tokan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 09:06 AM To: 'MyFaces Discussion' Subject: JSF ID's Hi, I need to use some special characters in JSF component ids. Like @ and dot(.) You know that it's invalid for specification. So I change the UIComponentBase class so it accepts, all other than : What are the risk of this. Regards, Onur ,
Re: t:selectOneRadio has no preselection with spread layout
Volker created TOMAHAWK-152 [1]. Patches are welcome. Sean [1] http://issues.apache.org/jira/browse/TOMAHAWK-152 On 2/21/06, Volker Weber [EMAIL PROTECTED] wrote: Hi Michael, i just test a bit. I could mak it work by using itemValue=#{true} and itemValue=#{false}. ^^^ ^^ ^ here is my example code: t:selectOneRadio id=draft value=#{testBean.map['draft']} layout=spread f:selectItem itemValue=#{true} itemLabel=True / f:selectItem itemValue=#{false} itemLabel=False / /t:selectOneRadio br/ t:radio for=draft index=0/ br/ t:radio for=draft index=1/ The check for selected is difference between layout=spread and other: On pageDirection and lineDirection layout the stringvalues are checked and on spread layout the real value objects are checked. I create a jira issue for this, but in the meantime you can use the above workaround. Regards, Volker Michael Heinen wrote: Hi Volker, Datafield is a Map containing Objects as values. The requested field 'draft' is of type Boolean. This works well when I use only the f:selectItem tags without layout=spread and the two t:radio tags. Unfortunately I have to use spread for layout issues. -Original Message- From: Volker Weber [mailto:[EMAIL PROTECTED] Sent: Dienstag, 21. Februar 2006 01:51 To: MyFaces Discussion Subject: Re: t:selectOneRadio has no preselection with spread layout Hi, must be something special with your setup, it always worked for me. But this did not mean there is no bug anywhere :-). What kind of bean is the 'datafield' property of document object? The value objects of f:selectItem are String, if you use boolean in datafield, there is no match when check for preselection. try itemValue=#{true} this will result in a boolean value object. Regards, Volker Werner Punz wrote: Looks like a bug to me... Michael Heinen schrieb: Sorry, I don't want to push my question but does anybody know whether this is a bug or whether I do something wrong? *From:* Michael Heinen *Sent:* Freitag, 17. Februar 2006 18:00 *To:* 'MyFaces Discussion' *Subject:* t:selectOneRadio has no preselection Hi all, I have trouble with the t:selectOneRadio. The items are not preselected anymore. They are neither preselected when I enter the page nor after submits (with both: immediate = false or true) When I remove layout=spread and the two t:radio items, everything works fine! Here is my snipplet: h:panelGroup t:selectOneRadio id=draft value=#{DynaAnnoControllerBean.document.datafield['draft']} layout=spread f:selectItem itemLabel=Ja itemValue=true/ f:selectItem itemLabel=Nein itemValue=false/ /t:selectOneRadio t:radio for=draft index=0 / t:radio for=draft index=1 / ... /h:panelGroup Michael -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.
Re: t:selectOneRadio has no preselection with spread layout
Ahh Volker has done your work for you. Volker you are committer now aren't you? Or are you restricted by the gentlemen's agreement? Sean On 2/21/06, Volker Weber [EMAIL PROTECTED] wrote: Patch already attached :-). Sean Schofield wrote: Volker created TOMAHAWK-152 [1]. Patches are welcome. Sean [1] http://issues.apache.org/jira/browse/TOMAHAWK-152 On 2/21/06, Volker Weber [EMAIL PROTECTED] wrote: Hi Michael, i just test a bit. I could mak it work by using itemValue=#{true} and itemValue=#{false}. ^^^ ^^ ^ here is my example code: t:selectOneRadio id=draft value=#{testBean.map['draft']} layout=spread f:selectItem itemValue=#{true} itemLabel=True / f:selectItem itemValue=#{false} itemLabel=False / /t:selectOneRadio br/ t:radio for=draft index=0/ br/ t:radio for=draft index=1/ The check for selected is difference between layout=spread and other: On pageDirection and lineDirection layout the stringvalues are checked and on spread layout the real value objects are checked. I create a jira issue for this, but in the meantime you can use the above workaround. Regards, Volker Michael Heinen wrote: Hi Volker, Datafield is a Map containing Objects as values. The requested field 'draft' is of type Boolean. This works well when I use only the f:selectItem tags without layout=spread and the two t:radio tags. Unfortunately I have to use spread for layout issues. -Original Message- From: Volker Weber [mailto:[EMAIL PROTECTED] Sent: Dienstag, 21. Februar 2006 01:51 To: MyFaces Discussion Subject: Re: t:selectOneRadio has no preselection with spread layout Hi, must be something special with your setup, it always worked for me. But this did not mean there is no bug anywhere :-). What kind of bean is the 'datafield' property of document object? The value objects of f:selectItem are String, if you use boolean in datafield, there is no match when check for preselection. try itemValue=#{true} this will result in a boolean value object. Regards, Volker Werner Punz wrote: Looks like a bug to me... Michael Heinen schrieb: Sorry, I don't want to push my question but does anybody know whether this is a bug or whether I do something wrong? *From:* Michael Heinen *Sent:* Freitag, 17. Februar 2006 18:00 *To:* 'MyFaces Discussion' *Subject:* t:selectOneRadio has no preselection Hi all, I have trouble with the t:selectOneRadio. The items are not preselected anymore. They are neither preselected when I enter the page nor after submits (with both: immediate = false or true) When I remove layout=spread and the two t:radio items, everything works fine! Here is my snipplet: h:panelGroup t:selectOneRadio id=draft value=#{DynaAnnoControllerBean.document.datafield['draft']} layout=spread f:selectItem itemLabel=Ja itemValue=true/ f:selectItem itemLabel=Nein itemValue=false/ /t:selectOneRadio t:radio for=draft index=0 / t:radio for=draft index=1 / ... /h:panelGroup Michael -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain. -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.
Re: t:selectOneRadio has no preselection with spread layout
See ... it pays to be persistent ;-) On 2/21/06, Michael Heinen [EMAIL PROTECTED] wrote: Hi Volker, Many thanks for your support and quick responses. Your workaround rocks and helps me a lot. Michael -Original Message- From: Volker Weber [mailto:[EMAIL PROTECTED] Sent: Dienstag, 21. Februar 2006 13:56 To: MyFaces Discussion Subject: Re: t:selectOneRadio has no preselection with spread layout Hi Michael, i just test a bit. I could mak it work by using itemValue=#{true} and itemValue=#{false}. ^^^ ^^ ^ here is my example code: t:selectOneRadio id=draft value=#{testBean.map['draft']} layout=spread f:selectItem itemValue=#{true} itemLabel=True / f:selectItem itemValue=#{false} itemLabel=False / /t:selectOneRadio br/ t:radio for=draft index=0/ br/ t:radio for=draft index=1/ The check for selected is difference between layout=spread and other: On pageDirection and lineDirection layout the stringvalues are checked and on spread layout the real value objects are checked. I create a jira issue for this, but in the meantime you can use the above workaround. Regards, Volker Michael Heinen wrote: Hi Volker, Datafield is a Map containing Objects as values. The requested field 'draft' is of type Boolean. This works well when I use only the f:selectItem tags without layout=spread and the two t:radio tags. Unfortunately I have to use spread for layout issues. -Original Message- From: Volker Weber [mailto:[EMAIL PROTECTED] Sent: Dienstag, 21. Februar 2006 01:51 To: MyFaces Discussion Subject: Re: t:selectOneRadio has no preselection with spread layout Hi, must be something special with your setup, it always worked for me. But this did not mean there is no bug anywhere :-). What kind of bean is the 'datafield' property of document object? The value objects of f:selectItem are String, if you use boolean in datafield, there is no match when check for preselection. try itemValue=#{true} this will result in a boolean value object. Regards, Volker Werner Punz wrote: Looks like a bug to me... Michael Heinen schrieb: Sorry, I don't want to push my question but does anybody know whether this is a bug or whether I do something wrong? *From:* Michael Heinen *Sent:* Freitag, 17. Februar 2006 18:00 *To:* 'MyFaces Discussion' *Subject:* t:selectOneRadio has no preselection Hi all, I have trouble with the t:selectOneRadio. The items are not preselected anymore. They are neither preselected when I enter the page nor after submits (with both: immediate = false or true) When I remove layout=spread and the two t:radio items, everything works fine! Here is my snipplet: h:panelGroup t:selectOneRadio id=draft value=#{DynaAnnoControllerBean.document.datafield['draft']} layout=spread f:selectItem itemLabel=Ja itemValue=true/ f:selectItem itemLabel=Nein itemValue=false/ /t:selectOneRadio t:radio for=draft index=0 / t:radio for=draft index=1 / ... /h:panelGroup Michael -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.