You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Carsten Dimmek (Jira)" <de...@myfaces.apache.org> on 2020/06/25 11:27:00 UTC
[jira] [Commented] (TOBAGO-2008) AuthorizationHelper not working
with composite component expressions
[ https://issues.apache.org/jira/browse/TOBAGO-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17144854#comment-17144854 ]
Carsten Dimmek commented on TOBAGO-2008:
----------------------------------------
Yes
> AuthorizationHelper not working with composite component expressions
> --------------------------------------------------------------------
>
> Key: TOBAGO-2008
> URL: https://issues.apache.org/jira/browse/TOBAGO-2008
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 4.4.1
> Reporter: Carsten Dimmek
> Priority: Major
>
> When i create a composite component and have a secured method referenced with cc.attrs
> the AuthorizationHelper fails to resolve the corresponding bean
> {code:java}
> <cc:interface>
> <cc:attribute name="value" type="MyController"/>
> </cc:interface>
> <cc:implementation>
> <tc:button action="#{cc.attrs.value.approve}"/>
> </cc:implementation>
> class MyController {
> @RolesAllowed("admin")
> public void approve() {
> }
> }{code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)