You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2009/02/01 23:19:59 UTC

[jira] Resolved: (WICKET-1545) problems with stateless forms and radiogroups/checkgroups

     [ https://issues.apache.org/jira/browse/WICKET-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1545.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

we cannot fix this because the components are simply not stateless.

i have done two things:
a) overrode getstatelesshint() which now properly returns false letting wicket know these components are not stateless
b) made getvalue() non-final
c) added javadoc to both radio and check to explain how to make them stateless.

> problems with stateless forms and radiogroups/checkgroups
> ---------------------------------------------------------
>
>                 Key: WICKET-1545
>                 URL: https://issues.apache.org/jira/browse/WICKET-1545
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.3
>            Reporter: Alexei Sokolov
>            Assignee: Igor Vaynberg
>
> I'm trying to use radiogroup/checkgroup with stateless form, and it is not possible at the moment. I get the following exception:
> submitted http post value [radio4] for RadioGroup component [0:form:whatever] is illegal because it does not contain relative path to a Radio componnet. Due to this the RadioGroup component cannot resolve the selected Radio component pointed to by the illegal value. A possible reason is that component hierarchy changed between rendering and form submission.
> I think the problem lies inside Check & Radio components, which use Page.getAutoIndex()  and that value is different before and after page submission for Check/Radio components.
> Now, it is not possible to override getValue() on Check/Radio components, so I'm kind of stuck now...

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