You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Noel Grandin (JIRA)" <ji...@apache.org> on 2009/04/13 16:19:15 UTC

[jira] Created: (PIVOT-82) ListButton should allow "null" to be selected where "null" is an item in the data model

ListButton should allow "null" to be selected where "null" is an item in the data model
---------------------------------------------------------------------------------------

                 Key: PIVOT-82
                 URL: https://issues.apache.org/jira/browse/PIVOT-82
             Project: Pivot
          Issue Type: Bug
    Affects Versions: 1.1
            Reporter: Noel Grandin
            Priority: Minor
         Attachments: patch-ListButton.txt

ListButton should allow "null" to be selected where "null" is an item in the data model

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


[jira] Resolved: (PIVOT-82) ListButton should allow "null" to be selected where "null" is an item in the data model

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown resolved PIVOT-82.
-----------------------------

    Resolution: Won't Fix

A null value means "no selection". Applications should use an instance representing an "empty" value in list data rather than an actual null value.



> ListButton should allow "null" to be selected where "null" is an item in the data model
> ---------------------------------------------------------------------------------------
>
>                 Key: PIVOT-82
>                 URL: https://issues.apache.org/jira/browse/PIVOT-82
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Noel Grandin
>            Priority: Minor
>         Attachments: patch-ListButton.txt
>
>
> ListButton should allow "null" to be selected where "null" is an item in the data model

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


[jira] Updated: (PIVOT-82) ListButton should allow "null" to be selected where "null" is an item in the data model

Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noel Grandin updated PIVOT-82:
------------------------------

    Attachment: patch-ListButton.txt

Fix attached.

> ListButton should allow "null" to be selected where "null" is an item in the data model
> ---------------------------------------------------------------------------------------
>
>                 Key: PIVOT-82
>                 URL: https://issues.apache.org/jira/browse/PIVOT-82
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Noel Grandin
>            Priority: Minor
>         Attachments: patch-ListButton.txt
>
>
> ListButton should allow "null" to be selected where "null" is an item in the data model

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


[jira] Commented: (PIVOT-82) ListButton should allow "null" to be selected where "null" is an item in the data model

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698757#action_12698757 ] 

Sandro Martini commented on PIVOT-82:
-------------------------------------

Hi, 
in some cases could be useful to have definitions like these:

	// generic data structures, to use as placeholder instead of null
	public static final Object[] EMPTY_ARRAY = new Object[0];
	
	public static final List     EMPTY_LIST  = Collections.EMPTY_LIST;
	public static final Map     EMPTY_MAP   = Collections.EMPTY_MAP;
	public static final Set      EMPTY_SET   = Collections.EMPTY_SET;


These are taken for my code, and are related to standard Java Collections, maybe a similar thing could be done inside Pivot Collection classes, and use them as placeholders, when/if required ... or could be moved in some Utility class, but I'd prefer the first approach.


> ListButton should allow "null" to be selected where "null" is an item in the data model
> ---------------------------------------------------------------------------------------
>
>                 Key: PIVOT-82
>                 URL: https://issues.apache.org/jira/browse/PIVOT-82
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Noel Grandin
>            Priority: Minor
>         Attachments: patch-ListButton.txt
>
>
> ListButton should allow "null" to be selected where "null" is an item in the data model

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