i want to explor the spring security taglibs in my xhtml page so for that i do this steps:
1) create a springsecurity.taglib.xml:
<?xml version="1.0"?>
<!DOCTYPE facelet-taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
"http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
<facelet-taglib>
<namespace>http://www.springframework.org/security/tags</namespace>
<tag>
<tag-name>authorize</tag-name>
<handler-class>org.springframework.faces.security.FaceletsAuthorizeTagHandler</handler-class>
</tag>
<function>
<function-name>areAllGranted</function-name>
<function-class>org.springframework.faces.security.FaceletsAuthorizeTagUtils</function-class>
<function-signature>boolean areAllGranted(java.lang.String)</function-signature>
</function>
<function>
<function-name>areAnyGranted</function-name>
<function-class>org.springframework.faces.security.FaceletsAuthorizeTagUtils</function-class>
<function-signature>boolean areAnyGranted(java.lang.String)</function-signature>
</function>
<function>
<function-name>areNotGranted</function-name>
<function-class>org.springframework.faces.security.FaceletsAuthorizeTagUtils</function-class>
<function-signature>boolean areNotGranted(java.lang.String)</function-signature>
</function>
<function>
<function-name>isAllowed</function-name>
<function-class>org.springframework.faces.security.FaceletsAuthorizeTagUtils</function-class>
<function-signature>boolean isAllowed(java.lang.String, java.lang.String)</function-signature>
</function>
</facelet-taglib>2) Register the above file in web.xml
<context-param>
<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
<param-value>/WEB-INF/springsecurity.taglib.xml</param-value>
</context-param>when i deploy my project I get an error that requires me to add a spring-faces to solve it, but i get a new problem that the jsf url parametred no longer works((like http://localhost:8080/projet/etudiant.jsf?idEtudiant=2 )). before adding the spring-faces dependency it work's fine, the problem begin when i add this dependency of spring-faces
I need your help very urgent.
--
---
You received this message because you are subscribed to the Google Groups "Spring Security Facelets-JSF 2.0-taglib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-security-t...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
i dont understand what do you mean you can be a little clearer
--
if you read my i do the same steps ofhttp://stackoverflow.com/questions/7915134/how-to-use-the-spring-security-facelets-tag-library-in-jsf
--
my example is describe herei have the firts jsf page called index.xhtml in this file i have this code :<h:form prependId="false" style="margin-top:25px"><p:dataTable id="dataTable" var="lot"value="#{lotissementBean.getAllLotissement()}" paginator="true"rows="5"paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"><f:facet name="header">Liste des lotissements</f:facet><p:column><f:facet name="header"><h:outputText value="Designation" /></f:facet><h:outputText value="#{lot.nom}" /></p:column><p:column><f:facet name="header"><h:outputText value="Description" /></f:facet><h:outputText value="#{lot.description}" /></p:column><p:column style="width:4%"><f:facet name="header"><h:outputText value="Etude" /></f:facet><p:button id="updateButton" icon="ui-icon-update" outcome="etude_new"><f:param name="lotissementIdEtude" value="#{lot.idLotissement}" /></p:button></p:column></p:dataTable></h:form>and the second file is etude_new.xhtml it contain the following code :<f:metadata><f:viewParam name="lotissementIdEtude"value="#{etudeBean.lotissementIdEtude}" /></f:metadata><h:form prependId="false" style="margin-top:25px" id="formTable"><p:dataTable id="dataTable" var="etude"value="#{etudeBean.getAllLotissement()}" paginator="true" rows="15"paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"><f:facet name="header">Liste des Etudes Lotissement: #{etudeBean.trouverLotissement().nom}</f:facet><p:column><f:facet name="header"><h:outputText value="Designation" /></f:facet><h:outputText value="#{etude.designation}" /></p:column><p:column><f:facet name="header"><h:outputText value="Description" /></f:facet><h:outputText value="#{etude.description}" /></p:column></p:dataTable></h:form>when i select a row from the first page (index.xhtml) and i clik on the update button i was rederect to the etude_new.xhtml ( http://localhost:8080/projet/etude_new?lotissementIdEtude=2) the problem is the parameter lotissementIdEtude still null no value with the spring-faces but when i remove this library the solution work
--
---
You received this message because you are subscribed to the Google Groups "Spring Security Facelets-JSF 2.0-taglib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-security-t...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
u still not understand what i want exactly ok thank's fir you i will find the soolution alone
u still not understand what i want exactly ok thank's fir you i will find the soolution alone
--
---
You received this message because you are subscribed to the Google Groups "Spring Security Facelets-JSF 2.0-taglib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-security-t...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
thank's i resolve the probleme merci chokran
thank's i resolve the probleme merci chokran
--
---
You received this message because you are subscribed to the Google Groups "Spring Security Facelets-JSF 2.0-taglib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-security-t...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.