Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
Description
https://the-asf.slack.com/archives/CFC42LWBV/p1662043383425189
action parameter hiding problem
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; } }
default method argument null
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; } }
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; } }
Attachments
Issue Links
- requires
-
CAUSEWAY-3215 [Wicket Viewer] Multi-param Action Dialogs - Select2 Change Event has no Payload (when using autocomplete)
- Closed