[jboss-user] [JBoss Seam] - Re: h:selectManyListbox and s:convertEntity don't do the job

2007-10-12 Thread wise_guybg
thanks :) I hope you'll find a smart way to fix this problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094694#4094694 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094694 ___

[jboss-user] [JBoss Seam] - Re: how to force ajax region refresh

2007-09-24 Thread wise_guybg
I agree with Damian that the problem might come from trying to reRender the region. BTW I don't know why people on this forum don't like a4j:outputPanel and use all kinds of seam tags (s:div, s:decorate). Anyways, not important... View the original post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - Re: Will Seam implement Web Beans?

2007-09-23 Thread wise_guybg
To answer myself... Gavin states in a comment on his blog over here: http://in.relation.to/Bloggers/WebBeansSneakPeakPartIIInjectionBindingAnnotationsAndComponentTypes that anonymous wrote : | Probably, Seam will eventually be split into two layers: |1. the core component engine, which wi

[jboss-user] [JBoss Seam] - Will Seam implement Web Beans?

2007-09-23 Thread wise_guybg
I have started reading the "Web Beans Sneak Peek". Months ago, the prospect of JSR 299 made me decide Seam is a good way to go. I haven't read though anywhere about a roadmap that spans to/after the release of the JSR. What will Seam evolve into once the WebBeans spec is out? Is it going to be

[jboss-user] [JBoss Seam] - Re: Further extending an EntityHome

2007-09-23 Thread wise_guybg
Have you not put different @Name annotations? Where exactly do you get the error? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087608#4087608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087608

[jboss-user] [JBoss Seam] - Re: How to configure 2 Session Factories?

2007-09-23 Thread wise_guybg
How do you use the two factories after you configure them? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087607#4087607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087607 ___

[jboss-user] [JBoss Seam] - Re: Hotel Booking sample and Conversation - Why merge?

2007-09-23 Thread wise_guybg
Have you seen the console log of the original code and you proposal? Any differences? I guess merge() is just shorter to type. Both calls will have the same result in the given case. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087605#4087605 Reply to the

[jboss-user] [JBoss Seam] - Re: 1.2.1->2.0.0 migration: No active application scope

2007-09-23 Thread wise_guybg
Shouldn't you post a JIRA request if you consider it a bug? In our application we use "/foo/*", "/bar/*", etc. so we don't have your problem. But I can imagine a case where I would put a login-required=true on all (*) and then login-required=false on the specific pages that can be accessed anon

[jboss-user] [JBoss Seam] - Re: form controls with the same property name

2007-09-23 Thread wise_guybg
I'm wondering about that anonymous wrote : batchCategories.rowIndex How have you realized it? I also did not see how you have called facesMessages.addToControlFromResourceBundle("username", "usernameExists"); You should be using indexes there too, right? View the original post : http://www.jbo

[jboss-user] [JBoss Seam] - Re: Overriding EntityHome.find() results in exception

2007-09-21 Thread wise_guybg
This is maybe related to: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033501 http://opensource.atlassian.com/projects/hibernate/browse/HHH-1938 http://jira.jboss.com/jira/browse/JASSIST-24 Also try putting @Override annotation. Maybe it looks for it... View the original post : http

[jboss-user] [JBoss Seam] - Re: h:selectManyListbox and s:convertEntity don't do the job

2007-09-21 Thread wise_guybg
Hi again, Is there anyone that has experience with selectManyListbox to share his knowledge on the subject? I'm really puzzled with how Seam and JSF do not provide a consistent way to work with ORM in this case. This, given that Seam is stated to "understand ORM"... View the original post : h

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

2007-09-20 Thread wise_guybg
I guess A4T is incredible :) One must spend more time reading articles and the reference manual :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086775#4086775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086775 ___

[jboss-user] [JBoss Seam] - Re: access external resource path

2007-09-20 Thread wise_guybg
Could you give an example of what you experience difficulties writing? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086773#4086773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086773

[jboss-user] [JBoss Seam] - Re: Remove or update entity from a EntityHome.resultList

2007-09-20 Thread wise_guybg
You can override update()/delete() to accept an entity bean. |@Override |public String update(WorkShift workShift) |{ | setInstance(workShift); | return super.update(); |} | You will then have: #{workShiftHome.update(ws)} View the original post : http

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

