[jboss-user] [JBoss Seam] - Re: Security questions to the Seam team

2008-02-05 Thread b.reeve
I downloaded the latest Seam 2.0.1.GA release and I still have issues with 
Authenticator method being invoked twice.

Based on the solution here, the authenticate() method is invoked with 
isLoggedIn(false), but then when there is a navigation rule like this


  | page view-id=/login.xhtml   
  | navigation
  | rule if=#{identity.loggedIn}
  | redirect view-id=/home.xhtml /
  | /rule
  | /navigation
  | /page
  | 

the isLoggedIn(true) is being invoked and so there is another attempt to login.

I see that this is the same configuration in all the example applications too.

Is there a way to prevent the authenticator from invoking the login twice.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4126842#4126842

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126842
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r

2007-12-27 Thread b.reeve
please refer to 

[url]
http://jira.jboss.com/jira/secure/ReleaseNote.jspa?version=12311437styleName=HtmlprojectId=10071Create=Create
[/url]

anonymous wrote : 
  | * [JBSEAM-2165] - Authenticator method invoked twice when login fails
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115762#4115762

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115762
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r

2007-12-26 Thread b.reeve
Hi,

I downloaded Seam 2.0.1 CR1 to test the Authenticator method being called twice 
when the login method returns false and it looks like this issue is still 
there. 

Could anyone please provide some insight.

Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4115540#4115540

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4115540
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Identity.loggedIn and Session expiring

2007-12-20 Thread b.reeve
Thanks for the replies,
I finally got that ruleset working by configuring


  | page view-id=/login.xhtml 
  |navigation from-action=#{identity.login} 
  |   rule if=#{identity.loggedIn}
  |  redirect view-id=/#{loginBean.navigation}.xhtml /  
  |   /rule
  |/navigation
  | /page
  | 

Is there any drawback in implementing it this way.

Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4114734#4114734

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114734
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Identity.loggedIn and Session expiring

2007-12-17 Thread b.reeve
Thank you for the answers.
anonymous wrote : 
  | Not yet implemented. This is the best way to do what you are AFAICS. 
  | 

Does this mean that there are plans for adding this to future release?

anonymous wrote : 
  | Null in JSF means stay on the same page.
  | 
But I am getting the page navigated according to some rule (defined in 
pages.xml) when the return type is null.


  | 1. Also, Is there a way I can disable Seam from adding the default seam 
messages to FacesMessage apart from giving a value for that key in the resource 
bundle?
  | 
  | 2. Is there some way to do something like,
  | 
  | pages.xml
  | 
  |   | page view-id=/login.xhtml 
  |   |navigation from-action=#{identity.login} 
  |   |   rule if=#{identity.loggedIn} 
  |   |   evaluate=#{loginBean.navigation} 
  |   |  rule if-outcome=pageA 
  |   | redirect view-id=/pageA.xhtml /
  |   |  /rule
  |   |  rule if-outcome=pageB 
  |   | redirect view-id=/pageB.xhtml /
  |   |  /rule
  |   |  rule if-outcome=landing 
  |   | redirect view-id=/index.xhtml /
  |   |  /rule
  |   |   /evaluate
  |   |/rule
  |   |/navigation
  |   | /page
  |   | 
  | 
  | so that my evaluate would be evaluated only if certain condition is met and 
not always.
  | 
  | Thanks again for helping!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4113514#4113514

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113514
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r

2007-12-17 Thread b.reeve
Isn't this referring to 

http://jira.jboss.org/jira/browse/JBSEAM-2165

and it says it is fixed in CVS. Is it out in 2.0.0.GA? I am still having this 
issue in 2.0.0.GA.

Could anyone please clarify.

Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4113516#4113516

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113516
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r

2007-12-17 Thread b.reeve
Sorry my mistake. I read it as 2.0.0.CR1.

Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4113599#4113599

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113599
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Identity.loggedIn and Session expiring

2007-12-11 Thread b.reeve
Hello !


  | 1. Is there a way we can map identity.loggedIn to a method to keep checking 
against some criteria. For eg: If I want to redirect the user to login page 
when the session expires, can I configure identity.loggedIn = 
loginBean.sessionExpired.
  | 
  | 2. Or, I found in the forum that an event can be raised for sessionExpired. 
