MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-23

SelectOneCountry needs to support an empty selection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.5
    • Component/s: SelectOneCountry
    • Labels:
      None

      Description

      All ISO countries are listed using the SelectOneCountry Tag, but no empty selection is possible.

        Activity

        Hide
        Martin Marinschek added a comment -

        Depending on the locale, the order of the countries should be different - or the user should be able to supply a custom comparator.

        Show
        Martin Marinschek added a comment - Depending on the locale, the order of the countries should be different - or the user should be able to supply a custom comparator.
        Hide
        Dennis Byrne added a comment -

        Hi Martin,

        I think the same thing can be said for selectOneLanguage as well ? How would you envision user's specifying the item label ( some will want "N/A", others will want "" ) .

        Show
        Dennis Byrne added a comment - Hi Martin, I think the same thing can be said for selectOneLanguage as well ? How would you envision user's specifying the item label ( some will want "N/A", others will want "" ) .
        Hide
        Martin Marinschek added a comment -

        as an attribute?

        emptySelection="N/A" or so?

        regards,

        Martin

        Show
        Martin Marinschek added a comment - as an attribute? emptySelection="N/A" or so? regards, Martin
        Hide
        Johan Gorter added a comment -
        Show
        Johan Gorter added a comment - For a possible solution see: http://issues.apache.org/jira/browse/TOMAHAWK-227
        Hide
        Cagatay Civici added a comment -

        I've added an emptySelection attribute to the component. If the user chooses this empty selection item, the submitted value is set as null in decoding process.

        Show
        Cagatay Civici added a comment - I've added an emptySelection attribute to the component. If the user chooses this empty selection item, the submitted value is set as null in decoding process.
        Hide
        Martin Marinschek added a comment -

        Thanks to Cagatay Civici for providing this patch.

        Show
        Martin Marinschek added a comment - Thanks to Cagatay Civici for providing this patch.

          People

          • Assignee:
            Martin Marinschek
            Reporter:
            Martin Marinschek
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development