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

Andi Huber resolved ISIS-3198.
------------------------------
    Resolution: Fixed

select2 issues fixes; time-picker issues tracked with follow up ISIS-3216

> [Wicket Viewer] action parameter hiding problem & default method argument null
> ------------------------------------------------------------------------------
>
>                 Key: ISIS-3198
>                 URL: https://issues.apache.org/jira/browse/ISIS-3198
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Viewer Wicket
>            Reporter: Zermelo
>            Assignee: Andi Huber
>            Priority: Blocker
>             Fix For: 2.0.0-M8
>
>
> [https://the-asf.slack.com/archives/CFC42LWBV/p1662043383425189]
> action parameter hiding problem
> {code:java}
> import lombok.RequiredArgsConstructor;
> import org.apache.isis.applib.annotation.Action;
> import org.apache.isis.applib.annotation.ActionLayout;
> import org.apache.isis.applib.annotation.PromptStyle;
> @Action
> @ActionLayout(promptStyle = PromptStyle.DIALOG_MODAL)
> @RequiredArgsConstructor
> public class Isis3198Demo {
>     public final Object target;
>     public Object act(String a, boolean showB, String b) {
>         return target;
>     }
>     public boolean hide2Act(String a, boolean showB) {
>         return !showB;
>     }
> }
> {code}
>  
> default method argument null
>  
> {code:java}
> import lombok.RequiredArgsConstructor;
> import org.apache.isis.applib.annotation.*;
> import org.apache.isis.applib.services.repository.RepositoryService;
> import javax.inject.Inject;
> import java.util.Collection;
> import java.util.List;
> @Action
> @ActionLayout(promptStyle = PromptStyle.DIALOG_MODAL)
> @RequiredArgsConstructor(onConstructor_ = {@Inject})
> public class Isis3198Demo2 {
>     @Inject
>     RepositoryService repositoryService;
>     public final Object target;
>     public Object act(
>             Isis3198DemoClass a, String dependentToA) {
>         return target;
>     }
>     public List<Isis3198DemoClass> autoComplete0Act(@MinLength(1) String 
> input) {
>         var c1 = new Isis3198DemoClass();
>         c1.setName(input + " item 1");
>         c1 = repositoryService.detachedEntity(c1);
>         repositoryService.persistAndFlush(c1);
>         var c2 = new Isis3198DemoClass();
>         c2.setName(input + " item 2");
>         c2 = repositoryService.detachedEntity(c2);
>         repositoryService.persistAndFlush(c2);
>         return List.of(c1, c2);
>     }
>     public String default1Act(Isis3198DemoClass a) {
>         return "Current value of A:" + a;
>     }
> } {code}
> {code:java}
> import lombok.*;
> import org.apache.isis.applib.annotation.DomainObject;
> import org.apache.isis.applib.annotation.Nature;
> import org.apache.isis.applib.annotation.Title;
> import javax.persistence.Entity;
> import javax.persistence.Id;
> @DomainObject(logicalTypeName = "demo.Isis3198DemoClass")
> @Entity
> @Getter @Setter
> public class Isis3198DemoClass {
>     @Id
>     @Title
>     private String name;
>     @Override
>     public String toString() {
>         return name;
>     }
> }
>  {code}
>  



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

Reply via email to