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

Dan Haywood commented on ISIS-1319:
-----------------------------------

to reproduce, in simpleapp added:

{code}
package domainapp.dom.simple;

import javax.xml.bind.annotation.XmlAccessType;

@javax.xml.bind.annotation.XmlRootElement(name = "thing")
@javax.xml.bind.annotation.XmlType(
        propOrder = {
                "foo",
        }
)
@javax.xml.bind.annotation.XmlAccessorType(XmlAccessType.PROPERTY)
@org.apache.isis.applib.annotation.DomainObjectLayout(
        titleUiEvent = 
org.apache.isis.applib.services.eventbus.TitleUiEvent.Default.class
)
public class Thing implements org.apache.isis.applib.services.dto.Dto {

    private String foo;

    public String getFoo() {
        return foo;
    }

    public void setFoo(final String foo) {
        this.foo = foo;
    }

}
{code}


and also:

{code}
    public SimpleObject foo(Thing thing, String x) {
        return null;
    }

    public Collection<Thing> autoComplete0Foo(final String search) {
        final Thing thing = new Thing();
        thing.setFoo("X");
        return Lists.newArrayList(thing); // TODO: return list of choices for 
argument N
    }

{code}

> Input dialog for action label for mandatory parameter not shown when the 
> parameter is an view model
> ---------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-1319
>                 URL: https://issues.apache.org/jira/browse/ISIS-1319
>             Project: Isis
>          Issue Type: Bug
>          Components: Core: Viewer: Wicket
>            Reporter: Vladimir Nisevic
>            Assignee: Dan Haywood
>            Priority: Minor
>             Fix For: 1.12.0
>
>         Attachments: screenshot-1.png, screenshot-2.png
>
>
> We have an action method with two mandatory parameters, the first one is a 
> viewmodel with autoCompleteXXX and second one an Enum.
> Problem: the sign for mandatory parameter on label (*-suffix) is shown only 
> on second label - see attached screenshot 
> {code}
>  public DslPortCompatibilityCheckResult dslPortCompatibilityCheck(
>             @Parameter(optionality = Optionality.MANDATORY) 
> @ParameterLayout(named = "DSL Port") DslPort dslPort,
>             @Parameter(optionality = Optionality.MANDATORY) 
> @ParameterLayout(named = "Technology") DslTechnology desiredTechnology) 
> throws PlanningException {
> {code}
> Dialog behavior is OK.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to