Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1310

Add a "allowUserEdit" attribute

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.6
    • None
    • Calendar
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rbcm1 Rodrigo Macedo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified