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

Dan Haywood commented on ISIS-457:
----------------------------------

Good questions.

1. You are right that there aren't any overtly HTML-specific annotations, but 
there are plenty of annotations that are hints to the UI: @MemberOrder, 
@MemberGroup, @Render(EAGERLY), @Title, etc etc.  I think that most people 
coming to Isis will be wanting to use it as a webapp (the Wicket viewer), so 
I'm not sure its worth coming up with our own more generic name for such a 
well-known concept as CSS classes.

Happy to be swayed if the community thinks otherwise; that's my view.

2. I think this annotation could be applied to collections and properties and, 
for that matter, to entity types themselves.  Then, in the appropriate Wicket 
UI component, we look for the facet on the ObjectSpecification (for entity 
type) or ObjectMember (for property, collection or action) and add in using a 
CssClassAppender to the relevant Wicket component.

There is some code that already appends the member name to an appropriate 
widget; have a look for usages of CssClassAppender to get some ideas.

Cheers
Dan
                
> New annotation @CssClass for class member, should render in the HTML markup 
> for that member.
> --------------------------------------------------------------------------------------------
>
>                 Key: ISIS-457
>                 URL: https://issues.apache.org/jira/browse/ISIS-457
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core, Viewer: Wicket
>    Affects Versions: viewer-wicket-1.2.0, core-1.2.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>            Priority: Minor
>             Fix For: viewer-wicket-1.3.0, core-1.3.0
>
>
> for example:
> @CssClass("lock")
> public void lock() { ... }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to