RE: Dynamically Generating a JSCookMenu items

2005-12-12 Thread gRAEME
Hi Alex, I have managed to dynamically alter the options available on a JSCookMenu. Hope the code snippet that follows helps. Regards, Graeme The main part of the code relating to dynamically creation the menu options is as follow: import java.sql.SQLException; import

string concatenation EL expressions

2005-12-12 Thread R. Müller
hi group, a bit OT, but nevertheless worth asking this group, since there are much people here, who're dealing with this each day. its often the case, that you ask a property-map for internationalization (i.e. the ResourceBundle) your pages. sometimes you do it in a dynamic way : imagine

PanelNavigation2 not saving state

2005-12-12 Thread Jan
Hi, I'm using panelNavigation2 for navigation stuff. Each NavigationMenuItem points to different actions in different backingBeans. If one of these actions return an outcome String not mentioned in the faces-config as navigation-rule, faces keeps the actual view and panelNavigation2 keeps the

Re: PanelNavigation2 not saving state

2005-12-12 Thread Mario Ivankovits
Hi Jan! But if the outcome String in the action of the backingbean matches an navigation-rule, faces changes (redirect/forwards...whatever) the *.jsp / *.jsf as it should do. Unfortunately panelNavigation2 loses its state and all nodes which need to stay opened are closed. Do you use redirect /

datatable - parameter passing - workaround?

2005-12-12 Thread Harald Müller
Hi! My current (test)code to create a datatable in a dynamic created tab looks like this: // datatable UIData hdt = (HtmlDataTable)app.createComponent(HtmlDataTable.COMPONENT_TYPE); hdt.setId(hdtId1); hdt.setVar(hdtVar1); tab.getChildren().add(hdt);

Re: datatable - parameter passing - workaround?

2005-12-12 Thread Mathias Brökelmann
use an instance of javax.faces.model.DataModel for the datatable´s value. You can then use datamodel.getRowIndex() or datamodel.getRowData() to get the current row value during the iteration. 2005/12/12, Harald Müller [EMAIL PROTECTED]: Hi! My current (test)code to create a datatable in a

AW: PanelNavigation2 not saving state

2005-12-12 Thread Jan
Hi Mario, I don't use redirect/ in my navigation rules. I already thought it might be the use of tiles:insert, but I already moved the panelNavigation2 tags to the main template, so the panelNavigation would only be aware of the same jsp (main template). But this didn't change anything. Or does

Re: PanelNavigation2 not saving state

2005-12-12 Thread Thomas Spiegl
Jan,panelNavigation2 is statefule and it works with tiles.Does your panelNavigation still have the same clientId after navigation to another page?ThomasOn 12/12/05, Jan [EMAIL PROTECTED] wrote: Hi Mario,I don't use redirect/ in my navigation rules.I already thought it might be the use of

AW: PanelNavigation2 not saving state

2005-12-12 Thread Jan
Hi Thomas, clientId ??? Do you mean the id of the tags ? Or did I miss a chapter ? what is clientId ? and where do I configure it? t:div id=subnavigation_outer styleClass=subnavigation_outer         t:div id=subnavigation_inner styleClass=subnavigation_inner   

layout components

2005-12-12 Thread Dave Brondsema
What layout components are there besides panelGrid and dataTable (and its variants?) We are about to switch to HTML tables simply so we can use a colspan. Aren't there any more advanced JSF components for layout? Thanks, -- Dave Brondsema Software Developer Cornerstone University

Re: h:message not showing up when added in action method

2005-12-12 Thread Mike Kienenberger
addMessage takes a component clientId, not an id. Make sure you're using addMessage(component.getClientId(facesContext)... On 12/12/05, Travis Reeder [EMAIL PROTECTED] wrote: I'm trying to set a message to show up with the h:message tag, but it's not working. Ex: component id=myComponent

Re: panelTabbedPane and form validation error

2005-12-12 Thread Mike Kienenberger
You can change to server-side tab switching. This forces a call to the server each time you change the tab. On 12/10/05, Bil Mulert [EMAIL PROTECTED] wrote: Greetings all, I have a panelTabbedPane with a form on each of its panelTabs. When I submit a form and it returns with validation

Re: Wrong validator methods invoked in Nightly 20051130

2005-12-12 Thread Mike Kienenberger
Validation is only called if the component's submitted value is non-null. Perhaps this is the issue you're seeing? On 12/9/05, Matthias Kahlau [EMAIL PROTECTED] wrote: Hi! I use the validator attribute of inputCalendar, inputText and inputFileUpload. But as I can see in the logging output,

dynamically adding entries panal navigation

2005-12-12 Thread Balasubramanian R
Hi, Can you please explain the steps to create dynamically adding entries panal navigation 2 in myfaces. Bala

Re: rendering behavior of EditableValueHolders

2005-12-12 Thread Mike Kienenberger
Your original set of assumptions is true, so far as I know. If there's no model-update phase, but the component passed validation, then it'll use the local value. On 12/9/05, Matthias Kahlau [EMAIL PROTECTED] wrote: - if submitted value is null, renders its local value, if not null Yep.

Re: datatable - parameter passing - workaround?

2005-12-12 Thread Harald Müller
Hi Mathias! Thanks for your answer. Unfortunately I've still some problems with it ... Changes I've made: List contentList = new ArrayList(); for (int i = 0 ; i10;i++) { contentList.add(row + i); } DataModel content = new ListDataModel(contentList); hdt.setValue(content); The

valueChangeListeners and Datatables

2005-12-12 Thread Miller, John
I am getting some unexpected behavior using a valueChangeListener in a dataTable. I have a dataTable that renderers a list of beans that have a status attributes displayed as a select control. The valuechangelistener updates the DB when the user clicks submit. NOTE: I do not submit the form

Re: t:inputCalendar with renderPopup = true

