Re: JSF - display a collection in one line?
kareda schrieb: Hi, A collection of Strings, I just want to display them in one line. Is that possible? What about using StaticText/Label/OutputText ... and Collection.toString()?
Re: jscookMenu with outputLink?
I'am using Tomahawk 1.1.3 and I'am not a developper of MyFaces. My menu is created dynamically in PageBean because it depends on permissions and developement progress. That means that the NavigationMenuItem objects were not declared in JSP. When you look at MyFacesHack.js you find 3 possibilities of using the menu. 1. URL Set action to "http://...";. 2. JavaScript Set action to "javascript:myFunction()". 3. JSF action method (or action listener method) There are some bugs (or features) you have to pay attention to. 1. The renderer overwrites all targets with the id of the enclosing HTML form element. (They were interpreted as form names.) That means in case 1 always the same window is used (with name for example 'Menu:form1', if JSCookMenu is part of a PageFragment named Menu.jspf). To avoid this you can use case 2 (or change a line in renderer class). Set action to "javascript:window.open('http://...', '_blank')". In this case the target/form name is interpreted as target. 2. Read my message from yesterday. Ken McArthur schrieb: > Hi, > > Is there any way to use jscookMenu with a basic url instead of having to > declare an action navigation rule? > > Thanks, > Ken
Re: jscookMenu with outputLink?
correction "Set action to "javascript:window.open('http://...', '_blank')". In this case the target/form name is interpreted as target." should be Set action to "javascript:window.open('http://...', '_blank')". In this case the target/form name is ignored.
Re: jscookmenu
I'am using JSCookMenu of Tomahawk 1.1.3 in a Studio Creator 2.1 project with Sun RI 1.1_01. I have to add to JSP too. Another bug is maybe in the Renderer. When I use both action methods and action listeners in the same menu and click on a action link, the action listeners from the previous request were called. Maybe this is influenced by the fact, that the menu is part of a page fragment. My workaround is - not to use action methods - always set the action attribute to a non null value - always set the value unequal to null I don't know if this is a known feature. If you are interested in a test case I would create a minimal project. It's some work because I'am using a database in the project (the menu is dynamically created dependent on the permissions of the user) and must create a new project. That's why I can complete this still in a few days and you have to wait. Paul Spencer schrieb: > Pierre, > I am not sure I understand you answer. > > Are you saying the HTML generated by is > missing ? > > Can you open an issue and submit a patch. > > Paul Spencer > > > > Pierre Raoul wrote: >> Paul, >> >>> I asked a similar question [1]. I suspect their is a bug because the >>> action is not called when the menu item is clicked. I do not think >>> you want the action called when the menu item is generated, which >>> would occur when the EL is evaluated. >>> >> Thank you for your reply. >> >> I found the answer: a tag >> >> >> >> is needed before the jscookmenu one. I still have some issues with the >> menu styles, but it works. >> >> Pierre >> >> >> >> >