[jboss-user] [JBoss Seam] - Re: jboss as/seam problem

2006-11-19 Thread raja05
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=bbop=viewtopicp=3987141#3987141 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3987141

[jboss-user] [JBoss Seam] - Re: how to stop unknown user from seeing a page

2006-09-20 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: I have some problems with an exeption, I need help!!!!

2006-09-20 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Blocking direct access to .xhtml files

2006-09-20 Thread raja05
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.

[jboss-user] [JBoss Seam] - Re: Seam example, hotel-booking, does not work

2006-09-15 Thread raja05
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)

[jboss-user] [JBoss Seam] - Re: Multiple roles and accessing the DataModel

2006-09-14 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Default action for JSF page?

2006-09-08 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Interface from C app to Seam?

2006-09-08 Thread raja05
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-user] [JBoss Seam] - Re: Problem with extra action method executing

2006-09-06 Thread raja05
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 |

[jboss-user] [JBoss Seam] - Re: Stateful session bean component should have a method mar

2006-09-05 Thread raja05
Do you have a @Name(somethinghere) or just @Name ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969617#3969617 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969617 ___

[jboss-user] [JBoss Seam] - ConversationEntry -- Should lastRequestTime equal startTime

2006-09-03 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: LIE and accessing collections in next request

2006-09-03 Thread raja05
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

[jboss-user] [JBoss Seam] - LIE and accessing collections in next request

2006-09-02 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?

2006-09-02 Thread raja05
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.

[jboss-user] [JBoss Seam] - Re: LIE and accessing collections in next request

2006-09-02 Thread raja05
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=bbop=viewtopicp=3969080#3969080 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash

2006-08-31 Thread raja05
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,

[jboss-user] [JBoss Seam] - Feature Request: Support Regex in pages.xml

2006-08-30 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Newbie question: access session attribute from view

2006-08-30 Thread raja05
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 :

[jboss-user] [JBoss Seam] - Re: i18n entity validation message?

2006-08-30 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: i18n entity validation message?

2006-08-30 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: i18n entity validation message?

2006-08-30 Thread raja05
Sorry, the last answer dint come up quite well in the instant reply. Heres a sample config of components.xml | component name=resourceBundle | property name=bundleNameValidatorMessages/property | /component | View the original post :

[jboss-user] [JBoss Seam] - Re: Partial page rendering

2006-08-30 Thread raja05
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 :

[jboss-user] [JBoss Seam] - Re: Class leakage on redeployment

2006-08-26 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?

2006-08-25 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Configuring the Seam Logger to write to disk

2006-08-25 Thread raja05
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 :

[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?

2006-08-25 Thread raja05
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=bbop=viewtopicp=3967611#3967611 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?

2006-08-25 Thread raja05
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 :

[jboss-user] [JBoss Seam] - Re: Merging objects problems.

2006-08-24 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Cannot get FacesMessages to work

2006-08-23 Thread raja05
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=bbop=viewtopicp=3967046#3967046 Reply to the post :

[jboss-user] [JBoss Seam] - Re: When can @Logger be used?

2006-08-15 Thread raja05
Thanks Petemuir, that was helpful information. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965180#3965180 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965180 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: @PersistenceContext(type=PersistenceContextType.EXTENDED

2006-08-15 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: import hql insert statements at deployment time

2006-08-15 Thread raja05
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 :

[jboss-user] [JBoss Seam] - Re: import hql insert statements at deployment time

2006-08-15 Thread raja05
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 :

[jboss-user] [EJB 3.0] - Re: EJB3 - load Sql Query From Xml Deployment Descriptor

2006-08-14 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: When can @Logger be used?

2006-08-14 Thread raja05
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

[jboss-user] [EJB 3.0] - Re: Persistance.xml in .ear/META-INF

2006-08-14 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Why is there a FacesContext in org.jboss.seam.core?

2006-08-14 Thread raja05
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

[jboss-user] [EJB 3.0] - Re: Displaying EJBs within JavaScript: what about the Entity

2006-08-13 Thread raja05
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

[jboss-user] [EJB 3.0] - Re: Can't find branch for FD8 release, posted documentation

2006-08-13 Thread raja05
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

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
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

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
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=bbop=viewtopicp=3964830#3964830 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
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 :

[jboss-user] [JBoss Seam] - Re: Seam method binding almost right, Seam and value bind

2006-08-13 Thread raja05
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=bbop=viewtopicp=3964873#3964873 Reply to the post :

[jboss-user] [JBoss Seam] - Re: UI Labels and displaying the hash sign #

2006-08-13 Thread raja05
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 |

[jboss-user] [Beginners Corner] - Re: How to cofigure JBoss in a machine where already Tomcat

2006-08-10 Thread raja05
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.

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-08-10 Thread raja05
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=bbop=viewtopicp=3964329#3964329 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Injection problem

2006-08-10 Thread raja05
Does your Register Interface define the register() method ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964337#3964337 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964337 ___

[jboss-user] [JBoss Seam] - Re: When can @Logger be used?

2006-08-10 Thread raja05
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=bbop=viewtopicp=3964401#3964401 Reply to the post :

[jboss-user] [JBoss Seam] - Re: When can @Logger be used?

2006-08-10 Thread raja05
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

[jboss-user] [JBoss Seam] - Re: Seam URLs and request processing

2006-08-09 Thread raja05
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