This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inside a JSF page : | |
<h:commandButton action="create" rendered="#{identity.can('create','user')}">Create User</h:commandButton> | |
// Inside Java code : | |
// (would be better with annotations of course) | |
public class UserAction | |
{ | |
@Inject | |
private Identity identity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Realm : a space where user can be authenticated (database, LDAP, file, ...) | |
User : a subject that can be authenticated in, at least, one realm | |
Identity : bean in session scope that manage the current authenticated user | |
Authenticator : stateless bean that can try to authenticate Credentials (have to specify in which realm) | |
Identity should not be informed about how the application manage what a user is or is not allowed to do. Identity should only say "Yes" or "No" when asked about a User trying to do something. Which mean only one method like "boolean can(...)" with eventually different combinations of parameters (see Identity interface). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paul@fury:~/workspace/arquillian.github.com$ awestruct -d --force | |
can't convert nil into String | |
/home/paul/workspace/arquillian.github.com/_ext/arquillian.rb:411:in `join' | |
/home/paul/workspace/arquillian.github.com/_ext/arquillian.rb:411:in `handles' | |
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:141:in `execute' | |
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:140:in `each_value' | |
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:140:in `execute' | |
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:132:in `each' | |
/home/paul/workspace/arquillian.github.com/_ext/repository.rb:132:in `execute' | |
/var/lib/gems/1.8/gems/awestruct-0.2.15/lib/awestruct/extensions/pipeline.rb:33:in `execute' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21:05:39,464 WARN [org.jboss.solder.exception.control.log] (http-localhost-127.0.0.1-8080-1) No handlers found for exception javax.servlet.ServletException: Must provide a valid string as verifier | |
21:05:39,465 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/socializer].[FacesServlet]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet FacesServlet threw exception: javax.enterprise.event.ObserverException | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_24] | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.6.0_24] | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.6.0_24] | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:532) [rt.jar:1.6.0_24] | |
at java.lang.Class.newInstance0(Class.java:372) [rt.jar:1.6.0_24] | |
at java.lang.Class.newInstance(Class.java:325) [rt.jar:1.6.0_24] | |
at org.jboss.weld.util.re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21:29:23,498 WARN [org.jboss.solder.exception.control.log] (http-localhost-127.0.0.1-8080-1) No handlers found for exception javax.servlet.ServletException | |
21:29:23,499 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/socializer].[FacesServlet]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet FacesServlet threw exception: javax.enterprise.event.ObserverException | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_24] | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.6.0_24] | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.6.0_24] | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:532) [rt.jar:1.6.0_24] | |
at java.lang.Class.newInstance0(Class.java:372) [rt.jar:1.6.0_24] | |
at java.lang.Class.newInstance(Class.java:325) [rt.jar:1.6.0_24] | |
at org.jboss.weld.util.reflection.SecureReflections$16.work(Secure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for org.richfaces.sandbox.ui.bootstrap:bootstrap-ui:jar:4.2.1-SNAPSHOT | |
[WARNING] 'parent.relativePath' of POM org.richfaces.sandbox.ui.bootstrap:bootstrap-parent:4.2.1-SNAPSHOT (/home/paul/workspace/richfaces-sandbox/bootstrap/pom.xml) points at org.richfaces.sandbox:richfaces-sandbox-aggregator instead of org.richfaces.ui:richfaces-ui-parent, please verify your project structure @ org.richfaces.sandbox.ui.bootstrap:bootstrap-parent:4.2.1-SNAPSHOT, /home/paul/workspace/richfaces-sandbox/bootstrap/pom.xml, line 28, column 13 | |
[WARNING] 'build.plugins.plugin.version' for org.zeroturnaround:jrebel-maven-plugin is missing. @ org.richfaces.ui:richfaces-ui-parent:4.2.1-SNAPSHOT, /home/paul/.m2/repository/org/richfaces/ui/richfaces-ui-parent/4.2.1-SNAPSHOT/richfaces-ui-parent-4.2.1-SNAPSHOT.pom, line 183, column 29 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<cdk:root xmlns="http://jboss.org/schema/richfaces/cdk/xhtml-el" | |
xmlns:cdk="http://jboss.org/schema/richfaces/cdk/core" | |
xmlns:c="http://jboss.org/schema/richfaces/cdk/jstl/core" | |
xmlns:cc="http://jboss.org/schema/richfaces/cdk/jsf/composite"> | |
<cc:interface> | |
<cdk:class>org.richfaces.bootstrap.renderkit.NavbarRenderer</cdk:class> | |
<cdk:superclass>org.richfaces.bootstrap.renderkit.NavbarRendererBase</cdk:superclass> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<cdk:root xmlns="http://jboss.org/schema/richfaces/cdk/xhtml-el" | |
xmlns:cdk="http://jboss.org/schema/richfaces/cdk/core" | |
xmlns:c="http://jboss.org/schema/richfaces/cdk/jstl/core" | |
xmlns:cc="http://jboss.org/schema/richfaces/cdk/jsf/composite"> | |
<cc:interface> | |
<cdk:class>org.richfaces.bootstrap.renderkit.CommandButtonRenderer</cdk:class> | |
<cdk:superclass>org.richfaces.bootstrap.renderkit.CommandButtonRendererBase</cdk:superclass> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class RichFunction { | |
private static final int DEFAULT_ESCAPING_LENGTH = 4; | |
/** | |
* The rich:jQuerySelector('id') function is a shortcut for the equivalent rich:jQuerySelectorExt('id',4) | |
* since 4 is the default escaping length for usage inside a JSF component. | |
*/ | |
@Function | |
public static String jQuerySelector(String id) { | |
return jQuerySelectorExt(id, DEFAULT_ESCAPING_LENGTH); |
OlderNewer