Trinidad: table

2006-12-13 Thread Meyer, Stefan
I have a pretty common problem with tables. I put a button in a table column. A setActionListener makes sure that the called action can access the id of the entity the column represents and the action can operate on that entity. The CollectionModel needs to be present before model update so that

AW: Dialog: frame?

2006-12-13 Thread Meyer, Stefan
I was also wondering how to modify window options like resizable,scrollbars,.. -Ursprüngliche Nachricht- Von: Meyer, Stefan [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 12. Dezember 2006 18:34 An: MyFaces Discussion Betreff: Dialog: frame? I use the dialog framework o open a popup.

I'm lost :(

2006-12-13 Thread Eduardo dudu
Hello dear Reader: I'm playing with your funny jsf's clothes and I'm lost My problem is: When My Tomcat starts, reads all the listeners specificated in jar's tld's, and then start all, making the initiation of MYFACES I supouse the order is: 1 ConfigureListener (JSF library) 2

Dailog and Trinidad table

2006-12-13 Thread Meyer, Stefan
I am using a trinidad table and want to launch a dialog to edit the detail of the entities represented by the columns. The launching button is a commandButton with partialSubmit set to true. When returning from the Dialog the column that displays the possibly modified name of the edited entity is

Re: Dialog: frame?

2006-12-13 Thread Matthias Wessendorf
Stefan, most of the Trinidad / Oracle team is on the trinidad list, not here around. Would be good to ask very Trinidad specific questions like this there. I have no idea how to disable the frame thing Matthias On 12/13/06, Meyer, Stefan [EMAIL PROTECTED] wrote: I was also wondering how to

Re: Dailog and Trinidad table

2006-12-13 Thread Matthias Wessendorf
I have a demo on some trinidad features, one of the examples is exactly that. I can hand you offline if the following is not enough. In [1] there are also useful informations on the dialog -Matthias [1] http://incubator.apache.org/adffaces/devguide/index.html

Re: InputSuggestAjax: [...]NoSuchMethodError: [...]getActionUrl(Ljavax/faces/context/FacesContext;)Ljava/lang/String;

2006-12-13 Thread Gerald Müllan
Hi, just a typo? Using the UserBean in combination with getSuggestItems should do the thing. So use suggestedItemsMethod=#{UserBean.getSuggestItems} instead of suggestedItemsMethod=#{inputSuggestAjax.getSuggestItems}. Or is the method also located inside the inputSuggestAjax bean? Are you

RE: InputSuggestAjax: [...]NoSuchMethodError: [...]getActionUrl(Ljavax/faces/context/FacesContext;)Ljava/lang/String;

2006-12-13 Thread Jerome Iffrig \(Europe\)
I came across the same problem yesterday lol and did not resolve it yet :-/ Gerald, when you say Are you using facelets, client-side state saving? Do you mean that these are prerequisites for the InputSuggestAjax component to work? If it is the case, how to you configure them? Cheers

Re: InputSuggestAjax: [...]NoSuchMethodError: [...]getActionUrl(Ljavax/faces/context/FacesContext;)Ljava/lang/String;

2006-12-13 Thread Gerald Müllan
Hi, well the component currently only works with server side state saving. This issue was introduced with a dojo update, and is not resolved until now. Should not be the biggest issue, but is a matter of time. :) Never tested the component with facelets, but i think we have to do an addition to

AW: Dailog and Trinidad table

2006-12-13 Thread Meyer, Stefan
Thanks a lot, The mailing list does not seem to exist. Could not post to [EMAIL PROTECTED] Stefan -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Matthias Wessendorf Gesendet: Mittwoch, 13. Dezember 2006 10:17 An: MyFaces Discussion

Re: Dailog and Trinidad table

2006-12-13 Thread Matthias Wessendorf
On 12/13/06, Meyer, Stefan [EMAIL PROTECTED] wrote: The mailing list does not seem to exist. Could not post to [EMAIL PROTECTED] Right! it is user :) adffaces-user@incubator.apache.org note, that you also need to subscribe here first [EMAIL PROTECTED] -M Stefan -Ursprüngliche

Action method is not invoked

2006-12-13 Thread Behrang Saeedzadeh
I have a JSF (facelet) page like this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:ui=http://java.sun.com/jsf/facelets;

Re: Action method is not invoked

2006-12-13 Thread Volker Weber
[org.apache.myfaces.lifecycle.LifecycleImpl] - exiting from lifecycle.execute in processValidations because getRenderResponse is true from one of the after listeners Looks like an validation error somewhere with skip of updateModel and invokeApplication! add a h:messages tag to the page see

