You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rodrigo Macedo (JIRA)" <de...@myfaces.apache.org> on 2008/07/31 17:20:32 UTC

[jira] Created: (TOMAHAWK-1310) Add a "allowUserEdit" attribute

Add a "allowUserEdit" attribute
-------------------------------

                 Key: TOMAHAWK-1310
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1310
             Project: MyFaces Tomahawk
          Issue Type: Improvement
          Components: Calendar
    Affects Versions: 1.1.6
            Reporter: Rodrigo Macedo
            Priority: Minor


It would be very helpful if the calendar component would have an extra attribute to control whether the text box next to the popup calendar icon can be edited manually by the user or not. 

The attribute could be called "allowUserEdit" that when set to false, the text-box is rendered with read-only="read_only" attribute.

The extra attribute would useful when the developer wants to control whether can user can manually enter a date in the text box or is forced to choose a date from the calendar. This simplifies client and server side validation and ensures that a valid date is always submitted.

The text-box is already encoded with the read-only attribute if the standard read-only attribute is used in the calendar tag but in this case the decode method does not apply the value that was submitted to the model.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.