[jboss-user] [JBoss Seam] - Re: jboss as/seam problem
Is your User Class annotated so that its a Seam Component ? i.e. does it have the @Name("user") in it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987141#3987141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987141 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Blocking direct access to .xhtml files
Well, its just behaving as a WebServer. Can you locate your xhtml files within the WEB-INF so they cant be rendered directly and have your navigation rules point to the locations within WEB-INF? Also look at the dvdstore example for some snippets that are loaded from the WEB-INF directory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973141#3973141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973141 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I have some problems with an exeption, I need help!!!!
Looks like the bean has been passivated but the persisted file is removed. Can you check if your JBOSS_HOME/server/default/tmp/sessions/ exists and is not getting deleted by any of your code ? This is a remote chance but just in case. Also turn up your log level to DEBUG and you should see more information about which file its trying to read to restore the Session Bean's state from. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973138#3973138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973138 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to stop unknown user from seeing a page
"jazir1979" wrote : | ie- the pattern really should be "all pages except login.xhtml" rather than "*" I dont think there is a way to do this currently except mentioning the pages individually. But there is an enhancement request for this http://jira.jboss.com/jira/browse/JBSEAM-341 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973135#3973135 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973135 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam example, hotel-booking, does not work
Can you use the jems installer as indicated in http://labs.jboss.com/portal/jbossseam/gettingstarted for getting jboss-4.0.4. I believe you dont have the latest EJB3 jars as the method call from InvocationContext.getTarget() was introduced only later( in EJB3-RC8) http://jira.jboss.com/jira/browse/EJBTHREE-602 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971851#3971851 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971851 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Multiple roles and accessing the DataModel
"8" wrote : | However, when I do this, I don't seem to be getting the DataModel, but rather the actual List itself. This is evidenced by the fact that a method in the class that uses the DataModelSelection is always stuck at pointing to the first item in the List list... | Can you elaborate on that bit, especially the "first item in the List". The way it is, your List will get wrapped into a ListDataModel before its sent out to the view and unwrapped on its way back. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971480#3971480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Interface from C app to Seam?
1. Web Services maybe a good way to do this, you dont have to use Seam for that, but just generally have an endpoint that can receive your WS calls and act on it. Why do you have to use Seam for this? 2. Use JMX. If you have an JMX enabled bean, you could use the twiddle script (look up in jboss-4.0.x/bin/twiddle.sh) to invoke an mbean (get/set attribute, call methods etc) but that would be one more technology to learn :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970504#3970504 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970504 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Default action for JSF page?
I think browsers behave differently for this. if there is only one form field on a page, then hitting enter will do the same as a submit but Ive seen posts where IE takes any enter on text field as a submit. You could use the onkeypress attribute on JSF's inputtext to have a javascript that will capture window.event.keyCode and check if thats equal to 13, do the same as what your button needs to do but these details are totally out of JSF and Seam IMO. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970503#3970503 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970503 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ConversationEntry -- Should lastRequestTime equal startT
I tried it with the updated code (Dint get the latest CVS) but ported changes for ConversationEntry to my 1.0.1.GA build and it worked. Thanks ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970502#3970502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ConversationEntry -- Should lastRequestTime equal startT
Thanks Gavin. Is this path for fisheye not accurate? http://fisheye.labs.jboss.com/browse/JBoss/jboss-seam/src/main/org/jboss/seam/core/ConversationEntry.java The last commit I see there is some 56 days ago. I havent checked out the CVS from commandline as indicated in the wiki but thought i could look at it from fisheye but that doesnt seem to match ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969942#3969942 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969942 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with extra action method executing
This seems to be happening in AbstractPhaseListener and looks like a bug. The code in question is |public boolean callPageActions(PhaseEvent event) |{ | Lifecycle.setPhaseId( PhaseId.INVOKE_APPLICATION ); | boolean actionsWereCalled = false; | try | { | actionsWereCalled = Pages.callAction( event.getFacesContext() ) || actionsWereCalled; | actionsWereCalled = Pages.instance().callAction() || actionsWereCalled; | return actionsWereCalled; | The first "Pages.callAction(event.getFacesContext()) || actionsWereCalled " runs the intended action i.e. the action in the second page. Note that at this point, the view-id is still the first page as the lifecycle has not come into the "render" phase -- still in the "Execute" phase. Now that the method returned true, we are again invoking the Pages.instance().callAction() which calls the first view since the view-id is the first page. Thats the reason for the out of order of messages. If the code were |actionsWereCalled = Pages.callAction( event.getFacesContext() ) || actionsWereCalled; | actionsWereCalled = actionsWereCalled || Pages.instance().callAction(); | return actionsWereCalled; | that should fix this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969794#3969794 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Stateful session bean component should have a method mar
Do you have a @Name("somethinghere") or just @Name ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969617#3969617 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969617 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: LIE and accessing collections in next request
I got this working after a lot of reverse engineering. Anyway, the secret was that the method starting the conversation had to somehow call the responseComplete method(by having an outcome) and then the conversation was carried between screens. In my case, since it was a factory and nothing was returned from there, the conversation was killed soon after it was started. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969087#3969087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - ConversationEntry -- Should lastRequestTime equal startTime
When a conversation is created, the ConversationEntry object has the starttime equal to the current time and the lastRequesttime set to 0. Should the lastRequestTime be also initialized to the current time stamp? Here is why Im asking this. In my application, I start a conversation on a Stateful bean and all Im doing there is displaying the view. A ConversationEntry is created at this point of time. The view has a #{categories} which is a @Factory and it initializes the categories Array. The problem is that this variable(and the rest of them) are not stored during the next request in the conversation. This is because the afterPhase calls Manager.instance().conversationTimeout after the view is rendered and this basically deletes the conversationentry. The logic to delete the conversationentry works for a regular timeout but in this case, the conversation creation has just happened(during the render response phase). If we set the lastREquestTime to be the same as the current time, then the difference(currentime - lastRequesttime) will be less than the conversation timeout and the entry will not be deleted. im not sure if im explaining my case clearly, but if its not, please ask me for more information. Thanks Raja View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969086#3969086 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: LIE and accessing collections in next request
I do have a seam managed EPC. I am debugging the code to see how Conversation managed components are kept so the LIE can be avoided. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969080#3969080 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969080 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?
I modified the registration app not to work with EJBs but as Simple beans. The other changes are to make the REgisterAction bean as a Application scope bean and be available at Startup. I did those modifications just to make sure that your original problem description was happening for me too. Here is a diff of what was changed ("registration" is the seam-example folder and "test" is my folder) | diff -r ../registration/src/org/jboss/seam/example/registration/RegisterAction.java src/org/jboss/seam/example/registration/RegisterAction.java | 11a12,13 | > import org.jboss.seam.annotations.Startup; | > import org.jboss.seam.ScopeType; | 12a15 | > import org.jboss.seam.annotations.Scope; | 17d19 | < @Stateless | 18a21,22 | > @Startup | > @Scope(ScopeType.APPLICATION) | 25c29 | <@PersistenceContext | --- | >@In(create=true) | 32a37 | > log.warn("EM: " + em); | diff -r ../registration/src/org/jboss/seam/example/registration/Register.java src/org/jboss/seam/example/registration/Register.java | 6d5 | < @Local | 10c9 | < } | \ No newline at end of file | --- | > } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969079#3969079 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969079 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - LIE and accessing collections in next request
I have a simple Seam app that displays the list of categories as a datatable and selecting a category from that. All works fine till that point. In the next request(i.e. after a category has been selected), Im trying to get the books that are associated with the category . The relation between Category to Books is OneToMany. When trying to access the books for that category, I get the following LIE | Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.rajasaur.bookxchange.model.Category.books, no session or session was closed | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358) | at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350) | at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343) | at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) | at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:138) | at com.rajasaur.bookxchange.action.CategoryActionsBean.updateCategory(CategoryActionsBean.java:112) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:56) | at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:64) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | CategoryActionsBean(Which is a Session Scoped Stateful bean) contains the following mappings. @In(create=true) | private EntityManager em; | @In(required=false) @Valid | private Category category; | @DataModel | private List categories; | @DataModelSelection(value="categories") @Out(required=false, scope=ScopeType.CONVERSATION) | private Category selectedCategory; | The Category Entity Bean also has 2 roles, category and selectedCategory, both of them in the Conversation Scope. Im totally at a loss as to why this is happening. According to the forums, if a component is in Conversational Scope and if we use the Seam managed PC, it should work , but I cant get this to work. If I put in a em.refresh before accessing the collection , then it works fine, but I thought Seam should be able to keep the collections intact from the previous request (as per Section 9.4 in the Seam Docs). If someone can point me to some docs or the problem, greatly appreciate it. Ive been debugging this for almost a few hours now, but cant get anywhere. Thanks Raja View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969043#3969043 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969043 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash
"bfo81" wrote : | But when you create a new person all its properties are null. And when you fill in the fields in a form and click save, then the persons properties are still null during validation (phase 3). They get their concrete values later, in phase 4 (update model values). And, alas, you cannot compare something to null. | Take a look at the ModelValidator class in org.jboss.seam.ui. That does its validation at the process Validation phase by using the model class (and the validators that go along with it) and the values that are in the request. One other way is that since the values are updated in the model only later(after the processValidations), you could queue a new type of event and set the phaseid of that to be UPDATE_MODEL_VALUES. That way the event will be queued during validations but will only be processed after the model values are updated. Thats still ugly(as you are validating in a phase thats not meant for that ) but will work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968824#3968824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968824 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Partial page rendering
Facelets are a good approach of doing these sorts of things, but all the fragments will be redrawn for every screen. Its worked well for some simple things I have tried, if you indicate your problems here or in facelets mailing list, someone might be able to help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968520#3968520 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968520 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: i18n entity validation message?
Sorry, the last answer dint come up quite well in the instant reply. Heres a sample config of components.xml | | ValidatorMessages | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968468#3968468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968468 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: i18n entity validation message?
Sorry, I dint understand the request clearly. Anyway, you can configure Seam to use the same ValidatorMessages.properties by configurng the components.xml for the "resourceBundle" component and specifying the "bundleName" with ValidatorMessages. That way, youd only have one bundle file for both Seam and Hibernate. Something like this is components.xml ValidatorMessages View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968467#3968467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968467 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: i18n entity validation message?
I dont think you need to do build level changes. If you have a ValidatorMessages.properties (and ValidatorMessages in other locales) available in the Current ClassLoader, Hibernate should be able to use that instead of the default validator messages that come bundled with it. Atleast thats how my reading of the Hibernate code indicates. I havent tried this, but if you have a ValidatorMessages.properties in ur EAR archive, that should suffice. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968462#3968462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968462 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Newbie question: access session attribute from view
Since you store the "loggedIn" in the session scope, you can use the "rendered" to be something like < rendered="#{loggedIn != null}" /> Seam automatically would look for the loggedIn attribute in all the scopes and you could render the components accordingly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968457#3968457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Feature Request: Support Regex in pages.xml
I would like to request a feature to have support for Regex in pages.xml. That would help in a lot of cases, for e.g. when you want to have a Login Interceptor for all pages but the "login.seam". It may look like bloated functionality but its similar to the Rails' before_filter with the ":except" option. Can I file a feature request for this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968383#3968383 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968383 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Class leakage on redeployment
Yeah, it throws a OOME -- PermGen Space Filled errors after some 10 - 15 redeployments. I had a read at the Resin site that it could be due to Debuggers if any , and I use a fair amount of debugging with IDE, so I thought that could lead to this, but yeah I get this error too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967642#3967642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?
I just tried this -- with both the application and session scopes and they worked fine. I just modified the registration app that comes with the Seam distro to do this. Ill be interested to take a look at your app though. Raja rajasaur at gmail dot com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967614#3967614 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967614 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?
Ah okay, I dint know that you had the EntityManager defined in the components.xml. Ill give that a try(with this setup) and see what comes up. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967611#3967611 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967611 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Configuring the Seam Logger to write to disk
The @Log is only a easier way of using Apache Commons Logging. So just put a log4j.properties with your appenders configured to write to disk and drop that in the same jar file where your EJBs are present and it should work View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967559#3967559 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967559 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?
"RobJellinghaus" wrote : | Why does @PersistenceContext work here but @In doesn't? I think I'm good to go now (modulo the possibility that I'm still arranging my components the wrong way, but some more code iteration will clue me in there). But I'm still curious why the first way didn't work; I think there's some deep Seam knowledge in there somewhere...? | Its because all of your @Ins and @Outs are Seam managed components and PersistenceContext is not. Its dependency injection by the EJB Container for the EntityManager object into your Beans. If you had a Seam Component that wraps the EntityManager, then you could use the @In there to get the variable but since thats not the case, your object wasnt getting initialized. Refer to http://java.sun.com/javaee/5/docs/api/javax/persistence/PersistenceContext.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967427#3967427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967427 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Merging objects problems.
"sjmenden" wrote : | I want for the user to register a group, and be redirected to a page which displays that group, and allows the user to modify that group ect., which is why I am outjecting the Group. | This should work with your current code and which I thought was the problem you mentioned in the original post. You are modifying the group that got created, so it makes sense to just do updates to that object and not create new ones. I thought your original post said that you were creating 2 different group objects and they were updating the same one (the one that got created first). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967390#3967390 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967390 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSP insted XHTMLS (DVD store example)
Remove the FaceletViewHandler from your faces-config.xml. This will make the app use the default JsfViewHandlerImpl which doesnt do any of the strict XHTML Parsing View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967211#3967211 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Merging objects problems.
sjmenden, try removing the @Out from the group field declaration. What you are doing (after the first time the insert happens) is that you are outjecting that object into the "group" field which gets used by the subsequent jsps. So what you are actually doing is only an update as the first object is what is fed into the jsps subsequently, not any new Group object. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967209#3967209 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception in Phaselistener ?
I just had this problem but setting myFacesLifecycleBug to be false made the exception to disappear. Browsing through the code indicates that the Lifecycle.endRequest is called during the render response phase if the variable is set to true and lifecycle.endrequest will reset the application context to null View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967092#3967092 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967092 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Cannot get FacesMessages to work
This is standard JSF behaviour. Check out JSF Spec Section 7.4.2 under how the default NavigationHandler should behave. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967046#3967046 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967046 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Calling a method when a Session scope starts?
"SmokingAPipe" wrote : | I assume that these components could do other stuff like do redirects. The ultimate in cool is if they could do effectively a JSP include, so I could use it for my SEO needs, and hide parameters within URLs (ie, map /blog-5885.seam to /blog-entry.jsp, and use the 5885 to set a parameter in it). I'm guess that's possible but I have no idea how, because as I said, there are no docs for what you can do in the pages.xml file. | This is possible and IIRC is also documented. You can have a page action that responds to blog-* and have that action return a totally different view id to be processed. For that view, you could use 5885 or whatever as a parameter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966418#3966418 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966418 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: import hql insert statements at deployment time
Create a file called import.sql containing all the SQL that will load up your data and put it in the top level of the jar file. Refer to the "booking" example's jboss-seam-booking.jar file if you need more information(about where to put the import.sql) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965338#3965338 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965338 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: import hql insert statements at deployment time
Create a file called import.sql containing all the SQL that will load up your data and put it in the top level of the jar file. Refer to the "booking" example's jboss-seam-booking.jar file if you need more information(about where to put the import.sql) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965336#3965336 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965336 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @PersistenceContext(type=PersistenceContextType.EXTENDED
You cannot use a Extended Persistence Context with Stateless beans. stateless beans have no state and hence nothing to retain between requests. The Entitymanager field is one such field where you would need to store it between requests and having stateless architecture will not allow it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965293#3965293 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965293 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: When can @Logger be used?
Thanks Petemuir, that was helpful information. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965180#3965180 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965180 ___ 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?
None, you can use a FacesMessage to send a message (Refer to the registration example that comes with Seam). The org.jboss.seam.core.FacesContext is a wrapper over the javax.faces.FacesContext and returns the current implementation of javax.faces.FacesContext(which is ServletFacesContextImpl if u are using myfaces). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965178#3965178 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965178 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistance.xml in .ear/META-INF
The persistence.xml needs to be in META-INF of a *jar* file that is included in the EAR archive. You cant put the file directly in META-INF of the ear. To achieve what you need, you could tokenize the persistence.xml and feed the token values when you build the persistence.xml that will be a part of a jar that goes into the ear. Just a thought. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964925#3964925 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964925 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: When can @Logger be used?
Kurt, In your ejb jar, do you have a ejb-jar.xml that has the information about intercepting all calls to the SeamInterceptor? In the case of a JavaBean, the SeamInterceptor is setup for you by Seam , so you dont do any extra plumbing, but for EJBs, you would need to indicate to Seam to pass those through SeamInterceptor. If your ejb.jar file contains a ejb-jar.xml with the following entries, it should work | | | | * | org.jboss.seam.ejb.SeamInterceptor | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964895#3964895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964895 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB3 - load Sql Query From Xml Deployment Descriptor
Turn on the DEBUG log level and see what SQL i s getting generated and trace from there. I havent tries this in EJB3 but Hibernate does throw the SQL statements that get executed. That might give u an idea where the problem is. ORA-0900 is invalid sql statement (as is shown in ur original comment), so somehow the SQL is mangled. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964889#3964889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964889 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: UI Labels and displaying the hash sign #
I think thats a seam bug. Seam tries to interpolate any expressions in the message bundle values and since it found a "#" in there, it seems to be looking for characters next to it, which wont be there in your case. Here is the snippet from Interpolator.interpolate thats causing the bug | FacesContext context = FacesContext.getCurrentInstance(); | StringTokenizer tokens = new StringTokenizer(string, "#{}", true); | StringBuilder builder = new StringBuilder(string.length()); | while ( tokens.hasMoreTokens() ) | { | String tok = tokens.nextToken(); | if ( "#".equals(tok) ) | { | String nextTok = tokens.nextToken(); | which would fail in your case. Other than filing a bug, the one option you have is to split your message content to have just the "Test" portion and include the "#" directly in your jsp page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964879#3964879 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964879 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam && method binding almost right, Seam and value bind
Your Interface(Query) should contain getJon, setJon and the destroy methods. You are calling methods on the interface from your view pages and they havent been defined there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964873#3964873 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964873 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl
Sorry scratch my previous comment, it does work well if you put the persistence.xml in a jar file and make it a part of your archive. Note that you would have to enter the jar file containing the managed classes in the persistence.xml file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964847#3964847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964847 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl
That said, the above dint work for a trivial example for me. Can you verify this as well? (Or am i reading the spec wrong ?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964830#3964830 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964830 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl
>From the EJB Spec, anonymous wrote : | A persistence unit must have a name. Only one persistence unit of any given name may be defined within a single EJB-JAR file, within a single WAR file, within a single application client jar, or within an EAR (in the EAR root or lib directory). | And as for scope of the persistence.xml (between EJB, WEB, or EAR) anonymous wrote : | A persistence unit that is defined at the level of the EAR is generally visible to all components in the application. | So if you put your generic persistence.xml in the root folder(where your EAR is defined or in a lib subfolder), all your sub deployments should be able to use that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964828#3964828 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Can't find branch for FD8 release, posted documentation
Welcome to frustration while searching code. Ive tried this before and am still not very comfortable at locating branches and source codes to attach to Idea. Anyway , here are some answers that might help. "gcomnz" wrote : | 1. The EJB 3.0 releases don't contain source, making it difficult to attach source in IDEs for debugging | The EJB3.0 sources are part of the JBoss_4_0 branch and can be obtained here https://svn.jboss.org/repos/jbossas/branches/Branch_4_0/ The subtrees are ejb3 and ejb3x "gcomnz" wrote : | 2. I've been searching for a long time in the CVS repository and can't seem to find the version tag for releases, meaning that I can't find the accurate sources for what I'm using in order to get around problem 1 | These got shifted to SVN sometime late July I think and SVN seems to be more easier to navigate( Fisheye sucks if you dont know the branch or tag names). Also, Fisheye does not seem to have any tag information, so unless you know the tag for a subtree, you are lost. Anyway, if you are able to find out the tag/branch names from any of the commit messages, here is how to do the browsing for a particular tree fisheye.labs.jboss.com/viewrep/~tag=JBoss_Seam_1_0_1_GA/JBoss/jboss-seam That would fetch the JBoss_Seam_1_0_1_GA tag for Seam and I got the tagname from one of the commit messages. I honestly have no idea how to do it generically View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964826#3964826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Displaying EJBs within JavaScript: what about the Entity
"SmokingAPipe" wrote : | Solution 1: Use a Filter that keeps an EntityManager hanging around for the duration of the request. Seems like an ugly way to do it, but I guess that would be "PHP-style", where it automatically frees DB connections when the request is finished. | This is how the OpenSessionInView works and I believe is the only way available if you dont want to get to Seam. Check this post http://www.jboss.com/index.html?module=bb&op=viewtopic&t=88460 for some differences in Seam managed persistence context Vs. EJB3's Extended Persistence context that will make applications not worry about LazyInitExceptions. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964824#3964824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964824 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: When can @Logger be used?
"raja05" wrote : IAlso have you configured ur bean so that it shouldnt be intercepted? | That should read " Have you configured your bean so that it should be intercepted". Not having any interceptor tags should be enough though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964410#3964410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: When can @Logger be used?
Is your bean annotated with a "@Name" ? Also have you configured ur bean so that it shouldnt be intercepted? Can you post the annotations for your bean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964401#3964401 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964401 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injection problem
Does your Register Interface define the register() method ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964337#3964337 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964337 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know
Excellent post. I think you should add it to the wiki. I had some doubts on the managed Persistence Context but its clear now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964329#3964329 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964329 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to cofigure JBoss in a machine where already Tomcat
Tomcat port is definitely one thing to change, which you can modify in server/default/deploy/jbossweb-tomcat.sar/server.xml For the rest of the ports that might conflict, run a nmap to see what ports are exposed and change them accordingly in jboss's jboss-service.xml in server/default/conf. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964252#3964252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964252 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam and Hibernate
create table Message (id bigint not null auto_increment, read bit not null, | text text not null, title varchar(100) not null, datetime datetime not null, primary key (id)) The "read bit not null" is the problem. "read" is a function in mysql and it wont let you create a field with that. Try renaming your model's field name to be something like readMessage and it should work . This should effectively translate your SQL to be create table Message (id bigint not null auto_increment, readMessage bit not null, | text text not null, title varchar(100) not null, datetime datetime not null, primary key (id)) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964225#3964225 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam URLs and request processing
The rest have been answered in the other post. Ill try and answer the one that isnt answered there. "dpocock" wrote : | b) for the register.seam URL, does JSF/Seam simply look for a JSP file with the same name, e.g. does it look for register.jsp, or if I put the URL help.seam, does it look for help.jsp? Or is there some more complicated decision making that helps it decide which page to use or which bean to invoke? | The default View handler extension(indicated by ViewHandler.DEFAULT_SUFFIX) is .jsp. So any url that you have will get replaced with a .jsp and is looked for. If you want this to be changed, you can specify a javax.faces.DEFAULT_SUFFIX in your web.xml's init-param and give a suitable extension. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964096#3964096 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964096 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [The Lizzard's corner] - Re: Repository for JBossCommon and Checkout instructions
I figured out a way to this. The following url works for cvsgrab to checkut a branch from CVS sh /apps/cvsgrab-2.2.2/cvsgrab.sh -url http://viewcvs.forge.jboss.com/cgi-bin/viewcvs.cgi/jboss-common/src/?only_with_tag=JBossMC_1_0_2 -destDir . That would checkout the JBossMC_1_0_2 branch from jboss-common View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961690#3961690 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961690 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [The Lizzard's corner] - Repository for JBossCommon and Checkout instructions
Im trying to checkout the JBossCommon for the tag JBossMC_1_0_2 . I tried looking up http://wiki.jboss.org/wiki/Wiki.jsp?page=CVSRepository and couldnt succeed in checking out. cvsgrab always returned me the directories and no contents inside. Looking up through fisheye indicated that cvs2svn was run which implies that maybe the repository is now in svn ? Since there is no project for JbossCommon in the front page, I cant figure out the CVSROOT or the SVN Checkout URL for that. Can someone let me know whats the checkout url for JBossCommon with tag JBossMC_1_0_2 ? Thanks a lot Raja View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961682#3961682 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961682 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user