myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Koci <Martin.K...@aura.cz>
Subject [Trinidad] SimpleSelectOneRenderer.getSubmittedValue bug?
Date Thu, 30 Aug 2007 10:19:53 GMT
Hello,

why has SimpleSelectOneRenderer such implementation of
getSubmittedValue:


Object submittedValue = super.getSubmittedValue(context,
                                                    component,
                                                    clientId);
if (submittedValue == null)
   submittedValue = "";

return submittedValue;



The suspicious part is : submittedValue = ""  - it leads to
processUpdates on CoreSelectOneChoice, because not-null submitted value
means "component is in request"

See UIXEditableValue.validate(FacesContext):

    // Submitted value == null means "the component was not submitted
    // at all";  validation should not continue
    Object submittedValue = getSubmittedValue();
    if (submittedValue == null)
      return;

It this a bug?


Regards,

Martin Kočí



Mime
View raw message