You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "TH Lim (JIRA)" <ji...@apache.org> on 2009/03/02 03:45:12 UTC

[jira] Created: (WICKET-2134) Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border

Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border 
--------------------------------------------------------------------------------------

                 Key: WICKET-2134
                 URL: https://issues.apache.org/jira/browse/WICKET-2134
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4-RC2
         Environment: JDK 1.5, OS X
            Reporter: TH Lim


"org.apache.wicket.util.convert.ConversionException: Can't convert null value to a primitive class: int for setting it on" exception thrown when submitting a Page with multiple Forms within a Border. A "Bordered" Page with a single Form would not have this problem manifests. Also, if the Page by itself (not contained in a Border) is alright too.

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


[jira] Assigned: (WICKET-2134) Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border

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

Igor Vaynberg reassigned WICKET-2134:
-------------------------------------

    Assignee: Juergen Donnerstag

> Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border 
> --------------------------------------------------------------------------------------
>
>                 Key: WICKET-2134
>                 URL: https://issues.apache.org/jira/browse/WICKET-2134
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC2
>         Environment: JDK 1.5, OS X
>            Reporter: TH Lim
>            Assignee: Juergen Donnerstag
>         Attachments: myproject.zip
>
>
> "org.apache.wicket.util.convert.ConversionException: Can't convert null value to a primitive class: int for setting it on" exception thrown when submitting a Page with multiple Forms within a Border. A "Bordered" Page with a single Form would not have this problem manifests. Also, if the Page by itself (not contained in a Border) is alright too.

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


[jira] Resolved: (WICKET-2134) Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border

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

Juergen Donnerstag resolved WICKET-2134.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-RC3

Fixed and added a test case. Thanks.

> Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border 
> --------------------------------------------------------------------------------------
>
>                 Key: WICKET-2134
>                 URL: https://issues.apache.org/jira/browse/WICKET-2134
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC2
>         Environment: JDK 1.5, OS X
>            Reporter: TH Lim
>            Assignee: Juergen Donnerstag
>             Fix For: 1.4-RC3
>
>         Attachments: myproject.zip
>
>
> "org.apache.wicket.util.convert.ConversionException: Can't convert null value to a primitive class: int for setting it on" exception thrown when submitting a Page with multiple Forms within a Border. A "Bordered" Page with a single Form would not have this problem manifests. Also, if the Page by itself (not contained in a Border) is alright too.

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


[jira] Updated: (WICKET-2134) Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border

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

TH Lim updated WICKET-2134:
---------------------------

    Attachment: myproject.zip

Codes to show the bug

> Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border 
> --------------------------------------------------------------------------------------
>
>                 Key: WICKET-2134
>                 URL: https://issues.apache.org/jira/browse/WICKET-2134
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC2
>         Environment: JDK 1.5, OS X
>            Reporter: TH Lim
>         Attachments: myproject.zip
>
>
> "org.apache.wicket.util.convert.ConversionException: Can't convert null value to a primitive class: int for setting it on" exception thrown when submitting a Page with multiple Forms within a Border. A "Bordered" Page with a single Form would not have this problem manifests. Also, if the Page by itself (not contained in a Border) is alright too.

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


[jira] Commented: (WICKET-2134) Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border

Posted by "SoulSpirit (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678027#action_12678027 ] 

SoulSpirit commented on WICKET-2134:
------------------------------------

When the current form is contained in a Border, all Border's children (including already-visited children and other forms) are visited.

It looks like the problem rises at Form.visitFormComponentsPostOrder(FormComponent.IVisitor), during the validation process:

if (getParent() instanceof Border)
{
	FormComponent.visitFormComponentsPostOrder(getParent(), visitor);
}

It seems to me that this piece code breaks everything.

> Conversion Exception Thrown for Submitting A Page with Multiple Forms within A Border 
> --------------------------------------------------------------------------------------
>
>                 Key: WICKET-2134
>                 URL: https://issues.apache.org/jira/browse/WICKET-2134
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC2
>         Environment: JDK 1.5, OS X
>            Reporter: TH Lim
>         Attachments: myproject.zip
>
>
> "org.apache.wicket.util.convert.ConversionException: Can't convert null value to a primitive class: int for setting it on" exception thrown when submitting a Page with multiple Forms within a Border. A "Bordered" Page with a single Form would not have this problem manifests. Also, if the Page by itself (not contained in a Border) is alright too.

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