2005-12-12 Thread Mike Duffy
I just went through the same thing. From a previous post: It would be a good idea to add a note to the documentation page for t:inputCalendar/ (http://myfaces.apache.org/tomahawk/calendar.html), stating, This component requires the MyFaces' Extensions Filter

RE: inputCalendar - popup - styles and other properties - problem

2005-12-12 Thread Mike Duffy
I am using 1.1 and it is not fixed. Can anyone update a MyFaces Jira issue? Mike --- Balaji Kalyansundaram [EMAIL PROTECTED] wrote: Hi Mike I have this problem with 1.0.9 and opened a jira. After sometime Martin sent an email stating that this bug was fixed.

Re: t:inputCalendar with renderPopup = true

2005-12-12 Thread gramani
Mike Duffy [EMAIL PROTECTED] wrote on 12/12/2005 01:00:28 PM: I just went through the same thing. From a previous post: It would be a good idea to add a note to the documentation page for t:inputCalendar/ (http://myfaces.apache.org/tomahawk/calendar.html), stating, This component

Re: DHTML scripting and JSF apps

2005-12-12 Thread Mike Kienenberger
The naming is based on NamingContainers. * If this component is a descendant of a NamingContainer then the * client id is of form {namingContainerId}:{componentId}. I can't remember all of which components implement NamingContainer, but I think it's UIForm and UIData. UIData uses

Re: DHTML scripting and JSF apps

2005-12-12 Thread Werner Punz
Steve Ivy wrote: Hello, I'm working on the front end for a JSF app, and I'm trying to add some interactivitiy to the interface via javascript. Typically you do a lot of: document.getElementById ('someId').etc () But I find that setting the id in JSF usually results in something like

Re: DHTML scripting and JSF apps

2005-12-12 Thread Steve Ivy
Thanks all, I've looked at forceId, and it looks like it will do what I'm looking for in a limited context. However, there appears to be a gap in api coverage between JSF and myfaces: JSF provide tags for things like form labels, spans (via outputText) etc, but these elements inherit the

Re: DHTML scripting and JSF apps

2005-12-12 Thread Mike Kienenberger
If you're programmically building the javascript, you can just output component.getClientId(FacesContext) and it'll generate the fully-qualified id for you. You can get a reference to component by binding it to your backing bean. I don't understand your comment about a gap between JSF and

Re: DHTML scripting and JSF apps

2005-12-12 Thread Steve Ivy
Hm. I think it's not a gap in MyFaces, just in the extensions (tomahawk?). The extensions provide the forceId functionality but not for any JSF component, only for the extension components I think. Anyway, I've decided to forgo the whole thing and build the path to the elements I need in

Re: DHTML scripting and JSF apps

2005-12-12 Thread Werner Punz
Steve Ivy wrote: Hm. I think it's not a gap in MyFaces, just in the extensions (tomahawk?). The extensions provide the forceId functionality but not for any JSF component, only for the extension components I think. Actually no, the tomahawk extensions have eqivalents for most of not all

Navigation Strangeness.

2005-12-12 Thread Elam Daly
Howdy,I have a page, index.jsp with a commandButton that links to a session managed bean in my JSF application.The managed bean determines the status of the user and returns a string, either in or out. If it returns out the user is redirected to another page, punchOut.jsp, which then gives the

Re: dynamically adding entries panal navigation

2005-12-12 Thread Thomas Spiegl
You can dynamically create your menu items by using t:navigationMenuItems value=... Note: The value binding will be evaluated if and only if the menu is not present in the current view. Typically this will happen when the menu is rendered the first time. Hence the menu-tree will keep the same.

Re: datatable - parameter passing - workaround?

2005-12-12 Thread Simon Kitching
Hi, The rowIndex value changes when the enclosing table iterates over the DataModel. For example, when the table is *rendering*, it does: for(int index=0; ; ++index) { dataModel.setRowIndex(index); if (!dataModel.isRowAvailable) break; Object o = dataModel.getRowData();

Re: h:message not showing up when added in action method

2005-12-12 Thread Simon Kitching
Travis Reeder wrote: I'm trying to set a message to show up with the h:message tag, but it's not working. Ex: component id=myComponent h:message for=myComponent/ It shows up validation errors and what not, but now when I add like this in an action method:

RE: valueChangeListeners and Datatables

2005-12-12 Thread Miller, John
I resolved this issue. This behavior was my fault, the dataTable was not enclosed in a form. Apologies for sending anyone on a wild goose chase it was just a stupid developer error From: Miller, John [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 11:29 AM To:

Re: layout components

2005-12-12 Thread Aleksei Valikov
Hi. What layout components are there besides panelGrid and dataTable (and its variants?) We are about to switch to HTML tables simply so we can use a colspan. Aren't there any more advanced JSF components for layout? I've written a templated panel component that uses HTML-based templates

TomaHawk DataTable doesn't sort my data

2005-12-12 Thread Qiang Yu
Hello all, I am having some difficulties with t:DataTable and t:commandSortHeader: they do not sort my data. I have a bean named expList saved in the session, and I have programmed a sort method following the MyFaces examples. But I found whenever I click the command sort header, the sort function

Re: valueChangeListeners and Datatables

2005-12-12 Thread Simon Kitching
Miller, John wrote: I resolved this issue. This behavior was my fault, the dataTable was not enclosed in a form. That happens ;-) I can understand how the results could be confusing; when I read your email my initial thought was what on earth caused this??. As the results of this simple

RE: TomaHawk DataTable doesn't sort my data

2005-12-12 Thread rahmoune patrick
Hello,I don't know so much about dataTable but I call the sort method explicitely when I return the data list.maybe someone more experienced can commentHope it help you patrick Qiang Yu [EMAIL PROTECTED] a écrit: Hello all,I am having some difficulties with t:DataTable

Re: TomaHawk DataTable doesn't sort my data

2005-12-12 Thread Simon Kitching
Are you aware that the sortColumn expression should point to a simple PROPERTY on the backing bean, not a sort method? The property is assigned the *name* of the *column* to sort on. The method pointed to by the value attribute is responsible for returning its data in the correct sort order;

Re: TomaHawk DataTable doesn't sort my data

2005-12-12 Thread Simon Kitching
NB: My suggestion below is exactly the same as what Patrick was saying, just in different words. The method that returns the data list needs to do the sorting... Simon Kitching wrote: Are you aware that the sortColumn expression should point to a simple PROPERTY on the backing bean, not a

RE: dynamically adding entries panal navigation

2005-12-12 Thread Balaji Kalyansundaram
Check this wiki http://wiki.apache.org/myfaces/Dynamic_Menus_with_JSCookMenufor adding items to navigationMenuItems. -Original Message-From: Thomas Spiegl [mailto:[EMAIL PROTECTED]Sent: Tuesday, 13 December 2005 6:25 AMTo: MyFaces DiscussionSubject: Re: dynamically adding

Re: TomaHawk DataTable doesn't sort my data

2005-12-12 Thread Qiang Yu
thanks all, stupid me think the sort method will be automatically called :..) thanks! Qiang On 12/12/05, Simon Kitching [EMAIL PROTECTED] wrote: NB: My suggestion below is exactly the same as what Patrick was saying, just in different words. The method that returns the data list needs to do

Dynamic JSCOOKMENU with actionListener

2005-12-12 Thread Saumil Mehta
Hello, Ive been using JSCookMenu to dynamically generate menus in my JSP pages. Here is what the JSP looks like, it is pretty simple: t:jscookMenu layout=hbr theme=ThemeOffice t:navigationMenuItems value=#{menuBean.topList}/ /t:jscookMenu My bean getTopList method returns

svn problem

2005-12-12 Thread David G. Friedman
I tried checking out the SVN repository but the current repository was empty.. Did I miss something? Is it empty at certain times of the day during a build? (like 9pm Eastern US time?) Regards, David

Re: svn problem

2005-12-12 Thread Dennis Byrne
It only appears empty w/ SVN externals . CO of current should get everything. What does the SVN client say? Original message Date: Mon, 12 Dec 2005 21:10:54 -0500 From: David G. Friedman [EMAIL PROTECTED] Subject: svn problem To: MyFaces users@myfaces.apache.org I tried checking

Re: Dynamic JSCOOKMENU with actionListener

2005-12-12 Thread Thomas Spiegl
sorry, the actionListner is not implemented yet in JSCookMenu, it just works with panelNavigation2 regards, Thomas On 12/13/05, Saumil Mehta [EMAIL PROTECTED] wrote: Hello, I've been using JSCookMenu to dynamically generate menus in my JSP pages. Here is what the JSP looks like,

RE: svn problem

2005-12-12 Thread David G. Friedman
Nevermind. I just had to hit checkout. My mistake was thinking I'd be able to browse it before trying to check anything out into an Eclipse project. I guess SubClipse doesn't necessarily work that way. It had me fooled since it let me look at other directories under

RE: svn problem

2005-12-12 Thread Dennis Byrne
You are not the first ;) Original message Date: Mon, 12 Dec 2005 22:01:36 -0500 From: David G. Friedman [EMAIL PROTECTED] Subject: RE: svn problem To: MyFaces Discussion users@myfaces.apache.org Nevermind. I just had to hit checkout. My mistake was thinking I'd be able to browse

Re: svn problem

2005-12-12 Thread Simon Kitching
Hi, The current directory is special. It has no real children, but does have subversion externals properties associated with it. These are kind of like unix symbolic links or windows shortcuts. Externals don't appear when doing a directory listing, but are processed when doing a checkout.

virtual hosting with Myfaces using different setViewId / setViewRoot strings?

2005-12-12 Thread David G. Friedman
I want to virtual host with JSF (MyFaces). Since not every site will have the same exact page names, I came up with the exotic idea of modifying the lifecycleImpl class so it sets the view root as /whatever.jsf but uses createView on /hostname/whatever.jsf. That way, a virtual host (called

Re: h:message not showing up when added in action method

2005-12-12 Thread Nicklas Karlsson
It shows up validation errors and what not, but now when I add like this in an action method: FacesContext.getCurrentInstance().addMessage(componentId, new FacesMessage(severity, rawMsg, null));I think Simon is referring to http://www.jsf-faq.com/faqs/faces-messages.html#110I have my generic (not