You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jorge RodrÃguez Pedrianes (JIRA)" <de...@myfaces.apache.org> on 2006/04/04 19:49:43 UTC
[jira] Created: (TOMAHAWK-228) No Update value when "value" option
has changed
No Update value when "value" option has changed
-----------------------------------------------
Key: TOMAHAWK-228
URL: http://issues.apache.org/jira/browse/TOMAHAWK-228
Project: MyFaces Tomahawk
Type: Bug
Components: Date
Versions: 1.1.1
Environment: JBoss 4.0.3SP1
my-faces 1.1.1
facelets 1.1.12
Reporter: Jorge RodrÃguez Pedrianes
Priority: Minor
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) {
userData = newUserData( dateValue, currentLocale, null);
}
if (userData == null) {
userData = (UserData) inputDate.getSubmittedValue();
}
-----> END NEW CODE
if( userData == null )
.........
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira