Re: Some notes of my loadtest results

2005-11-09 Thread Vesa Lindfors
Mathias, I tested successfully the rest of platforms with javax.faces.STATE_SAVING_METHOD=server SERIALIZE_STATE_IN_SESSION=false myfaces-20051030 . Now I should have time to continue testing your suggestion: STATE_SAVING_METHOD=server SERIALIZE_STATE_IN_SESSION=true myfaces-20051103. But

redirection

2005-11-09 Thread Hans Rabouw
Hi, I've gota fewquestions related to redirection: -Is there a way to switch on redirection as the default. As far as I knowit has to be specified for every navigation case... -I've noticed that redirection does not happen when the actionhandler returns null. Is this specified behaviour?

AW: TabbedPanel state

2005-11-09 Thread Hans Sowa
Hi There is no problem with your Listener. The problem is that your panelTabbedPane works client side and the listener doesnt work for client side panelTabbedPane. Change your panelTabbedPane to server side and your listener will work. mfg Hans Sowa PROCON DATA

Re: Handling multiple concurrent submits

2005-11-09 Thread Vesa Lindfors
I solved the doubleclick issues with servlet-filter: Filter sets the session-wide flag and requested URL at the begin of each request and clears them at the end. If second request is coming during the previous one is in execution, the filter is doing redirect with few seconds delay to originally

Antwort: Re: Handling multiple concurrent submits

2005-11-09 Thread mathias . werlitz
A second thought: There migth also be some important issues with the new sever-side state saving. I'm not sure how it is implemented in detail. The state consists of the component tree and the state. Now if concurrent requests are processed for the same view, every request should get a

Re: Re: Handling multiple concurrent submits

2005-11-09 Thread Mathias Brökelmann
Each request has its own component instances if the default state manager of myfaces is used (client server state are handled equal). If a user is using a component binding and stores this component in a session or application scoped bean he definitely will have problems since this component

Re: Cause exceptions from action methods to generate messages

2005-11-09 Thread Tim Davies
Just as an update to this, if you want to register your own ActionListener then you can do so by adding the following element to your faces-config.xml file. application action-listener com.example.MyActionListener /action-listener /application I tried it in the

Re: Some notes of my loadtest results

2005-11-09 Thread Mathias Brökelmann
You are right latest commit breaks that. I have committed a fix for that so it is working now. 2005/11/9, Vesa Lindfors [EMAIL PROTECTED]: Mathias, I tested successfully the rest of platforms with javax.faces.STATE_SAVING_METHOD=server SERIALIZE_STATE_IN_SESSION=false myfaces-20051030 .

Help: PropertyNotFoundException Base is null:

2005-11-09 Thread Yee CN
Hi, I have a page that works find when the backing bean is set to request scope. However when I set it to session scope I got the following exception: javax.faces.el.PropertyNotFoundException: Base is null: role It happens during the BEFORE UPDATE_MODEL_VALUES phase. Can

Re: Handling multiple concurrent submits

2005-11-09 Thread Jeremy Green
I've noticed that if I click multiple times on a component that does a submit then quite often I get an exception generated in the server. What exception do you get? Is it similar to the issue that I mention here: http://issues.apache.org/jira/browse/MYFACES-612 ...where I get an exception

Action in TabbedPane

2005-11-09 Thread Lkin
Hi.. I'm a newbie yet in JSF and I was wondering how can I add an ActionListener to TabbedPane so everytime the user clicks on any tab it will process my action. thanks.

Re: Antwort: Re: Handling multiple concurrent submits

2005-11-09 Thread Jeremy Green
On Wed, 9 Nov 2005 [EMAIL PROTECTED] wrote: Hmm, I think the JSF spec has a flaw concerning this. The problem is not the component itself, but the way the iteration is done. As e result you are not allowed to: 1. bind the component to session or application scoped backing bean 2. provide a

Re: Antwort: Re: Handling multiple concurrent submits

2005-11-09 Thread Bruno Aranda
I normally deal with that in the client side with a javascript function that I put on the onclick and only allows to submit the form once. A server aproach should be better though, or maybe add that javascript to the extended commandLink/commandButton (through a new parameter) so that using the

contributing with components

2005-11-09 Thread Rogerio Pereira
Hi, i would like to develop two components to myfaces: selectManyShuttle and a toolbar, but i need to know how can i make a click in a image fire the execution of an method in backing bean like action attribute does for commandButton and where i can get an simple example of how build a myfaces

Re: contributing with components

2005-11-09 Thread Bruno Aranda
Well, I think that the new selectManyPicklist in the sandbox (I still have to write the documentation) is the same than the selectManyShuttle component you are talking about. There is an example in the sandbox selectManyPicklist.jsf. I have to implement still some of the attributes as now it only

Re: contributing with components

