Re: UIInput.getValue returns old value

2005-05-25 Thread Martin Marinschek
Well, I think it should now be fixed. Try out the nightly build now and tell us if any problems occurr with that version! regards, Martin On 5/25/05, Srikanth Madarapu <[EMAIL PROTECTED]> wrote: > I think you should be calling getSubmittedValue method. > > > > -Original Message- > Fro

Re: Are there any plans for a JSF 1.2 book?

2005-05-25 Thread Sean Schofield
> Why did the commons-validator support go directly into > the Shale Core rather into MyFaces Extensions? There > are a couple of nice non-JSF-core Validators in the > MyFaces extensions, but the Shale commons-validator > support appears to be more flexible and more useful to > those who still hav

Re: Are there any plans for a JSF 1.2 book?

2005-05-25 Thread IdRatherBeSailing
> *After* he checks the commons validator support into Shale :-) > Oh wait, he just did :-) > Craig So, since this is a MyFaces mailing list, I'm going to ask what I hope to be a fairly obvious question :-) Why did the commons-validator support go directly into the Shale Core rather into MyFaces

Re: Loosing global messages when using redirect

2005-05-25 Thread Sean Schofield
You can't access the FacesContext in a servlet filter. Its "released" once the service() method of the FacesServlet is completed. (I ran into this problem just the other day.) You could always create a listener for the various JSF lifecylce phases (Shale works off this principle.) I still don't

Re: blank h:inputText - empty string in 1.0.8 but null in 1.0.9 ?

2005-05-25 Thread Jesse Wilson
Hello MyFaces --- I'm using MyFaces 1.0.9 and I'm running into this issue. I reported it as a bug in the MyFaces JIRA: http://issues.apache.org/jira/browse/MYFACES-254 Has anybody found a fix? If no fix is available, can anyone tell me to where I can download MyFaces 1.0.8? I would like to con

Re: Component Documentation for x:newspaperTable

2005-05-25 Thread Sean Schofield
Jesse, Thanks for taking the initiative and creating some documentation. I added your contribution to SVN. Please allow several hours for the automated build and web page replication to take effect. If you or any other users would like to provide additional help with documentation, these types

Re: Loosing global messages when using redirect

2005-05-25 Thread Matt Blum
Probably so.  I obviously didn't think that part through.  You'd have to extract the values from the request object yourself (which is what the Faces servlet does in order to put them in the FacesContext anyway), but that seems a bit like reinventing the wheel. I think you'd be better off redirect

Re: nested value binding

2005-05-25 Thread Ricardo R. Ramírez Valenzuela
In your AdmMgr class, how are you initializing the edituser property? Something like User editUser = new User(), it seems as if editUser were null, that could happen especially if your bean is request Rene Guenther wrote: Hello, my jsp has following line: AdmMgr is a managed bean with the

Re: nested value binding

2005-05-25 Thread Enrique Medina
Does AdmMgr has a getEditUser() method? Does the object that method returns also a method called setFirstname(String)? On 5/25/05, Rene Guenther <[EMAIL PROTECTED]> wrote: > Hello, > > my jsp has following line: > > > > AdmMgr is a managed bean with the instance editUser of class User. editUse

Re: Loosing global messages when using redirect

2005-05-25 Thread Victor Tatai
Ok, I just tested it and FacesContext.getCurrentInstance() inside the filter returns null. Other people seem to have had the same problem also: http://forum.java.sun.com/thread.jspa?forumID=427&threadID=598476 I guess that perhaps the only approach possible is the #1 you described above, or a mix

Re: strange tree behavior causes error

2005-05-25 Thread Slawek
i forgot to add: if user see "old tree" or error screen IndexOutOfBoundException than he can refresh page (f5) and than everything is OK (brad new tree i visible)! hi im using good old tree;) here is the problematic situation: if user expand any node of the tree, than after sumbmit somme ac

Re: Loosing global messages when using redirect

2005-05-25 Thread Matt Blum
You should be able to call FacesContext.getCurrentInstance(). -MattOn 5/25/05, Victor Tatai <[EMAIL PROTECTED]> wrote: Implementing as a filter how would I be able to obtain theFacesContext in order to extract the messages?Thanks,VictorOn 5/24/05, Matt Blum <[EMAIL PROTECTED] > wrote:> I think tha