But then how do I redirect the user to myLogin page on this event. 
  | 
  |   | event type=org.jboss.seam.sessionExpired
  |   |action execute=#{redirect.toSomeViewID}/
  |   |   /event
  |   | 
  | 
  | 3. Also if I do 
  | 
  |   | page view-id=* action=#{loginBean.sessionExpired}
  |   |navigation
  |   |   rule if=login
  |   |   redirect view-id=/index.xhtml /
  |   |   /rule
  |   |/navigation
  |   | /page
  |   | 
  | what happens when sessionExpired method returns null
  | 
  | Any help would be appreciated.
  | 
  | Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4112115#4112115

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam security / identity.logout

2007-12-06 Thread b.reeve
On further research I found this.

http://jira.jboss.org/jira/browse/JBSEAM-2165

It has been fixed in the new release.

Thanks !!!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4111045#4111045

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111045
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam security / identity.logout

2007-11-30 Thread b.reeve
I think I put it the wrong way.
What I meant to say is i have mapped 

  | security:identity authenticate-method=#{loginBean.login}/
  | 

and the loginBean.login method is something like

  | public boolean login(){
  | boolean succeeded = loginAction.login();
  | return succeeded;
  | }
  | 

so this method is called twice when succeeded = false and is called just once 
when suceeded = true

so when i debugged i see that Identity class's authenticate method is getting 
called twice. Why is trying to call loginBean.login again???


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109413#4109413

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109413
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam security / identity.logout

2007-11-29 Thread b.reeve
Thanks Shane.

I see one more behavior 
When i provide the wrong username or password, my configured login method is 
being called twice. On debugging I see that the method authenticate of Identity 
class

  | public void authenticate() 
  |   throws LoginException
  |{
  |   // If we're already authenticated, then don't authenticate again
  |   if (!isLoggedIn())
  |   {
  |  authenticate( getLoginContext() );
  |   }
  |}
  | 

is getting called again when my login fails. And once more it runs through my 
login method and completes. 

I am returning true on sucessful login and false on failure and I am checking 
#{identity.loggedIn} in my pages.xml file. But that is getting called at the 
very end which is correct, but I can't understand why authenticate is called 
once again when the login returns false.

Any thoughts about this would be really helpful as there is a whole lot of code 
going inside my login and I dont want it to be called unnecessarily.

Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109028#4109028

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Intercepting Seam components/Support for AspectJ

2007-11-28 Thread b.reeve
Thank you for the briefing... it really helped.  
Is it possible to annotate just the super interface and its concrete 
implementations will be intercepted. (I dont want to annotate all my classes 
for logging interception)
  | 
  | Is there any drawbacks in using this kind of interception for logging 
purpose? ( i think that AspectJ would have been a best choice if Seam had any 
support for it)
  | 
  | Would there be any performance hit in using seam interception as opposed to 
normal logging.
  | 
  | 
  | Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108643#4108643

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108643
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam security / identity.logout

2007-11-28 Thread b.reeve
Is there a way to map identity.logout to some component method if there is 
something to be done while logging out.
Just as we map identity.login=authenticator.authenticate, can we map 
identity.logout=authenticator.logout also? Or overriding identity.logout?

Thanks in Advance !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108675#4108675

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108675
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam security / identity.logout