2005-11-09 Thread Rogerio Pereira
For add/remove buttons you use javascript code, but how can i make a click in an image call an method in backing bean? I need this to create the Toolbar in the future. -- Yours truly (Atenciosamente), Rogério

DataTable. rowspan?

2005-11-09 Thread Jeffrey Porter
Hello all, Id like to have a data table that instead of just showing columns of data, uses row span. The aim is to create a table like http://www.porter.eu.com/jeff/table.JPG Is this possible with h:dataTable ? Thanks Jeff attachment: table.JPG

Re: contributing with components

2005-11-09 Thread Rogerio Pereira
Ok, you is right, this is the correct way. 2005/11/9, Bruno Aranda [EMAIL PROTECTED]: Now it works like the other selectMany*, the click is handled by javascript to move one element from the available items list to the selected items list. Once the form is submitted you can handle the new

Re: contributing with components

2005-11-09 Thread Rogerio Pereira
Yeah, i want one image call one method, can i render a commandLink inside another component code, like my new Toolbar component? 2005/11/9, Jesse Alexander (KBSA 21) [EMAIL PROTECTED]: Do you want single regions of one image to call different methods OR Do yo want to have one image call one

How to get ItemLabel of SelectItemS Tag on next page

2005-11-09 Thread andreas.mitter
Title: How to get ItemLabel of SelectItemS Tag on next page Is there a possibility to get the itemLabel of a SelectItems Tag? I don't need the itemValue (because it's an numeric ID in my case) I need the value which is displayed in the selectOneMenu Box, because I want to display this

RE: contributing with components

2005-11-09 Thread Jesse Alexander \(KBSA 21\)
-Original Message- Yeah, i want one image call one method, can i render a commandLink inside another component code, like my new Toolbar component? -/Original Message- Sure you can do that. someComponent.getChildren().add(anotherComponent); Then you can either render the

Re: ApplicationImpl Configuration Problem

2005-11-09 Thread Ken Weiner
Thanks for the reply, Martin. I'm not really sure if I understand whether or not they are MyFaces specific or not. Some seem to be standard as they have javax.faces in their ID's and come from a file called standard-faces.config.xml. These are the converter ID's for which FacesConfigurator tries

Error when I run simple.war

2005-11-09 Thread SRavuri
Hi there, I just downloaded the latest simple.war from the examples nighlty build and tried to run calendar.jsp on the Websphere Application Server in RAD 6.0 environment. I get the following error java.io.FileNotFoundException: JSPG0036E: Failed to find resource /faces/calendar.jsp. I

Tree2 Minor Customization To Example Not Working

2005-11-09 Thread James Ellis
I am trying to use the tree2 component that ships with MyFaces Tomahawk but I keep running into issues. I've been trying to debug this for two days now. I have gotten the tree2.jsp example up and running but it breaks when i try to customize it. It keeps giving me the error: Encountered a

FacesContext.getCurrentInstance() returns null when using JspTilesViewHandlerImpl

2005-11-09 Thread Kim
I am a long time Struts/Tiles user, but I am working on a new application with MyFaces/Tiles and EJB3.0 on JBoss 4.0.3SP1. I am using all the latest releases. Everything is working fine except for the FacesContext. I started the application without Tiles and got the login process working.

RE: SEVERE:Locale name null... tomcat