Re: Action method is not invoked

2006-12-13 Thread Behrang Saeedzadeh
Hi, Thanks a lot Volker! That helped me pinpoint the issue! And damn! I had forgotten to write the setter for the assignedGroupPrivileges property. Wouldn't it be better if an exception was thrown? Regards, Behi On 12/13/06, Volker Weber [EMAIL PROTECTED] wrote:

Re: Action method is not invoked

2006-12-13 Thread Behrang Saeedzadeh
Oops! I was wrong! I have added the setter but I am still getting the error. The h:messages prints this out but it is not very helpful: Validation Error privileges: Value is not a valid option Any ideas? -Behi On 12/13/06, Behrang Saeedzadeh [EMAIL PROTECTED] wrote: Hi, Thanks a lot

[tomahawk] problem with jscookmenu in firefox and mozilla

2006-12-13 Thread Andrzej Jakubowski
Hello, I have got a problem with jscookmenu in firefox 2, 1.0 (linux), Mozilla 1.7.2 (MS). Menu does not dispaly at all, and in the JS console some errors appear. Menu works fine in Opera and in IE 6. Errors from firefox: Error: myThemeOfficeBase is not defined Plik źródłowy:

Problems while programmatically adding components

2006-12-13 Thread Madhav Bhargava
Hi All, I have a JSP which uses tiles. The left menu part of the JSP needs to be programmatically created as the left menu will differ based on the role the use plays. In the leftNavigationMenu.jsp - included as a tile in layout.jsp I have the following code: t:div id=subnavigation_outer

Re: Action method is not invoked

2006-12-13 Thread Volker Weber
Which class type the content of RoleEditBean.groupPrivileges ? must be the same as RoleEditBean.assignedGroupPrivileges. And if not String or any 'native' Object you need a Converter. The created object must equals to one of the items. eg:

Re: JSF is the answer? I don't think so...

2006-12-13 Thread David Chandler
The POST-REDIRECT-GET pattern has been very useful for me in solving problems with the back button and bookmarking. PRG can be applied to Web apps in any framework, but JSF allows you to solve it centrally using a phase listener (see below). Or you can use the redirect element in all your

Re: Action method is not invoked

2006-12-13 Thread Behrang Saeedzadeh
Volker, assignedGroupPrivileges contains String values, and groupPrivileges contains SelectItems with String values. I debugged into the MyFaces code and I found out that in the UIInput.validate (or somewhere deeper in the call frame), a list of SelectItem elements was empty and validate was

Re: I'm lost :(

2006-12-13 Thread Scott O'Bryan
Eduardo, You shouldn't be defining those listeners in your web.xml. Scott Eduardo dudu wrote: Hello dear Reader: I'm playing with your funny jsf's clothes and I'm lost My problem is: When My Tomcat starts, reads all the listeners specificated in jar's tld's, and then start all, making the

Re: I'm lost :(

2006-12-13 Thread Matthias Wessendorf
there was / is an issue with the latest/greatest tomcat -M On 12/13/06, Scott O'Bryan [EMAIL PROTECTED] wrote: Eduardo, You shouldn't be defining those listeners in your web.xml. Scott Eduardo dudu wrote: Hello dear Reader: I'm playing with your funny jsf's clothes and I'm lost My

RE: I'm lost :(

2006-12-13 Thread Nebinger, David
Wow, Scott, I'm impressed that you could actually infer some kind of meaningful question and, better yet, some descriptive facts from Eduardo's attempt at being cute. He must not understand that we, as geeks, can typically understand sarcasm but have little ability to understand light and

Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil
Hi, I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1. I followed the instructions at [1] however, before that I was just getting an error for tomahawk jars as the absolute uri http://myfaces.apache.org/tomahawk was not found in web.xml or jars After following the

controlling expansion of large trees

2006-12-13 Thread Renzo Tomaselli
Hi all, did anybody try to control expansion of large trees by inserting a paged dataTable on large branches ? Is that kind of nesting possible at all for tree2 components ? Thanks -- Renzo

Re: Jboss and Myfaces problem

2006-12-13 Thread Jeff Bischoff
I don't know why that wiki page tells you to add the SourceCodeServlet, that is only for the example app. Aneesha Govil wrote: Hi, I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1. I followed the instructions at [1] however, before that I was just getting an error for

Re: Jboss and Myfaces problem

