[jboss-user] [JBoss Seam] - Re: When are components created?

2006-08-22 Thread [EMAIL PROTECTED]
STATELESS components are created every time they are used, not EVENT components :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966865#3966865 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966865 __

[jboss-user] [JBoss Seam] - Re: When are components created?

2006-08-22 Thread SmokingAPipe
And now I have my CountrySelect class working, I figured out that instead of returning a Map, it needs to return a List of SelectItems. So I got that done. Then I found out that, because I'm using an enum for my Country, I need to write a Converter for that. Which turned out to be very easy t

[jboss-user] [JBoss Seam] - Re: When are components created?

2006-08-22 Thread SmokingAPipe
Ah, I found out the problem. In my entity class, I had a @Roles(...) annotation which gave role names and scopes. I thought that would be enough to use the object. No! A @Name annotation must be present, even if the given name is not used. View the original post : http://www.jboss.com/inde

[jboss-user] [JBoss Seam] - Re: When are components created?

2006-08-22 Thread SmokingAPipe
And again, I'm back to "error during model data update". I assume that that error is happening because the object is null. And yet the object has a CONVERSATION scope, so it seems to me that it should always exist as long as their is a conversation. Is there some way to tell seam, "Please cre

[jboss-user] [JBoss Seam] - Re: When are components created?

2006-08-22 Thread SmokingAPipe
I figured out a way to do it. I created a new class, called CountrySelect. I gave it a name, and an Application scope, and one method, which is getCountryMap. So that works now. I suppose if a class has APPLICATION scope, only one instance of it is created? View the original post : http:/

[jboss-user] [JBoss Seam] - Re: When are components created?

2006-08-22 Thread SmokingAPipe
This seems like a step backwards from JSP. Here's the problem I'm facing: I have a signup form where users can select their country. There are about 200 countries, and a I have an enum that lists them all, and within that enum class there is also a static member which is a Map that maps keys o

[jboss-user] [JBoss Seam] - Re: When are components created?

2006-08-21 Thread petemuir
When the component is instantiated it will live in the event scope NOT the component will be instantiated whenever the event scope is accessed. There is no way (AFAIK) of doing this. Beans are instantiated when they are accessed (via @In, @Out, accessed from a JSF page etc.) View the original