[jboss-user] [JBoss Seam] - Bean: org.hibernate.collection.PersistentSet, property: 0
Hi I have a OneToMany relationship . When i try to access a value in the secondary table using an EL as follows #{usersHome.instance.refUserses[0].id} I get an error as follows javax.el.ELException: /Users.xhtml: Bean: org.hibernate.collection.PersistentSet, property: 0 I used seam-gen to generate the code and modified the xhtml to add the above reference. Can somebody point me what I am doing wrong I am running Seam 1.1 CR2 Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995384#3995384 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995384 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Bean: org.hibernate.collection.PersistentSet, property:
Hi I checked the code and the properties are ArrayLists. As I said I just used seam-gen to generate the code and added an extra relationship in the table . I then changed the view to additionally display the sub table and pass the key as a request parameter Thanks Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995420#3995420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Deployed ear file generated with seam-gen
Hi I get this error whne I am runnin 1.1 CR2 with the Sun JSF 1.2 RI . I am also using the classes generated using seam-gen Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995434#3995434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Need advice on using resultList and pagination
Hi I have been working with for the last 4 weeks and I have a query on using the resultList function. I used seam-gen and have been playing around with the code. My application has one main table and a lot of child tables The default code to display the child tables was to use ,h:datatable value=ChildTableEntityHome.resultList . I changed this to h:datatable value=parentTableEntityHome.getChildren Things worked with this but the pagintion has stopped working . I dug around and found the implementation of createQuery . I am thinking of modifying the ChildTableListcode to fetch only the results (i.e.) change the getEjbql method to include the foreighref if present The question I have is this : Will this work ? Is this the best way to go about this or should I implement the equivalent of the getResultList in the parentEntityHome.getChildren method also Thanks and regards Hari The question I have is this View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002970#4002970 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002970 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Using conversations causes the pages to be cached
Hi I have been trying to use a long running conversation and I am facing the following problem . Once the conversation is created Any link that I click always takes me to the first page that was displayed after the conversation was created This is what I did : I have a method called searchItem which I have annotated with a @Begin (id="myconv", join=true) public void myMethod() { } I also included this method in the action parameter of the .page.xml I can see that the action is executed . After this visiting debug.seam shows that a conversation named 'myconv' is created. But after this all the links have a [EMAIL PROTECTED] as request parameter even though they are not present in the s:link parameters. And the browser displays the first page ( i ensured that there is no browser caching etc) . Can u let me know how I can proceed .. Thanks Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035797#4035797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam-gen and clickable lists
Hi I am trying to modify the seam-gen generated code to support clicable lists . I have modified the List.java file and have a) implemented a local interface which contains one method in addition to extending the EntityQuery b) Annotated that method with the @Factory (x) c) made the List a stateful bean d) added the @DataModel annotation for a variable x e) Referenced the variable from the List.xhtml page as #x But things are not working . I get an error that says validate method of component not found . Can somebody tell me if I am proceeding in the correct direction Implementing a stand alone interface without extending the EntityQuery does work but I need to integrate with the seam-gen generated code Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038213#4038213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038213 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam-gen hbm to entities
Hi Look into the build.xml of seam-gen . There is a tag under the generate-entities target. Replace that with the tag The following works for me : | | | | | | | | Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038431#4038431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Action method being intercepted but bit being executed
Hi I added a new method in my EntityHome class and then called as an action from the h:commandButton . I can see from the logs that the method is getting intercepted by Seam but the method is not executed . There is no exception in the logs . Can somebody point me to the missing piece on how do I get the method to execute Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038584#4038584 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038584 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Including an entity in component.xml
Hi I am defining new components in the component.xml . These components are dynamically generated So I changed the component.xml to define an ENTITY as in http://jboss.com/products/seam/components-1.1.dtd";[ ]> When I start JBoss the server looks for the specialcomponents.xml in the bin directory. How do I specify Jboss to look for the file in a different directory . I tried / and I tried /WEB-INF but it does not work Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039152#4039152 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039152 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Obtaining a handle to a EntityHome object
Hi The seam-gen code has reference to the EntityHome object . In the .java file if I do a Object o = new EntityHomeObject<> the compilation goes thru but somethings start failing . ( logging fails etc ) I searched the forums and found that this is the NOT the way to do . But I am not able to find any other way to obtain a new handle to the EntityHome . So my question is how to get a handle to the EntityHome object from the java code ? Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039833#4039833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam-gen , Authenticate and EntityHome
Hi My application uses the generate-entities to reverse engineer an existing DB schema . I am using the pages generated using seam-gen. I am trying to plug in the authentication and I am wondering what is the correct way to go about it . I did the following in Authenticator.java @Out (scope=Session) User user; and in the authenticate method I set the user object. But the pages generated by seam-gen refer to the UserHome object instead of user. When I try to do a @In (create=true) @Out (Scope=Session) UserHome userHome OR userHome = Component.getInstance("userHome) things do not work . The userHome object if viewed using the debug.seam shows illegalStateException for the Collection objects So should I a) rewrite the pages to refer to user instead of userHome . If that is the case can I use the persist methods of EntityHome or should I write those methods again b) Any other way to solve the problem ? Is there are different approach to authentication Thanks in Advance Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040306#4040306 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040306 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Two war files with the same code base
Hi For the purpose of development our team uses Seam 1.2.1 . So we generally change the name of the project and thus create 2 different WAR files and then deploy them to the same jboss server . While I was trying to debug using the java remote debugger I found that I was hitting the break points of my colleague. This brings me to the question : a) Is this style of development acceptable (i.e. 2 WARs with the same class names etc ) . If not what is the preferred method of development ? b) If java does get confused with the class names as I can see the debugger hitting this problem will Seam have the same problem ? --Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043648#4043648 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043648 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Two war files with the same code base
Hi I am assuming you are referring to the Isolation and CallByAttribute values in the ear-deployer.xml It was false . I set both the values to true and it still did not make any difference . Should I also set the use JBossWebClassLoader to true in the jboss-service.xml ( It is false now ? ) Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043827#4043827 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043827 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - jboss seam and saving to the database
Hi I am using Seam 1.1.6 and I am facing the following problem " Trying to save values to the database redirects me to the Seam debug page on an exception . I am trying to redirect to my page but I am unable to do ". The following is what I have done -- I have a database table with constraints on the table ( unique ) -- Used seam-gen and generated the code for the tables -- Wrote a new method in the entityHome to call the persist method public String handleRegistration( ) { try { persist(); return "test" } catch (Exception e) { return null; } } -- I have entries in the navigation.xml to redirect the output on "test" to the proper page -- I have entries in the exceptions.xml file but that does not help . I also have the 'catch all' exception. Problem : On entering a non unique value I get redirected to the Seam's debug page . My understanding was that returning a null would show the same value . Can somebody tell me what I am doing wrong and what is the correct way of handling this Thanks Regards Hari PS : The rest of the features of JBoss Seam really rock . I am just unable to get this simple thing to work View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026568#4026568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Build system
Hi I have been using Seam 1.21.GA for my project. I am looking for some advice on having a build system. Some of the common problems I am facing are a) No help on GUI for using the rich:tags etc. Solution : I am using the JSF facelet files as jspx files so that eclipse provides some sort of tag completion b) No way to check the validity of the facelets files. ( i.e. there is no way to check if there is a managed bean by this name / or a method is available . ) This is becoming a big problem for the team since it takes time to deploy / explode and then catch the error . Is there a better way to check for the presence of the beans / methods during compile team. Any suggestions ? Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075420#4075420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Build system
Hi Max Yes I have tried JBoss Tools Beta 3. I am currently unable to run it on my x86_64 bit Linux machines. Works fine on the 32 bit though I am impressed since this seems to be an improvement over the tools support . But I am looking for a task since I want to extend the task to do the following : If the bean changes I want to find all the xhtml files that refer to tthe method and then invoke the appropriate tests. Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075994#4075994 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075994 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JMS and Seam 1.2.1 GA
Hi The following is the programming model I use : I have a JMS listener which is annotated with the @Startup and @AutoCreate annotations. This polls the JMS queue every 'x' minutes and then tries to invoke a Seam component . The Seam component is found and invoked. If the component has any database part ( say reading from a table ) then I get an error that says No active JTA transaction found I have the following questions : Is this a correct model ? Or is there a different programming model ? How do we remove the error ? Is the Seam component not getting the entityManager ? TIA Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078784#4078784 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078784 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Building Seam 2.0.0.0.GA with Eclipse --- javac task not def
Hi I was attempting to build Seam 2.0 GA with Eclipse . I tried using Eclipse's create new project from an existing ant build file and it gave an error saying build.xml does not have javac task I am able to build from a command line ant . Is this the way to import the project into eclipse Let me know Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115326#4115326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115326 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Building Seam 2.0.0.0.GA with Eclipse --- javac task not
Thanks Peter . I ran the ant task and copied the .project file from the checkout. After that I was able to import this into eclipse Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115372#4115372 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115372 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JBOSS Seam 2.0.0.GA and the latest JSF RI -- Stack overflow
Hi I am trying to use the latest jsf-ri from the the SVN repository of JSF - Ri . I did the following : Replace the jsf-api.jar and the jsf-impl.jar in the jboss-webdeployer/jsf-libs directory of my jboss server Replace the jsf-api.jar and the jsf-impl.jar of my application directory On start I get a Stack overflow error . Is there any other jar file that I need to replace Thanks Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116800#4116800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBOSS Seam 2.0.0.GA and the latest JSF RI -- Stack over
Solved the problem. I was using the HEAD of the SUN JSF-RI and I guess people are still checking the code since I saw a lot of UnSupportedMethod Exception being throws delberately . I used the last tagged version and things are fine Thanks Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117138#4117138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117138 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Multiple field validation and JBoss Seam 2.0 -- Various appr
Hi I tried following the approach given in http://www.jroller.com/jgilbert01/entry/extending_the_hibernate_validation_framework by using the @Expression framework detailed there . The validation happens but Seam proceeds to the after phase and then fails when it tries to persist the form . The solution is elegant since it takes care of both the UI approach and using an API approach but I did not find a way to stop seam from not going to the next phase if validation fails. For now I am using http://www.jboss.com/index.html?module=bb&op=viewtopic&t=120754&postdays=0&postorder=asc&start=20 Hope this helps people who are searching for a similar solution Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121473#4121473 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Multiple field validation and JBoss Seam 2.0 -- Various
I did some more digging around and figured out that I can get Case 1 to work if I set the FLUSH MODE to manual . There does not seem to be a way in the components.xml to set the flush mode to manual . All the documentation point to the use of an @Begin in the page.xml . My application does not use the @Begin in the page.xml . Is there some way I can set the EntityManager to MANUAL . The initEntityManager() function seems to take the value as AUTO always View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121716#4121716 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Obtaining Method name of the backing name in a component
Hi I know this is not related to Seam and is more of a JSF question . But I thought I will take a guess and try here . Sorry for the cross posting . I am trying to put up some test cases . I have an encodeEnd for all my components and I am printing the name of the id etc. These work without any problems . I would also like to obtain the method name of the backing bean associated with this component in the encodeEnd method so that I can print the name of the annotations associated with this method . I am not able to figure out how to obtain the name of the Method using the ValueExpression . All help will be appreciated TIA Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125541#4125541 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem refreshing a DataSet on a page
Hi I have my application which is largely seam-gen generated with my own modification . My application UI uses EntityHome.getSet1() to display items in the page instead of a EntityList.getResultList() . When I add a new item to the collection I can see that it gets persisted to the database but does not reflect in the UI immediately . I have tried the following and it does not work setDirty ( ); Is there any other way I can tell hibernate to refresh the dataset ? Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046536#4046536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046536 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - rich:suggest and Open in new tab broken
Hi I have a seam application . From the application I click on a link and then say open in a new tab . The new link contain some rich:components. When the control is activated I get a message in the Fibebug console that says LOG is not defined for ajax.4jsf.rich. After about 4 /5 tries the page gets redirected back to the parent and all the context is lost .. Anybody else who faced a similar problem ? It would help if we get pointers to solve this Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047421#4047421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Using log4j's NDC
Hi I want to use the NDC facility of Log4j in Seam so that I can make sense of the logs Is there any way to do this ? Any pointers will be greatly appreciated. Regards Hari PS : I tried importing NDC and then did a NDC.push , but this is not appearing in the log file View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047612#4047612 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047612 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityHome for nested entity CRUD?
Hi We faced the same situation and we did the following Added entries in the components.xml for the other entityhome .. So something like and we used the reference to the childHome . We added page parameters (in the .page.xml ) for the childentities id . Let me know if this helps Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048683#4048683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Generating s:link programmatically
Hi I have a problem and I would be greatful for a solution . I have a property which is a URL (http://x.y.z?id=1&a=2&c=2 ). I would like to pass this to aetc. How do I do this from the backend ? Just putting http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052822#4052822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user