2006-12-13 Thread Andreas Berger
Do you use facelets? If so, check if you put a tomahawk.taglib.xml (needed by faclets) in your WEB-INF directory. 2006/12/13, Aneesha Govil [EMAIL PROTECTED]: Hi, I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1. I followed the instructions at [1] however, before that I was just

Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil
Nope, I am not using facelets. Thanks, Aneesha On 12/13/06, Andreas Berger [EMAIL PROTECTED] wrote: Do you use facelets? If so, check if you put a tomahawk.taglib.xml (needed by faclets) in your WEB-INF directory. 2006/12/13, Aneesha Govil [EMAIL PROTECTED]: Hi, I am migrating my JSF app

Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil
That's what I thought too but when it wouldn't work, I thought I'd give it a try. No luck. :( Thanks, Aneesha On 12/13/06, Jeff Bischoff [EMAIL PROTECTED] wrote: I don't know why that wiki page tells you to add the SourceCodeServlet, that is only for the example app. Aneesha Govil wrote:

Re: Jboss and Myfaces problem

2006-12-13 Thread Mick Knutson
Can you post your web.xml? On 12/13/06, Andreas Berger [EMAIL PROTECTED] wrote: Do you use facelets? If so, check if you put a tomahawk.taglib.xml (needed by faclets) in your WEB-INF directory. 2006/12/13, Aneesha Govil [EMAIL PROTECTED]: Hi, I am migrating my JSF app from Tomcat

is this doable

2006-12-13 Thread Charbel Abdul-Massih
Is there a way to extend the faces-config.xml file??? More specifically, I would like the ability to set a parameter somewhere in my navigation-rule like so (in bold) navigation-rule from-view-id.../from-view-id navigation-case from-outcome.../from-outcome

Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil
Well the exact web.xml is really long and has a lot of other existing application stuff in it. However, I copied all the below elements to that web.xml. If this doesn't point to anything, I can copy the exact web.xmlwhen I am at work tomorrow morning. Another thing, the web application is

Re: Jboss and Myfaces problem

2006-12-13 Thread Andreas Berger
Where did you put the tomahawk.jar? For some jars JBoss need it in the war file. It's not enough to link it vie manifest. 2006/12/13, Aneesha Govil [EMAIL PROTECTED]: Well the exact web.xml is really long and has a lot of other existing application stuff in it. However, I copied all the below

Exception Handling

2006-12-13 Thread Stefan Neumann
Hi, I want to catch all unhandled exceptions at one point and send error mails to the developer. So I decided to use the the first way discribed here: http://wiki.apache.org/myfaces/Handling_Server_Errors. I throw intentionally a NPE but it never gets caught. So what I have done so far: public

Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil
I put it in the manifest and in tomcat/jsf-libs folder of JBoss... I will try putting it in the war. Aneesha On 12/13/06, Andreas Berger [EMAIL PROTECTED] wrote: Where did you put the tomahawk.jar? For some jars JBoss need it in the war file. It's not enough to link it vie manifest.

RE: NavigationMenuItems and setAction doesn't work

2006-12-13 Thread Bharath Belagodu
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

panelTabbelPane with variable tabs

2006-12-13 Thread Renzo Tomaselli
Hi, is it true that component panelTabbedPane can be used only with a static number of tabs, e.g. panelTab subcomponents ? At least this is what I understood from documentation. If true, is there any ongoing activity to have something like "panelTabs" in future versions ? Thanks -- Renzo

Spoofing commandLink

2006-12-13 Thread Kevin Galligan
I've been wondering something for a little while now. Some of the crud style links in my app use 'h:commandLink', with 't:updateActionListener' to set the particular element id value for that page. In days past I'd put the id on the query string, so like ... /app/DetailPage.do?itemId=1234

Where to find a Demo WAR containing demo of towahawk and tomahawk sandbox?

2006-12-13 Thread Jerome Iffrig \(Europe\)
Hi, Where to find a Demo WAR containing demo of towahawk and tomahawk sandbox? Merci!

Re: Problems while programmatically adding components

2006-12-13 Thread Simon Kitching
Madhav Bhargava wrote: Hi All, I have a JSP which uses tiles. The left menu part of the JSP needs to be programmatically created as the left menu will differ based on the role the use plays. In the leftNavigationMenu.jsp – included as a tile in layout.jsp I have the following code:

Re: Where to find a Demo WAR containing demo of towahawk and tomahawk sandbox?

2006-12-13 Thread Jeff Bischoff
See [1]. Download one with examples in the filename [1] http://people.apache.org/builds/myfaces/nightly/ Jerome Iffrig (Europe) wrote: Hi, Where to find a Demo WAR containing demo of towahawk and tomahawk sandbox? Merci!