2007-09-20 Thread wise_guybg
It's ajaxSingle="true" that helps you run your code without following recommendations. In my view a:outputPanel optimizes the AJAX requiest since: anonymous wrote : The component is used for components grouping in the AJAX output area, which offers several additional output opportunities such as

[jboss-user] [JBoss Seam] - Re: Separation of User Interface from Business Layer with Se

2007-09-20 Thread wise_guybg
I guess Guice is also an option: http://code.google.com/p/google-guice/ My opinion is that Seam is a bit heavy for your needs. It depends though... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086739#4086739 Reply to the post : http://www.jboss.com/index.h

[jboss-user] [JBoss Seam] - Re: Remove or update entity from a EntityHome.resultList

2007-09-20 Thread wise_guybg
use h:dataTable and h:column View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086734#4086734 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086734 ___ jboss-user mailing list jb

[jboss-user] [JBoss Seam] - Re: EjbSynchronizations not bound

2007-09-20 Thread wise_guybg
There must be more in that than you minds :) because if jboss-seam.jar is not declared as an ejb module and put in the root of the ear, the tag doesn't work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086680#4086680 Reply to the post : http://www.jboss

[jboss-user] [JBoss Seam] - Re: FYI: Seam 2 CR1 has been released

2007-09-20 Thread wise_guybg
Notice that JSTL is a dependency of Facelets, too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086678#4086678 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086678 ___ jbos

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

2007-09-20 Thread wise_guybg
Well, no. Using a:region and a:outputPanel is the way to do it. I think you have misunderstood the points I have made. Also, as Pete stated, when you use convertEntity you should set/get the value as an entity. So it would be correct to have #{branchHome.instance}. This means when the user sel

[jboss-user] [JBoss Seam] - Re: FYI: Seam 2 CR1 has been released

2007-09-20 Thread wise_guybg
Please note also (in the migration guide) that jboss-seam.jar must be declared as an ejb module in application.xml and should be placed in the root of the ear. BTW What about jstl-1.1.0.jar? Shouldn't that be updated too? View the original post : http://www.jboss.com/index.html?module=bb&op=v

[jboss-user] [JBoss Seam] - Re: EjbSynchronizations not bound

2007-09-20 Thread wise_guybg
May I ask what makes it obligatory for jboss-seam.jar to be declared as an ejb module. I think this was not required before. Any links/documentation on the subject? Here is what I found: http://docs.jboss.com/seam/1.3.0.ALPHA/reference/en/html/tutorial.html vs http://docs.jboss.com/seam/2.0.0.B1

[jboss-user] [JBoss Seam] - Re: EjbSynchronizations not bound

2007-09-20 Thread wise_guybg
The problem was that jboss-seam.jar was also in my /lib folder. I checked out the files in the booking example and confirmed that this was the most probable cause. It works now. I knew it is a configuration problem. Big thanks for the help :) View the original post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Re: EjbSynchronizations not bound

2007-09-20 Thread wise_guybg
My jars are in the /lib folder of the ear. I deploy my application from an exploded folder. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086625#4086625 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086625 __

[jboss-user] [JBoss Seam] - Re: EjbSynchronizations not bound

2007-09-20 Thread wise_guybg
Hi, thanks for the reply. I have seen java:comp/env/ added to one of the examples so I thought I could give it a try. The initial post was without comp/env... Here is my application.xml: | | http://java.sun.com/xml/ns/javaee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-in

[jboss-user] [JBoss Seam] - Re: EjbSynchronizations not bound

2007-09-20 Thread wise_guybg
I see Pete has replied to a lot of posts so I hope I don't get missed this time. I really can't turn on in my application. It's always the same error. And it's difficult to debug since it's the AS that throws an error. I found two topics: http://www.jboss.com/index.html?module=bb&op=viewtopic

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

2007-09-20 Thread wise_guybg
After I noticed that your question has more in it than what my reply was I would add that according to the docs ajaxSingle="true" submits ONLY one field/link, instead of all form controls. So when you put a:support on the selectOneMenu and you don't have region/outputPanel it messes up. When yo

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

2007-09-20 Thread wise_guybg
The first selectOneMenu mus be in a:region and the second one in a:outputPanel (ajaxRendered=true). Ids must be set for those components and not s:decorate. This is more of a A4J problem... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086575#4086575 Reply

