x:inputDate as a candidate to refactor
--------------------------------------

         Key: MYFACES-234
         URL: http://issues.apache.org/jira/browse/MYFACES-234
     Project: MyFaces
        Type: Bug
    Versions: 1.0.9 beta    
 Environment: any using myFaces
    Reporter: Waldek Piszczewiat


According to MYFACES-223 and problems with empty date I will suggest making 
some fixes and improvements of this component:

Bugs
-------
1. when I don't fill some part of date and use javascript popup calendar wrong 
window is displayed (a list of 31 days without calendar, this is a bug in 
popupcalendar.js, in case of some bug current date should be default)
2. when readonly="true" and popupCalendar="true" there is a posibility to 
change date using popupCalendar. Popup calendar shouldn't be rendered when 
readonly="true" (now only when disabled="true")

Improvements
-------------
1. possibility to reset date and time using button (simple change in renderer)
2. possibility to define images for button "popupCalendar" and future 
"cancelDateAndTime"
3. possibility to render date as one field when readonly="true" (as an option)
4. format of rendering: now we have: date, time, both without possibility to 
choose format, I suggest java format during rendering ("yyyy-MM-dd", 
"dd-MM-yyyy") instead current syntax
5. possibility to choose between combo or numeric style of month (ie. 
yyyy-MM-dd renders numeric, but yyyy-MMM-dd combo)
...

I think, that authors of this component should rebuild this component (many of 
this fixes and improvements are very simple to code and for me this is rather a 
problem with describing of requirements). In the current state this component 
without some fixes is completly unuseful :(

Best regards


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