[jboss-user] [JBoss Seam] - In selectItems, how to synchronize objectId for selected val
I'm using SelectItems approach from http://wiki.jboss.org/wiki/Wiki.jsp?page=SelectItems The problem: when displaying a form with pre-existing selected values, the objectsId in the list of SelectItems will be different than the forms parent object that holds the reference to the selected object. Therefore the hashes don't match in this code (ReferenceConverter class) | int hash = Integer.valueOf(str).intValue(); | for (Object val : values) { | if ( val!=null && val.hashCode()==hash ) { | return val; | } | } | As I feel this problem is conceptual, not sure how to synchronize the objectId for the selected value and the one value in the list of Select Items? Please let me know if you have any suggestions, how to tackle this one. Thanks for your help Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994550#3994550 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994550 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Future direction for Embeeded EJB
Hi Gavin, Congratulations on 1.1GA!, the framework part, is a jewel to show (and understand) the rest of Seam's capabilities, simple yet elegant, well done! Now, given the two alternatives for Seam applications outside JBoss AS, (for us dealing with other AS (Weblogic and Websphere), what would you recommend today and the foreseeable future? Embedded EJB or Hibernate/JPA approach, for say, simple database web applications. (no MDBs) Also, I?ve noted SeamGen produces Pojos, are there plans to support direct EJB generation ? Finally, is there any possibility of Embedded EJB to become secondary given there is JBoss AS (Full container), and the recent added support for Hibernate/JPA? Looking forward for the latest announced releases ! Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994469#3994469 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994469 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Programatic example for Query Objects
That's perfect!, it does help me. Thanks I was just trying to get my head around the concept but I think I got it. BTW, it's extremely exciting to see 1.1.GA ! Congrats Seam guys! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993657#3993657 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993657 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: question about application scope component?
Ignore my last comment, I've just confirmed it's fixed in CVS in 1.5 Y View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992963#3992963 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992963 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Programatic example for Query Objects
Hello, Are there any examples showing programmatic use of Query object. Mainly interested seen the capabilites of the "framework:restrictions" piece. I've had a quick overview in the code for the Query class but not evident at least for me. I found the comparation for Home Object between programmatic and xml aproach very illustrative. Thanks for your assistance. Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992956#3992956 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992956 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: question about application scope component?
Indeed, that's clear now. Maybe I've got the DTD definition (and the error) as I was using a scaffolded Entity from SeamGen. Thanks for your promptly assistance! Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992953#3992953 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992953 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: question about application scope component?
Hi Folks, I have the exact same issue here, however not sure how to use the seam-Managed EM. Just to be sure, is it the one in: "13.4.2. Using a Seam-managed persistence context" from the Seam Ref Doc 1.1.CR2 ? I've tried (as per ref) to add it to the components.xml, no luck | | The DTD for components.xml does not seem to like the 'core' tag, or is the Documentation incorrect ? Any pointers will be helpful ! Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992704#3992704 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992704 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Exporting schema from DVD sample
Hello, What is the simplest way to export the schema from this example to a ddl file? I had in mind the hbm2ddl task, but would that work with EJB3 using annotations (therefore not having a hbm.xml) I've attempted setting up hbm2ddl as a property in the persistence.xml without results. | | | Thanks for your help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967116#3967116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967116 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Could not register synchronization
Hello, I'm using 1.0.1GA, and identical code to the DvdStore AcceptAction.java, for a simple workflow - it seems pretty straightforward. However I'm getting a Seam uncaught exception due to a hibernate exception: Could not register synchronization. When executing the @EndTask method, the method itself is never executed. I've reviewed the code but there is nothing obvious, it's identical to the AcceptAction.java. Any pointers will be appreciated. Yeyo Stack trace: ERROR 26-07 00:42:11,908 (Log4JLogger.java:error:119) -uncaught exception handled by Seam | javax.servlet.ServletException: Error calling action method of component with id id_01:id_03 | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | 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.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) | 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.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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) | at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) | at java.lang.Thread.run(Unknown Source) | ERROR 26-07 00:42:11,939 (Log4JLogger.java:error:119) -Servlet.service() for servlet Faces Servlet threw exception | javax.faces.FacesException: Error calling action method of component with id formId:submitButtonId | at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74) | at javax.faces.component.UICommand.broadcast(UICommand.java:106) | at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94) | at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168) | at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86) | 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.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | 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.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) | 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.StandardWrapperVa
[jboss-user] [JBoss Seam] - Re: Hot Deploy Seam Apps on Tomcat?
"[EMAIL PROTECTED]" wrote : Tomcat hotdeploy is basically completely broken and AFAIK can't be made to work reliably. | | Sorry for xposting, http://www.jboss.com/index.html?module=bb&op=viewtopic&t=86515 but can you elaborate more on what it is that badly broken? Thx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958993#3958993 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958993 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Continuously server restarting
Further to my question and after additional searching, I found this, http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87008 Would this then be possible?? Thanks any help appreciated.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958991#3958991 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958991 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Continuously server restarting
I suppose you mean to not use jars, and instead import the code from these into the eclipse web project ? Which would be the JARs I would need to explode v.s. the ones I can keep as JARs? Some I can think of: jboss-ejb3-all.jar jboss-seam*.jar mc-conf.jar Thanks for your help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958988#3958988 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958988 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Embeddable Objects (EJB3) not working properly
"[EMAIL PROTECTED]" wrote : Note that none of these questions have anything to do with Seam. Now, I don't mind if you discuss your JSF problems here. But if you are going to talk about bugs and use italics and exclamation points and multiple question marks, please consider taking this to the correct place which would be the MyFaces forum. | | OTOH, if you wish to continue this discussion here, that is fine by me, but please lay off of the "bug or incompatibility" talk. Thanks. Hi Gavin, Here is a twist to the topic: I've came to appreciate the power and strengths of JSF, and I really love the way Seam takes over in the places where JSF really needed some help. (s:Link with actions, nicely formated exception stack trace, pages.xml, etc etc) Now from having seen colleagues to struggle with JSF somewhat non-obvious ways of doing things (or presenting errors, misconfig, etc..) Wouldn't this be another case where seam can improve things? It looks to me like some sort of "auto-converter" could alliviate the need to look into JSF non-friendly details. Just my $0.02 Yeyo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958986#3958986 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958986 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to tweak output based on HTTP header for wired/mobil
"dbatcn" wrote : Putting a little information about this (dependence or lack thereof of javascript) in the Seam documentation area would be very helpful I think, particularly to people like me new to Seam/JSF/facelets/MyFaces/EJB3/JavaPersistence. Completly agree, it looks like seam documentation assumes some degree of competency with JSF, EJB (less in v3 due to Pojos but container managed concepts are needed, and other basics). Maybe a section like: "Things to Know About Underlying Frameworks in Seam" would be a good idea. In particular Seam has been a breeze for me as I'm very close to JSF, EJB and Java5, but to compete (catch up?) with Rails some minimal background in underlying frameworks is needed, and that could be a consideration for many as you mentioned Java developers. In regards to your original question, what about creating (or reusing) a pluggable JSF renderer. Something that Seam would be somewhat agnostic to -if not mistaken- Jsf renderers idea was that in principle: to server different clients. Yeyo "dbatcn" wrote : | I think that there's a large population of people like me who are Java-competent who need to create web apps and trying to decide whether to go forward with more recent Java stuff or move (defect?) to Ruby on Rails. Anything that gets people like this going will be hepful. I will admit as a newbie to this that the boundaries between the several projects/APIs I mentioned above are only slowly becoming clear, even with considerable reading from several sources. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956816#3956816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956816 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user