[Sandbox] selectManyPicklist button text
The selectManyPick component in the sandbox provides a '' and '' button. I was trying to figure out if I can change the text of the buttons to 'Add' and 'Remove' instead of '' and '', but after looking at the code in the renderer of the component I figured that the text of the buttons are hardcoded, encodeSwapButton(facesContext, uiComponent, javascriptRemoveFromSelected, ); From my current understanding there isn't an option for me to change the text of the buttons? -Bharath
RE: panelNavigation2 Issues
Mike, Here's an extract from my page. We are using facelets, jsf 1.2 and tomahawk components in the project. t:documentBody t:div id=subnavigation_outer t:div id=subnavigation h:form t:panelNavigation2 id=nav1 layout=list itemClass=mypage activeItemClass=activeItem openItemClass=selected disabledStyle=color:red;padding: 2px 20px 2px 25px t:navigationMenuItems id=navitems value=#{(menuBean!=null?menuBean:(navHandler)).menuItems }/ /t:panelNavigation2 /h:form /t:div /t:div /t:documentBody Issues that relate to the below problem of mine, https://issues.apache.org/jira/browse/TOMAHAWK-673 https://issues.apache.org/jira/browse/TOMAHAWK-508 - Due to these issue I had to revert from using dynamic menu to static menus (command links etc). I'm unable to figure out the issue with why the menu collapses and doesn't retain state. (https://issues.apache.org/jira/browse/TOMAHAWK-755 ?) -Bharath -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 8:32 PM To: MyFaces Discussion Subject: Re: panelNavigation2 Issues Post your page code for the menu and we might be able to give you some hints. On 2/27/07, Bharath Belagodu [EMAIL PROTECTED] wrote: There have been several problems with tomahawk panelNavigation2 components that I've been working with. The sole reason for us to use panelNavigation2 is for dynamic menu purposes, I've been looking at https://issues.apache.org/jira/browse/ to check on issues already reported but didn't find any, Here are two outstanding issue and would appreciate your feedback on the same, 1. java.lang.IllegalStateException: Component ID j_id28_nav1_item0 has already been found in the view. See below for details. The above exception occurs when there is a validation failure on the webpage and the JSF page is redisplayed. 'Nav1' is the id of the panelNaviagtion2 component; 'item0' are the navigation menu items which are created for the menu to be used. How to avoid this duplication of menu items? 2. The menu collapses and doesn't retain state after a successful POST. After a successful post I return back and action string 'SUCCESS' which takes me to the success.jsf page but the menu is collapsed at this point of time. Any suggestions? The alternative design developed is a static menu which I'd like to avoid if possible. Thanks, Bharath
Sandbox (Tomahawk)
How stable is Sandbox? Not sure if this is ready for prime time, because we faced issues with Trinidad components before switching to Tomahawk. I know that Trinidad components are very rich and attractive but there were one too many issues when we started development with them last year. Even if the Sandbox is stable now, can we guarantee its stability? Is this going to be integrated into Tomahawk library, would I have to change my code to accommodate the integration? I'm trying to use the 'PickList' http://www.irian.at/myfaces-sandbox/picklist.jsf;jsessionid=F9FE2EA5BCB0 B2B98BDD47F98C8E2999 component from the Sandbox. Is this production material? Thanks. -Bharath
RE: Sandbox (Tomahawk)
Appreciate the responses. Downloaded the jar file and the docs (API). Where can I download the war file deployed for http://www.irian.at/myfaces-sandbox/home.jsf I've been looking for the war file in http://people.apache.org/maven-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk-sandbox15-examples/1.1.5-SNAPSHOT/ but the source jar or the war for the example sandbox15 doesn't have the information mentioned in http://www.irian.at/myfaces-sandbox/home.jsf Thanks. -Bharath -Original Message- From: Gerald Müllan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 11:18 AM To: MyFaces Discussion Subject: Re: Sandbox (Tomahawk) Hi, from practical experience i can tell you that this component is quite stable. There are no issues i can remember and i use it in a ready-for-production environment. cheers, Gerald On 2/28/07, Bharath Belagodu [EMAIL PROTECTED] wrote: How stable is Sandbox? Not sure if this is ready for prime time, because we faced issues with Trinidad components before switching to Tomahawk. I know that Trinidad components are very rich and attractive but there were one too many issues when we started development with them last year. Even if the Sandbox is stable now, can we guarantee its stability? Is this going to be integrated into Tomahawk library, would I have to change my code to accommodate the integration? I'm trying to use the 'PickList' http://www.irian.at/myfaces-sandbox/picklist.jsf;jsessionid=F9FE2EA5BCB0B2B98BDD47F98C8E2999 component from the Sandbox. Is this production material? Thanks. -Bharath -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
RE: Sandbox (Tomahawk)
Wasn't sure if building tomahawk would also build sandbox, I'll give that a try. Here's how I got to the sandbox example source, I checked out the files at, svn:http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/sandbox/examp les -Bharath -Original Message- From: Jeff Bischoff [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 1:06 PM To: MyFaces Discussion Subject: Re: Sandbox (Tomahawk) Bharath Belagodu wrote: Where can I download the war file deployed for http://www.irian.at/myfaces-sandbox/home.jsf If you build the project locally, you will get all the artifacts including sandbox examples. See [1] [1] http://wiki.apache.org/myfaces/Building_With_Maven
panelNavigation2 Issues
There have been several problems with tomahawk panelNavigation2 components that I've been working with. The sole reason for us to use panelNavigation2 is for dynamic menu purposes, I've been looking at https://issues.apache.org/jira/browse/ to check on issues already reported but didn't find any, Here are two outstanding issue and would appreciate your feedback on the same, 1. java.lang.IllegalStateException: Component ID j_id28_nav1_item0 has already been found in the view. See below for details. The above exception occurs when there is a validation failure on the webpage and the JSF page is redisplayed. 'Nav1' is the id of the panelNaviagtion2 component; 'item0' are the navigation menu items which are created for the menu to be used. How to avoid this duplication of menu items? 2. The menu collapses and doesn't retain state after a successful POST. After a successful post I return back and action string 'SUCCESS' which takes me to the success.jsf page but the menu is collapsed at this point of time. Any suggestions? The alternative design developed is a static menu which I'd like to avoid if possible. Thanks, Bharath
Javscript Issues with JSF 1.2, Tomahawk 1.1.3
Using JSF 1.2 with Tomahawk 1.1.3 is causing issues with several of the components developed in our application. The dynamic menus and static menus developed using panelNavigation2 aren't working. There is javascript error detected. The javascript error is 'Object Expected'. So, I set to explore just a simple example of a commandLink. The below code has an error, I'm using the tomahawk's commandLink component. t:commandLink action=welcome f:verbatim#8250; /f:verbatim t:outputText value=Test Client / /t:commandLink Changing the t:commandLink to h:commandLink works. Is tomahawk 1.1.3 not compatible with JSF 1.2? Previously we were using myfaces-1.1.4 and it worked great. Also, another strange behavior with JSF 1.2 is that our xhtml files appear as raw files when being displayed in Mozilla browser, if I use IE 6 or IE 7 there isn't an issue. This wasn't the case with myfaces1.1.4. Thanks. -Bharath
RE: Javscript Issues with JSF 1.2, Tomahawk 1.1.3
Jeff, Appreciate the response. Well, the website is not reachable at this time to download 1.1.4 but I had an older copy of tomahawk 1.1.4 downloaded about 4wks ago, that seemed to work with JSF 1.2. The basic problems with commandLink, panelNavigation2 aren't occurring. Where can I find the differences between the two releases? When is tomahawk 1.1.4 going to be released? Appreciate pointers to any URLs. The problem went away but would be good to know what the problem is with tomahawk 1.1.3! Thanks. -Bharath -Original Message- From: Jeff Bischoff [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 3:03 PM To: MyFaces Discussion Subject: Re: Javscript Issues with JSF 1.2, Tomahawk 1.1.3 Bharath, Offhand, I can tell you there were some javascript changes to improve compatibility since Tomahawk 1.1.3. Some of the devs like Martin would know more on this. Just to narrow down which versions your problem is affecting, can you also try with Tomahawk 1.1.4 rc from here [1] and Tomahawk 1.1.5 nightly from here [2]? [1] http://people.apache.org/builds/myfaces/tomahawk-1.1.x/ [2] http://people.apache.org/builds/myfaces/nightly/ Regards, Jeff Bischoff Kenneth L Kurz Associates, Inc. Bharath Belagodu wrote: Using JSF 1.2 with Tomahawk 1.1.3 is causing issues with several of the components developed in our application. The dynamic menus and static menus developed using panelNavigation2 aren't working. There is javascript error detected. The javascript error is 'Object Expected'. So, I set to explore just a simple example of a commandLink. The below code has an error, I'm using the tomahawk's commandLink component. t:commandLink action=welcome f:verbatim#8250; /f:verbatim t:outputText value=Test Client / /t:commandLink Changing the t:commandLink to h:commandLink works. Is tomahawk 1.1.3 not compatible with JSF 1.2? Previously we were using myfaces-1.1.4 and it worked great. Also, another strange behavior with JSF 1.2 is that our xhtml files appear as raw files when being displayed in Mozilla browser, if I use IE 6 or IE 7 there isn't an issue. This wasn't the case with myfaces1.1.4. Thanks. -Bharath
http://issues.apache.org/jira/browse/TOMAHAWK-508
The problem http://issues.apache.org/jira/browse/TOMAHAWK-508 reported is happening with the latest build. Anyone has information on when this would be addressed or a workaround. Static menus may be the route to take but I'd like to defer if we have any alternatives to address the problem.
panelNavigation2 collapses on a new page
In trying to get panelNavigation2 as a menu option, I'm facing this issue of not able to retain the component's active/selected view when opening a link from the menu onto a new page. I'm using facelets, tomahawk 1.1.3 and myfaces. If the menu looks like, Menu 1 First link Second link Menu 2 Third link Fourth link If I click on any of the links above and the menu is displayed on the same page, the active/selected item 'First Link' stays. If I right click on the browser on 'Second Link' and chose 'Open link in new window', then the information/action associated with the 'Second Link' executes, the page is displayed but the menu is collapsed and the menu state isn't retained. I'm also trying to bind the panelNavigation2 component to a 'HtmlPanelNavigationMenu' in my backing bean but it doesn't seem to work. I'll investigate further but wanted to send this email out to the group, just in case someone has already been through this path. Thanks.
RE: NavigationMenuItems and setAction doesn't work
The h:form enclosure to the menu items were lost in facelets and in my templating style. The action is called and I can track and debug the backing bean. From: Bharath Belagodu [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 10:56 AM To: MyFaces Discussion Subject: NavigationMenuItems and setAction doesn't work In trying to create a dynamic menu, I've set the action for the navigation menu items which are created on the fly. Setting the action doesn't cause an event to occur on the navigation menu item? I've used h:messages at the top of the page but the POST doesn't seem to happen. Following from the sample, NavigationMenuItem childNode = getMenuNaviagtionItem( childMenuItem.getName(), #{navHandler.getAction}); public String getAction() { return actStr; } The breakpoint in getAction isn't hit, if I set an external link to the menu item, then there isn't an issue and the external link is being called and the Webpage displayed. I'm using Tomahawk 1.1.3 with MyFaces. Thanks.
RE: Tomahawk 1.1.4/1.1.5
Appreciate the responses, We are using tomahawk 1.1.3 in our project but there are certain features not available in 1.1.3 but made available in 1.1.4/1.1.5, I'd like to read about how project timelines for 1.1.4 or 1.1.5 before making the decision to move ahead with the latest and greatest versions (stable/release candidates/snapshot) of the tomahawk components. The URLs are helpful, I can download the release candidate or snapshots but where do I get to read more about the project timelines etc (I've not been able to find this information). Thank you. Bharath -Original Message- From: Jeff Bischoff [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 10:47 AM To: MyFaces Discussion Subject: Re: Tomahawk 1.1.4/1.1.5 This is the stable 1.1.4 pre-release-candidate right? Correct me if I'm wrong Mike, but this is not the latest Tomahawk build. :) Well he did ask for 1.1.4/1.1.5 so I think best to present him with both choices right? Latest 1.1.5 nightly build: [1] http://people.apache.org/builds/myfaces/nightly/ Stable 1.1.4 release candidate: [2] http://people.apache.org/builds/myfaces/tomahawk-1.1.x/ Regards, Jeff Bischoff Kenneth L Kurz Associates, Inc. Mike Kienenberger wrote: You might be better off using this link instead. http://people.apache.org/builds/myfaces/tomahawk-1.1.x/ On 12/12/06, Jeff Bischoff [EMAIL PROTECTED] wrote: See [1]. [1] http://people.apache.org/builds/myfaces/nightly/ Bharath Belagodu wrote: Folks, Where can I download the latest tomahawk jar files? 1.1.4/1.1.5? Thanks.
RE: Sun RI vs MyFaces
Appreciate all the responses in regarding to this topic. The component base is tomahawk but once tomahawk and myfaces separated out as different build, it probably has minimal impact if myfaces or Sun RI is chosen. Will update the group after few more findings. Thanks. -Original Message- From: Holger Prause [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 2:30 PM To: MyFaces Discussion Subject: Re: Sun RI vs MyFaces Aneesha Govil schrieb: Apart from whatever has already been said.. I did some research when we were deciding this for my project. Though I don't have references now, I read at a few places that there are lesser issues with MyFaces and get fixed/support easily as compared to Sun's RI. Not sure if that is correct though. I have no personal experience with Sun's RI. Aneesha On 12/1/06, *Bharath Belagodu* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Appreciate the responses, There isn't much discussion on using one as suppose to the other on the net. Only one mail archive informed me of some differences, http://mail-archives.apache.org/mod_mbox/struts-user/200505.mbox/%3C32FF [EMAIL PROTECTED] Since both implementations adhere to the spec, there shouldn't be much difference except for java docs, community support etc. I'd consider performance as another criteria but we won't know till we hit it hard with some regression testing. MyFaces has javascript rendering which isn't part of Sun (as of Aug 2005), http://mail-archives.apache.org/mod_mbox/myfaces-users/200508.mbox/%3C00 [EMAIL PROTECTED] %3E Probably sun has better chance of catching up to the spec than MyFaces? -Original Message- From: Holger Prause [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Friday, December 01, 2006 10:52 AM To: MyFaces Discussion Subject: Re: Sun RI vs MyFaces Bharath Belagodu schrieb: What would one prefer for the base RI, Sun or MyFaces and why would one want to choose over another. We use tomahawk components and MyFaces as of now, why should we use MyFaces as suppose to Sun? I read thro' many blogs, email postings but didn't find strong reasons going with one or the other. Only one article back fro 2005 suggested using Sun RI but that might be outdated. Any suggestions? well if u want to use the blueprint solution catalog i would use Suns RI. But with tomahawk theres no need to i think. From my point of view it depend on the http://dict.leo.org/ende?lp=endep=/gQPU.search=environmentenvironmen t u have,what additional libraries u want to use(for example if u plant to use tomahawk components if would prefer myfaces) then u can decide. For example if you deploy your applications on glassfish, i would suggest Sun RI For my enviroment, i use myfaces.(JBoss Server). In fact i cant get Sun RI working in my environment(tried a lot , i maybe made mistakes but it just took too long) Well from my experience if u get one of the solutions (myfaces or ri) working , it dont matter what implementation you use. Hope i could help a bit making a decision. Bye, Holger
Sun RI vs MyFaces
What would one prefer for the base RI, Sun or MyFaces and why would one want to choose over another. We use tomahawk components and MyFaces as of now, why should we use MyFaces as suppose to Sun? I read thro' many blogs, email postings but didn't find strong reasons going with one or the other. Only one article back fro 2005 suggested using Sun RI but that might be outdated. Any suggestions?
RE: Sun RI vs MyFaces
Appreciate the responses, There isn't much discussion on using one as suppose to the other on the net. Only one mail archive informed me of some differences, http://mail-archives.apache.org/mod_mbox/struts-user/200505.mbox/%3C32FF [EMAIL PROTECTED] Since both implementations adhere to the spec, there shouldn't be much difference except for java docs, community support etc. I'd consider performance as another criteria but we won't know till we hit it hard with some regression testing. MyFaces has javascript rendering which isn't part of Sun (as of Aug 2005), http://mail-archives.apache.org/mod_mbox/myfaces-users/200508.mbox/%3C00 [EMAIL PROTECTED] Probably sun has better chance of catching up to the spec than MyFaces? -Original Message- From: Holger Prause [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 10:52 AM To: MyFaces Discussion Subject: Re: Sun RI vs MyFaces Bharath Belagodu schrieb: What would one prefer for the base RI, Sun or MyFaces and why would one want to choose over another. We use tomahawk components and MyFaces as of now, why should we use MyFaces as suppose to Sun? I read thro' many blogs, email postings but didn't find strong reasons going with one or the other. Only one article back fro 2005 suggested using Sun RI but that might be outdated. Any suggestions? well if u want to use the blueprint solution catalog i would use Suns RI. But with tomahawk theres no need to i think.
RE: tree2 commandLink
If the user community has more information and ideas on the below, pls send across and email. From: Bharath Belagodu [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 2:40 PM To: MyFaces Discussion Subject: tree2 commandLink In using Myfaces 1.1.4, tomahawk 1.1.3, I'm trying to get the tree2 working for navigation. The menu system is created during the startup of the application with the appropriate URLs. Since this menu system has to be a reusable component, I can't use navigation rules to specify actions for the tree2. I started off with the sample tree2 and I'm modifying it to fit my requirement. Here's the code to tree2 with the facet for the leaf node (a commandLInk), f:facet name=document h:panelGroup h:commandLink immediate=true rendered=#{node.enabled} styleClass=#{t.nodeSelected ? 'documentSelected':'document'} actionListener=#{treeHandler.selectNode} action=#{node.getIdentifier} t:graphicImage value=images/document.png border=0 / h:outputText value=#{node.description} / /h:commandLink /h:panelGroup /f:facet The TreeNode is constructed with the URL and the URL for the tree leaf node is stored as 'identifier' in TreeNodeBase object. How do I use this URL to navigate the menu structure and also reuse this tree in other webpages for that session? Thanks.
tree2 commandLink
In using Myfaces 1.1.4, tomahawk 1.1.3, I'm trying to get the tree2 working for navigation. The menu system is created during the startup of the application with the appropriate URLs. Since this menu system has to be a reusable component, I can't use navigation rules to specify actions for the tree2. I started off with the sample tree2 and I'm modifying it to fit my requirement. Here's the code to tree2 with the facet for the leaf node (a commandLInk), f:facet name=document h:panelGroup h:commandLink immediate=true rendered=#{node.enabled} styleClass=#{t.nodeSelected ? 'documentSelected':'document'} actionListener=#{treeHandler.selectNode} action=#{node.getIdentifier} t:graphicImage value=images/document.png border=0 / h:outputText value=#{node.description} / /h:commandLink /h:panelGroup /f:facet The TreeNode is constructed with the URL and the URL for the tree leaf node is stored as 'identifier' in TreeNodeBase object. How do I use this URL to navigate the menu structure and also reuse this tree in other webpages for that session? Thanks.