[jboss-user] [JBoss Seam] - Re: @End from

2007-12-21 Thread Bernix
Hi Christian,from your information,I change the code and it works!

I add the propagation="none" to the , and it show me a exception that 
beanB @In can not find the object @Out from beanA,I suppose that's because they 
are at different context,means a new conversation context is created for beanB.

Then I change the @In and @Out to
@Out(scope=ScopeType.SESSION) @In(required=false, scope=ScopeType.SESSION)
then everything works fine.

Thanks a lot,Christian.

Cheers!



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114932#4114932

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114932
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @End from

2007-12-20 Thread Bernix
Hi Pete,I am sorry for that.

Thanks for your comment.

As I knew,the @Begin(join=true) will propagate the conversation context,does it 
mean the propagated conversation context will be a new context?and different 
from the previous one?
and how can I end the propagated conversation context,and resume the previous?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114856#4114856

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114856
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @End from

2007-12-20 Thread Bernix
Does anyone meet such problem?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114606#4114606

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114606
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @End from

2007-12-20 Thread Bernix

I am using JBoss AS 4.2.0GA and Seam 2.0GA

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114531#4114531

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114531
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @End from "join" ends all conversations - unexpected action

2007-12-20 Thread Bernix
I have two beans in conversation scope, beanA and beanB. beanA is backing pageA 
individually,and beanB is backing pageB individually.
beanA will begin the long-running conversation in pageA at first, then we jump 
to pageB, pageB will begin(join=true) beanB.
but when we end the joined conversation in beanB.done , the beanA is destroyed 
as well.

beanA
@Stateful
  | @Scope(CONVERSATION)
  | @Name("beanA")
  | public class BeanA implements IBeanA {
  | 
  | public BeanA() {
  | System.out.println(">> BeanA is constructed.");
  | }
  | 
  | @Begin
  | public void init() {
  | System.out.println(">> BeanA is initialized.");
  | }
  | 
  | @End
  | public void done() {
  | System.out.println(">> BeanA is done.");
  | }
  | 
  | @Remove
  | public void destroy() { 
  | System.out.println(">> BeanA is destroyed.");
  | }
  | }


beanB
@Stateful
  | @Name("beanB")
  | @Scope (CONVERSATION)
  | public class BeanB implements IBeanB {
  | 
  | public BeanB() {
  | System.out.println(">> BeanB is constructed.");
  | }
  | 
  | @Begin(join=true)
  | public void init() {
  | System.out.println(">> BeanB is initialized.");
  | }
  | 
  | @End(beforeRedirect=true)
  | public void done() {
  | System.out.println(">> BeanB is done.");
  | }
  | 
  | @Remove
  | public void destroy() { 
  | System.out.println(">> BeanB is destroyed.");
  | }
  | }


home.xhtml



pageA



pageB

  | 
  | 


pageB.page.xml
   
  |  
  |


we do the following steps:
1. enter home page
2. link to pageA
3. link to pageB
4. click "Done beanB" in pageB

then we got the exception.the log is:
16:31:46,333 INFO  [STDOUT] >> BeanA is constructed.
  | 16:31:46,458 INFO  [STDOUT] >> BeanA is initialized.
  | 16:31:49,458 INFO  [STDOUT] >> BeanB is constructed.
  | 16:31:49,489 INFO  [STDOUT] >> BeanB is initialized.
  | 16:31:56,129 INFO  [STDOUT] >> BeanB is done.
  | 16:31:56,145 INFO  [STDOUT] >> BeanB is destroyed.
  | 16:31:56,161 INFO  [STDOUT] >> BeanA is destroyed.
  | 16:31:56,254 INFO  [STDOUT] >> BeanA is constructed.
  | 

Why the @End in beanB.done() cause the beanA to be destroyed?
We would hope that resume to beanA when beanB is done.

I know we can use nested conversation in beanB,yes,nested conversation works OK.
I just wondering,if I join a conversation,how can I end it then resume to the 
previous long-running conversation?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114530#4114530

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114530
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Server.log and large tables

