Re: UIInput.getValue returns old value

2005-05-30 Thread Jan Bols
On Mon, 30 May 2005 08:36:24 +0200, Martin Marinschek <[EMAIL PROTECTED]> wrote: 2. strange - you mean that validation fails and the valueChangeListener is still triggered? No that's not what I mean. When you have a field with only a valueChangeListener attached to it, I would expect it to

Re: UIInput.getValue returns old value

2005-05-30 Thread Martin Marinschek
Hi Jan, Sorry for the late answer: 1. that is intended - if you enter an empty string into the input-field, this empty string should be delivered through to your managed bean. 2. strange - you mean that validation fails and the valueChangeListener is still triggered? regards, Martin On 5/27/0

Re: UIInput.getValue returns old value

2005-05-27 Thread Jan Bols
Hey thanks! this solved the validation problem but created another one: 1. When the user fills nothing in field1, uiField1.getValue() doesn't return null, but returns an empty String object. I don't know if this was intented. 2. When I attach a valueChangelistener to a field that the user

Re: UIInput.getValue returns old value

2005-05-25 Thread Martin Marinschek
-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 validation field2 >

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

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: 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) {