[jboss-user] [JBoss Seam] - Re: How are you handling login / registration redirects?
Does redirect.captureCurrentRequest() capture request parameters which are part of the URL as well? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4007129#4007129 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4007129 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using links with themeSelector instead of selectOneMenu
I am lost Gavin. Are you suggesting that I used a page parameter for every page in my web application? It would be nice to have the following in components.xml: | component name=themeSelector | property name=availableThemes | valueoriginal/value | valuedark/value | valuecustom/value | /property | property name=cookieEnabledtrue/property | property name=currentThemedark/property | /component Here, the currentTheme can be used to set the theme variable of the ThemeSelector class. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3983298#3983298 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3983298 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using links with themeSelector instead of selectOneMenu
Gavin, Could you please be more specific? Does that mean I'll have to add @RequestParameter to the getTheme method of the current ThemeSelector in Seam 1.1 and recompile it? What I am trying to do is to list the themes in one single line as links instead of having them in a drop down menu with a button. Something like this: anonymous wrote : Select Theme: original | dark | custom where original, dark and custom are links to existing themes defined in components.xml and having associated .properties files similar to the blog example in Seam 1.1 Beta 1. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3983191#3983191 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3983191 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Still have issues with my installation
You might need to get jems-installer-1.2.0.BETA3.jar since JBoss-4.0.5-GA does not have ejb3 support. You can get it from here: http://sourceforge.net/project/showfiles.php?group_id=22866package_id=193295release_id=457191 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3983202#3983202 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3983202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: using links with themeSelector instead of selectOneMenu
Where can I specify that the value of themeSelector.theme be set to thm.value? How would using h:commandLink be different from s:link and h:outputLink? Here is what I have currently: | c:forEach items=#{themeSelector.themes} var=thm | h:commandLink action=#{themeSelector.select} value=#{thm.value} | f:param name= value=#{thm.value}/ | /h:commandLink | /c:forEach | I am not sure what the value of the name attribute of f:param should be. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3983074#3983074 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3983074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ui:repeat shows only one item with high conversation sta
Associated JIRA issue: http://jira.jboss.org/jira/browse/JBSEAM-350 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970600#3970600 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970600 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: The link element of an RSS feed does not get rendered pr
Okay, but where should I report this issue? Do they have a forum, JIRA or something similar. Please don't tell me that the only thing they have is the mailing lists. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970040#3970040 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970040 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to get request object, for example the servletPath
Try not to use the Servlet API unless you have. Try something similar to this: | @In | private FacesContext facesContext; | private HttpServletRequest request; | | public void initComponent(){ | request = (HttpServletRequest)facesContext.getExternalContext().getRequest(); | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970104#3970104 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ui:repeat shows only one item with high conversation sta
I would appreciate a comment on this guys. It is kinda embarrassing to wakeup in the morning just to find an email saying that the gallery section of the site is not working again. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970176#3970176 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970176 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - ui:repeat shows only one item with high conversation state n
Hello, I have a ui:repeat tag in items.jsf that gets an ArrayList from a stateless session bean after performing a search based on a pattern entered by the user. This works just fine, however, when the conversation id goes up items.jsf shows only one item even though the database returns more than one item. if you search for bindNamedParameters in the log below you will notice that the database returned 6 items. Also if you search for items.jsf_results_size you will find that the ArrayList that is returned to items.jsf has the 6 items. server log (200 lines) | [EMAIL PROTECTED] log]# clear cat server.log | tail -n 200 | 2006-09-04 23:32:02,225 DEBUG [org.jboss.seam.contexts.Lifecycle] Begin web request | 2006-09-04 23:32:02,226 DEBUG [org.jboss.seam.Component] instantiating Seam component: localeSelector | 2006-09-04 23:32:02,226 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-09-04 23:32:02,226 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] committing transaction after phase: RESTORE_VIEW(1) | 2006-09-04 23:32:02,226 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager | 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.core.Manager] Found conversation id in request parameter: 4749 | 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.core.Manager] No stored conversation | 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init | 2006-09-04 23:32:02,227 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.pageflow | 2006-09-04 23:32:02,228 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(4760) | 2006-09-04 23:32:02,228 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-09-04 23:32:02,228 DEBUG [org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6) | 2006-09-04 23:32:02,228 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: itemService | 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.process | 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.Component] instantiating Seam component: itemService | 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-09-04 23:32:02,229 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component | 2006-09-04 23:32:02,230 DEBUG [org.jboss.seam.Component] instantiating Seam component: entityManager | 2006-09-04 23:32:02,230 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-09-04 23:32:02,231 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4740836238258176 | 2006-09-04 23:32:02,231 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered | 2006-09-04 23:32:02,231 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2006-09-04 23:32:02,231 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization | 2006-09-04 23:32:02,231 DEBUG [org.jboss.seam.core.ManagedPersistenceContext] created seam managed persistence context for persistence unit: java:/categoryEntityManagerFactory | 2006-09-04 23:32:02,231 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2006-09-04 23:32:02,231 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2006-09-04 23:32:02,231 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Transaction already joined | 2006-09-04 23:32:02,232 DEBUG
[jboss-user] [JBoss Seam] - The link element of an RSS feed does not get rendered proper
I am trying to do something similar to the RSS sample as in fisheye of JBoss Seam: http://fisheye.labs.jboss.com/browse/JBoss/jboss-seam/examples/blog/view/index.rss However, the link elements do not get rendered properly as you can see here: | ?xml version=1.0? | rss version=2.0 | channel | titleSample Feed/title | descriptionRSS 2.0 Channel/description | link /http://localhost:8080/main.jsf | item | titleFirefox/title | link /http://localhost:8080/entry.jsf?id=7 | descriptionFirefox the browser you can trust./description | | /item | item | titleJBoss Seam/title | link /http://localhost:8080/entry.jsf?id=6 | descriptionJava EE Framework/description | /item | /channel | /rss | Here is the source code of rssfeed.xhtml: | ?xml version=1.0? | rss version=2.0 | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:h=http://java.sun.com/jsf/html; | channel | titleSample Feed/title | descriptionRSS 2.0 Channel/description | linkhttp://localhost:8080/main.jsf/link | | ui:repeat value=#{category.recentEntries} var=entry | item | title#{entry.title}/title | linkhttp://localhost:8080/entry.jsf?id=#{entry.id}/link | description#{entry.body}/description | /item | /ui:repeat | /channel | /rss | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969063#3969063 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969063 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: 2(3?) step registration process
Take a look here: jbossworld-seam-lab/seam-lab/README/index.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967992#3967992 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967992 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: servlet in seam application
Injecting an EntityManager into a servlet is not recommended since the former is not thread safe. Here is what I do in my current web application: | @PersistenceUnit(name = myPU) | private EntityManagerFactory factory; | | protected void doGet(HttpServletRequest request, | HttpServletResponse response) throws ServletException, | IOException{ | try{ | if(factory == null){ | String name = java:/myEntityManagerFactory; | factory = (EntityManagerFactory) | Naming.getInitialContext().lookup(name); | } | if(em == null){ | em = factory.createEntityManager(); | } | } | }catch(NamingException e){ | err.println(NamingException when trying to get an + | EntityManager: +e.getMessage()); | e.printStackTrace(); | } | } | | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965218#3965218 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965218 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: servlet in seam application
With EJB3 the application server makes sure that your methods are executed within a transaction. This is not the case with Servlets so you have to start and commit the transaction yourself. Here is the code: | UserTransaction utx = Transactions.getUserTransaction(); | if(utx.getStatus() != Status.STATUS_ACTIVE) | utx.begin(); | em.joinTransaction(); | utx.commit(); | The if statement is not required however I needed that in my web application due to an exception that I don't recall right now. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965230#3965230 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965230 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: servlet in seam application
| em.joinTransaction(); | em.createQuery(query) | .setParameter(param1, param1) | .getSingleResult(); | utx.commit(); | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965231#3965231 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965231 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why is there a FacesContext in org.jboss.seam.core?
| FacesMessages.instance().add(Your message); | Note the s at the end of FacesMessages. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965233#3965233 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965233 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How can I get jsf error pages to work similar to the blog sa
In my case I get Exception Processing ErrorPage when I try to access a jsf page that does not exist such as doe.jsf. According to the following post on one of the mailing lists, having jsf/xhtml to handle error pages is not possible. http://mail-archives.apache.org/mod_mbox/myfaces-users/200606.mbox/[EMAIL PROTECTED] However, this does not happen with the blog sample application. Also, the error page gets rendered without exceptions when I access a non-jsf page that does not exist such as asdoe.jsp, doe.other and doe.js. What could be the problem? | 16:25:07,854 ERROR [STDERR] Aug 12, 2006 4:25:07 PM com.sun.facelets.FaceletViewHandler handleRenderException | SEVERE: Error Rendering View[/404.xhtml] | java.lang.IllegalStateException: getOutputStream() has already been called for this response | at org.apache.catalina.connector.Response.getWriter(Response.java:599) | at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195) | at com.sun.facelets.FaceletViewHandler.createResponseWriter(FaceletViewHandler.java:463) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:537) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) | at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363) | at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) | 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) | 16:25:07,860 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception | java.lang.IllegalStateException: getOutputStream() has already been called for this response | at org.apache.catalina.connector.Response.getWriter(Response.java:599) | at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195) | at com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:639) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:609) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) | at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363) | at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) | 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)
[jboss-user] [JBoss Seam] - Re: Graceful logout and friendly login ? How to?
Update: I managed to get the view id using two independent approaches: The first approach gets the view id from the request parameter map using the key jsf_viewid. I am not sure whether this key is standard or specific to an implementation of JSF. | @In(value=#{facesContext.externalContext.requestParameterMap}) | private Map reqParam; | | public String login(){ | String viewId = reqParam.get(jsf_viewid).toString(); | } | The second approach gets the view id from the UIViewRoot. | @In | private FacesContext facesContext; | | public String login(){ | UIViewRoot view = facesContext.getViewRoot(); | String viewId = view.getViewId(); | } | Now I am left with one problem, that is getting the old GET request parameters from the URL as in http://localhost:8080/blogEntry.jsf?id=35. The reqParam map above contains the parameters passed by the POST request but not the old GET request. Is there a way to capture the current URL when the user clicks on login? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964543#3964543 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964543 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: The pageflow attribute of @Begin not always processed pr
No it is not a bug, here is a quote from the docs anonymous wrote : We start a jPDL-based pageflow by specifying the name of the process definition using a @Begin, @BeginTask or @StartTask annotation | @Begin(pageflow=numberguess) | public void begin() { ... } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964545#3964545 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964545 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Bean extends SelectItem
Let me clarify few things First, @Local is used to mark your local interface and @Entity is used to mark an implementation of the interface. So using them together does not make much sense. Second, SelectItem is a model that holds the state of a single item of a JSF component. It is meant for JSF so do not use it for your entity bean. I would suggest that you get a list of the items you want to present and pass them to the value attribute of selectItems tag. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964577#3964577 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964577 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Graceful logout and friendly login ? How to?
In short, how can I keep track of the GET request parameters and the URL when users login and logout? For instance, blogEntry.jsf depends on a request parameter called id and a page action entryAction.setEntry. Moreover, login and logout are performed using the two page actions loginAction.login and loginAction.logout. Scenario 1 ? login: It is common for the user to login after viewing blogEntry.jsf?id=35. Now, the user would expect blogEntry.jsf?id=35 to be displayed again after the login. For this to work, loginAction.login has to know the view name from which the user clicked on login and any request parameters that were present. However, not knowing this information forces loginAction.login to return ?/home.jsf? so that the user is redirected to the home page. Scenario 2 - logout: The user is already logged in and is currently viewing blogEntry.jsf?id=35. The user clicks on logout and as a result loginAction.logout returns null so that the current page is redisplayed. At this point the user is redirected to blogEntry.jsf instead of blogEntry.jsf?id=35. As a result, the page action entryAction.setEntry returns a new Entry object that has no properties set. I tried to access the HttpServletRequest in the second scenario but calling getNames() method on it returned only one parameter which is the conversationId. I would appreciate any ideas or suggestions that would help in avoiding these two scenarios. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964476#3964476 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964476 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Have more than one page action for the same view-id
How can I have more than one page action for the same view-id? Currently only the last action in the list is executed, in this case setPaper. If the two actions are switched, userChallenge gets executed. | page view-id=/paper.jsf action=#{loginAction.userChallenge}/ | page view-id=/paper.jsf ction=#{paperAction.setPaper}/ | Is there another approach? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3963086#3963086 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3963086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Have more than one page action for the same view-id
Don't worry about the missing a in page view-id=/paper.jsf ction=#{paperAction.setPaper}/ It is only a typo. The actual pages.xml is correct. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3963088#3963088 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3963088 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Have more than one page action for the same view-id
Hi Gavin, Do you have an plans to add this feature in the current CVS or future releases? Having more than one page action would simply a lot of things especially for restful application. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3963200#3963200 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3963200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Disable converters for request parameters in the URL
How can I disable auto convertion for request parameters that are of type Integer? I'm not sure but it looks like that Seam perform the conversion during the render response phase. In my component I have this: | @RequestParameter(pn) | @Out(value=pn, required=false) | private Integer pageNumber = -1; | | 17:27:58,181 ERROR [STDERR] Aug 4, 2006 5:27:58 PM com.sun.faces.lifecycle.LifecycleImpl phase | WARNING: phase(RENDER_RESPONSE 6,[EMAIL PROTECTED]) threw exception: javax.faces.el.EvaluationException: javax.faces.convert.ConverterException: j_id0: '-' must be a number consisting of one or more digits. javax.faces.convert.ConverterException: j_id0: '-' must be a number consisting of one or more digits. | com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91) | org.jboss.seam.core.Pages.callAction(Pages.java:161) | org.jboss.seam.core.Pages.callAction(Pages.java:143) | org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:128) | org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:98) | org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:50) | org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:38) | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:249) | com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159) | javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | java.lang.Thread.run(Thread.java:595) | If that is not possible then I will have to change it to String, parse to int and catch any number format exception. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3963214#3963214 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3963214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Cannot get @In and @Out to work with a stateless component
I have an Entity bean called PaperDetails and a page called newartwork.jsf which can be used to create a new PaperDetails. | @Entity(name=gs_paper_details) | public class PaperDetails implements Serializable{ | @Id | private int id; | | @NotNull | private String title; | } | | form action=uploaded.jsf method=post enctype=multipart/form-data | h:inputText id=title value=#{newPaperDetails.title}/ | input type=submit value=Upload Files/ | /form | There is a page action under pages.xml that is used to create the newPaperDetails component: | page view-id=/newartwork.jsf action=#{fileUploadAction.initPaperDetails}/ | The FileUploadAction component is used to create and outject the newPaperDetails component. Also, it handles the upload action after the user enters the data of the new PaperDetails in the newartwork.jsf page. | page view-id=/uploaded.jsf action=#{fileUploadAction.upload}/ | | @Name(fileUploadAction) | @Scope(ScopeType.STATELESS) | public class FileUploadAction{ | //@In(required=false) | @In(required=false, value=newPaperDetails) | @Out(value=newPaperDetails) | private PaperDetails paperDetails; | | public void initPaperDetails(){ | log.info(Creating a new paperDetails-120); | paperDetails = new PaperDetails(); | if(paperDetails == null) | log.info(initPaperDetails[papreDetails is null]); | } | | public String upload(){ | this.initComponent(); | | if(paperDetails == null){ | log.info(upload[papreDetails is null]); | return null; | } | } | } | However, the newPaperDetails is gone and its value is set to null when I try to upload a new artwork. This causes the @Out annotation to complain as shown in stack trace below: | StackTrace after accessing the newartwork.jsf page: | 13:59:21,920 INFO [Pages] reading pages.xml | 13:59:22,200 INFO [FileUploadAction] Creating a new paperDetails-120 | | | StackTrace after calling the upload method: | 13:59:56,270 INFO [FileUploadAction] upload[papreDetails is null] | 13:59:56,270 INFO [FileUploadAction] PD is null | 13:59:56,273 ERROR [STDERR] Jul 28, 2006 1:59:56 PM com.sun.faces.lifecycle.LifecycleImpl phase | WARNING: phase(RENDER_RESPONSE 6,[EMAIL PROTECTED]) threw exception: javax.faces.el.EvaluationException: org.jboss.seam.RequiredException: Out attribute requires value for component: fileUploadAction.newPaperDetails org.jboss.seam.RequiredException: Out attribute requires value for component: fileUploadAction.newPaperDetails | com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91) | org.jboss.seam.core.Pages.callAction(Pages.java:161) | org.jboss.seam.core.Pages.callAction(Pages.java:143) | org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:128) | org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:98) | org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:50) | org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:38) | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:249) | com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159) | javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) |
[jboss-user] [JBoss Seam] - Re: Cannot get @In and @Out to work with a stateless compone
What should I do to fix it? The action is stateless in nature in that the user uploads a file with some details, in this case newPaperDetails, and store them in the database. The reason I used @Out and initPaperDetails is because that the newartwork.jsf page complains about not being able to find newPaperDetails instance. What approach would you suggest me to follow? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3961622#3961622 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3961622 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam web services (RESTful ones)?
Sorry for not being clear. After taking a closer look at web.xml I noticed that the FacesServlet handles all the requests to /seam/. So this applies to index.rss as well, please correct me if I am wrong. I got confused becuase in my current setup I have *.jsf mapped to the FacesServlet. So I started to wonder about how Seam handles request to index.rss. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3960238#3960238 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3960238 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam - iterator tag?
The ui:repeat needs a list of objects to iterate over, this has nothing to do with support. You can find an example is the dvd-store sample application bundled with Seam. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3960573#3960573 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3960573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Patterns and Seam
I would love to see a chapter or even a section dedicated to design patterns in the upcoming Seam Book. Discussing new patterns specific to Seam and why some of the current J2EE patterns are obsolete is definitely a plus. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3960165#3960165 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3960165 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam web services (RESTful ones)?
[EMAIL PROTECTED] wrote : (I already implemented an RSS feed in the blog example) Does SeamListener handle the request to index.rss and parse the EL elements? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3960173#3960173 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3960173 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: create method not found + @Factory
Isn't that being taken care of by the @Factory(newEntry) annotation? Neither the jbossworld-seam-lab example nor Gavin's http://www.jboss.com/index.html?module=bbop=viewtopict=72267 thread used an @Out annotation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3958308#3958308 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: create method not found + @Factory
[EMAIL PROTECTED] wrote : | I think the problem is that your @Factory method is not declared on the local interface. Yeah that is right, I forgot to add the createNewEntry method to the local interface. Thank you Gavin ^_^ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3958250#3958250 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958250 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: remove beans from seam contexts
Try setting the variable to null: Contexts.getSessionContext().set(user, null); You can read more about this under section 2.1.8. Context variables in the documentation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3957248#3957248 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3957248 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Accessing a protected JSF page causes
Okay I will just ignore them. What should I do about the 404 status error? anonymous wrote : 5. Upon entering valid username and password, the server returns HTTP Status 404 - /seam_01/pro/guess.jsf View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3957222#3957222 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3957222 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user