[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-885) Restricting pages in pages.xml with wildcards
by Joshua Jackson (JIRA)
Restricting pages in pages.xml with wildcards
---------------------------------------------
Key: JBSEAM-885
URL: http://jira.jboss.com/jira/browse/JBSEAM-885
Project: JBoss Seam
Issue Type: Feature Request
Components: Security
Affects Versions: 1.1.6.GA
Environment: JBoss AS 5.0.0.Beta1
Reporter: Joshua Jackson
Priority: Optional
If I have directory structure for pages as such:
/department/home.xhtml
/distributor/home.xhtml
I'll be able to secure it in pages.xml with wildcards as such:
<page view-id="/**/*">
<restrict />
</page>
If I have directory structure as such:
/order/purchase/home.xhtml
/order/sales/home.xhtml
I'll be able to secure it in pages.xml with wildcards as such:
<page view-id="/order/purchase/*">
<restrict />
</page>
Since with this pattern it only works if we define the role in <restrict> element as such:
<page view-id="/order/purchase/*">
<restrict>#{s:hasRole('admin')}</restrict>
</page>
Also this pattern:
<page view-id="/order/**/*">
<restrict />
</page>
And this pattern:
<page view-id="/**/**/*">
<restrict />
</page>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-334) Examples need changes to run on JBoss 5.x
by Stan Silvert (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-334?page=comments#action_12356850 ]
Stan Silvert commented on JBSEAM-334:
-------------------------------------
Yes, JBoss 5.x and JBoss 4.2 use the same JSF impl.
> Examples need changes to run on JBoss 5.x
> -----------------------------------------
>
> Key: JBSEAM-334
> URL: http://jira.jboss.com/jira/browse/JBSEAM-334
> Project: JBoss Seam
> Issue Type: Bug
> Components: Examples
> Affects Versions: 1.0.1
> Reporter: Stan Silvert
>
> The examples need to be updated so that they can deploy and run on JBoss 5.x.
> JBoss 5.x ships with the RI JSF 1.2 implementation. To get the examples to run on JBoss 5.x, you need to remove this from web.xml:
> <listener>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> </listener>
> For JBoss 5.x, the listener for JSF 1.2 is added automatically, so you don't need to put it in web.xml.
> Also, there are some third party libraries such as cglib that do not ship with JBoss 5.x. I was able to get the examples to run on JBoss 5.x by adding Seam's thridparty-all.jar to the server/default/lib directory. However, that's probably not the best way to handle the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-334) Examples need changes to run on JBoss 5.x
by Joshua Jackson (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-334?page=comments#action_12356806 ]
Joshua Jackson commented on JBSEAM-334:
---------------------------------------
I tried to make it work on JBoss 5.0.0.Beta1, and deployed it on JBoss 4.2.0.CR1 it doesn't work. AFAIK JBoss 5.0.0.Beta1 and JBoss 4.2.0.CR1 uses the same JSF RI library.
> Examples need changes to run on JBoss 5.x
> -----------------------------------------
>
> Key: JBSEAM-334
> URL: http://jira.jboss.com/jira/browse/JBSEAM-334
> Project: JBoss Seam
> Issue Type: Bug
> Components: Examples
> Affects Versions: 1.0.1
> Reporter: Stan Silvert
>
> The examples need to be updated so that they can deploy and run on JBoss 5.x.
> JBoss 5.x ships with the RI JSF 1.2 implementation. To get the examples to run on JBoss 5.x, you need to remove this from web.xml:
> <listener>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> </listener>
> For JBoss 5.x, the listener for JSF 1.2 is added automatically, so you don't need to put it in web.xml.
> Also, there are some third party libraries such as cglib that do not ship with JBoss 5.x. I was able to get the examples to run on JBoss 5.x by adding Seam's thridparty-all.jar to the server/default/lib directory. However, that's probably not the best way to handle the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years