2007-11-28 Thread b.reeve
Thanks, it worked. I had another question too...
I am configuring my identity.login to loginBean.login and my loginBean class is 
like

  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Name;
  | 
  | @Name(loginBean)
  | public class LoginBean {
  | 
  | @In(#{identity.username})
  | private String username;
  | 
  | @In(#{identity.password})
  | private String password;
  | 
  | public boolean login() {
  | //login code here
  | return true;
  | }
  | 
  | public void logout(){
  | //logout code here
  | }
  | 
  | }
  | 


  | ?xml version=1.0 encoding=UTF-8?
  | components xmlns=http://jboss.com/products/seam/components;
  | xmlns:core=http://jboss.com/products/seam/core;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=
  | http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-2.0.xsd 
  |  http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-2.0.xsd;
  | 
  | security:identity authenticate-method=#{loginBean.login}/
  | 
  | event type=org.jboss.seam.loggedOut
  | action execute=#{loginBean.logout}/
  | /event
  | 
  | /components
  | 

I am getting @In required exception during logout only for password field. 
identity.username is still there and its not complaining. Just wanted to double 
check if this is the normal behavior that identity.password will be flushed out 
once the user is authenticated while the username remains. Or am I missing 
something. 
Is it because the username is stored in the cookie. Please advice.

Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108730#4108730

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108730
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Intercepting Seam components/Support for AspectJ

2007-11-26 Thread b.reeve
Thank you Jacob for the solution. 

I tired implementing the method-level annotation as explained in your blog. It 
totally works.

But still it needs to be configured from the component perspective. 

I dont have EJB's in my application. So using the EJB interceptor for 
configuring the pattern matching interception is not viable for me. I will look 
more into Stereotypes. 

InvocationContext regex seems to be a good option. Could you please point me to 
some sample code for implementing the regex on InvocationContext. 

Thanks !


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107883#4107883

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Intercepting Seam components/Support for AspectJ

2007-11-20 Thread b.reeve
I am working on a Seam project with Facelets and Spring on Tomcat. Enviroment 
is Seam 2.0.0.CR2, Tomcat 6.0.10, Facelets 1.2, Spring 2.0. 

Could anyone please tell me if there is a way to do intercepting on Seam 
components using AspectJ just as we do with Spring beans? Is there a way to 
create custom Seam interceptors and configure them for intercepting the Seam 
components. I dont have EJBs in my project. 

Here is what I tried to do

  | public class LoggingInterceptor {
  | @Logger
  | private Log log;
  | 
  | @AroundInvoke
  | public Object componentLog(InvocationContext invocation) throws 
Exception{
  | log.info(Logging for component  + 
invocation.getTarget().getClass().getCanonicalName());
  | Object returnType = invocation.proceed();
  | log.info(Logging for component  + 
invocation.getTarget().getClass().getCanonicalName());
  | return returnType;
  | }
  | 
  | }
  | 


  | @Interceptors(LoggingInterceptor.class)
  | public @interface Logging {}
  | 


  | 
  | @Name(loginBean)
  | @Scope(ScopeType.SESSION)
  | @Logging
  | public class LoginBean {
  | 
  | private String username;
  | private String password;
  | 
  | public String login() { 
  | return loginAction.login(username, password);
  | }
  | 
  | public String getUsername() {
  | return username;
  | }
  | public void setUsername(String username) {
  | this.username = username;
  | }
  | public String getPassword() {
  | return password;
  | }
  | public void setPassword(String password) {
  | this.password = password;
  | }
  | }
  | 

I dont see the interceptor class being called. How do I make the method login() 
being intercepted? Where do I configure the interceptor class to be 
instantiated? Is there any sample code that I can refer to.

Thanks in Advance...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106492#4106492

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106492
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Intercepting Seam components/Support for AspectJ

2007-11-20 Thread b.reeve
Hi Jacob,
Thanks for the reply. I tried it that way and it worked. 
I had few doubts too. 

1. Is there a way to intercept just the methods and not the class.
2. Is there any way to collectively configure a set of classes or pattern in 
the interceptor as we do with Spring. (So that we dont have to modify the seam 
component at all)

Thanks in advance...



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106566#4106566

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106566
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam built-in components not working with Woodstock !!!

2007-10-25 Thread b.reeve
Seems like this should be of high priority. I have an application with 
Woodstock + Seam +Spring in the stack. I get any 2 of these working together 
but not the 3. 
For example: I have a seam bean having Spring bean injected into it. When i try 
to set any input field into this Seam bean, it is not working with Woodstock. 
But the spring bean is getting injected. 
 1. If i remove Woodstock from the classpath, everything is working fine. (Seam 
+ Spring = works fine)
 2. If I remove Spring injection, field setters are getting called. (Woodstock 
+Seam (without seam -spring integration) = works fine)
 3. If I remove Seam from the stack, everything works fine. (Woodstock + Spring 
= works fine)
I am not able to figure out any work around for this situation. I really need 
help. Because, seems like I have to choose among Woodstock and Seam, but I 
really wish i could use the combination. 
Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098947#4098947

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098947
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam built-in components not working with Woodstock !!!

2007-10-25 Thread b.reeve
My Environment now is

Seam : 2.0.0.CR2
Woodstock : 4.1
JSF : 1.2
Java : 5.0
Tomcat : 6.0.10

These are the files that I have

Employee.java

  | package test.injection;
  | 
  | import java.io.Serializable;
  | 
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  | 
  | @Name(employeeBean)
  | @Scope(ScopeType.SESSION)
  | public class Employee implements Serializable{
  | 
  | private String name;
  | 
  | @In(value=#{departmentSpring})
  | private DepartmentSpringBean departmentSpring;
  | 
  | public String getName() {
  | return name;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | public String addEmployee(){
  | System.out.println(Name =  + getName());
  | return /success.xhtml;
  | }
  | }
  | 

DepartmentSpringBean.java

  | 
  | package test.injection;
  | 
  | 
  | public class DepartmentSpringBean {
  | 
  | private String departmentName;
  | 
  | public DepartmentSpringBean(){  
  | }
  | 
  | public String getDepartmentName() {
  | return departmentName;
  | }
  | 
  | public void setDepartmentName(String departmentName) {
  | this.departmentName = departmentName;
  | }
  | 
  | }
  | 

spring.xhtml

  | 
  | !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | html xmlns=http://www.w3.org/1999/xhtml;
  |   xmlns:ui=http://java.sun.com/jsf/facelets;
  |   xmlns:h=http://java.sun.com/jsf/html;
  |   xmlns:f=http://java.sun.com/jsf/core;
  |   head/head
  | body
  | h:form id=testInjectionForm
  | h:inputText value=#{departmentSpring.departmentName} 
/  
  | h:inputText value=#{employeeBean.name} /
  | h:commandLink action=#{employeeBean.addEmployee} 
value=Add Employee / 
  | /h:form
  | 
  | /body
  | /html
  | 

applicationContext.xml

  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN 
http://www.springframework.org/dtd/spring-beans.dtd;
  | beans   
  | bean id=departmentSpring class=test.injection.DepartmentSpringBean 
/
  | /beans 
  | 

On running the app, we can see that the seam bean setter (setName) is never 
called but Spring bean setter is called and also Spring bean is injected into 
the Seam component. Any ideas, suggestions would be helpful.

Thanks!


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099034#4099034

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099034
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam built-in components not working with Woodstock !!!

2007-10-22 Thread b.reeve
  Seam : 1.2.1
  JDK : 5
  Woodstock : 4.1
  Server : Tomcat 6.0.10

I just had the seam built-in component conversationList in one of my pages 
and accessing the page throws UnsupportedOperationException. When i remove the 
Woodstock jar files from the classpath, it works fine.
Thanks!


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4097577#4097577

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097577
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-22 Thread b.reeve
This issue is resolved. I didn't have jboss-seam-ioc.jar file in my classpath 
(not mentioned in the document). Here is the resolution.

Seam-Spring integration :- Spring framework integration module of Seam requires 
the jboss-seam-ioc.jar file to be in the classpath. The Spring bean injection 
would work otherwise also if you have the DelegatingVariableResolver configured 
in faces-config.xml. But the spring:context-loader component won't work without 
the ioc jar and the spring context wont be loaded at all unless you have the 
ContextLoaderListener configured in the web.xml).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4097599#4097599

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097599
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam built-in components not working with Woodstock !!!

2007-10-21 Thread b.reeve
Could anyone please reply to this thread. Seam-Woodstock stack issue!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4097260#4097260

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097260
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnsupportedOperationException at conversationList

2007-10-19 Thread b.reeve
I am using Woodstock component library and its because of the Woodstock 
UIComponentELResolver, that the seam built-in components are not working. 

Is there any way this can be resolved so that we can use Woodstock and Seam 
together?

Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4097048#4097048

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097048
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnsupportedOperationException at conversationList

2007-10-18 Thread b.reeve
Seam version is 1.2.1 and JSF version is 1.2. 

I am getting UnsupportedOperationException while accessing several built-in 
Seam components.
1. conversationList
2. localeSelector
3. messages
Any ideas would be really helpful. 
Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096635#4096635

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096635
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-18 Thread b.reeve
Yes it is. 
I am getting all my components installed on running the test case. And the test 
case works for components testing also. Its just the Spring bean is not 
resolved. ELResolver throws the exception.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096648#4096648

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096648
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-18 Thread b.reeve
Sure, I will send over my project environment to you.
Thanks...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096756#4096756

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096756
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam built-in components not working with Woodstock !!!

2007-10-18 Thread b.reeve
I found that Seam built-in components wont work if you have Woodstock libraries 
in your classpath.
I tried removing the Woodstock libraries and everything works fine. 

These are the jar files that i have
1.  dataprovider.jar
  | 2.  dojo-0.4.3-ajax.jar
  | 3.  json.jar
  | 4.  prototype-1.5.0.jar
  | 5.  webui-jsf.jar
  | 6.  webui-jsf-suntheme.jar
  | 
  | Below is the stacktrace
  | 
  | 
  |   | java.lang.UnsupportedOperationException
  |   | at org.jboss.seam.Namespace.entrySet(Namespace.java:23)
  |   | at java.util.AbstractMap.toString(Unknown Source)
  |   | at java.lang.String.valueOf(Unknown Source)
  |   | at java.lang.StringBuilder.append(Unknown Source)
  |   | at 
com.sun.webui.jsf.faces.UIComponentELResolver.getValue(UIComponentELResolver.java:72)
  |   | at 
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  |   | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  |   | at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
  |   | at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  |   | at 
com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:102)
  |   | at 
org.jboss.seam.core.Expressions$1.getValue(Expressions.java:69)
  |   | at 
org.jboss.seam.Component.getInstanceFromFactory(Component.java:1684)
  |   | at org.jboss.seam.Component.getInstance(Component.java:1633)
  |   | at org.jboss.seam.Component.getInstance(Component.java:1610)
  |   | at org.jboss.seam.Component.getInstance(Component.java:1604)
  |   | at 
org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
  |   | at 
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  |   | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  |   | at 
org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
  |   | at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  |   | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  |   | at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  |   | at 
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
  |   | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
  |   | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
  |   | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
  |   | at 
javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
  |   | at 
javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  |   | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577)
  |   | at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  |   | at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:256)
  |   | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  |   | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  |   | at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  |   | at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  |   | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  |   | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |   | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  |   | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  |   | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |   | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  |   | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |   | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  |   | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |   | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  |   | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |   | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |   | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
  |   | at 

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread b.reeve
Could anyone please reply with some ideas as to why this exception is 
happening. 
The Spring beans are not resolved in integration testing when invoked through 
EL. I have the DelegatingVariableResolver in place.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096214#4096214

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096214
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread b.reeve
Could it be possible that the DelegatingVariableResolver is not getting loaded?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096264#4096264

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096264
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnsupportedOperationException at conversationList