[jboss-user] [JBoss Seam] - Re: Conversation related error (UnsupportedOperationExceptio

2007-09-20 Thread wise_guybg
I see no problem in having two @Begin. Where is GALoggedInInterceptor declared to be used? Is it in components.xml? Can you paste some code? So it's GAAccountDetailsAction.showAccount() that gets invoked. Obviously the @Begin here is causing problems. I don't know why redirectToExistingConvers

[jboss-user] [JBoss Seam] - Re: Conversation related error (UnsupportedOperationExceptio

2007-09-19 Thread wise_guybg
What version of Seam are you using? Have you tried with 2.0.0.CR1? I looked around for the usages of Manage.currentConversationIdStack and I don't think an UnmodifiableList is assigned anywhere. Do you make any modifications of values related to conversations? anonymous wrote : I also assigned

[jboss-user] [JBoss Seam] - Re: selectManyCheckbox

2007-09-19 Thread wise_guybg
Actually I wrote about selectManyListBox. If company.category can be a set (I'm not sure about that) shouldn't you at least provide an empty set object? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086155#4086155 Reply to the post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Re: selectManyCheckbox

2007-09-19 Thread wise_guybg
I believe company.category should be a list. You will also have a problem in that JSF passes an Arrays$ArrayList to the setter. I would advise that you keep you company.category and remove the missing (from the new list) items and add the newly selected items. Otherwise you will have a Delete

[jboss-user] [JBoss Seam] - Re: Recovering from a Constraint violation exception

2007-09-19 Thread wise_guybg
If you put it this way then yes... your solution seams good. But I would like to have the check only once. Say as a DB constraint. Otherwise I'll be doing twice the same verification. Sometimes it's easier and faster to implement a db constraint and if you try to mirror that check in the code i

[jboss-user] [JBoss Seam] - Re: Happy Birthday Seam!

2007-09-19 Thread wise_guybg
Really? Well, congratulations for the great work! Baby steps are over :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086119#4086119 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086119 __

[jboss-user] [JBoss Seam] - More code needed

2007-09-19 Thread wise_guybg
Is there something special about EntryDuplicatedException? Also, what is your experience with addDuplicatedMessage()? Does this methog try to access the database in any way? Example of a problem: Let's say UserAction has a method @End | public String save() The UserService tries to merge t

[jboss-user] [JBoss Seam] - Re: problem with s:link

2007-09-19 Thread wise_guybg
Thanks for the invitation! And consider using Facelets for your next project. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086101#4086101 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086101 ___

[jboss-user] [JBoss Seam] - EjbSynchronizations not bound

2007-09-19 Thread wise_guybg
Hi, I updated to Seam 2.0.0.CR1 and tried again (no luck in B1) to set in components.xml. On deploy an exception occurs: anonymous wrote : NameNotFoundException: EjbSynchronizations not bound This is the stack trace: anonymous wrote : | 15:59:24,616 ERROR [SeamPhaseListener] uncaught except

[jboss-user] [JBoss Seam] - Re: problem with s:link

2007-09-19 Thread wise_guybg
What about this: | | | Projects | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewto

[jboss-user] [JBoss Seam] - Re: problem with s:link

2007-09-19 Thread wise_guybg
Yes, I was wrong. I use Facelets. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086038#4086038 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086038 ___ jboss-user mailing li

[jboss-user] [JBoss Seam] - Re: FYI: Seam 2 CR1 has been released

2007-09-19 Thread wise_guybg
Yes, it's JBoss 4.2 that supports it. You can put all your library jars in the /lib directory instead of root and skip declaring them in application.xml. It doesn't matter if you deploy from an exploded directory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p

[jboss-user] [JBoss Seam] - Re: problem with s:link

2007-09-19 Thread wise_guybg
I think is superfluous View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086000#4086000 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086000 ___ jboss-user mailing list jboss-u

[jboss-user] [JBoss Seam] - Re: Passing datasource parameter to

2007-09-19 Thread wise_guybg
You seam to have both the same problem. I'm also interested to see if there is a solution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085998#4085998 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085998 ___

[jboss-user] [JBoss Seam] - Re: FYI: Seam 2 CR1 has been released

2007-09-19 Thread wise_guybg
[EMAIL PROTECTED]: I would suggest you go by the Application 5 specification and instead of describing each jar file in the application.xml, you put them all in /lib inside your EAR. [EMAIL PROTECTED]: I want to ask if JSTL library should be updated. Version 1.1.0 is provided while there exists

[jboss-user] [JBoss Seam] - Re: form controls with the same property name

2007-09-19 Thread wise_guybg
Normally you wouldn't have components with the same name. Why don't you add an index next to the name. Ex.: username1, username2... Either way if you want them referenced from/to a backing bean you should have different fields!? View the original post : http://www.jboss.com/index.html?module=b

[jboss-user] [JBoss Seam] - Re: org.hibernate.exception.GenericJDBCException: Cannot ope

2007-09-19 Thread wise_guybg
I'm facing the same problem but with another idea in my mind: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118991 I have been dealing with a similar problem in a previous project at work where we used Hibernate. The solution was to create a backing session that will help you recover

[jboss-user] [JBoss Seam] - Re: Recovering from a Constraint violation exception

2007-09-19 Thread wise_guybg
fernando_jmt: Could you please post a link of the topic you're talking about. I couldn't find it in the forum. supernovasoftware.com: Manual and Hibernate Validation are one thing. Database constraints are another thing. Currently I have a problem handling exceptions from the database. One coul

[jboss-user] [JBoss Seam] - Re: Seam Captcha configuration

2007-09-18 Thread wise_guybg
Thanks Shane. Could you please check my comment in Jira if this can be released with CR1? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085860#4085860 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085860

[jboss-user] [JBoss Seam] - Recovering from a Constraint violation exception

2007-09-18 Thread wise_guybg
Hi, I have an application using Seam 2.0.0.B1. A colleague was complaining that he cannot recover from a ConstraintViolationException. On a certain string field in the database there is a unique constraint. When the user tries to enter an existing value the database checks the constraint and an

[jboss-user] [JBoss Seam] - h:selectManyListbox and s:convertEntity don't do the job

2007-09-18 Thread wise_guybg
Hi, A colleague today showed me a problem with a page in our application (Seam 2.0.0.B1). When a user opens an Exam he previously created for editing, there is a list (SelectManyListbox) of providers he can select from. Saving the form without modifying the selected (two) items, results in a del

[jboss-user] [JBoss Seam] - Re: Seam Captcha configuration

2007-09-17 Thread wise_guybg
FYI Notice that yesterday this was fixed for the 2.0.0.GA version: http://jira.jboss.com/jira/browse/JBSEAM-865 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085335#4085335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p

[jboss-user] [JBoss Seam] - Re: Seam Captcha configuration

2007-09-17 Thread wise_guybg
To quote myself: anonymous wrote : Oops, the code I provided only displays a custom captcha image, it cannot perform the validation. You have to create a custom "captcha" component. The captcha classes provided by Seam are tightly related so you have to create a new copy of all of them if you

[jboss-user] [JBoss Seam] - Re: Error on core:resource-loader

2007-09-14 Thread wise_guybg
So it's only a validation error by Eclipse and you can turn it off? I guess it's more of an Eclipse problem. Seam's fine. Maybe there is some problem with a cache file that has stored wrong references... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084607#

[jboss-user] [JBoss Seam] - Re: Error on core:resource-loader

2007-09-14 Thread wise_guybg
Did you have a before? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084554#4084554 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084554 ___ jboss-user mailing list jboss-u

[jboss-user] [JBoss Seam] - Re: ClassNotFoundException: org.jboss.seam.async.package-inf

2007-09-12 Thread wise_guybg
OK, I found it. A colleague has recompiled jboss-seam.jar using Java 1.6 I'm sorry about the unnecessary topic... Fortunately the problem pushed me to dig into Seam's inner-workings thus better understand the framework. View the original post : http://www.jboss.com/index.html?module=bb&op=view

[jboss-user] [JBoss Seam] - ClassNotFoundException: org.jboss.seam.async.package-info

2007-09-12 Thread wise_guybg
Hi, I'm using Seam 2.0.0.B1 on JBoss AS 4.2.1.GA. Application built with IntelliJ IDEA 6.0.5. Recently my application decided it doesn't want to deploy anymore. I would really appreciate if someone can give me an idea what can be wrong. Thanks. Note: I have removed all cache files I could think

[jboss-user] [JBoss Seam] - Re: internationalization question

2007-09-12 Thread wise_guybg
Hi, You can have the localeSelector component injected in your authenticator component: @In | LocaleSelector localeSelector; And in the authenticate method: localeSelector.setLocaleString(l); | localeSelector.select(); There are other setters available, too. I use setLocaleString() because

[jboss-user] [JBoss Seam] - Re: Two seam components with same name

2007-09-11 Thread wise_guybg
That would be nice. Thanks for the reply. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083206#4083206 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083206 ___ jboss-user ma

[jboss-user] [JBoss Seam] - Two seam components with same name

2007-09-11 Thread wise_guybg
Hi, I'm running Seam 2.0.0.B1 and I have the following lines in the console: anonymous wrote : | 16:13:37,004 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider | 16:13:37,051 INFO [Initialization] two components with

[jboss-user] [JBoss Seam] - Re: Error on core:resource-loader

2007-09-04 Thread wise_guybg
Oops, sorry. Seam doesn't find any problems in the xml code. It's IntelliJ IDEA that was complaining. I restarted the system and now it's fine. Thanks... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081171#4081171 Reply to the post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Error on core:resource-loader

2007-09-04 Thread wise_guybg
Hi, I receive the following syntax error on my components.xml when I got some new files from CVS: anonymous wrote : The matching wildcard is strict, but no declaration can be found for element 'core:resource-loader'. Here's a snippet. http://jboss.com/products/seam/components"; | x

[jboss-user] [JBoss Seam] - Re: Reducing size of the default JBoss AS 4.2.1 server for S

2007-09-03 Thread wise_guybg
Hi, this url was posted a while ago: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossASTuningSliming View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080395#4080395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080395

[jboss-user] [JBoss Seam] - Re: Exception calling stateful session bean default @Remove

2007-08-31 Thread wise_guybg
anonymous wrote : (check that it is declared on the session bean business interface) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079956#4079956 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079956 _

[jboss-user] [JBoss Seam] - Re: Exception in JBoss console, the root is java.lang.NoClas

2007-08-31 Thread wise_guybg
Also notice that the code that is causing this to happen is: anonymous wrote : 14:26:04,765 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:196) | 14:26:04,765 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$Sessio

[jboss-user] [JBoss Seam] - Re: Exception in JBoss console, the root is java.lang.NoClas

2007-08-31 Thread wise_guybg
Are you really "occasionally" getting a NoClassDefFoundError exception? Have you included the jbpm jar? It has to be either in a /lib directory inside your ear, or in the root of the ear with a declaration for the jar in application.xml Are you using jbpm in your application? View the original

[jboss-user] [JBoss Seam] - Re: PermGen out of memory !!??

2007-08-31 Thread wise_guybg
anonymous wrote : This error occurs when the JVM runs out of space in the permanent generation heap. (first result from http://www.google.bg/search?q=PermGen) In my C:\jboss-4.2.1.GA\bin\run.bat I have a line tuned like so: set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPe

[jboss-user] [JBoss Seam] - Re: Problems with scopes

2007-08-31 Thread wise_guybg
btw I was not talking about org.ajax4jsf.framework.skin.SkinBean but org.richfaces.SkinBean Here is the code: http://www.koders.com/java/fidF65263F05876F2FFF880E94E1796E5FAD6058E33.aspx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079921#4079921 Reply to the

[jboss-user] [JBoss Seam] - Re: Problems with scopes

2007-08-31 Thread wise_guybg
This really sound like a SkinSelector similar to the ThemeSelector :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079919#4079919 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079919 _

[jboss-user] [JBoss Seam] - Re: Problems with scopes

2007-08-31 Thread wise_guybg
Did the SkinBean do the job? If you can use it, there is no need for Seam to get involved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079910#4079910 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079910 ___

[jboss-user] [JBoss Seam] - Re: How to get EntityManager without @In?

2007-08-31 Thread wise_guybg
Try Component.getInstance("entityManager", true) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079880#4079880 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079880 ___ jboss-

[jboss-user] [JBoss Seam] - Re: Problems with scopes

2007-08-31 Thread wise_guybg
Thanks for sharing: EVCPGSskinability.pdf - "Modifying the Skin Dynamically" I didn't know about this feature until now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079874#4079874 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mo

[jboss-user] [JBoss Seam] - Re: Problems with scopes

2007-08-31 Thread wise_guybg
The bean they specify in the pdf is session scoped: | infoBean | sample.InfoBean | session | | skin | classic | | The expression you specify in web.xml must point to a session bean. Your user bean will not be initialized at login I s

[jboss-user] [JBoss Seam] - Re: Problems with scopes

2007-08-31 Thread wise_guybg
Zdravei, It's reasonable to think that the skin initialization takes place at application start up. Besides, setting a context-param with a bean (user) in a scope other than application or session looks strange to me. This is an initialization parameter after all. I suppose that org.ajax4jsf.

[jboss-user] [JBoss Seam] - Re: Themes question

2007-08-30 Thread wise_guybg
I guess you could install a custom filter using @Filter: http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/configuration.html#d0e12795 Detect the spider. (Chris has given some clues on how to do that) Change the theme accordingly, using the themeSelector component. Example: @In | ThemeSelec

[jboss-user] [JBoss Seam] - Re: UnsupportedOperationException when using h:selectManyLis

2007-08-29 Thread wise_guybg
Thanks, that worked. As it turns out, there is no need to call entityManager.merge() at all. As the Exam entity is always in the entityManager, any call to entityManager.flush() will do the job of updating the database. I guess no one has got my problem because I shouldn't have called merge() i

[jboss-user] [JBoss Seam] - UnsupportedOperationException when using h:selectManyListbox

2007-08-29 Thread wise_guybg
Hi, I receive an UnsupportedOperationException when I try to call entityManager.merge(exam) Here is a part of the stack trace: anonymous wrote : java.util.AbstractList.clear(AbstractList.java:217) | org.hibernate.type.CollectionType.replaceElements(CollectionType.java:445) | org.hibernate.ty

[jboss-user] [JBoss Seam] - Re: URL parameter

2007-08-23 Thread wise_guybg
In my Seam 2.0.0.BETA1 there is also a class Parameters (component name: org.jboss.seam.web.parameters) It has a getRequestParameters() method. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077310#4077310 Reply to the post : http://www.jboss.com/index.html

[jboss-user] [JBoss Seam] - Re: URL parameter

2007-08-23 Thread wise_guybg
Here is an example of the use of RequestParameter import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.RequestParameter; | | @Name("detail") | public class Detail | { | | @RequestParameter | Long entryId; | | pub

[jboss-user] [JBoss Seam] - Re: URL parameter

2007-08-23 Thread wise_guybg
To have the parameter injected in a field inside your component you can do: @RequestParameter | String id; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077279#4077279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4

[jboss-user] [JBoss Seam] - Re: Using JSF + POJO + EntityBean design

2007-08-23 Thread wise_guybg
I guess WebBeans will come into play to clear this up for the EJB. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077252#4077252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077252

[jboss-user] [JBoss Seam] - Re: Failure to create and deploy a Seam project using the ne

2007-08-23 Thread wise_guybg
Here is a thread from today on session beans and seam components: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116783 About switching to just Hibernate I'm not OK with that. What have you changed in you configuration? You should stick to JPA with Hibernate as the persistence provider

[jboss-user] [JBoss Seam] - Re: How are @In(create = true) and @Name connected?

2007-08-23 Thread wise_guybg
Thanks for the explanation. It has helped me turn my attention on the In annotation. Here is what the javadoc states: |/** | * Specifies that a component should be instantiated | * if the context variable is null. | */ |boolean create() default false; | and have

[jboss-user] [JBoss Seam] - Re: Failure to create and deploy a Seam project using the ne

2007-08-23 Thread wise_guybg
I've had some configuration issues when porting my application from Seam 1.2.1.GA, where I had an entity manager named "em", to Seam 2.0.0.BETA1. I decided to simply name the fields entityManager. This way no additional configuration is needed to have it bijected everywhere in the framework and

[jboss-user] [JBoss Seam] - Re: Failure to create and deploy a Seam project using the ne

2007-08-23 Thread wise_guybg
Name the field in the "register" component entityManager not em. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077231#4077231 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077231

[jboss-user] [JBoss Seam] - Re: Failure to create and deploy a Seam project using the ne

2007-08-23 Thread wise_guybg
You can use SMPC (Seam Managed Persistence Context if I'm right) using the @In and the correct field name. Example: @In | EntityManager entityManager; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077190#4077190 Reply to the post : http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Re: How are @In(create = true) and @Name connected?

2007-08-23 Thread wise_guybg
Yes, @Out needs a not-null value and this is why I added create=true. My question is why does the creation depend on whether I have @Name or not. BTW Is there a case in which problems arise from having @Name("examData") and a field @In @Out ExamData examData? View the original post : http://ww

[jboss-user] [JBoss Seam] - How are @In(create = true) and @Name connected?

2007-08-23 Thread wise_guybg
Hi, In the application I work on all entity beans had an @Name. I considered this unnecessary and removed it. I tested the application and on one page an NPE occured. It was complaining that a field with @Out had a null value. This field is declared like this: @In(required = false, create = true

[jboss-user] [JBoss Seam] - Re: and SeamTest

2007-08-22 Thread wise_guybg
http://jira.jboss.com/jira/browse/JBSEAM-1771 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077142#4077142 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077142 ___ jboss-use

[jboss-user] [JBoss Seam] - Re: Seam 2.0 Beta booking test

2007-08-22 Thread wise_guybg
I saw the same exception in my application. It appeared when I added There is a JIRA report: http://jira.jboss.com/jira/browse/JBSEAM-1771 Related to this thread: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071599 Seems that it is fixed in Seam 2.0.0.CR1 View the original post

[jboss-user] [JBoss Seam] - Re: When to use SessionBeans and when Pojos?

2007-08-22 Thread wise_guybg
Yesterday I was about to create a similar thread when I found this: http://docs.jboss.org/seam/2.0.0.B1/reference/en/html/concepts.html It doesn't explain all the details but is a good guide. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077140#4077140 Reply

[jboss-user] [JBoss Seam] - Re: EntityManagerFactory not found in JNDI : java:/poctestEn

2007-08-22 Thread wise_guybg
You have not configured poctestEntityManagerFactory in the persistence.xml Snippet: | | org.hibernate.ejb.HibernatePersistence | java:poctest1Datasource | | | PS code tag used here View the original post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss Seam] - Re: Interceptor.onLoad not called

2007-08-17 Thread wise_guybg
ok, sorry View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075216#4075216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075216 ___ jboss-user mailing list jboss-user@lists.jbos

[jboss-user] [JBoss Seam] - Interceptor.onLoad not called

2007-08-17 Thread wise_guybg
Hi, I have a Seam 1.2.1.GA application. I installed an implementation of the interface org.hibernate.Interceptor and declared it in the persistence.xml as hibernate.ejb.interceptor. The interceptor works (ex.: onSave(), onFlushDirty()) except that onLoad() doesn't get called. I don't know what

[jboss-user] [JBoss Seam] - Re: Seam Captcha configuration

2007-08-15 Thread wise_guybg
Oops, the code I provided only displays a custom captcha image, it cannot perform the validation. You have to create a custom "captcha" component. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074371#4074371 Reply to the post : http://www.jboss.com/index.ht

[jboss-user] [JBoss Seam] - Re: Captcha - custom message

2007-08-15 Thread wise_guybg
http://jira.jboss.org/jira/browse/JBSEAM-1153 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074355#4074355 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074355 ___ jboss-use

[jboss-user] [JBoss Seam] - Re: Seam and Captcha

2007-08-15 Thread wise_guybg
While waiting for the fix, a workaround is posted here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=108972 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074352#4074352 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [JBoss Seam] - Re: Seam Captcha configuration

2007-08-15 Thread wise_guybg
While waiting for the team to provide a way to configure captcha I have elaborated a tweak that I want make sure is correct. I have subclassed CaptchaImage like so: | @Startup | @Scope(APPLICATION) | @Name("mycaptchaimage") | @Intercept(NEVER) | @Install(precedence = BUILT_IN, |

[jboss-user] [JBoss Seam] - Re: Seam Captcha configuration

2007-08-15 Thread wise_guybg
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=101885 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074349#4074349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074349 ___

[jboss-user] [JBoss Seam] - Re: 12.8.2 Captcha

2007-08-15 Thread wise_guybg
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=102097 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074348#4074348 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074348 ___

[jboss-user] [JBoss Seam] - Re: taskInstanceListForType Size

2007-08-01 Thread wise_guybg
Hi, Didn't understand your question about the string and the component but you can read about size() in the reference manual http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/elenhancements.html#d0e17520 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=406

[jboss-user] [JBoss Seam] - Re: Best Seam Development Environment? (Switch from MC to EJ

2007-07-30 Thread wise_guybg
anonymous wrote : I really don't want to restart the container every time i change a *xhtml file You should run you application from an exploded folder. For my AuthApplication I have a folder named AuthApplication.ear Inside there is META-INF, AuthEJB.jar (exploded folder), AuthWebApp.war (exp

  1   2   >