selectManyCheckBox with Integer values

2006-12-13 Thread Behrang Saeedzadeh
Hi, I have created a custom converter for a selectManyCheckBox with int values and it is working fine. Is there something available prepackaged with the standard JSF that I can use instead of my custom converter? Also, the inputText does not require a custom converter for handling int values.

Javascript/css issues with StreamingAddResource

2006-12-13 Thread Ravindar Reddy
Hi, Followed the instructions on http://wiki.apache.org/myfaces/Performance to replace ADD_RESOURCE_CLASS with StreamingAddResource. All the JavaScript related functionality is broken in the existing pages. The main problem is that the JavaScript/CSS files from components (e.g.: JsCookMenu) are

resotring state

2006-12-13 Thread Matt Tyson
Hello, This works using server-side state saving: UIViewRoot viewRoot = context.getApplication().getViewHandler().restoreView(context, viewId); And then I can get the component I'm interested in. The viewRoot has no children if its client-side state saving. Do I need to manually restore the

Re: resotring state

2006-12-13 Thread Grant Smith
Hi Matt, Just out of curiosity, why aren't you using Tomahawk's saveState component ? Seems like you might be reinventing the wheel... On 12/13/06, Matt Tyson [EMAIL PROTECTED] wrote: Hello, This works using server-side state saving: UIViewRoot viewRoot =

How to set the default state of the DetailToggler currentDetailExpanded property?

2006-12-13 Thread José María Fernández Varela
I have the same problem that Paul Spencer: How do I display Master/Detail table with the detail displayed by default? Based on the Master/Detail example, I am able to display the table, but the detail is hidden by default.

Re: Spoofing commandLink

2006-12-13 Thread David Chandler
Kevin, I can't speak to Tomahawk's dataTable or updateActionListener, but MyFaces' h:dataTable uses simple index values (0,1,2...) for each row. By changing the index in the request, a hacker can access a different row, but only from the set of rows that were in the data set bound to the

Re: resotring state

2006-12-13 Thread Simon Kitching
Matt Tyson wrote: Hello, This works using server-side state saving: UIViewRoot viewRoot = context.getApplication().getViewHandler().restoreView(context, viewId); And then I can get the component I'm interested in. The viewRoot has no children if its client-side state saving. Do I need to

Re: resotring state

2006-12-13 Thread Matt Tyson
Simon, Here's where the problem arises. This is an ajax request being handled in a phase listener. I'm waiting till after the the restoreView phase, but with client-side, the request is 1) missing the state and 2) missing the viewRoot. So I can add the state information manually into the

Re: Dojo and MyFaces

2006-12-13 Thread gab_s79
I am trying to use it, but not successfull yet. Actually I was trying to use the dojoInitializer tag, but is not working. It says it does not exist. Then I am trying to place directly the *.js files. I could able to display a button (hello world tutorial), but it is messing up all the layout.

Re: resotring state

2006-12-13 Thread Matt Tyson
Got it. Here's the params I needed to send with the ajax request: var clientTree = document.getElementById(jsf_tree_64).value; var clientState = document.getElementById(jsf_state_64).value; var viewId = document.getElementById(jsf_viewid).value; dojo.io.bind({

Re: resotring state

2006-12-13 Thread Simon Kitching
Matt Tyson wrote: Got it. Here's the params I needed to send with the ajax request: var clientTree = document.getElementById(jsf_tree_64).value; var clientState = document.getElementById(jsf_state_64).value; var viewId = document.getElementById(jsf_viewid).value;

error - javax.faces.application.NavigationHandler

2006-12-13 Thread Dave
ERROR [STDERR] java.lang.IllegalArgumentException: Class org.apache.myfaces.custom.redirectTracker.Redirect TrackerNavigationHandler is no javax.faces.application.NavigationHandler Anyone knows what is the cause of the error? The error message seems to show up after I put all myfaces

Re: [OT] RE: JSF is the answer? I don't think so...

2006-12-13 Thread Adam Koprowski
Hello everybody, Thanks for all your answers, hints, encouragement... I really appreciate that. I'm not about to give up, I'm just trying to figure out what's the best thing to do. Using plain old links may work in some cases but often you really have some kind of a state in your web

Re: resotring state

2006-12-13 Thread Matt Tyson
Simon, I hear you. I think the rationale behind the client-side is the heavy server load. Looks like one of those situations where there's no clear winner -- highly dependant on the situation... ie, when does the memory usage of server-side become more trouble than sending all that data on the