2007-10-17 Thread b.reeve
I am getting the same exception when i try to access localeSelector or 
org.jboss.seam.core.localeSelector in my pages. Could anyone please reply.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096266#4096266

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096266
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread b.reeve
ok, so maybe that ELResolver is not resolving the Spring bean names. 
I was trying to test a user interaction scenario, trying to set the bean values 
and add it to the DB. But the injection is not working as the ELResolver cannot 
resolve the Spring bean identifiers. Totally stuck at this point. :(

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096276#4096276

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096276
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
My Seam application has Spring beans injected into some of the components. When 
i try to do an integration testing, I get this exception 

  | Error writing 'searchTerm' on type 
com.test.seam.ui.backing.SearchBean_$$_javassist_0
  | at javax.el.BeanELResolver.setValue(BeanELResolver.java:112)
  | at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68)
  | at com.sun.el.parser.AstValue.setValue(AstValue.java:140)
  | at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
  | at 
org.jboss.seam.util.UnifiedELValueBinding.setValue(UnifiedELValueBinding.java:44)
  | at org.jboss.seam.mock.SeamTest$Request.setValue(SeamTest.java:374)
  | at test.testNG.UITestNG$1.updateModelValues(UITestNG.java:55)
  | at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:476)
  | at test.testNG.UITestNG.testRegister(UITestNG.java:74)
  | Caused by: org.jboss.seam.RequiredException: In attribute requires non-null 
value: searchBean.searchService
  | at org.jboss.seam.Component.getValueToInject(Component.java:1919)
  | at org.jboss.seam.Component.injectAttributes(Component.java:1368)
  | at org.jboss.seam.Component.inject(Component.java:1195)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.interceptors.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
  | 
atcom.test.seam.ui.backing.SearchBean_$$_javassist_0.setSearchTerm(SearchBean_$$_javassist_0.java)
  | at javax.el.BeanELResolver.setValue(BeanELResolver.java:108)
  | ... 30 more
  | 

I have added the SpringContextLoader in the components.xml file and my 
application context is getting loaded. 
Correct me if I am wrong, I believe that I dont have to specify 
@In(required=false) because I want the service object to be injected when the 
seam component is installed. So, is there anything other than this that i need 
to do to get the Spring beans injected into my Seam component during 
Integration testing. Please help, I am totally struggling with this.
Thanks.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095742#4095742

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095742
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
1. Yes my application works fine in a web container.
2. Yes, I removed the ContextLoaderListener from web.xml.
3. Yes, I have the @In (value=#searchService) specified in the searchBean. 
But no required=false.

Is there any other configuration required? 
One more thing i found is this is not just with the Spring beans. Injection 
itself is not working when I try integration testing with JSF EL expressions.
But, If i set value through a component like




  | SearchBean searchBean = (SearchBean) Component.getInstance(searchBean);
  | 
  | searchBean.setSearchTerm();
  | 
it works. Am I missing something here?
I appreciate your help.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095778#4095778

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095778
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
Seam 1.2.1 with Tomcat 6.0.10.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095818#4095818

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095818
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
Frankly speaking I tried to upgrade to 2.0 CR1 and had to struggle with lots of 
issues. I couldn't even get a lrc working. So i reverted back to 1.2.1.
And I have been facing issues with EL in 1.2.1

  | 1. Not getting the #{conversationList} component.
  | 2. Not getting the #{localeSelector} component. (both are throwing 
UnSupportedOperationException)
  | 3. And now, not getting the injection working with JSF EL in integration 