2007-12-18 Thread Bernix
I think you can try to edit the log4j configuration.
e.g. edit JBOSS_HOME/server/default/conf/jboss-log4j.xml

remove the following:
   
  |   
  |
  | 
and
   
  |   
  |


add the following:
   
  |   
  |
and
   
  |   
  |

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113705#4113705

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113705
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: where's the documentation about conversation control(ann

2007-12-15 Thread Bernix
Hi,can any one help?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113146#4113146

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113146
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - where's the documentation about conversation control(annotat

2007-12-13 Thread Bernix
Hi,
I have read the online reference "Chapter 27. Seam annotations",but I didn't 
see any documentations introduce what's the exact meaning for every xml tag of 
conversation control,and what attributes for them...
e.g.:   etc.
Just wondering,where can I find such a documentation introducing these xml tag?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112771#4112771

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112771
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Outject doesn't work

2007-12-10 Thread Bernix
...it works if I use page parameters,the outject DataModelSelection still not 
work...what's wrong

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111567#4111567

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111567
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Outject doesn't work

2007-12-10 Thread Bernix
ok,get it work...forget this

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111536#4111536

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111536
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Outject doesn't work

2007-12-09 Thread Bernix

I have an UserListBean, a userList.xhtml page and a userView.xhtml page,and 
when I try to outject the DataModelSelection,from the list page to the view 
page,but it doesn't work:

UserListBean.java
@Stateful
  | @Scope(SEESION)
  | @Name("userList")
  | public class UserListBean implememts UserList {
  | @DataModel
  | private List users;
  | 
  | @DataModelSelection
  | @Out (required = false)
  | private User user;
  | 
  | @Factory
  | public void getUsers () {
  | ...
  | }
  | }

userList.xhtml

  | 
  | User Name
  | #{usr.username}
  | 
  | ...
  | 
  | View
  | 
  | 
  | 

userView.xhtml

  | 
  | User Name:
  | #{user.username}
  | 
  | ...
  | 

everything seems ok,but when I click "View" from the list page to view page,the 
view page doesn't get the "user",I chek the log,it says that the component user 
is not found.means it didn't outject correctly...
I know may be this kind of problem has been discussed in the forum before,but I 
just can not find it...
I suppose that when I select the user from the list page,the DataModelSelection 
does inject to "userList",but it didn't outject...
when will the outject will be processed?at the very begin when the component 
create?
in many scenario,the variable is null when the component is created,but I want 
to outject that variable when it gets a value

any comments will be greatful

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111526#4111526

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111526
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - About outject and context

2007-11-29 Thread Bernix
I have userList session bean with Session scope,and outject an user object

@Stateful
  | @Name ("userList")
  | @Scope (SESSION)
  | public class UserListAction implements UserList {
  | @Out private User user;
  | ...
  | }

And I have an userEdit session bean with Conversation scope,and also outject an 
user object

@Stateful
  | @Name ("userEdit")
  | @Scope (CONVERSATION)
  | public class UserEditAction implements UserEdit {
  | @Out private User user;
  | ...
  | }

then the userlist and useredit pages will redirect to userView page.
suppose this situation,I enter userlist page,select an user to view,then I go 
to useredit page,create an user,and after save will jump to view

since the userlist has also outject an user(in session scope?),and then the 
useredit will also outject another(in conversation scope?),will there be two 
user object now?

and as I have end the conversation after edituser saved,I suppose that the 
conversation scope has been destroyed,where is that outject user object?in 
which context?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108869#4108869

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108869
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - how to load Seam components in the servlet?

2007-11-23 Thread Bernix
How to load Seam components in a servlet?

For example,the servlet got a HttpRequest with user name and password,and want 
to use the default Seam component "authenticator" to login.

Another scenario is,the servlet received a HttpRequest with some parameters,and 
need to load some Seam components,invoke the actions of the components...

A little sample code will be real helpful.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107249#4107249

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107249
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user