[jboss-user] [JBoss Seam] - Re: Named conversation and new instance redirected to Home?
"enda" wrote : | There were some issues why it got deprecated and note from Gavin King was to use pages.xml for it. So if it is undeprecated then it is ok. | Actually it's not undeprecated yet but I couldn't find a way to do the same thing in pages.xml. "enda" wrote : | here you would know which entityType is in conversation context. | Thanks for pointing that one out. It's definitely an applicable solution whenever you need to seperate between entity types. In my application it's not an issue however. (Anyways I'm a fan of putting such business keys in the domain model). Thanks for the replies. Hope the Seam-boys fix the issues with natural conversations soon :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130025#4130025 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130025 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Named conversation and new instance redirected to Home?
Hi Tomas, I was thinking about manually handling it, but since I only needed one type of conversation and wanted that one named, I ended up with this: components.xml: view.xhtml: | | | | #{fors.id} | | | action method annotation: @Begin(join = true, id = "#{facesContext.externalContext.requestParameterMap.forsendelseId}") Comments? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129307#4129307 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129307 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Named conversation and new instance redirected to Home?
In my application I keep getting "Conversation id is already in use" when I try to use the same link twice to start the natural conversation. I thought I should have a look at the seam-bay example to figure out what I did wrong, but it turns out the same problem exists there. Please try for yourself (seam-2.1.0.A1): 1) log in 2) search for art, click on the painting 3) place a bid 4) visit www.whatever.com 5) go back to localhost and navigate to the same painting 6) place a bid -> Conversation id is already in use Seams like there's a either a bug in the way seam-bay uses natural conversations, or a bug in the implementation of natural conversation. Either way, any help appreciated :) Regards, Eirik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129095#4129095 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129095 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Named conversation and new instance redirected to Home?
I'm struggling with similar issues regarding natural conversations, can't get them to join existing ones in a decent way. +1 for better example in the docs. Regards, Eirik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129082#4129082 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129082 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Pass JavaScript method outcome to server?
anonymous wrote : Another thought was as "onclick" that calls a Seam @Remote-method with the correct JavaScript parameters. This is what I ended up doing in the end. I had a look at ajax4jsf's jsFunction solution as well, but seam's remoting seems cleaner and simpler. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054951#4054951 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054951 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ELContext exception
I've removed the modules for el-api, el-ri and jboss-seam from the ear's application.xml, and instead listed the jar-dependencies in the ejb's and web's META-INF/MANIFEST.MF like this: Class-Path: lib/jboss-seam-1.2.1.jar lib/el-api-1.2.1.jar lib/el-ri-1.2.1.jar It works! Thanks. However, I've tried removing the classpath entries from the ejbproject.jar's MANIFEST.MF, and to my surprise it still works(!) Do I really need to list el-api, el-ri and jboss-seam jars here? (Removing el-api, el-ri and jboss-seam jars from both the ear's application.xml and the war's MANIFEST.MF did not work, as expected). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054620#4054620 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ELContext exception
It's very possible that this is something I would and should know if I read up on ear-packaging, but if anyone has the courtesy to answer I'd be happy :) Why is it necessary to reference the jboss-seam.jar, el-api.jar and el-ri.jar in the application.xml of your seam ear application? (For comparison; working with Spring you don't have to do this - just include the spring.jar in the root of your ear). Thanks, Eirik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049598#4049598 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049598 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Pass JavaScript method outcome to server?
Hi, I'm working with the richfaces gmap component. I need to send some data to the server that is the outcome of some JavaScript method call, along with calling an action method. I would like this to be as easy as the following: where parX is a JavaScript method outcome. EL doesn't work this way so I have to figure out something. I was thinking of using a JavaScript "onclick" event on the commandButton that triggers some JavaScript code that somehow exposes parX to EL. Another thought was as "onclick" that calls a Seam @Remote-method with the correct JavaScript parameters. Or maybe create a custom component. Any thoughts on what would be the best and cleanest solution? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044898#4044898 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044898 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Changeing Validation Messages
Have the exact same problem. @NotNull(message="blah") doesn't work. Does anyone know if referring to the messages.properties-file in the message attribute of @NotNull should work? Like this: @NotNull(message="#{messages.notnullerror}") View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042227#4042227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Tools, Project Structures, and IDEs
Tony: I've actually done the exact same thing as you and it took a lot of time. I think the community would benefit if MyEclipses Enterprise Application Project layout with seam was on the seam wiki. Question: have you found a way for MyEclipse to deploy your custom datasources to jboss appserver? Cheers, Eirik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030204#4030204 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030204 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using the JPA delegate
It seems that the entityManager.getDelegate() returns either a SessionImpl or a EntityManagerImpl, depending on wether or not you have the following set up in your components.xml: and persistence.xml: That is - if this is set up, SessionImpl is returned. Otherwise EntitiyManagerImpl is returned. I can't really find a logical explanation for this, but it's not a problem as long as I know about it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023362#4023362 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023362 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Using the JPA delegate
Hi, I wonder if I'm the only one who's encountered this when trying to use the JPA delegate when Hibernate is the underlying persitence provider. Look at chapter 8.4 in the doc. It says: | @In EntityManager entityManager; | | @Create | public void init() { | ( (Session) entityManager.getDelegate() ).enableFilter("currentVersions"); | } >From my experience, entityManager.getDelegate() returns a >org.hibernate.ejb.EntityManagerImpl, not a org.hibernate.Session. So the code >in the example should be replaced by something like this: | @In EntityManager entityManager; | | @Create | public void init() { | ( (Session) ((HibernateEntityManager)em.getDelegate()).getSession()).enableFilter("currentVersions"); | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023308#4023308 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with sortable headers on tomahawk dataTable
Looking at the booking example, I don't think I'm supposed to in- and outject variables the way I'm trying to. Hope this helped somebody :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012603#4012603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012603 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem with sortable headers on tomahawk dataTable
I've followed the instructions on http://wiki.jboss.org/wiki/Wiki.jsp?page=DataModelWithTomahawkDataTable to create a database backed table of objects that is sortable on each of the column headers. This worked great after a bit of plundering. However, I wanted to try out some of the seam functionality and annotated the "column" and "ascending" variables setters and getters with @In and @Out. I then replaced setAscending to take a java.lang.Boolean. In both setAscending and setColumn I checked for null and just returned if it was passed to the method. Lastly, I replaced the facelet codes t:dataTable sortColumn="#{managerBean.column}" with sortColumn="#{column}" and sortAscending="#{managerBean.ascending}" with sortAscending="#{ascending}", trying to access the seam in- and outjected variables instead of doing it via the managerBean. I also printed column and ascending below the table. When I pointed my browser at the facelet, setColumn and setAscending was called with null values (half expected this). Then the getters was called, returning the values I had set in the managerBean. To my surprise, the table was not sorted! I clicked the headers of the columns but the setter methods of the managerBean was not called at all. Waiting a while (3-5 minutes), the setters were called but the columns where not sorted. More clicking did call the setters at once and the columns where sorted, and even more clicking didn't. I'm not quite sure if I've used the in- and outjection correctly. Any comments would be very welcome. Attached is the code for the managerBean and the facelet. Other code/config available on request. home.xhtml | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:t="http://myfaces.apache.org/tomahawk";> | | | IWDB: The Worlds Largest Wine Database | | | | | | | | | | | Here comes the search page | | | | | List of wines | | |The list of the currently available wines | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Created by stEir | | | | | WineManagerBean.java | package com.steir.iwdb; | | import static javax.persistence.PersistenceContextType.EXTENDED; | import static org.jboss.seam.ScopeType.SESSION; | | import java.io.Serializable; | import java.util.Collections; | import java.util.Comparator; | import java.util.List; | | import javax.ejb.Remove; | import javax.ejb.S
[jboss-user] [Installation, Configuration & Deployment] - Naming myeclipse projects for exploded deploy
Hi all, I'm using myeclipse to develop jboss seam applications that are being deployed to a jboss application server. I've discovered a tutorial (http://www.karwell.com/apropos/equipe/JMP/seam_me_getting_started/) which describes how to do the example applications that comes with seam in myeclipse, using the myeclipse new project -> enterprise application project wizard. The tutorial states that you have to name your project modules like this: ear project: myproject.ear web project: myproject ejb project: myproject.jar This works fine for both packaged and exploded deployments on the jboss application server. When I do changes in my java classes in the ejb project, they are reflected on the deployed version of the application as expected. However, there's a bug in eclipse refactoring mechanism (https://bugs.eclipse.org/bugs/show_bug.cgi?id=171937) that causes renaming to fail when you .jar as the ejb project name ending (don't ask me why, I filed the bug and we'll see how it pans out). Renaming is a pretty nifty feature that I want to be able to use during development, so I'm looking for another naming policy that works well with exploded deployments. I've tried naming projects like this: ear project: myproject web project: myprojectWeb ejb project: myprojectEar With these names, myeclipse 1) suddenly doesn't recognize the taglibs I use in my facelets, and 2) changes in java files in the ejb project are not reflected when I refresh the part of the deployed application that uses the java classes. This confuses me, because I can actually see that the class files in the "deploy" directory of jboss are updated. So the big question is, has anyone come up with a decent naming policy for developing seam or ejb3 applications in myeclipse on jboss application server? Regards, Eirik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007470#4007470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007470 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Illegal @PersistenceUnit: There is no default persistenc
Hi, I had a similar problem when using jdk5.0. It solved itself when I went over to jdk6.0 for some reason. Didn't have to touch the classloader in jboss-app.xml Regards, Eirik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007464#4007464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007464 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user