[ 
http://issues.apache.org/jira/browse/TOBAGO-79?page=comments#action_12416957 ] 

Kelvin Wong commented on TOBAGO-79:
-----------------------------------

I try the latest tobago-example-demo from the link and find that the value for 
selectOneChoice is not reset anyymore.

The javascript error of my application is solved after updating all js files 
under org\apache\myfaces\tobago\renderkit\html.  However, another problem is 
found :

If there is no <f:convertDateTime> nested in <tx:date>, I will get the 
following exception : (There is no such problem in tobago-example-demo, and I 
use java.util.Calendar instead of java.util.Date for all date properties in the 
backing bean)

java.lang.NullPointerException
        at 
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DatePickerRenderer.applyConverterPattern(DatePickerRenderer.java:105)
        at 
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DatePickerRenderer.encodeBeginTobago(DatePickerRenderer.java:91)
        at 
org.apache.myfaces.tobago.renderkit.RendererBase.encodeBegin(RendererBase.java:64)
        at 
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
        at 
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:80)


Also, can I suggest to add an attribute showPicker to control whether the date 
picker should be rendered or not ?

> Date Picker resets other field values
> -------------------------------------
>
>          Key: TOBAGO-79
>          URL: http://issues.apache.org/jira/browse/TOBAGO-79
>      Project: MyFaces Tobago
>         Type: Bug

>   Components: Core
>     Versions: 1.0.7
>  Environment: Windows XP + Tomcat 5.5
>     Reporter: Kelvin Wong
>     Assignee: Bernd Bohmann
>     Priority: Minor
>  Attachments: tc_date.zip
>
> When pressing the calendar icon of a date picker, it will reset the selected 
> value of <tc:selectOneChoice> to first option.

-- 
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

Reply via email to