strange tree behavior causes error

2005-05-25 Thread Slawek
hi im using good old tree;) here is the problematic situation: if user expand any node of the tree, than after sumbmit somme action that generate on server completly new tree (and return to the same view) - user see old tree! if user expand tree and then colpase it to the root that after sub

Re: Loosing global messages when using redirect

2005-05-25 Thread Victor Tatai
Implementing as a filter how would I be able to obtain the FacesContext in order to extract the messages? Thanks, Victor On 5/24/05, Matt Blum <[EMAIL PROTECTED]> wrote: > I think that you might have to put the validation code in the application > controller, so that, when the action is taken yo

nested value binding

2005-05-25 Thread Rene Guenther
Hello, my jsp has following line: AdmMgr is a managed bean with the instance editUser of class User. editUser has property firstname (includes getters and setters). Reading AdmMgr.editUser.firstname works, writing AdmMgr.editUser.firstname failed: ERROR - Cannot set value for expression '#{Adm

Re: Hibernate and MyFaces

2005-05-25 Thread Werner Punz
Rene Guenther wrote: Hello, anybody has experience with using MyFaces together with Hibernate? Works very well, they dont touch each other, the trickiest part is, that you need a hibernated DataModel if you want to use a Datatable... Datascroller Besides that it is much better than plai

RE: UIInput.getValue returns old value

2005-05-25 Thread Srikanth Madarapu
I think you should be calling getSubmittedValue method. -Original Message- From: Jan Bols [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 10:33 AM To: users@myfaces.apache.org Subject: UIInput.getValue returns old value I have a form with 2 fields field1 and field2. During vali

AW: Displaytag and MyFaces

2005-05-25 Thread Rene Guenther
Since it is not a JSF Tag it does not accept Value Binding. It works with $ . But don’t ask me why ;-) -Ursprüngliche Nachricht- Von: Enrique Medina [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Mai 2005 18:05 An: MyFaces Discussion Betreff: Re: Displaytag and MyFaces Does it work

Re: Wrong components being processed?

2005-05-25 Thread Mikey E
string.jsp declares & uses the "transLocale" bean as the iterator variable in . Within the , a form action invokes TranslationBean (a managed bean declared in my config file) which brings the user to translation.jsp. This page then has a button & form which invokes TranslationBean again (but with d

Re: UIInput.getValue returns old value

2005-05-25 Thread Sean Schofield
Jan, I think Martin fixed this last night. Can you check the latest source code (SVN or tonight's upcoming nightly build)? sean On 5/25/05, Martin Marinschek <[EMAIL PROTECTED]> wrote: > Another one. ;) > > this is a known bug (or a feature ;). > > good, it will be necessary to look into that

Re: Displaytag and MyFaces

2005-05-25 Thread Enrique Medina
Does it work with ${AdmMgr.aentrylist}? I thought it should be #{AdmMgr.aentrylist}... On 5/25/05, Rene Guenther <[EMAIL PROTECTED]> wrote: > This is my code: > > width="90%" > id="currentRowObject" > requestURI="/faces/admin/reports/index.jsp"> >

RE: dataList component

2005-05-25 Thread Broekelmann, Mathias
Julien, Alex is right. You can´t use a map in that way. Try the solution from Alex to solve your problem. Mathias > -Original Message- > From: Julien Martin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 25, 2005 5:59 PM > To: MyFaces Discussion > Subject: Re: dataList component >

AW: Displaytag and MyFaces

2005-05-25 Thread Rene Guenther
This is my code:

Re: dataList component

2005-05-25 Thread Julien Martin
Hello, I have checked everything. The constructor gets called ok but not the getters. By the way the getAlbums method returns a parametized Map. (Map). Julien. - Original Message - From: "Broekelmann, Mathias" <[EMAIL PROTECTED]> To: "MyFaces Discussion" Sent: Wednesday, May 25, 2005 5:39

Re: dataList component

2005-05-25 Thread alex
Julien Martin wrote: Mathias, You're right. I added a System.out.println in the javabean and the getter method is never called. I am puzzled. Any clue? Julien Hi, so, from one of your previous posts I assume that #{AlbumsAction.albums} returns a Map (what kind of map is unimportant), am I ri

Re: Displaytag and MyFaces

2005-05-25 Thread Enrique Medina
How have you integrated it with JSF? On 5/25/05, Rene Guenther <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > Another question :-) > > Anyone has experience with using displaytag together with myfaces. I tried > and it worked good by now. But I read some time ago, that it is not >

RE: dataList component

2005-05-25 Thread Broekelmann, Mathias
Verify that your managed bean AlbumsAction contains a method like public List|Object[]|DataModel getAlbums() {...} The Collection which is returned by getAlbums() must contain instances which implement a method like public Object getValue() {...} This method must return an instance which imple

Re: dataList component

2005-05-25 Thread Julien Martin
Mathias, You're right. I added a System.out.println in the javabean and the getter method is never called. I am puzzled. Any clue? Julien. - Original Message - From: "Broekelmann, Mathias" <[EMAIL PROTECTED]> To: "MyFaces Discussion" Sent: Wednesday, May 25, 2005 5:22 PM Subject: RE: data

RE: dataList component

2005-05-25 Thread Broekelmann, Mathias
Do you get any warning messages from the variable resolver regarding null values? Verify through a breakpoint in getAlbum_date() that the method is called. Mathias > -Original Message- > From: Julien Martin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 25, 2005 5:09 PM > To: MyFaces D

Re: Hibernate and MyFaces

2005-05-25 Thread David Tashima
Well the way I use it, I persist the same beans that are bound to UI elements, so when you change UI elements, you're changing the actual thing that ends up being persisted into the DB. The tricky part is to 1) close your Hibernate session with a servlet filter; 2) you have to reassociate the obje

Re: dataList component

2005-05-25 Thread Julien Martin
Thanks for the prompt reply, I have removed the columns as indicated and I now have this: It has the same behavior i.e. an empty bullet (there is only one element as of now) with nothing else... Julien. - Original Message - From: "Broekelmann, Mathias" <[EMAIL PROTECTED]> To:

Re: Hibernate and MyFaces

2005-05-25 Thread Hendrik Neumann
yes, it works fine! But afaik Hibernate and MyFaces "don't touch" each other... so I would be a little bit confused, if anybody experiences any problems... Am Mittwoch, 25. Mai 2005 16:51 schrieb Rene Guenther: > anybody has experience with using MyFaces together with Hibernate?

RE: dataList component

2005-05-25 Thread Broekelmann, Mathias
Hi Julien, Since a x:datalist do not have columns you may not use h:column in a datalist. Mathias > -Original Message- > From: Julien Martin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 25, 2005 5:00 PM > To: MyFaces Discussion > Subject: x:dataList component > > > Hello,

Re: Hibernate and MyFaces

2005-05-25 Thread Glenn Davidson
Rene, I have been using Hibernate and MyFaces together with great success. The intergration is seemless and was actually quite easy to implement. I am having trouble with some very complex queries but I attribute that to the fact that I am still relatively new to Hibernate. The two work together we

x:dataList component

2005-05-25 Thread Julien Martin
Hello, I use the x:dataList component. Note that I want to display a hashmap. Using the forEach tag I would have something like that: [code] [/code] but because I use the x:dataList I have a h:outputText instead of the c:out. Here it is: [code] [/code] This does not seem to work. I just get

Displaytag and MyFaces

2005-05-25 Thread Rene Guenther
Hello,   Another question :-) Anyone has experience with using displaytag together with myfaces. I tried and it worked good by now. But I read some time ago, that it is not recommended.   What do you think?   Thanks again Rene

Hibernate and MyFaces

2005-05-25 Thread Rene Guenther
Hello,   anybody has experience with using MyFaces together with Hibernate?   Thanks Rene

Re: UIInput.getValue returns old value

2005-05-25 Thread Martin Marinschek
Another one. ;) this is a known bug (or a feature ;). good, it will be necessary to look into that very soon, I'll see if I get around to do that tonight. regards, Martin On 5/25/05, Jan Bols <[EMAIL PROTECTED]> wrote: > I have a form with 2 fields field1 and field2. During validation field2

UIInput.getValue returns old value

