Thanks Your reply, I've solved. The problem was, that developer must download an other modified acegi.jar ( only for faclets?) ... but nobody has written this fact in document!!! Only Mat said somthig like this...
Itnaf wrote: > > Attila, > > The source bellow is for a page that works for me: > > <html xmlns="http://www.w3.org/1999/xhtml" > > xmlns:c="http://java.sun.com/jstl/core" > > xmlns:f="http://java.sun.com/jsf/core" > > xmlns:h="http://java.sun.com/jsf/html" > > xmlns:ui="http://java.sun.com/jsf/facelets" > > xmlns:authz="http://acegisecurity.org/authz" > > xmlns:acegijsf="http://sourceforge.net/projects/jsf-comp/acegijsf" > > xmlns:fmt="http://java.sun.com/jstl/fmt" > > xmlns:t="http://myfaces.apache.org/tomahawk"> > > <f:view> > > <f:loadBundle var="text" basename="#{basePage.bundleName}" /> > > <head> > > <title>#{text['mainMenu.title']}</title> > > <meta name="menu" content="MainMenu" /> > > <meta name="heading" content="#{text['mainMenu.heading']}" /> > > </head> > > <p>#{text['mainMenu.message']}</p> > > <div class="separator"></div> > > <h:form id="editUser"> > > <h4><fmt:message key="menu.admin" /></h4> > > <acegijsf:authorize ifAllGranted="admin"> > > <ul class="glassList"> > > <li><h:outputLink value="chooseRepository.html"> > > <h:outputText value="#{text['menu.admin.setup']}" /> > > </h:outputLink></li> > > <li><h:outputLink value="chooseRepository.html"> > > <h:outputText value="#{text['menu.admin.users']}" /> > > </h:outputLink></li> > > <li><h:outputLink value="chooseRepository.html"> > > <h:outputText value="#{text['menu.admin.reload']}" /> > > </h:outputLink></li> > > <li><h:outputLink value="#{text['menu.admin.systemValues']}"> > > <h:outputText value="#{text['menu.admin.systemValues']}" /> > > </h:outputLink></li> > > </ul> > > </acegijsf:authorize> > > <acegijsf:authorize ifAllGranted="user"> > > <ul class="glassList"> > > <li><h:outputLink value="chooseRepository.html"> > > <h:outputText value="Initial Setup" /> > > </h:outputLink></li> > > </ul> > > </acegijsf:authorize> > > </h:form> > > </f:view> > > </html> > > > > > ----- Original Message ----- > From: "Attila" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, January 04, 2007 5:16 AM > Subject: Re: [appfuse-user] <authz:authorize ifAnyGranted="role" > doesn't > work!!! * * * HELP * * * > > >> >> Hello >> >> how can I define the tag? >> >> like this, or how? >> >> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:c="http://java.sun.com/jstl/core" >> xmlns:f="http://java.sun.com/jsf/core" >> xmlns:h="http://java.sun.com/jsf/html" >> xmlns:ui="http://java.sun.com/jsf/facelets" >> xmlns:t="http://myfaces.apache.org/tomahawk" >> xmlns:acegijsf="http://acegisecurity.org/authz"> >> >> ... >> <acegijsf:authorize ifAnyGranted="role" > >> >> Thanks >> >> Bye, Bye >> >> >> >> >> Itnaf wrote: >>> >>> Attila, >>> >>> like Matt said, with Facelets (are you using the 1.9.4 JSF version?) you >>> have to use: >>> >>> >>> <acegijsf:authorize ifAllGranted="admin"> >>> Some links... >>> </acegijsf:authorize> >>> >>> Regards, >>> >>> -- mf >>> >>> ----- Original Message ----- >>> From: Matt Raible >>> To: [email protected] >>> Sent: Tuesday, January 02, 2007 2:31 PM >>> Subject: Re: [appfuse-user] <authz:authorize ifAnyGranted="role" > >>> doesn't work!!! >>> >>> >>> If you view-source on your page, are the tags there? In other words, >>> is >>> the authz tag defined in your taglibs.jsp? If so, and it's not working >>> it's because the regular acegi tags don't work with Facelets. >>> >>> Matt >>> >>> >>> On 1/2/07, Attila <[EMAIL PROTECTED]> wrote: >>> >>> Hello Matt, >>> >>> the latest AppFuse, 1.9.4. >>> >>> My problem is, that nothing is happen...with or without the >>> <authz:authorize >>> ifAnyGranted="role" > tag. How can I find out (debug or else) what >>> is >>> the >>> problem? It is very urgent, while I've spend many days only for this >>> theme. >>> >>> Bye >>> >>> >>> >>> Matt Raible-3 wrote: >>> > >>> > Which version of AppFuse are you using? Are you using Facelets? >>> If >>> so, >>> > you >>> > might have to install the Acegi components from the jsf-comp >>> project. >>> > >>> > http://jsf-comp.sourceforge.net/components/index.html >>> > >>> > Matt >>> > >>> > On 1/2/07, Attila <[EMAIL PROTECTED]> wrote: >>> >> >>> >> >>> >> Hello, >>> >> >>> >> First of all: I've read all of messages about <authz:authorize >>> >> ifAnyGranted="role" >. >>> >> >>> >> I need to hide functions (menus) dependent on user's role. It >>> makes >>> >> nothing...Please help how to find mistake or soloution, while >>> I've >>> spend >>> >> many days with this!!! >>> >> >>> >> My app is derived from AppFuse "basic" with ant new target, I use >>> >> myFaces, >>> >> Hibernate and all the libs are found in "basic" AppFuse app. >>> >> >>> >> Thanks >>> >> >>> >> bye, bye >>> >> Attila from Hungary >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/%3Cauthz%3Aauthorize-ifAnyGranted%3D%22role%22-%3E-doesn%27t-work%21%21%21-tf2907135s2369.html#a8121911 >>> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >>> >> >>> >> >>> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> > >>> > -- >>> > http://raibledesigns.com >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/%3Cauthz%3Aauthorize-ifAnyGranted%3D%22role%22-%3E-doesn%27t-work%21%21%21-tf2907135s2369.html#a8126619 >>> Sent from the AppFuse - User mailing list archive at Nabble.com . >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >>> -- >>> http://raibledesigns.com >>> >> >> -- >> View this message in context: >> http://www.nabble.com/%3Cauthz%3Aauthorize-ifAnyGranted%3D%22role%22-%3E-doesn%27t-work%21%21%21---No-reply----tf2907135s2369.html#a8156739 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > -- View this message in context: http://www.nabble.com/%3Cauthz%3Aauthorize-ifAnyGranted%3D%22role%22-%3E-doesn%27t-work%21%21%21---No-reply----Please-Help%21%21%21-tf2907135s2369.html#a8278009 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