testing.
  | 
  | The weird thing is all this is related to EL, though I am getting some of 
the built-in Seam components(eg: conversationEntries). Could you please help me 
out with this.
  | 
  | Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095822#4095822

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095822
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
These are the classes that I have


Employee.java

  | package test.injection;
  | 
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  | 
  | @Name(employeeBean)
  | @Scope(ScopeType.SESSION)
  | public class Employee {
  | 
  | private String name;
  | 
  | @In(#{departmentSpring})
  | private Department department;
  | 
  | public String getName() {
  | return name;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | public String addEmployee(){
  | return /success.xhtml;
  | }
  | 
  | }
Department.java

  | package test.injection;
  | 
  | 
  | public class Department {
  | 
  | private String departmentName;  
  | 
  | public String getDepartmentName() {
  | return departmentName;
  | }
  | 
  | public void setDepartmentName(String departmentName) {
  | this.departmentName = departmentName;
  | }
  | 
  | }
  | 
  | 
InjectionTestNG.java

  | package test.testNG;
  | 
  | import org.jboss.seam.mock.SeamTest;
  | import org.testng.annotations.Test;
  | 
  | public class InjectionTestNG extends SeamTest{
  | 
  | @Test
  | public void testInjection() throws Exception {
  | new FacesRequest(){
  | 
  | @Override
  | protected void updateModelValues(){
  | setValue(#{employeeBean.name},MyName);
  | }
  | 
  | @Override
  | protected void invokeApplication(){
  | invokeMethod(#{employeeBean.addEmployee});
  | }
  | 
  | @Override
  | protected void renderResponse(){
  | assert 
(getValue(#{employeeBean.name}).equals(MyName));
  | }
  | }.run();
  | }
  | 
  | 
  | }
  | 
  | 

applicationContext.xml

  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN 
http://www.springframework.org/dtd/spring-beans.dtd;
  | 
  | 
  | beans
  | bean id=departmentSpring class=test.injection.Department /
  | /beans 
  | 

And this is the exception stack trace

  | FAILED: testInjection
  | javax.el.ELException: Error writing 'name' on type 
test.injection.Employee_$$_javassist_0
  | at javax.el.BeanELResolver.setValue(BeanELResolver.java:112)
  | at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68)
  | at com.sun.el.parser.AstValue.setValue(AstValue.java:154)
  | at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:258)
  | at 
org.jboss.seam.util.UnifiedELValueBinding.setValue(UnifiedELValueBinding.java:44)
  | at org.jboss.seam.mock.SeamTest$Request.setValue(SeamTest.java:374)
  | at 
test.testNG.InjectionTestNG$1.updateModelValues(InjectionTestNG.java:23)
  | at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:476)
  | at test.testNG.InjectionTestNG.testInjection(InjectionTestNG.java:35)
  | Caused by: javax.el.PropertyNotFoundException: ELResolver cannot handle a 
null base Object with identifier 'departmentSpring'
  | at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:52)
  | at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:75)
  | at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
  | at 
org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
  | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:69)
  | at org.jboss.seam.Component.getValueToInject(Component.java:1877)
  | at org.jboss.seam.Component.injectAttributes(Component.java:1368)
  | at org.jboss.seam.Component.inject(Component.java:1195)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.interceptors.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
  | at 

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
Here it is

  | components xmlns=http://jboss.com/products/seam/components;
  | xmlns:core=http://jboss.com/products/seam/core;
  | xmlns:web=http://jboss.com/products/seam/web;
  | xmlns:spring=http://jboss.com/products/seam/spring;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=
  | http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-1.2.xsd
  |  http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-1.2.xsd
  |  http://jboss.com/products/seam/web 