2005-05-25 Thread Jan Bols
I have a form with 2 fields field1 and field2. During validation field2 inspects the value of field1 for a null value: UIInput uiField1 = (UIInput) toValidate.findComponent("field1"); String field1Value = (String) uiField1.getValue(); if (field1Value == null) {

RE: Error w/o JSF-API.JAR

2005-05-25 Thread Jesse Alexander (KBSA 21)
-Original Message- Don't ask me where and how, but you still got the reference implementation disturbing in somewhere. Maybe in your web.xml, as a servlet, you configured the RI? -/Original Message- - clear (==delete content) the work-directory of your tomcat - check the common/lib

AW: Error w/o JSF-API.JAR

2005-05-25 Thread Rene Guenther
I cleaned up my workspace. Now it works. But I am not sure which part of cleaning up was the crucial one. Thank you for your help Rene -Ursprüngliche Nachricht- Von: Martin Marinschek [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Mai 2005 14:17 An: MyFaces Discussion Betreff: Re: Er

Re: Error w/o JSF-API.JAR

2005-05-25 Thread Martin Marinschek
Don't ask me where and how, but you still got the reference implementation disturbing in somewhere. Maybe in your web.xml, as a servlet, you configured the RI? regards, Martin On 5/25/05, Rene Guenther <[EMAIL PROTECTED]> wrote: > Thank you. But now I get a new error when trying without jsf-impl

AW: Error w/o JSF-API.JAR

2005-05-25 Thread Rene Guenther
Thank you. But now I get a new error when trying without jsf-impl.jar: 2005-05-25 14:07:41 StandardContext[/rapportnoejb]Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.ap

Re: AW: Error w/o JSF-API.JAR

2005-05-25 Thread Martin Marinschek
If you want to use plain vanilla MyFaces, you just need the myfaces.jar - that's all. your error message points to some remnaints of the reference implementation somewhere in your/tomcat working directory. regards, Martin On 5/25/05, alex <[EMAIL PROTECTED]> wrote: > Rene Guenther wrote: > > >

Re: Re: Re: Taglib Doc & selectBooleanCheckbox

2005-05-25 Thread ced_the.bear
Ok thanks ! > De: Martin Marinschek <[EMAIL PROTECTED]> > A: MyFaces Discussion > Objet: Re: Re: Taglib Doc & selectBooleanCheckbox > Date: Wed, 25 May 2005 13:40:20 +0200 > ok, I see... > > that x:selectBooleanCheckbox tag was implemented by me in the head > version, so you need to checkout th

Re: Best practice for validating null value of non required UIInput

2005-05-25 Thread Martin Marinschek
No, not that I would know of some better way to handle that. JSF generally just supports validators with a relationship to one field, for everything else you need to work yourself. Anyone who knows something different? regards, Martin On 5/25/05, Jan Bols <[EMAIL PROTECTED]> wrote: > I have a

Re: Re: Taglib Doc & selectBooleanCheckbox

2005-05-25 Thread Martin Marinschek
ok, I see... that x:selectBooleanCheckbox tag was implemented by me in the head version, so you need to checkout the latest sources or take the nightly build. regards, Martin On 5/25/05, ced_the.bear <[EMAIL PROTECTED]> wrote: > I'm using myFaces 1.0.9 and it is the extension tag I can't use du

Re: Re: Taglib Doc & selectBooleanCheckbox

2005-05-25 Thread ced_the.bear
I'm using myFaces 1.0.9 and it is the extension tag I can't use due to a no handler exception when parsing the JSP. Ineither find it when checking the extension tld. Strange ! there is no problem with h:selectBooleanCheckbox, but i wanted to use forceID :( ced > De: Martin Marinschek <

Re: AW: Error w/o JSF-API.JAR

2005-05-25 Thread alex
Rene Guenther wrote: Do I really have to add all of them: myfaces-impl.jar AND myfaces-jsf-api.jar AND myfaces-extensions.jar AND myfaces.jar Do I still need jsf-impl.jar then? Thanks Rene I'm not sure about the myfaces.jar, however, I think myfaces-impl.jar is a replacement for jsf-impl

AW: Error w/o JSF-API.JAR

2005-05-25 Thread Rene Guenther
Thank you. That worked out after refactoring my code which contained a lot of plain html between the view tags. Do I really have to add all of them: myfaces-impl.jar AND myfaces-jsf-api.jar AND myfaces-extensions.jar AND myfaces.jar Do I still need jsf-impl.jar then? Thanks Rene -Ursprüngl

Best practice for validating null value of non required UIInput

2005-05-25 Thread Jan Bols
I have a form containing (among others) a field to fill in a company name and fields to fill in the address of the company (street, nr, bus, zip, city, country). I want to give an error message when the user fills one of the address fileds but not the company name. The way I solved the prob

Re: Error w/o JSF-API.JAR

2005-05-25 Thread alex
Rene Guenther wrote: Hello, According to http://myfaces.apache.org/docs/gettingstarted.html i should delete JSF-API.JAR. But w/o this jar I receive: Anybody has an idea? Do I have to keep JSF-API? Do you have myfaces-impl.jar, myfaces-jsf-api.jar, myfaces-extensions.jar (and myfaces.jar) i

Error w/o JSF-API.JAR

2005-05-25 Thread Rene Guenther
Hello, According to http://myfaces.apache.org/docs/gettingstarted.html i should delete JSF-API.JAR. But w/o this jar I receive: javax.faces.FacesException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unrecognized Content Type. at com.sun.faces.context.ExternalContextIm

inputHtml - How to configure kupu ?

2005-05-25 Thread kitkat
Hi everyone on the list ! I would like to know how to configure the Kupu-Editor wrapped by the inputHtml-component. How can I provide Kupu-related CSS-Information to the component ? I've tried to manage this by use of the 'styleClass' attribute without success. Any ideas or examples ? Bes

Re: HTML-Popup with a 1-second-delay?

2005-05-25 Thread Hendrik Neumann
ah yes thanks, I got it! Am Mittwoch, 25. Mai 2005 09:21 schrieb Christian Daszenies: > http://subclipse.tigris.org/ works fine

Re: HTML-Popup with a 1-second-delay?

2005-05-25 Thread Christian Daszenies
http://subclipse.tigris.org/ works fine On 25/05/05, Martin Marinschek <[EMAIL PROTECTED]> wrote: > Sorry, I don't use Eclipse and can't help you with that. > > Maybe Sean knows something? > > regards, > > Martin > > On 5/25/05, Hendrik Neumann <[EMAIL PROTECTED]> wrote: > > Hi Martin, > > you

Re: Taglib Doc & selectBooleanCheckbox

2005-05-25 Thread Martin Marinschek
Well, I just tried it out, there is both a: in our tld's and those tags are also usable.. Do you refer to the current head version or an old one? regards, Martin On 5/25/05, ced_the.bear <[EMAIL PROTECTED]> wrote: > > In the taglib doc on the myFaces website, there is an entry

Re: HTML-Popup with a 1-second-delay?

2005-05-25 Thread Martin Marinschek
Sorry, I don't use Eclipse and can't help you with that. Maybe Sean knows something? regards, Martin On 5/25/05, Hendrik Neumann <[EMAIL PROTECTED]> wrote: > Hi Martin, > you myfaces guys have just migrated from cvs to subversion haven't you? Is > there any good and free subversion plugin for

Re: HTML-Popup with a 1-second-delay?

2005-05-25 Thread Hendrik Neumann
Hi Martin, you myfaces guys have just migrated from cvs to subversion haven't you? Is there any good and free subversion plugin for eclipse 3.0 running on Linux? Then we could do it his way... Regards, Hendrik Am Mittwoch, 25. Mai 2005 07:57 schrieb Martin Marinschek: > Hi Hendrik, > > sorry, t

Taglib Doc & selectBooleanCheckbox

2005-05-25 Thread ced_the.bear
In the taglib doc on the myFaces website, there is an entry for the selectBooleanCheckbox, but there is no handler, and no entry in the tld file for this tag. cedLa puissance n?est pas innée : elle se construit. Cliquez ici pour découvrir Nike Free !

Re: Displaying simple read-only tabular data

2005-05-25 Thread Klug, Boris
Hi! take a look at the MyFaces extension . It like dataTable but you can do the layout of the data on your own. -- Boris Klug, Debeka, Koblenz