You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Patrick Deenen (Jira)" <ji...@apache.org> on 2021/12/02 16:10:00 UTC

[jira] [Updated] (ISIS-2907) css-class-fa not applied to menu items based on action classes

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

Patrick Deenen updated ISIS-2907:
---------------------------------
    Description: 
When in the application.yml for isis is configured with:
{code:java}
isis:
  applib:
    annotation:
      action-layout:
        css-class-fa:
          patterns:
            - new.*:fa-plus
            - add.*:fa-plus-square
            - attach.*:fa-plus-square
            - create.*:fa-plus{code}
This will not be applied to:
{code:java}
public class ContactsMenu {
    @Action
    public class newContact{
        public Person act( ...{code}
This workaround works:
{code:java}
public class ContactsMenu { 
    @Action
    @ActionLayout(cssClassFa = "fa-plus")
    public class newContact{
        public Person act( ... {code}

  was:
When in the application.yml isis is configured with:
{code:java}
isis:
  applib:
    annotation:
      action-layout:
        css-class-fa:
          patterns:
            - new.*:fa-plus
            - add.*:fa-plus-square
            - attach.*:fa-plus-square
            - create.*:fa-plus{code}
This will not be applied to:
{code:java}
public class ContactsMenu {
    @Action
    public class newContact{
        public Person act( ...{code}
This workaround works:
{code:java}
public class ContactsMenu { 
    @Action
    @ActionLayout(cssClassFa = "fa-plus")
    public class newContact{
        public Person act( ... {code}


> css-class-fa not applied to menu items based on action classes
> --------------------------------------------------------------
>
>                 Key: ISIS-2907
>                 URL: https://issues.apache.org/jira/browse/ISIS-2907
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Viewer Wicket
>    Affects Versions: 2.0.0-M6
>            Reporter: Patrick Deenen
>            Priority: Major
>
> When in the application.yml for isis is configured with:
> {code:java}
> isis:
>   applib:
>     annotation:
>       action-layout:
>         css-class-fa:
>           patterns:
>             - new.*:fa-plus
>             - add.*:fa-plus-square
>             - attach.*:fa-plus-square
>             - create.*:fa-plus{code}
> This will not be applied to:
> {code:java}
> public class ContactsMenu {
>     @Action
>     public class newContact{
>         public Person act( ...{code}
> This workaround works:
> {code:java}
> public class ContactsMenu { 
>     @Action
>     @ActionLayout(cssClassFa = "fa-plus")
>     public class newContact{
>         public Person act( ... {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)