2005-11-09 Thread Kim
Bobby, I had the error message until I put a locale-config entry in the application node of the faces-config.xml file. It really doesnt seem to be a severe error, but it is easy to eliminate. Kim From: Bobby Rosenberger [mailto:[EMAIL PROTECTED] Sent: Wednesday, November

Re: SEVERE:Locale name null... tomcat

2005-11-09 Thread Bobby Rosenberger
Hey Kim, Thanks for the response. I'm not sure I know what you are referring to. My current faces-config file (which is largely based on the examples) only has 'navigation-rule' and 'managed-bean' tags... what is the 'application node' you refer to? Can you paste an example of your config?

Urgent - Question about web-facesconfig_1_1.dtd

2005-11-09 Thread Cote.Mark
Hello, We are deploying our app for the first time in a pre-production environment, one that is protected by a firewall. Here is the bit of code that is giving us a hard time: *** snip * is = this.getClass().getResourceAsStream(/faces-config.xml);

Re: Urgent - Question about web-facesconfig_1_1.dtd

2005-11-09 Thread Dennis Byrne
Take a look at http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/Docu mentBuilder.html#setEntityResolver (org.xml.sax.EntityResolver) . You can programmatically tell DOM where to get the DTD. Original message Date: Wed, 9 Nov 2005 16:31:46 -0500 From: [EMAIL PROTECTED]

RE: SEVERE:Locale name null... tomcat

2005-11-09 Thread Kim
Ok, here is a copy with more than you need, but it should make things clear. ?xml version='1.0' encoding='UTF-8'? faces-config xmlns=http://java.sun.com/xml/ns/j2ee xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee

Re: Urgent - Question about web-facesconfig_1_1.dtd

2005-11-09 Thread Bruno Aranda
I recall a similar problem for weblogic (see MYFACES-602 [1]). Just a wild guess, from the wiki [2]: add jsp-2.0.jar and servlet-api.jar (can be found in Tomcat 5.5.x share/lib) to the server classpath or include them in your war WEB-INF/lib servlet-api.jar is required if your server has no

Re: SEVERE:Locale name null... tomcat

2005-11-09 Thread Bruno Aranda
BTW, don't worry about that message, as far as I remember if the locale config is missing the application uses the default locale. I think that this message could be deleted or changed to a lower level... Regards, Bruno 2005/11/9, Bobby Rosenberger [EMAIL PROTECTED]: Thanks Kim, That

HtmlForm saving state and id generation

2005-11-09 Thread Max Muermann
Hi all, I have come across a problem with automatically generated ids for components. I am using MyFaces-current from SVN together with Facelets 1.0d. What happens is that in HtmlFormRendererBase.encodeBegin(), the last action is to save the state of the form, which includes the state of all

JavaScript alert() window

2005-11-09 Thread Warren Bell
I want to create a JavaScript alert window with a message from a resource bundle when I have a message to display. Getting the message is no problem, but getting it into the JavaScript is. script language=JavaScript type=text/JavaScript function displayMessage() { var message = MESSAGE HERE;

Re: JavaScript alert() window

2005-11-09 Thread Simon Kitching
Warren Bell wrote: I want to create a JavaScript alert window with a message from a resource bundle when I have a message to display. Getting the message is no problem, but getting it into the JavaScript is. script language=JavaScript type=text/JavaScript function displayMessage() { var

Patch for popup calendar rendering (localised month names)

2005-11-09 Thread Ramon Casha
The included patch file adds short month names to the popup calendar from the current locale in Java. Index: tomahawk/src/java/org/apache/myfaces/custom/date/HtmlDateRenderer.java === ---

Re: declarative action chaining

2005-11-09 Thread Sean Schofield
Yes Shale dialogs are very nice indeed :-) On 11/9/05, Craig McClanahan [EMAIL PROTECTED] wrote: On 11/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are there any chances for the following in the 1.2 spec? I would like to increase the learning curve w/ declarative action chaining ;-).

Re: Error when I run simple.war

2005-11-09 Thread Sean Schofield
Most likely the FacesServlet did not initialize properly. Check your logs and post back with more details. Its hard to help without more information. Also, the WAR file works without modification in a *default* Tomcat 5.0.x install. sean On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

RE: JavaScript alert() window

2005-11-09 Thread Yee CN
The following should work: script language=JavaScript type=text/JavaScript function displayMessage(message) { if(message == ) { } else { alert(message); } } /script body onload=displayMessage('#{mainMenu.alertMessage}') -- Or simply body

RE: JavaScript alert() window

2005-11-09 Thread Warren Bell
something like: scriptvar message=.../script There's the t:stylesheet tag which is sort of in this spirit. Note that writing a custom JSP component is sadly much more complicated than it should be :-( Regards, Simon __ NOD32 1.1282 (20051109) Information __ This message

RE: JavaScript alert() window

2005-11-09 Thread Yee CN
be :-( Regards, Simon __ NOD32 1.1282 (20051109) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com

RE: Help: PropertyNotFoundException Base is null:

2005-11-09 Thread Yee CN
I fixed a few things (including two dataTable with the same id) and I can't reproduce the error anymore. So it is most likely a byproduct of it. Thanks very much for your help. Regards Yee -Original Message- From: Mike Kienenberger [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 November

RE: JavaScript alert() window

2005-11-09 Thread Warren Bell
it should be :-( Regards, Simon __ NOD32 1.1282 (20051109) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com __ NOD32 1.1282 (20051109) Information __ This message was checked by NOD32 antivirus system. http

java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!

2005-11-09 Thread Khurram Ahmed
I have developed an application using my faces version 1.0.9 using tomcat as my servlet container, i was able to deploy the application on Oracle Application Server 10.1.3 Developer preview 4, however i am unable to run the same application on oracle application server 10.1.2.0.2 and encounter the

datascroller problems path

2005-11-09 Thread Erik Jan de Wit
This is the patch I use: protected void renderScroller(final FacesContext facesContext, final HtmlDataScroller scroller) throws IOException { ResponseWriter writer = facesContext.getResponseWriter(); if (!scroller.isRenderFacetsIfSinglePage() scroller.getPageCount() = 1) { return; }

RE: JavaScript alert() window

2005-11-09 Thread Yee CN
=#{...}/ which generates something like: scriptvar message=.../script There's the t:stylesheet tag which is sort of in this spirit. Note that writing a custom JSP component is sadly much more complicated than it should be :-( Regards, Simon __ NOD32 1.1282 (20051109