[MyFaces][Core] Data table rows index

2009-07-21 Thread Guy Bashan
Hi, Data table row index is a nice thing. When a row is not rendered the index still goes up, which is logical and excepted. I have a list of items kept on the session. When user decide to delete item I do not physically delete it, since it will be deleted only after pressing save (I just mark

[Trinidad] polling mechanism

2009-07-21 Thread Robin Müller-Bady
Dear List, i have a problem with the tr:poll tag. I use it to update contents of a tr:table data. My problem is, that everytime i send an action to the server or submit the form, the poll repeats the previous action. In case i send the form and update the table, the poll starts to ask my

[Trinidad] tr:convertDateTime, pattern and client validation

2009-07-21 Thread Lucas Satabin
Hello everybody, I am trying to convert an input into a date using Trinidad. tr:inputDate rendered=#{col.date} value=#{co.value} disabled=#{!col.edit} required=false tr:convertDateTime pattern=#{col.pattern} /

Rendered Property

2009-07-21 Thread SANTINI, Rafael
Hi, In the following code, the last two components are rendered on the condition #{bean.campo1 != null}. When the bean.campo1 is different that null, they are displayed. But, when the last button is clicked, the testar method is not invoked. What I'm missing? h:messages/ h:form h:inputText

RE: Rendered Property

2009-07-21 Thread Rene van Wijk
  During the restore view tour managed bean might return false, so JSF cannot bind the action to the commandbutton. Is it a problem is you use the disabled attribute instead of the rendered attribute? -Original message- From: SANTINI, Rafael raf...@santini.eti.br Sent: Tue 21-07-2009

Re: Rendered Property

2009-07-21 Thread SANTINI, Rafael
Yeah, is a problem use disabled property instead of rendered. In my real application, I'm using a t:div to hide some fields. - Original Message - From: Rene van Wijk rw...@transfer-solutions.com To: users@myfaces.apache.org Sent: Tuesday, July 21, 2009 10:46 AM Subject: RE: Rendered

Location for MyFaces Tomahawk 1.1.8

2009-07-21 Thread Kharwal, Pankaj
Hi, I am currently working on a MyFaces Tomahawk project. I started working on the version 1.1.8, but it seems that the latest version is 1.1.9. Where can I download MyFaces Tomahawk 1.1.8 from? I need only an Apache URL to download. Thanks and Regards, Pankaj

[ANN] Release of Apache MyFaces Trinidad's Maven plugins (1.2.10)

2009-07-21 Thread Matthias Wessendorf
Hi, The Apache MyFaces community is pleased to announce its 1.2.10 release of the Apache MyFaces Trinidad Maven2 plugins. These Maven2 plugins have been deployed to the Apache Maven2 and they are mirrored by ibiblio as well. release notes:

Re: [Trinidad] polling mechanism

2009-07-21 Thread Max Starets
Robin, Are you saying that you are getting the standard browser dialog asking whether data should be re-posted? That would happen only if the page is being refreshed. Perhaps something wrong is happening with the PPR request. I see one problem in your page - the html tag should not be there.

Re: Location for MyFaces Tomahawk 1.1.8

2009-07-21 Thread Gerhard Petracek
hi, here you can find all you need: http://www.apache.org/dist/myfaces/binaries/ and http://www.apache.org/dist/myfaces/source/ regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces

RE: Location for MyFaces Tomahawk 1.1.8

2009-07-21 Thread Kharwal, Pankaj
Thank you very much, Gerhard !!! Can you pleases tell me the navigation to http://www.apache.org/dist/myfaces/binaries/ from http://www.apache.orghttp://www.apache.org/ . Best Regards, Pankaj From: Gerhard Petracek [mailto:gerhard.petra...@gmail.com] Sent:

Re: [Trinidad] polling mechanism

2009-07-21 Thread Robin Müller-Bady
Hey, i used this tag, because its not possible to use jsp:directive.page contentType=text/html;charset=utf-8/ in my project. So i decided to use the html-tag in order to get my project running. One important information is, that i need to use Apache MyFaces Trinidad 1.0.10 and JSF 1.1,

Re: Location for MyFaces Tomahawk 1.1.8

2009-07-21 Thread Gerhard Petracek
http://www.apache.org/dist/ is available for all apache projects - it isn't myfaces specific. regards, gerhard http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2009/7/21 Kharwal, Pankaj

RE: Location for MyFaces Tomahawk 1.1.8

2009-07-21 Thread Kharwal, Pankaj
Thanks a lot Gerhard ! Best Regards, Pankaj From: Gerhard Petracek [mailto:gerhard.petra...@gmail.com] Sent: Tuesday, July 21, 2009 8:05 PM To: MyFaces Discussion Subject: Re: Location for MyFaces Tomahawk 1.1.8 http://www.apache.org/dist/ is available for

Re: [Trinidad] polling mechanism

2009-07-21 Thread Max Starets
Robin, I do not understand how having the html tag helps you with setting the content type... tr:document will output the html tag even in Trinidad 1.0.10. When you look at the generated source (View-Source), do you see two html tags? Max Robin Müller-Bady wrote: Hey, i used this tag,

Re: Rendered Property

2009-07-21 Thread SANTINI, Rafael
The problem was solved putting t:saveState value=#{bean.campo1}/. - Original Message - From: SANTINI, Rafael raf...@santini.eti.br To: users@myfaces.apache.org Sent: Tuesday, July 21, 2009 10:31 AM Subject: Rendered Property Hi, In the following code, the last two components are

Re: [Trinidad] polling mechanism

2009-07-21 Thread Robin Müller-Bady
Hi, in case i omit the html tag, i get errors about /head and /html tags. Also the poll does not work, but the fields get rendered. I tried to find a workaouround to be able to use jsp instead of jspx. But my problem is the same on the Apache MyFaces Trinidad Demo v.1.0.10, so i think the

t:selectOneMenu: value is not a valid option

2009-07-21 Thread SANTINI, Rafael
Hi, I can't figure out why the following code results in value is not a valid option: h:messages/ h:form t:selectOneMenu value=#{bean.opcao} id=opcao f:selectItem itemLabel=Opção 1 itemValue=1/ f:selectItem itemLabel=Opção 2 itemValue=2/ f:selectItem itemLabel=Opção 3 itemValue=3/

Re: [Trinidad] polling mechanism

2009-07-21 Thread Matthias Wessendorf
what errors ? By when correctly using the tr:document it should (it does) generate proper HTML Question, the demo polling demo does not work on your server, but does it work on jetty ? (mvn jetty:run -PjettyConfig (on the trinidad-demo project)) -Matthias On Tue, Jul 21, 2009 at 4:50 PM, Robin

Re: [Trinidad] polling mechanism

2009-07-21 Thread Max Starets
Robin, I see. So you are running into the old problem with the JSP engine rendering whitespace at the beginning of the PPR response with the JSPs. I do not have a proper workaround for you, but rendering html still seems like a wrong thing to do... So using jspx is absolutely not an option

Re: [Trinidad] polling mechanism

2009-07-21 Thread Matthias Wessendorf
On Tue, Jul 21, 2009 at 4:57 PM, Max Staretsmax.star...@oracle.com wrote: Robin, I see. So you are running into the old problem with the JSP engine rendering whitespace at the beginning of the PPR response with the JSPs. I do not have a proper workaround for you, but rendering html still

RE: t:selectOneMenu: value is not a valid option

2009-07-21 Thread Rene van Wijk
   Your return value must be of the the type SelectItem -Original message- From: SANTINI, Rafael raf...@santini.eti.br Sent: Tue 21-07-2009 16:53 To: MyFaces Discussion users@myfaces.apache.org; Subject: : value is not a valid option Hi, I can't figure out why the following code

Re: [Trinidad] polling mechanism

2009-07-21 Thread Robin Müller-Bady
Hey, i dont even get jetty running on my system. (I dont have the jetty plugin for maven) I think that it would work with jspx, but i migrated a IBM JWL project to Trinidad, so there are some details like %-- jsf:pagecode language=java location=/src/pagecode/Chat.java --%%-- /jsf:pagecode --%

SizeLimitExceededException when uploading big files

2009-07-21 Thread António Rodrigues
I am using Tomahawk 1.1.9 and Facelets. When I upload files bigger than uploadMaxFileSize I get the following exception. The server never responds to the request and the browser keeps loading the page infinitely. SizeLimitExceededException while uploading file.

Re: t:selectOneMenu: value is not a valid option

2009-07-21 Thread Anton Gavazuk
Hi Rafael, the same happens in my project, I have slight difference - I'm populating selectBox by f:selectItems/ tag and have a strange situation - see the snippet below select id=fm_finance_search:in_fintype size=1 name= fm_finance_search:in_fintypeoption selected=selected value=0All/ option

Re: SizeLimitExceededException when uploading big files

2009-07-21 Thread Leonardo Uribe
Hi Take a look at: https://issues.apache.org/jira/browse/TOMAHAWK-1381 https://issues.apache.org/jira/browse/TOMAHAWK-1305 https://issues.apache.org/jira/browse/TOMAHAWK-1420 regards Leonardo Uribe 2009/7/21 António Rodrigues antonio.jose.rodrig...@gmail.com I am using Tomahawk 1.1.9 and

Re: t:selectOneMenu: value is not a valid option

2009-07-21 Thread Anton Gavazuk
Rafael, Rene is right - in my case JSF bean has a property with type long, and when I was creating the values for f:selectItems/ tag I added manually SelectItem(0, All) to a collection, must be SelectItem((long)0,All); not sure what to do in your case, but I suggest to populate selectBox also

Re: t:selectOneMenu: value is not a valid option

2009-07-21 Thread Volker Weber
Hi Rafael, your itemValues are Strings, your bean expect Integer. you can change the getter and setter to accept and return Strings or try itemValue=#{1}, you may need to change from Integer to Number than. Regards, Volker 2009/7/21 SANTINI, Rafael raf...@santini.eti.br: Hi, I can't

Re: t:selectOneMenu: value is not a valid option

2009-07-21 Thread SANTINI, Rafael
Hi Volker, The problem also occurrs with itemValue=#{1}. The solution was change the getter e setter to accept and return Strings: public String getOpcao() { return (opcao != null ? opcao.toString() : null); } public void setOpcao(String opcao) { this.opcao = Integer.valueOf(opcao); }

Re: t:selectOneMenu: value is not a valid option

2009-07-21 Thread SANTINI, Rafael
Hi Volker, The problem also occurrs with itemValue=#{1}. The solution was change the getter e setter to accept and return Strings: public String getOpcao() { return (opcao != null ? opcao.toString() : null); } public void setOpcao(String opcao) { this.opcao = Integer.valueOf(opcao); }

Re: [Trinidad] tr:convertDateTime, pattern and client validation

2009-07-21 Thread Yee-wah Lee
Hi Lucas, I was able to reproduce this. The problem is in the client datetime converter, which assumes that years occupy 4 digits. function _subparse (..) case 'y': // year var year = _accumulateNumber(parseContext, 4); So, it parses a string like 981122 and gets year=9811, then

RE: Re: t:selectOneMenu: value is not a valid option

2009-07-21 Thread Rene van Wijk
Try something along this line   private SelectItem item;   public selectItem getItem() {     return new SelectItem(someValue, someLabel);     // someValue is your Integer and someLabel the String you want to display     // more information can be found in the Javadocs on how to use

Re: [Trinidad] tr:convertDateTime, pattern and client validation

2009-07-21 Thread Lucas Satabin
Hi Zee-wah Thanks for the answer. It is also what I thought. I can not however not change the pattern because it is a part of a file name I receive that I must test. Should I open a ticket for this bug? As a workaround I disabled the client validation and I do not have any problem anymore, but I

Re: t:selectOneMenu: value is not a valid option

2009-07-21 Thread Mike Kienenberger
Rather than String, try using Long for your accessors. By default, accessors for literals must either be String or Long or Double. #{1} is a new Long(1), not a new Integer(1). Yes, a converter will work automatically, so if you were to provide #{something that evaluates to an integer}, then

Re: t:selectOneMenu: value is not a valid option

2009-07-21 Thread SANTINI, Rafael
Mike, Thank for you explanation about the accessors for literals! Now I understand why with Integer does not works. Rafael Santini - Original Message - From: Mike Kienenberger mkien...@gmail.com To: MyFaces Discussion users@myfaces.apache.org Sent: Tuesday, July 21, 2009 4:49 PM

Re: Rendered Property

2009-07-21 Thread Mike Kienenberger
Right, the problem is that your bean was request-scoped. Your action changed the value of the last request's bean, but the current bean still had the default value. On Tue, Jul 21, 2009 at 10:45 AM, SANTINI, Rafaelraf...@santini.eti.br wrote: The problem was solved putting t:saveState

Re: [Trinidad] tr:convertDateTime, pattern and client validation

2009-07-21 Thread Yee-wah Lee
Hi Lucas, Yes, I suggest you file a JIRA with your use case. Yee-Wah Lucas Satabin wrote: Hi Zee-wah Thanks for the answer. It is also what I thought. I can not however not change the pattern because it is a part of a file name I receive that I must test. Should I open a ticket for this

Re: [MyFaces][Core] Data table rows index

2009-07-21 Thread Mike Kienenberger
It's not really clear what problem you're having, but would this solve it? rendered=#{not item.deleted or rowIndex == 0} On Tue, Jul 21, 2009 at 4:14 AM, Guy Bashanguy.bas...@gmail.com wrote: Hi, Data table row index is a nice thing. When a row is not rendered the index still goes up, which