Re: error - javax.faces.application.NavigationHandler

2006-12-13 Thread Simon Kitching
Dave wrote: ERROR [STDERR] java.lang.IllegalArgumentException: Class org.apache.myfaces.custom.redirectTracker.Redirect TrackerNavigationHandler is no javax.faces.application.NavigationHandler Anyone knows what is the cause of the error? The error message seems to show up after I put all

http://java.sun.com/jsf/html cannot be resolved

2006-12-13 Thread Dave
After moving all jars (including myfaces jars) into JBoss container under server/default/lib, I got the following error: ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw exception javax.faces.FacesException: The absolute uri: http://java.sun.com/jsf/html cannot be

AW: [Tobago] Why no markup for tc:textarea?

2006-12-13 Thread H. Swaczinna
Please, please provide a markup attribute for all input components. I have to set the background color for some individual input components. So far, I use a Javascript workaround, but this doesn't work, when the component resides on an Ajax loaded part of the page (tc:popup, tc:tab). So when the

how to buffer tree rendering, possible?

2006-12-13 Thread Dave
I have some performance issues with MyFaces. It tooks 500 miliseconds to render a tree2(not very big). Its tree data model is buffered and shared by all users. It is quite expensive just to render the tree. I am wondering if I can buffer the rendering to improve performance because the tree

Re: how to buffer tree rendering, possible?

2006-12-13 Thread Andrew Robinson
t:buffer may work. Just put the tree in it and only render the buffer if the backing bean value that you store it in isn't already set. On 12/13/06, Dave [EMAIL PROTECTED] wrote: I have some performance issues with MyFaces. It tooks 500 miliseconds to render a tree2(not very big). Its tree

Shale's s:token to prevent double click

2006-12-13 Thread pallavi.roy
Hi Everybody, I have a JSF Portlet and i want to prevent the double click on a command button. After going through previous posts i have seen suggestions for using s:token. Can s:token work in this scenario. (I not using Myfaces RI but SUN's RI) If so,where are the jar's that i need to

Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil
Hi, It works after I copy the jat files in WEB-INF/lib of the war file. It's working now :D Thanks! Regards, Aneesha On 12/13/06, Aneesha Govil [EMAIL PROTECTED] wrote: I put it in the manifest and in tomcat/jsf-libs folder of JBoss... I will try putting it in the war. Aneesha On

Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil
Pardon me, jar files. On 12/14/06, Aneesha Govil [EMAIL PROTECTED] wrote: Hi, It works after I copy the jat files in WEB-INF/lib of the war file. It's working now :D Thanks! Regards, Aneesha On 12/13/06, Aneesha Govil [EMAIL PROTECTED] wrote: I put it in the manifest and in

Re: http://java.sun.com/jsf/html cannot be resolved

2006-12-13 Thread Aneesha Govil
Hi Dave, I do not think that it would work that way. You might want to look at [1] and [2]. [1] http://www.nabble.com/Jboss-and-Myfaces-problem-tf2814749.html [2] http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss Hope that helps. Aneesha On 12/14/06, Dave [EMAIL PROTECTED] wrote:

Re: Problems while programmatically adding components

2006-12-13 Thread Simon Kitching
Madhav Bhargava wrote: Hi Simon, Yes the outer DIV component with id=subnavigation_outer is enclosed in a subview naming container in the layout.jsp. Following is the code snipped: td width=170px valign=top bgcolor=#F8F6F7 nowrap=nowrap f:subview id=leftnav tiles:insert

RE: Problems while programmatically adding components

2006-12-13 Thread Madhav Bhargava
Hi Simon, You are right. But as I have mentioned i am binding the DIV component with a property in the backing bean instead of getting the UIViewRoot and then invoking findComponent. It does give me the proper instance of the DIV component I tried to add a dummy DIV component outside the outer

Re: Problems while programmatically adding components

2006-12-13 Thread Simon Kitching
Madhav Bhargava wrote: Hi Simon, You are right. But as I have mentioned i am binding the DIV component with a property in the backing bean instead of getting the UIViewRoot and then invoking findComponent. It does give me the proper instance of the DIV component I tried to add a dummy DIV

Re: [OT] RE: JSF is the answer? I don't think so...

2006-12-13 Thread Mario Ivankovits
Hey. -) I saw in [1] that usage of Tomahawk components is not recommended - does it pose some (serious) problems? Is it possible at all to use them? How about dojo? [1] http://docs.jboss.com/seam/1.1BETA2/reference/en/html/controls.html We recommend the Ajax4JSF and ADF faces (now