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

Martin Grigorov commented on ISIS-995:
--------------------------------------

The functionality is implemented.
Added support for 'namedEscaped' for @CollectionLayout, @PropertyLayout and 
@ParameterLayout. Have to add tests for this !
Added support for LabelPosition.RIGHT for BooleanPanel.

To test you may use property like:
{code}
//region > acceptTerms (property)
    private boolean acceptTerms;

    @javax.jdo.annotations.Column(allowsNull="false")
    @MemberOrder(name="Name",sequence = "2.4")
    @PropertyLayout(labelPosition = LabelPosition.RIGHT, named = "Accept our <a 
target=\"_blank\" href=\"http://example.com\";>terms</a>", namedEscaped = false)
    public boolean getAcceptTerms() {
        return acceptTerms;
    }

    public void setAcceptTerms(final boolean acceptTerms) {
        this.acceptTerms = acceptTerms;
    }
    //endregion
{code}

> Allow the label of a property to be rendered as HTML.  Also, allow the label 
> of boolean panels to be rendered on the right hand side.
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-995
>                 URL: https://issues.apache.org/jira/browse/ISIS-995
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core, Viewer: Wicket
>    Affects Versions: viewer-wicket-1.7.0, core-1.7.0
>            Reporter: Dan Haywood
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: viewer-wicket-1.8.0, core-1.8.0
>
>
> Suggested syntax is:
> {code}
> @PropertyLayout(
>   named="Accept <a href="http://foo.org/terms";>terms</a>?",
>   namedEscaped=false
>   labelPosition=LabelPosition.RIGHT
> )
> {code}
> The Javadoc should state that LabelPosition.RIGHT is only supported by 
> boolean panels; if specified for other panels it will be ignored and default 
> to LEFT instead.



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

Reply via email to