http://jboss.com/products/seam/web-1.2.xsd
  |  http://jboss.com/products/seam/spring 
http://jboss.com/products/seam/spring-1.2.xsd;
  | 
  | 
  | core:manager conversation-timeout=12 
  |   concurrent-request-timeout=500
  |   conversation-id-parameter=cid
  |   conversation-is-long-running-parameter=clr/
  | core:ejb installed=true /   
  | 
  | spring:context-loader /
  | 
  | /components
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095833#4095833

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095833
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
I tried to see if the Spring Bean is resolved.

  | 
  | package test.testNG;
  | 
  | import org.jboss.seam.mock.SeamTest;
  | import org.testng.annotations.Test;
  | 
  | public class InjectionTestNG extends SeamTest{
  | 
  | @Test
  | public void testInjection() throws Exception {
  | new FacesRequest(){ 
  | 
  | @Override
  | protected void updateModelValues(){
  | 
setValue(#{departmentSpring.departmentName},Department);
  | }
  | }.run();
  | }
  | }
  | 
  | 

And it throws exception


  | FAILED: testInjection
  | javax.el.PropertyNotFoundException: ELResolver cannot handle a null base 
Object with identifier 'departmentSpring'
  | at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:52)
  | at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:75)
  | at com.sun.el.parser.AstValue.getTarget(AstValue.java:67)
  | at com.sun.el.parser.AstValue.setValue(AstValue.java:147)
  | at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:258)
  | at 
org.jboss.seam.util.UnifiedELValueBinding.setValue(UnifiedELValueBinding.java:44)
  | at org.jboss.seam.mock.SeamTest$Request.setValue(SeamTest.java:374)
  | at 
test.testNG.InjectionTestNG$1.updateModelValues(InjectionTestNG.java:19)
  | at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:476)
  | at test.testNG.InjectionTestNG.testInjection(InjectionTestNG.java:21)
  | ... Removed 22 stack frames
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095835#4095835

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095835
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: #{conversationList} appears to be empty

2007-10-11 Thread b.reeve
On debugging I found that, when #{conversationEntries} is called the key coming 
in to Namespace.getChild(String key) is conversationEntries but for 
#{conversationList} , the key is always org and this is throwing the 
UnSupportedOperationException. Can anyone please help me with this??? Any help 
would be really appreciated.
Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094287#4094287

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094287
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: #{conversationList} appears to be empty

2007-10-01 Thread b.reeve
Could anyone please help me with this situation. Why am i getting this 
exception? conversationList being empty is understandable but this exception, i 
cannot figure out what is happening here.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090374#4090374

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090374
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: #{conversationList} appears to be empty

2007-10-01 Thread b.reeve
I am using Seam 1.2.1 with Tomcat 6.0.10, JSF 1.2, Facelets 1.1.12.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090392#4090392

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090392
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: #{conversationList} appears to be empty

2007-10-01 Thread b.reeve
I am using Seam 1.2.1 with Tomcat 6.0.10, JSF 1.2, Facelets 1.1.12. 
But then how #{conversationEntries} in conversations.xhtml doesn't throw this 
exception.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4090394#4090394

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4090394
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: #{conversationList} appears to be empty

2007-09-28 Thread b.reeve
I am facing a similar problem. I can see the conversationEntries displayed 
properly with the descriptions, when i print them in the console.

But, I am getting an UnsupportedOperationException when I include 
#{conversationList} or #{org.jboss.seam.core.conversationList} in my page. 

Could anyone please help me. 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089813#4089813

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089813
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: #{conversationList} appears to be empty

2007-09-28 Thread b.reeve
I tried printing the conversationEntries 

  | ConversationEntries convEntries = ConversationEntries.instance();
  | CollectionConversationEntry entryCollection = 
convEntries.getConversationEntries();
  | if(!entryCollection.isEmpty()){
  | System.out.println(--Conversation Entries 
Desc-);
  | IteratorConversationEntry entryIter = entryCollection.iterator();
  | while(entryIter.hasNext()){
  | ConversationEntry entry = (ConversationEntry) entryIter.next();
  | System.out.println(Description :  + entry.getDescription() + 
((entry.isCurrent()?   [current] : [not current])) + 
  |  --  + 
((entry.isDisplayable()?  Displayable :  Not Displayable )));
  | }
  | }  
