[ 
https://issues.apache.org/jira/browse/CAUSEWAY-3425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717074#comment-17717074
 ] 

Andi Huber commented on CAUSEWAY-3425:
--------------------------------------

to reproduce
{code:java}
    @Action(semantics = SemanticsOf.NON_IDEMPOTENT)
    @ActionLayout(associateWith = "name")
    public HelloWorldObject act(final String p0, final boolean p1) {
        return this;
    }
    @MemberSupport
    public boolean default1Act(final String p0) {
        return p0 != null && p0.startsWith("a");
    }
{code}
The expected behavior is that the checkbox should be checked if the string 
entered in the first parameter starts with an "a".

> [Wicket Viewer] Boolean Parameter Default-Parameter-Support not triggering 
> Form Updates
> ---------------------------------------------------------------------------------------
>
>                 Key: CAUSEWAY-3425
>                 URL: https://issues.apache.org/jira/browse/CAUSEWAY-3425
>             Project: Causeway
>          Issue Type: Bug
>          Components: Core
>            Reporter: Andi Huber
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-RC2
>
>
> Martin Hesse:
> In my Action Form I have a support member public Boolean default2Act(String 
> p0, Boolean p1) that is being invoked, but the form is never updated. I 
> debugged into ActionParametersForm#onUpdate and it seems like FormRepaint is 
> always NOTHING. The method ScalarPanelAbstract#updateIfNecessary  internally 
> never detects a change, because the scalarModel and the paramValue are equal 
> (already).
> Interestingly this only seems to be a problem for a Boolean parameter, 
> because when the type of p2 is changed from Boolean to String, then the UI is 
> being properly repainted. But also for String parameters Repaint will always 
> be NOTHING. UI update must happen otherwise in that case



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to