[JBoss jBPM] - Re: Ability to choose from determined values
by gkestor
I want to thank everyone for their attention.It was really helpfull to understand the environment. Before going on to my question, i must tell that ccelgun was a friend of mine that wrote the questions for me as i was unable to connect to internet for some time.I am the one that deals with the project.
@falazar (James) thank you for your attention.Your suggestion was great but i have to implement the project with something like jBPM.It's the way i was asked. By "something like jBPM" actually I mean "graphical business process management software tools". I know that this is jBPM forum, but do you have any advices or experiences with different tools? Or any other tools exist working on JBoss environment?<tools that provide combobox structure of course>
As the last word, graphical business process management software tool is a must in my project. Also i have to use a combobox anyway..But i haven't met any so far.
I have spent days examining and understanding jBPM. I haven't really thought that i have to throw those days' work away because of a combobox.
Thanks for your great help..I'm looking forward to any replies..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960060#3960060
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960060
19 years, 9 months
[JBoss Seam] - Re: SeamNavigationHandler is no javax.faces.application.Navi
by cmuth
by the way, after the stacktrace, seam is continuing to initialize and the ear gets deployed:
| ...snip...
| 22:38:22,860 ERROR [STDERR:152] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| 22:38:22,861 ERROR [STDERR:152] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| 22:38:22,861 ERROR [STDERR:152] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 22:38:22,862 INFO [StartupServletContextListener:94] ServletContext '/opt/jboss/server/default/./tmp/deploy/tmp37477loanmarket.ear-contents/loanmarket-exp.war/' initialized.
| 22:38:22,863 INFO [ServletContextListener:94] Welcome to Seam 1.0.1.GA
| 22:38:22,870 INFO [Initialization:94] reading components.xml
| 22:38:22,876 INFO [Initialization:94] reading properties from: /seam.properties
| 22:38:22,878 INFO [Initialization:94] reading properties from: /jndi.properties
| 22:38:22,882 INFO [Initialization:94] initializing Seam
| 22:38:22,911 INFO [Component:94] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 22:38:22,928 INFO [Component:94] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
| 22:38:22,938 INFO [Component:94] Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| 22:38:22,945 INFO [Component:94] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
| 22:38:22,960 INFO [Component:94] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
| 22:38:22,966 INFO [Component:94] Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
| 22:38:22,971 INFO [Component:94] Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
| 22:38:22,978 INFO [Component:94] Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
| 22:38:22,984 INFO [Component:94] Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
| 22:38:22,989 INFO [Component:94] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| 22:38:22,998 INFO [Component:94] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
| 22:38:23,007 INFO [Component:94] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
| 22:38:23,012 INFO [Component:94] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
| 22:38:23,016 INFO [Component:94] Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
| 22:38:23,020 INFO [Component:94] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
| 22:38:23,041 INFO [Component:94] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
| 22:38:23,049 INFO [Component:94] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
| 22:38:23,054 INFO [Component:94] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
| 22:38:23,058 INFO [Component:94] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
| 22:38:23,063 INFO [Component:94] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
| 22:38:23,067 INFO [Component:94] Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
| 22:38:23,071 INFO [Component:94] Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
| 22:38:23,076 INFO [Component:94] Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
| 22:38:23,080 INFO [Component:94] Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
| 22:38:23,088 INFO [Component:94] Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
| 22:38:23,094 INFO [Component:94] Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
| 22:38:23,101 INFO [Component:94] Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
| 22:38:23,106 INFO [Component:94] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.Subsc
| 22:38:23,113 INFO [Component:94] Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
| 22:38:23,116 INFO [Component:94] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
| 22:38:23,156 INFO [Component:94] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
| 22:38:23,167 INFO [Scanner:94] scanning: /opt/jboss/server/default/tmp/deploy/tmp37477loanmarket.ear-contents/loanmarket-ejb.jar
| 22:38:23,194 INFO [Component:94] Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.User
| 22:38:23,197 INFO [Component:94] Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: HotelBookin
| 22:38:23,203 INFO [Component:94] Component: hotelSearch, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelSearchingAction, JNDI: HotelSearchingA
| 22:38:23,215 INFO [Component:94] Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Booking
| 22:38:23,247 INFO [Component:94] Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Hotel
| 22:38:23,250 INFO [Component:94] Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LoginAction, JNDI: LoginAction/local
| 22:38:23,276 INFO [Component:94] Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: ChangePassword
| 22:38:23,278 INFO [Component:94] Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.BookingListAction, JNDI: BookingListAction/
| 22:38:23,449 INFO [Component:94] Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LogoutAction, JNDI: LogoutAction/local
| 22:38:23,451 INFO [Component:94] Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.RegisterAction, JNDI: RegisterAction/local
| 22:38:23,456 INFO [Initialization:94] done initializing Seam
| 22:38:23,494 INFO [EARDeployer:318] Started J2EE application: file:/opt/jboss/server/default/deploy/loanmarket.ear
|
but if i then invoke the app via http://localhost:8080/loanmarket, i get:
| 22:56:33,532 WARN [RenderKitFactoryImpl:104] Unknown RenderKit 'HTML_BASIC'.
| 22:56:33,533 ERROR [[Faces Servlet]:119] Servlet.service() for servlet Faces Servlet threw exception
| java.lang.NullPointerException
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreTreeStructure(JspStateManagerImpl.java:240)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:283)
| at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
| at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
|
this will most likely be a follow-up issue, just for completeness...
Thanks for your help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960057#3960057
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960057
19 years, 9 months
[JBoss Seam] - SeamNavigationHandler is no javax.faces.application.Navigati
by cmuth
Hi Folks,
sorry for posting such a noobie issue, but i'm beginning to pull my hair out... i copied the jboss seam booking example as skeleton for my new application - the booking example unmodified works as it should, but my loanmarket application does not initialize properly. :-(
could you guys please have a look at my application files and tell me what the hell i am doing wrong? i dont see it :-(
Any help is greatly appreciated - thanks a lot in advance!
Stacktrace:
| 22:38:21,731 INFO [EJB3Deployer:450] Deployed: file:/opt/jboss/server/default/tmp/deploy/tmp37477loanmarket.ear-contents/loanmarket-ejb.jar
| 22:38:21,738 INFO [TomcatDeployer:126] deploy, ctxPath=/loanmarket, warUrl=.../tmp/deploy/tmp37477loanmarket.ear-contents/loanmarket-exp.war/
| 22:38:21,956 INFO [FacesConfigurator:94] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
| 22:38:21,984 INFO [FacesConfigurator:94] Reading config jar:file:/opt/jboss/server/default/tmp/deploy/tmp37477loanmarket.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
| 22:38:21,990 INFO [FacesConfigurator:94] Reading config jar:file:/opt/jboss/server/default/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
| 22:38:21,996 INFO [FacesConfigurator:94] Reading config jar:file:/opt/jboss/server/default/lib/jboss-seam.jar!/META-INF/faces-config.xml
| 22:38:22,006 INFO [FacesConfigurator:94] Reading config jar:file:/opt/jboss/server/default/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
| 22:38:22,025 INFO [FacesConfigurator:94] Reading config jar:file:/opt/jboss/server/default/tmp/deploy/tmp37477loanmarket.ear-contents/loanmarket-exp.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
| 22:38:22,069 INFO [FacesConfigurator:94] Reading config jar:file:/opt/jboss/server/default/tmp/deploy/tmp37477loanmarket.ear-contents/loanmarket-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
| 22:38:22,364 INFO [FacesConfigurator:94] Reading config jar:file:/opt/jboss/server/default/tmp/deploy/tmp37477loanmarket.ear-contents/loanmarket-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
| 22:38:22,370 INFO [FacesConfigurator:94] Reading config /WEB-INF/faces-config.xml
| 22:38:22,778 ERROR [StartupServletContextListener:119] Error initializing ServletContext
| java.lang.IllegalArgumentException: Class org.jboss.seam.jsf.SeamNavigationHandler is no javax.faces.application.NavigationHandler
| at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:536)
| at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:458)
| at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:141)
| at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)
| at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:49)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
|
Okay, here we go...
___________________________________
EAR structure:
| |-- META-INF
| | |-- MANIFEST.MF
| | |-- application.xml
| | `-- jboss-app.xml
| |-- jboss-seam.jar
| |-- loanmarket-ejb.jar
| `-- loanmarket.war
|
loanmarket-ejb.jar structure:
| |-- META-INF
| | |-- MANIFEST.MF
| | |-- ejb-jar.xml
| | `-- persistence.xml
| |-- import.sql
| |-- org
| | `-- jboss
| | `-- seam
| | `-- example
| | `-- booking
| | |-- Booking.class
| | |-- BookingList.class
| ...snip....
|
and loanmarket.war structure:
| |-- META-INF
| | `-- MANIFEST.MF
| |-- WEB-INF
| | |-- classes
| | |-- components.xml
| | |-- faces-config.xml
| | |-- lib
| | | |-- el-api.jar
| | | |-- el-ri.jar
| | | |-- jboss-seam-debug.jar
| | | |-- jboss-seam-ui.jar
| | | |-- jsf-facelets.jar
| | | |-- myfaces-api-1.1.3.jar
| | | `-- myfaces-impl-1.1.3.jar
| | |-- pages.xml
| | `-- web.xml
| |-- book.xhtml
| |-- confirm.xhtml
| |-- conversations.xhtml
| ...snip...
|
my application.xml:
| <application>
| <display-name>Loan Market</display-name>
| <module>
| <web>
| <web-uri>loanmarket.war</web-uri>
| <context-root>/loanmarket</context-root>
| </web>
| </module>
| <module>
| <ejb>loanmarket-ejb.jar</ejb>
| </module>
| <module>
| <java>jboss-seam.jar</java>
| </module>
| </application>
|
jboss-app.xml:
| <jboss-app>
| <loader-repository>
| seam.jboss.org:loader=loanmarket
| </loader-repository>
| </jboss-app>
|
ejb-jar:
| <ejb-jar>
| <assembly-descriptor>
| <interceptor-binding>
| <ejb-name>*</ejb-name>
| <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
| </interceptor-binding>
| </assembly-descriptor>
| </ejb-jar>
|
seam.properties are empty?!
WEB-INF/components.xml:
| <components>
| <component name="org.jboss.seam.core.init">
| <property name="debug">true</property>
| <property name="myFacesLifecycleBug">true</property>
| <property name="jndiPattern">#{ejbName}/local</property>
| </component>
| <!-- 120 second conversation timeout -->
| <component name="org.jboss.seam.core.manager">
| <property name="conversationTimeout">120000</property>
| </component>
| <component class="org.jboss.seam.core.Ejb"
| installed="false"/>
| </components>
|
WEB-INF/faces-config:
| <faces-config>
|
|
|
| <!-- Navigation rules for the Booking demo app -->
|
| <navigation-rule>
|
|
| <navigation-case>
| <from-outcome>login</from-outcome>
| <to-view-id>/home.xhtml</to-view-id>
|
| <redirect />
| </navigation-case>
|
|
| <navigation-case>
| <from-outcome>register</from-outcome>
| <to-view-id>/register.xhtml</to-view-id>
|
| <redirect />
| </navigation-case>
|
|
| <navigation-case>
| <from-outcome>password</from-outcome>
| <to-view-id>/password.xhtml</to-view-id>
|
| <redirect />
| </navigation-case>
|
|
| <navigation-case>
| <from-outcome>main</from-outcome>
| <to-view-id>/main.xhtml</to-view-id>
|
| <redirect />
| </navigation-case>
|
|
|
| <navigation-case>
|
| <from-outcome>hotel</from-outcome>
|
| <to-view-id>/hotel.xhtml</to-view-id>
|
| <redirect />
|
| </navigation-case>
|
|
|
| </navigation-rule>
|
|
|
| <navigation-rule>
|
|
| <from-view-id>/hotel.xhtml</from-view-id>
|
|
| <navigation-case>
| <from-outcome>book</from-outcome>
| <to-view-id>/book.xhtml</to-view-id>
|
| <redirect />
| </navigation-case>
|
|
|
| </navigation-rule>
|
|
| <navigation-rule>
|
|
| <from-view-id>/book.xhtml</from-view-id>
|
|
| <navigation-case>
| <from-outcome>confirm</from-outcome>
| <to-view-id>/confirm.xhtml</to-view-id>
|
| <redirect />
| </navigation-case>
|
|
|
| </navigation-rule>
|
|
| <navigation-rule>
|
|
| <from-view-id>/confirm.xhtml</from-view-id>
|
|
| <navigation-case>
| <from-outcome>confirmed</from-outcome>
| <to-view-id>/main.xhtml</to-view-id>
|
| <redirect/>
| </navigation-case>
|
|
| <navigation-case>
| <from-outcome>back</from-outcome>
| <to-view-id>/book.xhtml</to-view-id>
|
| <redirect />
| </navigation-case>
|
|
| </navigation-rule>
|
|
| <!-- Facelets support -->
|
|
|
| <application>
|
| <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
|
| </application>
|
|
|
| <!-- Select one of the two standard persistence lifecycle models for the Seam application -->
|
|
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
| </lifecycle>
|
|
| </faces-config>
|
|
web.xml:
| <?xml version="1.0" encoding="UTF-8"?>
|
|
| <web-app version="2.4"
| xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
|
| <!-- Seam -->
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
|
|
| <!-- Propagate conversations across redirects -->
|
| <filter>
|
| <filter-name>Seam Redirect Filter</filter-name>
|
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
|
| </filter>
|
|
|
| <filter-mapping>
|
| <filter-name>Seam Redirect Filter</filter-name>
|
| <url-pattern>*.seam</url-pattern>
|
| </filter-mapping>
|
|
|
| <!-- JSF -->
|
|
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
|
|
| <context-param>
|
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
|
| <param-value>.xhtml</param-value>
|
| </context-param>
|
|
| <context-param>
|
| <param-name>facelets.DEVELOPMENT</param-name>
|
| <param-value>true</param-value>
|
| </context-param>
|
|
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
|
| <!-- Faces Servlet Mapping -->
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
|
| <!-- MyFaces -->
|
| <listener>
|
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
|
| </listener>
|
|
|
| <!-- JSF RI -->
|
| <!--
|
| <listener>
|
| <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
|
| </listener>
|
| -->
|
| </web-app>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960056#3960056
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960056
19 years, 9 months
[JBoss Seam] - JSF EL Resolver and Security ACL Issues
by js8523
Dear All
Context:
I am trying to create a user, role, where each role can have any combination of a predefined set of privileges (viewCustomers, viewReservations, cancelReservation, etc), these privileges are given to the role at runtime.
Problem:
I am trying to use this privilege system to limit what is visible on my web app.
What I would like to do is
<h:div rendered="#{hasPrivilege["viewCustomers"]}" >
I have seen that Gavin has set up something similar ish with isUserInRole, but this only accesses the servlet context, not any seam specific context (I would like to inject #{currentUser} into my JSF EL handler to get the current user principal and check that this user has the correct privileges (which is slightly more fine grained than the users role).
I have seen Jacob Hookum's post
http://weblogs.java.net/blog/jhook/archive/2006/03/the_unified_el.html
but I cannot see how to plug a Custom EL Resolver into Seam context, or if it is possible to write such a custom EL resolver.
If anybody has any ideas please could they share them,
many thanks,
James
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960055#3960055
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960055
19 years, 9 months