and this is the result.
--Conversation Entries Desc-
  | Description : View Item - Item1 [not current] --  Displayable
  | Description : View Item - Item2 [not current] --  Displayable
  | 
What I dont understand is why am I getting the 
java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
  | at org.jboss.seam.Namespace.entrySet(Namespace.java:23)
  | at java.util.AbstractMap.toString(Unknown Source)
  | at java.lang.String.valueOf(Unknown Source)
  | at java.lang.StringBuilder.append(Unknown Source)
  | at 
com.sun.webui.jsf.faces.UIComponentELResolver.getValue(UIComponentELResolver.java:72)
  | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
  | at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  | at 
com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:102)
  | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:69)
  | at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1684)
  | at org.jboss.seam.Component.getInstance(Component.java:1633)
  | at org.jboss.seam.Component.getInstance(Component.java:1610)
  | at org.jboss.seam.Component.getInstance(Component.java:1604)
  | at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
  | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
  | at org.apache.el.parser.AstEmpty.getValue(AstEmpty.java:29)
  | at 
org.apache.el.parser.AstDeferredExpression.getValue(AstDeferredExpression.java:26)
  | at 
org.apache.el.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:31)
  | at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  | at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
  | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
  | at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:256)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 

[jboss-user] [JBoss Seam] - Re: #{conversationList} appears to be empty

2007-09-28 Thread b.reeve
This is the conversations.xhtml page

  | div xmlns=http://www.w3.org/1999/xhtml;
  |  xmlns:c=http://java.sun.com/jstl/core;
  |  xmlns:ui=http://java.sun.com/jsf/facelets;
  |  xmlns:f=http://java.sun.com/jsf/core;
  |  xmlns:h=http://java.sun.com/jsf/html;
  |  xmlns:s=http://jboss.com/products/seam/taglib;
  | 
  | div class=section
  | h:form
  | h:outputText value=#{empty conversationList} /
  | /h:form
  | /div
  | /div
  | 

And this is the page that includes the conversations.xhtml

  | !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | html xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:f=http://java.sun.com/jsf/core;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:c=http://java.sun.com/jsp/jstl/core;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | head
  | titleui:insert name=pageTitle/ui:insert/title
  | /head
  | body
  | ui:include src=/header.xhtml /
  | div class=wrapper 
  | h4ui:insert name=pageHeaderPage Not found/ui:insert/h4
  | ui:insert name=pageBodyPage Not found/ui:insert
  | /div
  | ui:include src=/conversations.xhtml /
  | ui:include src=/copyright.xhtml /   
  | /body
  |   /html
  | 
So whenever i try hitting any page I am getting the 
UnsupportedOperationException, when I remove the #{conversationList} everything 
is fine. Am I missing something to get the conversationList component, because 
I am getting the conversationEntries correctly.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089855#4089855

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089855
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - UnsupportedOperationException at conversationList

2007-09-27 Thread b.reeve
I was trying to implement a simple non-EJB appliaction using Seam and JSF. 
Multiple conversation is working fine for me. But, when i try to check for the 
workspace management, I am getting unsupportedOperationException at 
conversationList variable.
I have the view-ids and descriptions inside my pages.xml file. 
div class=section
  | h:form
  | h:outputText value=#{empty conversationList} /
  | /h:form
  | /div
This code is throwing exception. But i can access the conversationEntries. I 
tried to print the conversationEntries at the console and I am getting the 
values. 
The stack trace is as follows:

java.lang.UnsupportedOperationException
  | at org.jboss.seam.Namespace.entrySet(Namespace.java:23)
  | at java.util.AbstractMap.toString(Unknown Source)
  | at java.lang.String.valueOf(Unknown Source)
  | at java.lang.StringBuilder.append(Unknown Source)
  | at 
com.sun.webui.jsf.faces.UIComponentELResolver.getValue(UIComponentELResolver.java:72)
  | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
  | at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  | at 
com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:102)
  | at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:69)
  | at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1684)
  | at org.jboss.seam.Component.getInstance(Component.java:1633)
  | at org.jboss.seam.Component.getInstance(Component.java:1610)
  | at org.jboss.seam.Component.getInstance(Component.java:1604)
  | at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
  | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
  | at org.apache.el.parser.AstEmpty.getValue(AstEmpty.java:29)
  | at 
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  | at 
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  | at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
  | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
  | at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:256)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at