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-----
> From: Jan Bols [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 25, 2005 10:33 AM
> To: [email protected]
> Subject: UIInput.getValue returns old value
> 
> 
> 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) {
>             uiField1.setValid(false);
>             message = "Error";
>             context.addMessage(uiField1.getClientId(context), new
> FacesMessage(message));
>           }
> The problem is that uiField1.getValue() returns the old value instead of
> the updated value. This only happens when the user deletes the value of
> field1. If the user specifies antoher (not null) value in field1
> uiField1.getValue() does return the correct new value.
> 
> Am I doing something wrong? Is this a bug?
> 
> Jan Bols
>

Reply via email to