Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
1.1.1
-
None
-
None
-
JBoss 4.0.3SP1
my-faces 1.1.1
facelets 1.1.12
Description
The component InputDate don't change the render value when in backinbean value is changed. To make this i have to use a binding and change the userData property.
A solution by this issue is:
In class "HtmlDateRenderer" in method "encodeEnd" put the next code:
public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException {
RendererUtils.checkParamValidity(facesContext, uiComponent, HtmlInputDate.class);
HtmlInputDate inputDate = (HtmlInputDate) uiComponent;
Locale currentLocale = facesContext.getViewRoot().getLocale();
-----> BEGIN NEW CODE
Date dateValue = org.apache.myfaces.renderkit.RendererUtils.getDateValue(inputDate);
UserData userData = null;
if (dateValue != null)
if (userData == null)
-----> END NEW CODE
if( userData == null )
.........