You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2011/05/18 23:24:47 UTC

[jira] [Created] (PIVOT-745) Illegal argument exception on tristate checkbox using stateKey binding

Illegal argument exception on tristate checkbox using stateKey binding
----------------------------------------------------------------------

                 Key: PIVOT-745
                 URL: https://issues.apache.org/jira/browse/PIVOT-745
             Project: Pivot
          Issue Type: Bug
          Components: wtk
    Affects Versions: 2.0.1
         Environment: Windows XP SP3, JDK 1.6.0_16
            Reporter: Roger Whitcomb
            Priority: Minor
             Fix For: 2.0.1


Button.store on a tristate checkbox using "stateKey" binding gets an error:
java.lang.IllegalArgumentException: path is null.
        at org.apache.pivot.json.JSON.parse(JSON.java:259)
        at org.apache.pivot.json.JSON.put(JSON.java:137)
        at org.apache.pivot.wtk.Button.store(Button.java:772)
Due to the following code:
                if (stateKey != null
                    && stateBindType != BindType.LOAD) {
                    JSON.put(context, selectedKey, (stateBindMapping == null) ?
The put should be using "stateKey" not "selectedKey".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (PIVOT-745) Illegal argument exception on tristate checkbox using stateKey binding

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

Greg Brown resolved PIVOT-745.
------------------------------

    Resolution: Fixed

> Illegal argument exception on tristate checkbox using stateKey binding
> ----------------------------------------------------------------------
>
>                 Key: PIVOT-745
>                 URL: https://issues.apache.org/jira/browse/PIVOT-745
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: Windows XP SP3, JDK 1.6.0_16
>            Reporter: Roger Whitcomb
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: button.diff
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Button.store on a tristate checkbox using "stateKey" binding gets an error:
> java.lang.IllegalArgumentException: path is null.
>         at org.apache.pivot.json.JSON.parse(JSON.java:259)
>         at org.apache.pivot.json.JSON.put(JSON.java:137)
>         at org.apache.pivot.wtk.Button.store(Button.java:772)
> Due to the following code:
>                 if (stateKey != null
>                     && stateBindType != BindType.LOAD) {
>                     JSON.put(context, selectedKey, (stateBindMapping == null) ?
> The put should be using "stateKey" not "selectedKey".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIVOT-745) Illegal argument exception on tristate checkbox using stateKey binding

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

Roger Whitcomb updated PIVOT-745:
---------------------------------

    Attachment: button.diff

Here is a patch that fixes the problem.

> Illegal argument exception on tristate checkbox using stateKey binding
> ----------------------------------------------------------------------
>
>                 Key: PIVOT-745
>                 URL: https://issues.apache.org/jira/browse/PIVOT-745
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.0.1
>         Environment: Windows XP SP3, JDK 1.6.0_16
>            Reporter: Roger Whitcomb
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: button.diff
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Button.store on a tristate checkbox using "stateKey" binding gets an error:
> java.lang.IllegalArgumentException: path is null.
>         at org.apache.pivot.json.JSON.parse(JSON.java:259)
>         at org.apache.pivot.json.JSON.put(JSON.java:137)
>         at org.apache.pivot.wtk.Button.store(Button.java:772)
> Due to the following code:
>                 if (stateKey != null
>                     && stateBindType != BindType.LOAD) {
>                     JSON.put(context, selectedKey, (stateBindMapping == null) ?
> The put should be using "stateKey" not "selectedKey".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira