You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ivana Cace (JIRA)" <ji...@apache.org> on 2007/04/11 18:18:32 UTC

[jira] Created: (WICKET-459) Palette requires a ChoiceRenderer with both a displayvalue and id value

Palette requires a ChoiceRenderer with both a displayvalue and id value
-----------------------------------------------------------------------

                 Key: WICKET-459
                 URL: https://issues.apache.org/jira/browse/WICKET-459
             Project: Wicket
          Issue Type: Task
          Components: wicket-extensions
    Affects Versions: 1.2.5
         Environment: tomcat 5.5, java 1.5
            Reporter: Ivana Cace


The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.

This should be in the API.

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


[jira] Updated: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

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

Martijn Dashorst updated WICKET-459:
------------------------------------

    Fix Version/s:     (was: 1.3.0-beta2)
                   1.3.0-beta3

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Assignee: Alastair Maw
>            Priority: Minor
>             Fix For: 1.2.7, 1.3.0-beta3
>
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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


[jira] Commented: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504978 ] 

Alastair Maw commented on WICKET-459:
-------------------------------------

Sorry, I don't quite follow you. How is this unclear? You need to implement an IChoiceRenderer. This clearly has two method signatures you need to implement, which are both properly javadoc'ed.

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Priority: Minor
>             Fix For: 1.3.0-rc1
>
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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


[jira] Updated: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

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

Ivana Cace updated WICKET-459:
------------------------------

    Priority: Minor  (was: Major)

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Priority: Minor
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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


[jira] Updated: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

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

Ivana Cace updated WICKET-459:
------------------------------

    Summary: Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value  (was: Palette requires a ChoiceRenderer with both a displayvalue and id value)

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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


[jira] Resolved: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

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

Alastair Maw resolved WICKET-459.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.2.7)

Fixed in trunk (r555005).

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Assignee: Alastair Maw
>            Priority: Minor
>             Fix For: 1.3.0-beta3
>
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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


[jira] Assigned: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

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

Alastair Maw reassigned WICKET-459:
-----------------------------------

    Assignee: Alastair Maw

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Assignee: Alastair Maw
>            Priority: Minor
>             Fix For: 1.3.0-rc1
>
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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


[jira] Commented: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

Posted by "Ivana Cace (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505083 ] 

Ivana Cace commented on WICKET-459:
-----------------------------------

Palette is constructed using a ChoiceRenderer as the 4th argument. 
There are 3 ways to construct a ChoiceRenderer, two of those do not require specifying an id expression because the item's index can be used instead. This works fine in most cases but not for the Palette. 

When creating a Palette object make sure you use a ChoiceRenderer that has been constructed with the 2-argument constructor, specifying both display and id expression.

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Priority: Minor
>             Fix For: 1.3.0-rc1
>
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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


[jira] Updated: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

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

Alastair Maw updated WICKET-459:
--------------------------------

    Fix Version/s: 1.3.0-rc1

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Priority: Minor
>             Fix For: 1.3.0-rc1
>
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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


[jira] Updated: (WICKET-459) Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value

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

Alastair Maw updated WICKET-459:
--------------------------------

    Fix Version/s:     (was: 1.3.0-rc1)
                   1.3.0-beta2
                   1.2.7

Ah, I see. I was evidently being a bit dense before, sorry. Will get around to this later today on trunk and 1.2.x branches.

> Add to API: Palette requires a ChoiceRenderer with both a displayvalue and id value
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-459
>                 URL: https://issues.apache.org/jira/browse/WICKET-459
>             Project: Wicket
>          Issue Type: Task
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Assignee: Alastair Maw
>            Priority: Minor
>             Fix For: 1.2.7, 1.3.0-beta2
>
>
> The Palette component needs to be constructed with a ChoiceRenderer that specifies both the value to display as the value to identify items. Otherwise the items cannot be identified and the model (selected) will hold n copies of the first item selected.
> This should be in the API.

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