java - JSF with Ice Faces 2 overwrite "renderedOnUserRole" method -


i wonder know if there way overwrite "renderedonuserrole" behavior on jsf application using icefaces.

this sample tag on application:

<ice:menuitem value="view profile (pilot)" styleclass="bluelabel" renderedonuserrole="vendor,admin"> 

the roles defined in xml file security configuration. however, trying handle security using wso2, managed retrieve list of permissions (policies) wso2, receiving list of strings must compared against values set on "renderedonuserrole".

in order that, i'm checking if there's way overwrite "renderedonuserrole" method somewhere on application. i'm not enthusiastic on using jsf or icefaces "old" system needs move security handle new approach described above.

i tried following in managedbean: elements view (xhtml page) , iterate on them retrieve attributes , check "renderedonuserrole" values, no success.

uiviewroot viewroot = facescontext.getcurrentinstance().getviewroot(); list<uicomponent> components = viewroot.getchildren(); 

do know approach can take? maybe overwriting method not best solution case.

thanks in advance time , help.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -