[jboss-user] [EJB 3.0] - Re: .. problems with clob's and oracle (ojdbc14_g)

2008-07-10 Thread gus888
itsme wrote : BTW the given byte[] must be de-/serialized by some code 
written on your own.
Hi Sandor, 

May you share your de-/serialized codes? I googled convert byte into string 
and found many example codes, but I don't know which one is good for EJB3 byte. 
Thanks a lot.

Gus

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

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


[jboss-user] [JBoss Seam] - Issue on page param security

2008-02-04 Thread gus888
Hi,

After practicing on page param, I found that page param is very nice, 
especially on its bidirectional. However, I also found a problem when I used it 
about its security. For example, I list all my friends , then I click on one of 
them and get page param friendId=?, e.g. fiendId=3. On the url 
localhost/friendView.xhtml?friendId=3, if I manually change friendId=5 and 
press Enter from url, I will get person info of id=5, but the person of id=5 is 
NOT my friend. So how can I prevent this case? (user manually changes page 
param from url). Thank you very much in advance.

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

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


[jboss-user] [JBoss Seam] - Re: Booking ScopeType.SESSION

2008-02-04 Thread gus888
I think that it is just for demo, and the same case happens in seam-bay 
AuctionSearchAction.java. For enterprise project, I remember that pete.muir 
ever recommended to use EVENT plus page param in this forum.

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

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


[jboss-user] [JBoss Seam] - Re: How to prevent page data reloading when click Back

2008-02-04 Thread gus888
Hi Arvhatte, thank for your very detailed explanation. It is really helpful for 
me to understand the Seam framework. 

However, I still couldn't figure out why I click Back, pages always act with 
back beans. When I run Seam samples, then click page Back, it seems it run on 
client, and pages seems don't have any action with server. Following is my 
partial code snippets. I really appreciate any help. Thanks in advance.
@Name(profileLister)
  | @Statefull
  | @Scope(ScopeType.EVENT) 
  | public class ProfileListerBean implements ProfileLister {
  | 
  | @Out(required=false, scope=ScopeType.PAGE)
  | private ListContactAddress myContactAddressList;
  | 
  | @Factory(myContactAddressList)
  | public String loadContactAddress() {
  | myContactAddressList =  
em.createNamedQuery(contactAddress.*:personId)
  | .setParameter(personId, 
user.getId()).getResultList();
  | return prfl-myContactInfo;
  | }
  | }
  | 
  | 
  | pages.xhtml
  | page view-id=*
  | navigation
  | rule if-outcome=prfl-myContactInfo
  | redirect view-id=/profile/my/contact_info.xhtml/
  | /rule
  | 

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

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


[jboss-user] [JBoss Seam] - How to prevent page data reloading when click Back

2008-01-31 Thread gus888
Hi there,

When I run the Seam example (seam-space), I browsed several pages, then I  
clicked Back to go back the previous browsed pages, I found there are no any 
page data reloading from database. However, when I clicked Back in my project, 
every previous page would reload data again from database. Anybody know how to 
prevent the data reloading? Thank you very much in advance!

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

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


[jboss-user] [JBoss Seam] - Re: Poll: what JSF framework are you using with Seam?

2008-01-30 Thread gus888
Hi there,

I began to use the ICEfaces with Seam when ICEfaces just became open source and 
Gavin announced to support ICEfaces with Seam. I found that Seam works very 
well with ICEfaces. I never tried the Richfaces, but I know that Richfaces 
should work more well with Seam, since JBoss own the Richfaces. A little 
annoying thing when using ICEfaces is that some components of Seam, e.g. 
s:fileUpload, seam email, still don't work with ICEfaces. Maybe, it can be 
solved in the near future.

Personally, I hope that Seam can fully support some MAIN jsf frameworks, since 
Seam seems to be the dominate Java EE framework in the future (my own opinion).

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

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


[jboss-user] [JBoss Seam] - Facelets ui:include bean param became null in s:link tag

2008-01-25 Thread gus888
Hi,

I don't know whether I did correctly in the following code. The bean action 
throw exception Target Unreachable, identifier 'action' resolved to null in 
s:link. If I change s:link to ice:commandLink, it works. I don't know what is 
wrong. Thanks for help.ui:include src=/common/view.xhtml
  | ui:param name=action value=#{actionBean}/
  | /ui:include
  | 
  | view.xhtml
  | s:link value=View Link action=#{action.retrieve}/

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

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


[jboss-user] [JBoss Seam] - Re: Still confuse on usage of page param, help please!

2008-01-23 Thread gus888
Anybody can confirm my understanding on page parameter is correct or not? Thank 
you.
anonymous wrote : So, based on my understanding on page parameter, when I click 
on s:link view=/comment.seam, the link's f:param will pass 
#{selectedMember.memberName} to name, and redirect to /comment.xhml  page, 
then page param will get the name value and pass it to 
#{selectedMember.memberName} in bean. Is it correct? Thank for any guidance.

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

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


[jboss-user] [JBoss Seam] - Re: Still confuse on usage of page param, help please!

2008-01-22 Thread gus888
Thanks, Shane. 

So, based on my understanding on page parameter, when I click on s:link 
view=/comment.seam, the link's f:param will pass 
#{selectedMember.memberName} to name, and redirect to /comment.xhml  page, 
then page param will get the name value and pass it to 
#{selectedMember.memberName} in bean. Is it correct? Thank for any guidance.

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

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


[jboss-user] [JBoss Seam] - Still confuse on usage of page param, help please!

2008-01-21 Thread gus888
Hi,

I reviewed the seamspace  example and tried to understand how and when to use 
page parameter, but I still get confused. After I commented the following page 
parameter codes, I couldn't find any performance difference(including 
bookmarkable page). Anybody can tell me the purpose of using page param and 
when need to use it. Thank you so much in advance!
page view-id=/comment.xhtml login-required=true
  |   restrict/
  |   !--
  |   param name=name value=#{selectedMember.memberName}/
  |   param name=blogId value=#{selectedBlog.blogId}/
  |   --
  |   navigation from-action=#{blog.saveComment}
  | redirect view-id=/blogentry.xhtml/
  |   /navigation
  | /pageand jsp link:s:link view=/comment.seam value=Add Comment 
propagation=none
  |f:param name=name 
value=#{selectedMember.memberName}/
  |f:param name=blogId value=#{selectedBlog.blogId}/
  |  /s:link

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

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


[jboss-user] [JBoss Seam] - Is it possible to use page param in page navigation...

2008-01-17 Thread gus888
Hi there,

I went through the docs, but couldn't find how to use page param in the docs 
sample code snippets:page view-id=/editDocument.xhtml
  | 
  | navigation from-action=#{documentEditor.update}
  | rule if-outcome=success
  | redirect view-id=/viewDocument.xhtml/
  | /rule
  | /navigation
  | 
  | /pageThank you in advance.

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

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


[jboss-user] [JBoss Seam] - Can I inject a session bean into a stateless session bean?

2008-01-17 Thread gus888
Hi, 

I am not sure whether I can inject a session bean (e.g. currentUser) into a 
stateless session bean, and each user will have his owner username in the 
stateless session bean when he/she call it. For example:@Stateless
  | @Name(friend)
  | public class FriendAction implements Friend {
  | 
  |   @In
  |   private Person user;
  |  
  |   @Out
  |   private List Person friends;
  | 
  |   @PersistenceContext
  |   private EntityManager em;
  |  
  |   public void retrievFriends () {
  | friends = em.createQuery(select pf.friend from PersonFriend pf where 
pf.person.id=:userId)
  | .setParameter(userId, user.id());
  | .getResultList();
  |   }
  | 
  | }Thank you.

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

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


[jboss-user] [JBoss Seam] - Re: Can I inject a session bean into a stateless session bea

2008-01-17 Thread gus888
Sorry Pete, What I am asking is whether I can inject a SFSB into a SLSB, e.g. 
inject user or username into a SLSB, see codes in the first posting. Thanks.

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

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


[jboss-user] [JBoss Seam] - A little confuse on stateful context scope types

2008-01-14 Thread gus888
Anybody can explain the distinguish among the stateful context scope types 
listed below. If I don't use long-running conversation, their functionalities 
are same? Thank you very much in [EMAIL PROTECTED](myAction)
  | @Stateful
  | @Scope(ScopeType.EVENT) 
  | public class MyActionBean implements MyAction {
  | ...
  | }
  | 
  | @Name(myAction)
  | @Stateful
  | public class MyActionBean implements MyAction {
  | ...
  | }
  | 
  | @Name(myAction)
  | @Stateful
  | @Scope(ScopeType.CONVERSATION) 
  | public class MyActionBean implements MyAction {
  | ...
  | }

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-10 Thread gus888
[EMAIL PROTECTED] wrote : My tip is to avoid starting conversations from 
navigation links (those links that take you to other areas of the app), always 
make navigation disable conversation propagation, and just use conversations 
*within* each area of the app.Excellent tip! Thank you very much, Pete.

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

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


[jboss-user] [JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio

2008-01-09 Thread gus888
Anybody can give a help? I am looking for Seam pattern for browsing data and 
pagination. Thank you very much. 

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

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


[jboss-user] [JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio

2008-01-09 Thread gus888
jacob.orshalick wrote : gus888 wrote : Question 1 : I tried different 
outjection scopes: EVENT, PAGE and CONVERSATION, and only the CONVERSATION 
scope works (outjected data were displayed on web). When I used EVENT and PAGE 
scopes, no data were displayed on web page. I don't know why?
  | 
  | What is the rest of the scenario?  How are these values getting populated?  
Are you executing an action then redirecting?
  | 
Hi Jacob, thank you for your reply.
I follow Seam wiki pagination sample: manage bean is stateless bean, outject a 
event or page scope page, but I don't know why I didn't get results back to 
page. Only after I used conversation outjection, I can got results displayed on 
page. However, when I try to click a link on the page, the results on the page 
disappear immediately. I really feel frustrated. 

jacob.orshalick wrote : 
  | gus888 wrote : Question 2 : When I clicked h:commandLinks of individual 
email and phone, the whole page data disappeared. Anybody can explain why? 
Thank you in advance.
  | 
  | Have you started a long-running conversation?  Data outjected to 
conversation scope will be outjected to the temporary conversation which is 
destroyed at the end of the request if you don't promote the conversation to 
long-running. I did not use a long-running conversation. I use stateless bean 
to outject a temporary conversation. Is it correct? Thank you very much.

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

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


[jboss-user] [JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio

2008-01-09 Thread gus888
jacob.orshalick wrote : Without some code (the view, the navigation, etc), I 
don't think anyone is going to be able to help here...
Thank you, Jacob. Following are my code snippets:pages.xml
  | page view-id=*
  | navigation
  | rule if-outcome=emailList
  | redirect view-id=/emails.xhtml/
  | /rule
  | rule if-outcome=phoneList
  | redirect view-id=/phones.xhtml/
  | /rule
  | 
  | 
  | sidebar.xhtml
  | div
  | ice:commandLink value=Contact Emails
  | action=#{contactServicer.retrieveEmails}/
  | /div
  | 
  | div
  | ice:commandLink value=Contact Phones
  | action=#{contactServicer.retrievePhones}/
  | /div
  | ...
  | 
  | emails.xhtml
  | ice:panelSeries style=clear: both;
  | value=#{emailList}
  | var=email rendered=#{!empty emailList}
  | div class=row
  | ice:outputText value=#{email.emailAddress}/
  | /div
  | 
  | 
  | phones.xhtml
  | ice:panelSeries style=clear: both;
  | value=#{phoneList}
  | var=phone rendered=#{!empty phoneList}
  | div class=row
  | ice:outputText value=#{phone.phoneNumber}/
  | /div
  | 
  | 
  | @Name(contactServicer)
  | @Stateless
  | @Scope(ScopeType.STATELESS)
  | public class ContactServicerBean implements ContactServicer {
  | 
  | 
  | @Out(required=false, scope=ScopeType.CONVERSATION) //EVENT and PAGE 
don't work
  | private ListEmail emailList;
  | 
  | @Out(required=false, scope=ScopeType.CONVERSATION) //EVENT and PAGE 
don't work
  | private ListPhone phoneList;
  | 
  | 
  | public String retrieveEmails() {
  | emailList = em.createNamedQuery(...).getResultList();
  | return emailList
  | }
  | 
  | public String retrievePhones() {
  | phoneList = em.createNamedQuery(...).getResultList();
  | return phoneList;
  | }
  | 
  | 
  | }
  | 
jacob.orshalick wrote : If you outject to the conversation, you must begin a 
long-running conversation to have the data available on the next request (the 
next click of a commandLink).  Otherwise, the temporary conversation will be 
destroyed and your data is gone on the next request.I don't know which pattern 
is good for enterprise project based on my codes above. Seam wiki pagination 
sample is using Stateless bean + Event outjection, but I couldn't make this 
work.

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

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


[jboss-user] [JBoss Seam] - Data disappeared when clicking on Conversation outjection pa

2008-01-06 Thread gus888
Hi there,

I have a stateless session bean which has a conversation outjection page:
@Name(contactServicer)
  | @Stateless
  | @Scope(ScopeType.STATELESS)
  | public class ContactServicerBean implements ContactServicer {   
  | 
  | 
  | @Out(required=false, scope=ScopeType.CONVERSATION)
  | private ListEmail emailList;
  | 
  | @Out(required=false, scope=ScopeType.CONVERSATION)
  | private ListPhone phoneList;
  | 
  | 
  | }
Question 1: I tried different outjection scopes: EVENT, PAGE and CONVERSATION, 
and only the CONVERSATION scope works (outjected data were displayed on web). 
When I used EVENT and PAGE scopes, no data were displayed on web page. I don't 
know why?
Question 2: When I clicked h:commandLinks of individual email and phone, the 
whole page data disappeared. Anybody can explain why? Thank you in advance.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-04 Thread gus888
[EMAIL PROTECTED] wrote : Normally you wouldn't make a search screen 
conversational. Why do you want to make it conversational? Hi Pete, in fact, I 
want to make my search screen conversational, because I need to save some 
search criteria, e.g. searching a classmate, it need to first select a state, 
then choose a city based on the selected state, select-input school name, input 
name and begin searching, pagination After finishing searching, the front 
conversation bean become back-conversation and timeout cleaning after about 
5min, or click finish search to end the conversation. 

Is it correct design, or you may suggest a better search pattern? Thank you.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-04 Thread gus888
[EMAIL PROTECTED] wrote : Have you taken a look at the way seam-gen does it? 
It produces a pageable, bookmarkable search screen that saves the search 
criteria without using a conversation. 
I went through all seam examples, and I found the following search beans:
  |   1. booking - HotelSearchingAction: Session bean
  |   2. blog - SearchService: default bean 
  |   3. dvdstore - FullTextSearchAction: Conversation bean with 
@Begin(join=true)
  |   4. wiki - WikiSearch: Conversation bean with begin (join=true) in 
pages.xml
  | 
  | It seams that the blog-SearchService has bookmarkable but not pagable, but 
the SearchService only has one searchPattern criteria. The dvdstore and wiki 
search pages have pageable. Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-01 Thread gus888
trouby wrote : what's the difference between a new conversation starting from 
the same bean instance or from different bean instance? 
  | 
I think that they are the same. Both of them create new conversations with new 
ids.
trouby wrote : 
  | why the behavior is different?
  | I think that this is a Seam bug according to Michael Yuan's JBoss Seam book 
P114.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2007-12-31 Thread gus888
trouby wrote : I guess I'm doing something wrong, as in seam booking example 
the 'setHotel' is annotated with @Begin and can be invoked many times without 
this exception
No, you didn't do anything wrong. As I posted above, the @Begin in booking 
example always was invoked in the same bean (hotelBooking), so no exception 
thrown. If you change hotelSearch bean to CONVERSATION, then add @Begin in 
find() method, you will get the exception you mentioned. In the book of JBoss 
Seam (Michael Yuan) P 114, it also states that as long as you invoke new @Begin 
or even have a coding error (forgot @End), the current conversation will time 
out. I think it should not work at least in current Seam release. 

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2007-12-26 Thread gus888
For How to control end of conversations:
I have the same problem. I think that it is critical issue for the core 
(conversation) of Seam. The Seam forum here suggested that you use 
propagation=none to all other buttons and links which users can reach and 
propagate away from the current conversation. I think, maybe I am wrong, that 
this way is not practicable in a production project. One reason is that maybe 
there are a couple of dozens links and buttons on screen, the second is that 
maybe there are other conversation begin buttons and links on screen.

My previous suggestion is that as long as system run a @Begin, system should 
put current foreground conversation to background (let system timeout clean) 
and start a new foreground conversation (if the conversation id is 
automatically created by system). Currently, in the Seam, this functionality 
only works on the SAME foreground conversation bean, for example, I start a 
conversation A from Conversation Bean A by clicking @Begin from A, then if I go 
back to click @Begin from the same Conversation Bean A, Seam will create a new 
conversation, BUT instead, if I go back to click @Begin from Conversation B, 
the whole system will throw exception (need @Begin (join=true)) and the system 
will be down. This is critical problem in a production project. Please correct 
me if I am wrong. I like to create a JIRA if Seam team think it is necessary. 
Thank you and have a good holiday.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2007-12-26 Thread gus888
[EMAIL PROTECTED] wrote : gus888 wrote : For How to control end of 
conversations:
  |   | I have the same problem. I think that it is critical issue for the core 
(conversation) of Seam. The Seam forum here suggested that you use 
propagation=none to all other buttons and links which users can reach and 
propagate away from the current conversation. I think, maybe I am wrong, that 
this way is not practicable in a production project. One reason is that maybe 
there are a couple of dozens links and buttons on screen,
  | 
  | So this is just laziness?
  | Hi Pete,
First, thank you for your reply. I think that it is not just laziness. The 
conversation is specifically useful for complicated project, based on Kavin's 
statements in the tutorial. For a complicated project with top drop-down menus, 
left bar menus and right bar menus, developers have to put propagate=none to 
**every buttons and links** at every conversation step to prevent users from 
propagating away from a conversation. Importantly, this way seems that software 
developers are completely controlled by non-coorporate user's behavior, but 
based on my little experience, software developers should always control 
non-coorporate user's behavior. Correct me if I am wrong. Thank you.

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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2007-12-26 Thread gus888
[EMAIL PROTECTED] wrote : I don't see why putting propagate=none for all menu 
type links is a problem...Hi Pete, really, it is not a problem, but what I mean 
whether it is possible let Seam system to do the propagate=none job for a 
conversation once a user propagates away from the conversation and starts a new 
conversation. Thanks.

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

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


[jboss-user] [EJB 3.0] - Re: @id id data type: primitive or object which one is bette

2007-11-15 Thread gus888
Thank you very much, Mazz.

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

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


[jboss-user] [EJB 3.0] - Re: @id id data type: primitive or object which one is bette

2007-11-14 Thread gus888
No help?

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-11-08 Thread gus888
Hi Pete,

Thank you so much for your patiently responding my questions. In fact, I have 
an idea to use conversation browse bean. User can browsing the search results, 
then he/she can either create a new instance or edit an existing instance 
through another conversation bean from the browsing page. After he/she 
finishes, the user can go back the previous conversation browse bean. However, 
I couldn't get it work. The codes are as following. Thank you very much in 
advance.
[EMAIL PROTECTED]
  | @Name(studyBrowser)
  | @Scope(ScopeType.CONVERSATION)
  | public class StudyBrowserAction implements StudyBrowser {
  | ...
  | 
  |@Begin (id=browing-study)
  |public void find() {
  |   page = 0;
  |   queryStudy();
  |}
  | 
  |@Begin(join=true)
  |public void nextPage() {
  |   page++;
  |   queryStudy();
  |}
  | 
  |@Begin(join=true)
  |public void previousPage() {
  |   page--;
  |   queryStudy();
  |}
  | 
  |private void queryStudy() {
  | ...
  |}
  | 
  |@Remove
  |public void destroy() {}
  | }
  | 
StudyEditorAction.java

  | @Stateful
  | @Name(studyEditor)
  | @Scope(ScopeType.CONVERSATION)
  | public class StudyEditorAction implements StudyEditor {
  | 
  |@Begin(id=create-study
  |public String createStudy() {
  |  ...
  |}
  | 
  |@Begin(id=edit#{study.id})
  |public void editStudy() {
  |  ...
  |}
  | 
  |@Begin(join=true)
  |public void create() {
  |   ...
  |}
  | 
  |@Begin(join=true)
  |public void update() {
  |   ...
  |}
  | 
  |@End
  |public void done() {
  |   ...
  |}
  | 
  |@End
  |public void cancel() {}
  | 
  |@Remove
  |public void destroy() {}
  | }
xhtml page:h:selectInputText id=studyBrowsing /
  | h:commandButton id=findStudy value=Browse Study 
action=#{studyBrowser.find} /
  | 
  | h:commandLink value=Create New Study 
action=#{studyEditor.createInstance}/
  | 
  | 
  | h:dataTable id=studies value=#{studies} var=study 
  | ...
  | h:column
  | f:facet name=headerAction/f:facet
  | ice:commandLink value=Edit Study 
action=#{studyEditor.editStudy}/
  | /h:column
  | /h:dataTable
  | 
  | h:commandLink value=Next Page action=#{studyBrowser.nextPage}/
  | h:commandLink value=Previous Page action=#{studyBrowser.previousPage}/

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-11-05 Thread gus888
Hi Pete,

Thanks for your reply. Now I have not fully understood the Seam conversation 
strategy, but I think that if you remove the begin method invoked from a long 
running conversation, try using @Begin(join=true)  exception check from new 
conversation @Begin invoke, maybe this issue will be resolved. A new 
conversation started and the previous front would be put back.

I think that the propagate=none is hard to use in production, since the 
non-cooperative user determine when he/she stop propagating in a conversation, 
then click other links. If put propagate=none to the links which he/she may 
clicks, it seems that all links needs a propagate=none. It is very hard. 
Thanks for considering this issue.

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-11-02 Thread gus888
Hi Pete,

I don't know whether you can a functionality to Seam conversation Manager.java: 
as long as a user start @Begin, system will add propagation=none to the 
current/active conversation, then system will start a new current/active 
conversation. If you like, I can create JIRA. Thank you very much.

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-11-02 Thread gus888
[EMAIL PROTECTED] wrote : The programmer would make the navigation link he 
clicks propagation=none
Hi Pete,

Thank you very much for your replies on my several Conversation discussion 
post. Could you please give me a details instruction in the following codes 
which I modified from the booking example? I changed the HotelSearch bean from 
Session to Conversation. Thank you so much in advance.
[EMAIL PROTECTED]
  | @Name(hotelSearch)
  | @Scope(ScopeType.CONVERSATION)
  | @Restrict(#{identity.loggedIn})
  | public class HotelSearchingAction implements HotelSearching {
  | ...
  | 
  |@Begin
  |public void find() {
  |   page = 0;
  |   queryHotels();
  |}
  | 
  |@Begin(join=true)
  |public void nextPage() {
  |   page++;
  |   queryHotels();
  |}
  | 
  |@Begin(join=true)
  |public void previousPage() {
  |   page--;
  |   queryHotels();
  |}
  | 
  |private void queryHotels() {
  | ...
  |}
  | 
  |@Remove
  |public void destroy() {}
  | }
  | 
[EMAIL PROTECTED]
  | @Name(hotelBooking)
  | @Scope(ScopeType.CONVERSATION)
  | @Restrict(#{identity.loggedIn})
  | public class HotelBookingAction implements HotelBooking {
  | 
  |@Begin
  |public void selectHotel(Hotel selectedHotel) {
  |  ...
  |}
  | 
  |public void bookHotel() {
  |  ...
  |}
  | 
  |public void setBookingDetails() {
  |   ...
  |}
  | 
  |@End
  |public void confirm() {
  |   ...
  |}
  | 
  |@End
  |public void cancel() {}
  | 
  |@Remove
  |public void destroy() {}
  | }
and main.xhtmlh:selectInputText id=searchString /
  | h:commandButton id=findHotels value=Find Hotels 
action=#{hotelSearch.find} /
  | 
  | h:dataTable id=hotels value=#{hotels} var=hot 
  | ...
  | h:column
  | f:facet name=headerAction/f:facet
  | ice:commandLink id=viewHotel value=View Hotel 
action=#{hotelBooking.selectHotel(hot)}/
  | /h:column
  | /h:dataTable
  | 
  | h:commandLink value=Next Page action=#{hotelSearch.nextPage}/
  | h:commandLink value=Previous Page action=#{hotelSearch.previousPage}/

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-11-02 Thread gus888
Hi Pete,

How about, as long as system get @Begin, system will start a new front 
conversation, and set other conversation back to time-off. If @Begin with a Id, 
system will check existing conversatin list, if found, system retrieve it, 
otherwise system create a new conversation. Can you think about the idea? 
Really appreciate it.

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-11-01 Thread gus888
curtney wrote : 
  | effectively leaving the current/active conversation (not ending it). You 
can then proceed to create another conversation.
  | 
  | In other words, you have four options:
  | 1) join
  | 2) nest
  | 3)propagation none ** This is the one you want *
  | 4)end
  | 
  | correct me if I am wrong guys
Hi Guys,

I am totally confused by the conversation style. For a programmer, he designs a 
conversation, e.g. place an order: a long running conversation - start, join, 
join, nest, join, end-nest, end. When a user use it, he may propagate the 
whole process and finish a long conversation, or he may stop at any step (he 
may not click cancel), then browse to another long-running conversation. 
Definitely, a user cannot add a propagation-none code to a step which he 
stopped. At this situation, can a developer guess which step a user may stop? 
then add a propagation-none? Sorry, I am totally lost. 

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

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


[jboss-user] [JBoss Seam] - Re: Is there a plan to fix fileUpload issue in Seam-ICEfaces

2007-10-26 Thread gus888
[EMAIL PROTECTED] wrote : In Seam 2 you have the option of disabling the 
built-in filters, so if you wish to use the ICEfaces file upload control you 
can now disable Seam's MultipartFilter.
Hi Shane,

Thank you very much for your reply. If I wish to use Seam s:fileUpload in 
Seam-ICEfaces project, how can I set its configuration? Frankly, I like 
s:fileUpload. 

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

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


[jboss-user] [JBoss Seam] - Re: Is there a plan to fix fileUpload issue in Seam-ICEfaces

2007-10-26 Thread gus888
jguglielmin wrote : 
  | There are at least 2 different implementations (available in download 
sample apps or ICEfaces forum) of the ice:inputfile component working with Seam 
--without disabling Seam's MultipartFilter.
Hi Judy, thank you for your response. I have found several posts on ICEfaces 
forum, which complained that @In injecting value to fileUploadBean is always 
null. I also have the same problem. I cannot figure out how to persist a file 
without any context information, e.g. uploadedBy. Hope ICEfaces can fix the 
problem. In fact, if you review s:fileUpload example, you will find it is very 
easy to use. Thanks.

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

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


[jboss-user] [JBoss Seam] - Is there a plan to fix fileUpload issue in Seam-ICEfaces for

2007-10-25 Thread gus888
Hi Seam team,

I am just wondering whether you plan to fix the issue 
http://jira.jboss.com/jira/browse/JBSEAM-859 about fileUpload for Seam ICEfaces 
integration in Seam 2 release. It is really bad since after integrating Seam 
and ICEfaces, both of the file upload components (s:fileUpload and 
ice:inputFile) fail to work. The only thing we can do is just waiting. 
Please!!! Thank you very much.

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

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


[jboss-user] [JBoss Seam] - Re: Question on conversation...

2007-10-25 Thread gus888
jacob.orshalick wrote : anonymous wrote : 1. How do these conversations end 
if the user does not come back to generate a click that invokes the method with 
@End annotation? 
  | 
  | Conversations will timeout after a configurable time period.  Any 
conversation that is not the foreground conversation (the current conversation 
with the user), will timeout after the timeout period.  In addition, 
conversations will timeout with the session.
  | The problem is that before the conversation timeout, if the user 
immediately click another @Begin to start another conversation, the system will 
down and throw exception which requires @Begin(join=true). I have been looking 
for a long time on the forum, but couldn't get the solution.

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

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


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

2007-10-17 Thread gus888
rdewell wrote : Our primary scope types are EVENT and SESSION.  We were early 
adopters, and conversations just never worked quite right for us, so we didn't 
look back.  
Are there any others who made long-running conversations work in production 
environment? 
We also have a main problem on long running conversations:
If a user @Begin a conversation, he doesn't finish the whole conversation by 
@End the conversation, but he @Begin another long-running conversation (this 
happens in production), then system will through exception like below from 
ConversationInterceptor this:javax.ejb.EJBTransactionRolledbackException: 
begin method invoked from a long running conversation, try using 
@Begin(join=true) on method: createInstance
Based on I understand about the long-running conversation from Seam docs, click 
on @Begin with a id, system will check the existing conversations, if found, 
system will recover the conversation, otherwise, system will invoke a new 
conversation with the given id. @Begin without a id, system always invoke a new 
conversation with a new id. I don't know whether we can remove the following 
code from  ConversationInterceptor: if ( isMissingJoin(method) )
  | {
  |throw new IllegalStateException(begin method invoked from a 
long running conversation, try using @Begin(join=true) on method:  + 
method.getName());
  | }
  | Thank you very much, Seam team.

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

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


[jboss-user] [EJB 3.0] - @id id data type: primitive or object which one is better?

2007-10-15 Thread gus888
Hi there,

I have a question about the primary key @id data type. Some use primitive, e.g. 
long and int, but some use object, e.g. Long and Integer. Which one is better 
or the two cases are the same. Thank you in advance.

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-10-11 Thread gus888
[EMAIL PROTECTED] wrote : You can only have one foreground/active long 
running conversation per browser window.
Hi Pete,

Thank you so much for your reply, but I really couldn't figure out how to set 
current foreground/active long running conversation to background/inactive, and 
create a new foreground/active long running conversation. What I got was either 
join to previous conversation, or exception of require @Begin(join=true). I 
think it may be a bug. Any suggestion will be very appreciated. Thanks Pete.

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

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


[jboss-user] [JBoss Seam] - Re: Noob conversation confusion

2007-10-10 Thread gus888
Hi,

I have been struggling on this issue for a long time. From Seam 2.0, I can 
create multiple conversations for the same bean, e.g. click @Begin method to 
create a new conversation id=1, then click page back and click @Begin again, 
another new conversation id=3 was created, ... (before Seam 2.0, if I do the 
same operation above, I will get an exception of needing @Begin (join=true)). 
However, in Seam 2.0, if I click @Begin to start a conversation from a 
bean(bean1), then when I try to click @Begin to start another conversation 
from a different bean(bean2), I still get an exception of needing 
@Begin(join=true), but I don't want to join the two conversations.  It was said 
that system only allow one front conversation, but how to switch a front 
conversation to back, and start a new front conversation? I never got it 
successful. Thanks in advance for a help on this issue.

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

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


[jboss-user] [JBoss Seam] - Functionality difference between EntityHome and EntityContro

2007-10-04 Thread gus888
Hi,

I want to use Seam framework: EntityHome and EntityController. After comparing 
their methods, I found that the methods between the two classes are almost 
same. I want to what different functionalities between them. and when I should 
use EntityHome and when to use EntityController. Hope some experts can give 
some advice. Thank you very much.

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

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


[jboss-user] [JBoss Seam] - Re: Functionality difference between EntityHome and EntityCo

2007-10-04 Thread gus888
I got it. Thank you so much, Matt and Pete. And also appreciate the Seam team's 
great work.

Best regards,

Gus

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-09-29 Thread gus888
Can any other experts give me a help? I have this problem for a while. I really 
don't know why my system allows only one concurrent long-running conversation. 
When I try to @Begin another long-running conversation, my system always ask 
for @Begin with join=true. From Seam coversationList, it should allow several 
long-running conversations, and also it can switch to other one. My settings 
have some problem? or I misunderstood Seam long-running conversation? My codes 
above is very typical for CRUD, I think. Thank you so much in advance!

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-09-28 Thread gus888
Hi Jacob,

Thank you very much for your quick reply. I am still confused about the 
long-running conversation. You means that, if I start a long-running 
conversation SFSB, I cannot start another long-running conversation SFSB unless 
I @End the first one or @Begin(nested=true) to start a nested one? 

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

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


[jboss-user] [JBoss Seam] - Why cannot I run more than one concurrent conversation SFSB

2007-09-28 Thread gus888
Hi all,

I am very frustrated by my conversation problem. I don't know where is wrong in 
my project settings. It seems that my environment only allows one conversation 
exist concurrently. For example, after I click @Begin to create a conversation 
SFSB, then when I try to click @Begin to start another conversation SFSB, I 
ALWAYS get an exception, which asks me to use @Begin(join=true), but they are 
two different conversation SFSBs. Following are my codes:

First, I use a conversation SFSB to find study list:h:commandButton 
value=List Study action=#{studyList.findStudy}/
  | 
  | 
  | @Stateful
  | @Scope(CONVERSATION)
  | @Name(studyList)
  | public class StudyListAction implements StudyList {
  | 
  | ...
  | @Create
  | @Begin
  | public init() {
  | ...
  | }
  | 
  | @Begin(join=true) 
  | public String findStudy {
  | ...
  | }
  | 
  | ...
  | }
Then I try to create a new study at Create Study:h:commandLink value=Create 
Study action=#{studyEditor.createInstance}/
  | 
  | 
  | @Stateful
  | @Scope(CONVERSATION)
  | @Name(studyEditor)
  | public class StudyEditorBean implements StudyEditor {
  | 
  | ...
  | 
  | @Begin 
  | public String createInstance {
  | ...
  | }
  | 
  | 
  | ...
  | }
At this moment, I always get the following exception:21:53:43,203 FATAL 
[application] javax.ejb.EJBTransactionRolledbackException: begin method invoked 
from a long running conversation, try using @Begin(join=true) on method: 
createInstance
  | javax.faces.el.EvaluationException: 
javax.ejb.EJBTransactionRolledbackException: begin method invoked from a long 
running conversation, try using @Begin(join=true) on method: createInstance
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | at 
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
  | at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at 
com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:57)
  | at 
com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:45)
  | at 
com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:25)
  | at 
com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:52)
  | at 
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
  | at 
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
  | at 
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
  | at 
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
  | at 
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:109)
  | at 
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
  | at 
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:98)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
  | at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
  | at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
  | at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  | at 
com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 

[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-09-28 Thread gus888
Thank you very much, Jacob.

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

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


[jboss-user] [JBoss Seam] - Re: Why cannot I run more than one concurrent conversation S

2007-09-28 Thread gus888
Hi Jacob,

This time I got a little clear, but I still don't know how to use it in my 
following code. In my previous studyList, the more codes like this: (I think 
this is typical search bean)@Stateful
  | @Scope(CONVERSATION)
  | @Name(studyList)
  | public class StudyListAction implements StudyList {
  | 
  | ...
  | @Create
  | @Begin
  | public init() {
  | ...
  | }
  | 
  | @Begin(join=true) 
  | public String findStudy {
  | ...
  | }
  | 
  | @Begin(join=true) 
  | public void nextPage() {
  | ...
  | }
  | 
  | @Begin(join=true) 
  | public void previousPage() {
  | ...
  | }
  | 
  | @Begin(join=true) 
  | public void firstPage() {
  | ...
  | }
  | 
  | @Begin(join=true) 
  | public void lastPage() {
  | ...
  | }
  | 
  | ...
  | }
Should I use s:conversationPropagation propagation=none/ in each method? 
Like this: h:commandButton value=List Study action=#{studyList.findStudy}
  |   s:conversationPropagation propagation=none/
  | /h:commanButton
  | 
  | h:commandButton value=Next Page action=#{studyList.nextPage}
  |   s:conversationPropagation propagation=none/
  | /h:commanButton
  | 
  | h:commandButton value=Last Page action=#{studyList.lastPage}
  |   s:conversationPropagation propagation=none/
  | /h:commanButton
  | 
  | ..
  | 
Thank you for any help!

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

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


[jboss-user] [JBoss Seam] - Re: Right Click Contextual Menu

2007-09-12 Thread gus888
As far as I know, ICEfaces has put it in JIRA, but no implementation yet

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

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


[jboss-user] [JBoss Seam] - Re: ICEFaces and Seam 2.0

2007-09-10 Thread gus888
Try ICEfaces svn icefaces-seam-gen:
http://sventon.icefaces.org/svn/repobrowser.svn?path=%2fprojects%2ficefaces-seam-gen%2ftrunkrevision=HEADname=repo

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

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


[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-09-08 Thread gus888
Great job, Pete. Thank you s much.

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

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


[jboss-user] [JBoss Seam] - Re: em is always null in my quartz scheduler, plz help.

2007-08-11 Thread gus888
Hi Pete,

I have the same problem. I created a subClass @override schedule method, which 
loads schedules from database. When I inject @In entityManager, it also got 
null. I don't have any idea how to deal with this situation. Could you please 
give some guidance? Thank you very much in advance.

@Override
  | protected Collection loadEntries(Date startDate, Date endDate) {
  | List selection = em.createQuery(
  | select ea.event from EventAttendee ea  +
  | where ea.attendee = :person)
  | .setParameter(person, user)
  | .getResultList();
  | System.out.println(event size === + selection.size());
  | return selection;
  | }

Best wishes,

Gus

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

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


[jboss-user] [JBoss Seam] - Re: End conversation when user leaves a page

2007-07-10 Thread gus888
[EMAIL PROTECTED] wrote : On navigation away, yes. 
Hi Pete,

Could you please give a hint how to end a conversation on navigation away? 
Thank you very much in advance!

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

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


[jboss-user] [JBoss Seam] - Re: ICEfaces 1.6 is out.

2007-07-09 Thread gus888
I upgraded to ICEfaces 1.6 from ICEfaces 1.6DIV#5 on Seam1.3 project, it works 
excellent. Thank you so much.

I ever tried ICEfaces 1.6 DIV#5 + Seam2.0, but it failed. I have not tried 
ICEfaces1.6 + Seam2.0. I don't know whether ICEfaces1.6 is compatible with 
Seam2.0. Thank you.

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

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


[jboss-user] [JBoss Seam] - entityManager null exception on CVS20070623

2007-06-23 Thread gus888
Hi all,

I just downloaded the new CVS and tested it, but I got entityManager null 
exception in Authenticator. Thank you in advance.
In Authenticator:   @In(create = true)
  | private EntityManager entityManager;
In components.xml   core:managed-persistence-context name=entityManager 
auto-create=true
  | persistence-unit-jndi-name=java:/plifarEntityManagerFactory/
The exceptions:20:52:21,343 ERROR [SeamLoginModule] Error invoking login method
  | javax.el.ELException: org.jboss.seam.RequiredException: In attribute 
requires non-null value: authenticator.entityManager
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
  | at 
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:177)
  | at 
org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:104)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
  | at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  | at 
javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
  | at 
javax.security.auth.login.LoginContext.login(LoginContext.java:575)
  | at org.jboss.seam.security.Identity.authenticate(Identity.java:321)
  | at org.jboss.seam.security.Identity.authenticate(Identity.java:311)
  | at org.jboss.seam.security.Identity.login(Identity.java:227)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
  | at 
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | at 
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
  | at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at 
com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:57)
  | at 
com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:45)
  | at 
com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:19)
  | at 
com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
  | at 
com.icesoft.faces.webapp.http.servlet.ViewBoundAdaptingServlet.service(ViewBoundAdaptingServlet.java:30)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
  | at 
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:89)
  | at 
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
  | at 

[jboss-user] [JBoss Seam] - Re: entityManager null exception on CVS20070623

2007-06-23 Thread gus888
Sorry, I just found the solution from Seam examples. I changed the persisent 
code as followings in components.xml, and exceptions gone. Thank you.
persistence:managed-persistence-context name=entityManager
  |   auto-create=true
  |   
persistence-unit-jndi-name=java:/seampayEntityManagerFactory /
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Greate thanks to Jboss team and Jboss-Seam team especial

2007-06-15 Thread gus888
+1

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

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


[jboss-user] [JBoss Seam] - Re: Use of the Tomahawk tag library not recommended

2007-06-15 Thread gus888
Hi,

It was discussed a lot before. You may search tomahawk in this form to find 
some answers.

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

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


[jboss-user] [JBoss Seam] - Exception thrown on Seam1.3.0ALPHA

2007-06-15 Thread gus888
Hi all,

When I updated to Seam1.3.0ALPHA, I got the following exceptions. I checked 
source codes of SeamCVS20070526, and the Manager class has the method of 
getConversationIsLongRunningParameter(), but in Seam1.3.0ALPHA, the Manager 
class does not has the method. Anybody can give me a help? Thank you in advance.

JBoss4.2.0GA,
Seam1.3.0ALPHA
ICEfaces 1.6DIV#5

23:45:35,812 INFO  [Lifecycle] starting up: org.jboss.seam.core.servletSession
  | 23:45:35,859 ERROR [SeamUtilities] Exception loading seam environment:
  | java.lang.NoSuchMethodException: 
org.jboss.seam.core.Manager.getConversationIsLongRunningParameter()
  | at java.lang.Class.getMethod(Class.java:1581)
  | at 
com.icesoft.util.SeamUtilities.loadSeamEnvironment(SeamUtilities.java:321)
  | at com.icesoft.util.SeamUtilities.clinit(SeamUtilities.java:63)
  | at 
com.icesoft.faces.webapp.http.servlet.ServletExternalContext.insertNewViewrootToken(ServletExternalContext.java:431)
  | at 
com.icesoft.faces.webapp.http.servlet.ServletExternalContext.init(ServletExternalContext.java:98)
  | at 
com.icesoft.faces.webapp.http.servlet.ServletView.init(ServletView.java:44)
  | at 
com.icesoft.faces.webapp.http.servlet.SingleViewServlet.service(SingleViewServlet.java:39)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
  | at 
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:89)
  | at 
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
  | at 
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
  | at 
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:65)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | 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.ExceptionFilter.doFilter(ExceptionFilter.java:60)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 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:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:595)

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

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


[jboss-user] [JBoss Seam] - Re: Exception thrown on Seam1.3.0ALPHA

2007-06-15 Thread gus888
Hi Ramazan,

Thank you for your quick reply. I reviewed the postanonymous wrote : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051500#4051500  I 
already removed conversation-is-long-running-parameter from core:manager in 
components.xml. I think the problem probably resulted from ICEfaces, since 
icefaces\core\src\com\icesoft\util\SeamUtilities.java(322) has the code of 
seamManagerClass.getMethod(getConversationIsLongRunningParameter. I will post 
the problem on ICEfaces forum. Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: SEAM and Icefaces

2007-06-14 Thread gus888
Yes, I use it. It is very good to integrate Seam with ICEfaces.

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

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


[jboss-user] [JBoss Seam] - How to start a new conversation in a process of a conversati

2007-06-13 Thread gus888
Hi all,

I want to start a new conversation in a process of a conversation. Why I don't 
want to use nested conversation is that the new conversation may be called from 
a conversation session bean or from a stateful session bean. Anybody can give 
me guidance? Thank you very much in advance.

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

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


[jboss-user] [JBoss Seam] - Re: Is there anybody get s:fileUpload works in ICEfaces inte

2007-06-08 Thread gus888
Anybody can give me a help? I really appreciate it. 

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

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


[jboss-user] [JBoss Seam] - Where is Petemuir?

2007-06-06 Thread gus888
I have not seen him on the forum for a while. Where is he? He gave us a lot of 
great help! We are missing him.

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

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


[jboss-user] [JBoss Seam] - Re: Where is Petemuir?

2007-06-06 Thread gus888
Christian, Thank you for your reply and thank you for your great Java 
Persistence and Hibernate book.

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

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


[jboss-user] [JBoss Seam] - Is there anybody get s:fileUpload works in ICEfaces integrat

2007-05-31 Thread gus888
Hi all,

I want to know whether somebody get s:fileUpload to work in ICEfaces 
integration project. I tested it a couple of months ago, and failed, but I 
don't know whether it was fixed now. Thank you very much. Now, I got a problem 
on ice:fileUpload in recent DIV 1.6 releases, so I want to switch to 
s:fileUpload. Thanks.

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

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


[jboss-user] [JBoss Seam] - Need an advice to improve Seam-ICEfaces fileUpload Session b

2007-05-29 Thread gus888
Hi all,

I reviewed the Seam-ICEfaces fileUpload demo codes (as follows), and I want to 
change the SFSB to conversation bean. In addition, the codes seem a little hard 
to follow, anybody can give some advice on how to simplify them? I really 
appreciate it. Thank you very much in advance. The demo codes are listed as 
follows:

  | /**
  |  * pThe InputFileBackerBean class is the backing bean for the inputfile 
showcase
  |  * demonstration. It is used to store the state of the file uploading
  |  * operation./p
  |  *
  |  * @since 0.3.0
  |  */
  | @Stateful
  | 
  | @Name(inputFileBackerBean)
  | @Scope(ScopeType.SESSION)
  | public class InputFileBackerBean implements InputFileBacker, Renderable, 
Serializable {
  | 
  | private int percent = -1;
  | private File file = null;
  | private transient PersistentFacesState state;
  | 
  | private String fileName = ;
  | private String contentType = ;
  | 
  | private InnerProgressMonitor pmImpl;
  | 
  | private static Log log =
  | LogFactory.getLog(InputFileBackerBean.class);
  | 
  | public InputFileBackerBean() {
  | pmImpl = new InnerProgressMonitor();
  | state = PersistentFacesState.getInstance();
  | }
  | 
  | public PersistentFacesState getState() {
  | return state;
  | }
  | 
  | public void renderingException (RenderingException re) {
  | log.error(Rendering exception  , re);
  | }
  | 
  | 
  | public void setPercent(int percent) {
  | this.percent = percent;
  | }
  | 
  | public int getPercent() {
  | return percent;
  | }
  | 
  | public void setFile(File file) {
  | this.file = file;
  | }
  | 
  | public File getFile() {
  | return file;
  | }
  | 
  | public InnerProgressMonitor getProgressMonitor() {
  | return pmImpl;
  | }
  | 
  | public InnerProgressMonitor getActionMonitor() {
  | return pmImpl;
  | } 
  | 
  | 
  | public void setFileName(String fileName) {
  | this.fileName = fileName;
  | }
  | 
  | public String getFileName() {
  | 
  | return fileName;
  | }
  | 
  | public void setContentType(String contentType) {
  | this.contentType = contentType;
  | }
  | 
  | public String getContentType() {
  | return contentType;
  | }
  | 
  | @Remove
  | @Destroy
  | public void destroy() {
  | }
  | 
  | 
  | /**
  |  * Inner class to handle updates and action. Do this to keep the
  |  * render call from triggering concurrent access problems in the Bean. 
  |  */
  | public class InnerProgressMonitor implements
  |   Serializable {
  | 
  | 
  | 
  | public void progress(EventObject event) {
  | 
  | com.icesoft.faces.component.inputfile.InputFile file =
  | (com.icesoft.faces.component.inputfile.InputFile) 
event.getSource();
  | int percent = file.getFileInfo().getPercent();
  | InputFileBackerBean.this.setPercent( percent );
  | InputFileBackerBean.this.setFile( file.getFile() );
  | 
  | if (log.isDebugEnabled()) {
  | log.debug(Progress - Percent:  + percent);
  | }
  |   try {
  | // execute the lifecycle to initialize Seam to prevent
  | // IllegalStateExceptions, and render.
  | state.execute();
  | state.render();
  | 
  | } catch (RenderingException re ) {
  | System.out.println(Rendering exception :  + re);
  | re.printStackTrace();
  | }
  | }
  | 
  | 
  | 
  | 
  | public String action(ActionEvent event) {
  | 
  | com.icesoft.faces.component.inputfile.InputFile inputFile = 
(com.icesoft.faces.component.inputfile.InputFile) event.getSource();
  | if (inputFile.getStatus() == 
com.icesoft.faces.component.inputfile.InputFile
  | .SAVED) {
  | 
InputFileBackerBean.this.setFileName(inputFile.getFileInfo().getFileName());
  | 
InputFileBackerBean.this.setContentType(inputFile.getFileInfo().getContentType());
  | InputFileBackerBean.this.setFile(inputFile.getFile());
  | 
  | if (log.isDebugEnabled()) {
  | log.debug(File uploaded:  + 
inputFile.getFileInfo().getFileName());
  | }
  | }
  | 
  | if (inputFile.getStatus() == 
com.icesoft.faces.component.inputfile.InputFile
  | .INVALID) {
  | inputFile.getFileInfo().getException().printStackTrace();
  | }
  | 
  | if (inputFile.getStatus() == 
com.icesoft.faces.component.inputfile.InputFile
  | .SIZE_LIMIT_EXCEEDED) {
  | 

[jboss-user] [JBoss Seam] - Re: An enterprise question on s:graphicImage

2007-05-03 Thread gus888
Hi Raghinii,

Thank you very much for your advice. The project which I plan to do is very 
similar to web 2.0 picture sharing sites. The picture size may be big or small, 
depending on user's uploading. At this situation, should I separately save 
image contents into two database columns (small icon content and full content)? 
Retrieve small icon content to display thumbnail list (20-30), then retrieve a 
full icon content to enlarge a full image. Is it right? Thanks again for your 
help.

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

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


[jboss-user] [JBoss Seam] - Re: An enterprise question on s:graphicImage

2007-05-03 Thread gus888
Hi Shane and Peter,

Thank you so much for your great help. I really want to use Seam to build 
an enterprise Web 2.0 site to demonstrate the great Seam framework. anonymous 
wrote : save both the image thumbnail and the full size image in separate 
database columns (separate records would be even better) Yes, I want to save 
them into two separate tables, then use OneToOne mapping full size content and 
lazy fetch.

anonymous wrote : s:graphicImage fileName=icon-#{icon.id}-thumb /Peter, if 
I use h:graphicImage, the following code is correct for cache function? Thank 
you. h:graphicImage 
value=/content/images?id=icon-#{icon.id}-thumbwidth=170/

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

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


[jboss-user] [JBoss Seam] - An enterprise question on s:graphicImage

2007-05-02 Thread gus888
Hi all,

I plan to use s:graphicImage in an enterprise project. I don't know how to save 
image content source in following two situations: 

1) Display a list of small icon images in one page; 
2) Click one of them to get a full size image;

Should I save them into two separate image contents (small icon content and 
full icon content)? Or just save them into one content, then use width=? to 
display the two situations?

I think if save them into two separate image contents, it will be quicker to 
retrieve a list of small icon image contents than to retrieve a list of full 
size image contents from database, but frankly, I don't have any experience on 
this. I really hope somebody can give me some guidance or advice. I sincerely 
appreciate it. Thank you very much in advance!

Best regards,

Gus



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

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


[jboss-user] [JBoss Seam] - Re: Image for s:link

2007-05-01 Thread gus888
The image function was already added in s:button. You may follow the Seam 
reference docs to use it. It seems like image= 

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

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


[jboss-user] [JBoss Seam] - Re: ICEfaces v1.6.0 DR#3

2007-04-20 Thread gus888
This is great news. I used the ICEfaces v1.6.0 DR#3 to run Seam CVS20070417 
icefaces example on JBoss AS4.2.0.CR2, no exception happens again, but you have 
to add the following codes in web.xml:

  * This parameter indicates to ICEfaces to use the standard JSF implementation 
of EVENT scope. ICEfaces applications that do not use Seam may set this false, 
and store application information within the RequestMap in the ExternalContext 
for longer than a single Request or Server initiated render cycle.

context-param
  |param-namecom.icesoft.faces.standardRequestScope/param-name
  |param-valuetrue/param-value
  | /context-param
  * The following Listener must also be defined in your web.xml file:
listener   
  | 
listener-classcom.icesoft.faces.webapp.http.servlet.SessionDispatcher$Listener/listener-class
 
  | /listener
  | 

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

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


[jboss-user] [JBoss Seam] - Re: ICEfaces v1.6.0 DR#3

2007-04-20 Thread gus888
Use DR#3 and put the backport-util-concurrent.jar from icefaces package into 
lib directory.

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

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


[jboss-user] [JBoss Seam] - Re: Seam CVS now on JBoss AS 4.2 CR1

2007-04-19 Thread gus888
Thanks, Peter. Since I also got the deployment error for calendar.ear, I 
thought the whole mail deployment failed. Thanks again for your very kind help!

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

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


[jboss-user] [JBoss Seam] - Re: Seam CVS now on JBoss AS 4.2 CR1

2007-04-19 Thread gus888
Hi Peter,

After I deployed Seam mail example to JBosss 4.2 server, I immediately got the 
following exceptions. Do I need to modify some server setting files? Thank you 
so much for your guidance.
2007-04-19 20:01:54,593 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackLocalException in method: public abstract void 
javax.jms.MessageListener.onMessage(javax.jms.Message), causedBy:
  | javax.management.RuntimeMBeanException
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:176)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
  | at $Proxy145.processMail(Unknown Source)
  | at 
org.buni.meldware.mail.delivery.DeliveryMDB.onMessage(DeliveryMDB.java:103)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
  | at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
  | at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
  | at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
  | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
  | at 
org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
  | at org.jboss.ejb.Container.invoke(Container.java:960)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
  | at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
  | at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
  | at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
  | at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
  | at org.jboss.mq.SpySession.run(SpySession.java:323)
  | at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
  | at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.management.RuntimeMBeanException
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:176)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
  | at $Proxy111.send(Unknown Source)
  | at 
org.buni.meldware.mail.MailListenerChainService.processMail(MailListenerChainService.java:194)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 

[jboss-user] [JBoss Seam] - Re: Seam CVS now on JBoss AS 4.2 CR1

2007-04-18 Thread gus888
petemuir wrote : Note that JBoss AS 4.2.0.CR2 is now out - CVS is running 
well on it :)
Hi Peter, however, when I run Seam-CVS20070417 mail example on JBoss AS 
4.2.0.CR2, I still got exceptions. I don't know whether I my server settings 
are wrong (I use all default values).  Thank you.

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

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


[jboss-user] [JBoss Seam] - Exceptions in JBoss log file when deploying Seam examples

2007-04-17 Thread gus888
Hi all,

When I deploy Seam examples to JBoss servers, I always got the following 
exceptions from log file, although these examples work as normal on servers. I 
want to know how to terminate these exceptions. I am currently using 
jboss-4.2.0.CR2 and Seam-CVS.20070417. Any help will be very appreciative. 
Thank you very much in advance.
2007-04-17 20:11:52,968 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] 
Creating Schema
  | 2007-04-17 20:11:52,968 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] 
Could not create table with SQL: CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID 
INTEGER NOT NULL, DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP 
CHAR(1), MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) )
  | java.sql.SQLException: Table already exists: JMS_MESSAGES in statement 
[CREATE CACHED TABLE JMS_MESSAGES]
  | at org.hsqldb.jdbc.Util.throwError(Unknown Source)
  | at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
  | at 
org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95)
  | at 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)
  | at 
org.jboss.mq.pm.jdbc2.PersistenceManager.createSchema(PersistenceManager.java:280)
  | at 
org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1796)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy42.start(Unknown Source)
  | at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  | at 

[jboss-user] [JBoss Seam] - Need help on deploying seam-mail example!

2007-04-15 Thread gus888
Hi there,

I tried to deploy the mail example of Seam-CVS20070414 into JBoss4.0.5GA, but I 
always got the following exceptions. Any guidance will be very appreciative. 
Thank you very much in advance.
org.jboss.deployment.DeploymentException: url 
file:/D:/Servers/jboss-4.0.5.GA/server/default/deploy/jbossws.sar/activation.jar
 could not be opened, does it exist?
  | at org.jboss.deployment.DeploymentInfo.init(DeploymentInfo.java:214)
  | at 
org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1137)
  | at org.jboss.deployment.MainDeployer.init(MainDeployer.java:884)
  | 
  | 
  | org.jboss.deployment.DeploymentException: url 
file:/D:/Servers/jboss-4.0.5.GA/server/default/deploy/jbossws.sar/jsr173_1.0_api.jar
 could not be opened, does it exist?
  | at org.jboss.deployment.DeploymentInfo.init(DeploymentInfo.java:214)
  | at 
org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1137)
  | 
  | 
  | org.jboss.deployment.DeploymentException: url 
file:/D:/Servers/jboss-4.0.5.GA/server/default/deploy/jbossws.sar/jaxb1-impl.jar
 could not be opened, does it exist?
  | at org.jboss.deployment.DeploymentInfo.init(DeploymentInfo.java:214)
  | at 
org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1137)
  | 
  | 
  | 2007-04-15 18:38:41,203 DEBUG [org.jboss.cache.TreeCache] failed looking up 
TransactionManager, will not use transactions
  | javax.naming.NameNotFoundException: TransactionManager not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
  | at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
  | 
  | 
  | 2007-04-15 18:38:55,406 DEBUG [org.jboss.system.ServiceController] starting 
service meldware.mail:type=MailServices,name=UserEditor
  | 2007-04-15 18:38:55,484 WARN  
[org.buni.meldware.mail.usereditor.db.DBUserEditorImpl] could not create user 
or role table 
  | 2007-04-15 18:38:55,484 ERROR [STDERR] java.lang.RuntimeException: 
java.sql.SQLException: Table already exists: MAIL_USERS in statement [CREATE 
TABLE MAIL_USERS]
  | 2007-04-15 18:38:55,484 ERROR [STDERR]  at 
org.buni.meldware.mail.usereditor.db.DBUserEditorImpl.executeStatement(DBUserEditorImpl.java:189)
  | 2007-04-15 18:38:55,484 ERROR [STDERR]  at 
org.buni.meldware.mail.usereditor.db.DBUserEditorImpl.start(DBUserEditorImpl.java:156)
  | 2007-04-15 18:38:55,484 ERROR [STDERR]  at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 
  | 
  | 2007-04-15 18:38:55,593 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] 
Could not create table with SQL: CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID 
INTEGER NOT NULL, DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP 
CHAR(1), MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) )
  | java.sql.SQLException: Table already exists: JMS_MESSAGES in statement 
[CREATE CACHED TABLE JMS_MESSAGES]
  | at org.hsqldb.jdbc.Util.throwError(Unknown Source)
  | at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
  | at 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)
  | at 
org.jboss.mq.pm.jdbc2.PersistenceManager.createSchema(PersistenceManager.java:277)
  | at 
org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1796)
  | 
  | 
  | 2007-04-15 18:38:55,593 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] 
Could not create table with SQL: CREATE CACHED TABLE JMS_TRANSACTIONS ( TXID 
INTEGER, PRIMARY KEY (TXID) )
  | java.sql.SQLException: Table already exists: JMS_TRANSACTIONS in statement 
[CREATE CACHED TABLE JMS_TRANSACTIONS]
  | at org.hsqldb.jdbc.Util.throwError(Unknown Source)
  | at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
  | at 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251)
  | at 
org.jboss.mq.pm.jdbc2.PersistenceManager.createSchema(PersistenceManager.java:352)
  | at 
org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1796)
  | ...
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Need help on deploying seam-mail example!

2007-04-15 Thread gus888
Hi Peter,

Thank you so much for the quick reply. I will try it on JBoss4.2.0CR1. Thanks 
again.

Best regards,

Gus

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

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


[jboss-user] [JBoss Seam] - Re: Exceptions on Seam CVS20070322

2007-03-27 Thread gus888
Hi Gavin,

I tested them on CVS20070326, and it seems that the two exceptions were fixed. 
BTW, anonymous wrote : I deprecated the method instead of removing it.It means 
the Seam persistence was deprecated? Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: Problem on deploying Seam mail example on CVS20070324

2007-03-26 Thread gus888
Can anybody give a help on how to correctly deploy and run the Seam mail 
example? Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: Exceptions on Seam CVS20070322

2007-03-26 Thread gus888
Hi Gavin, thanks for your reply. How about the second 
LazyInitializationException on the first thread? It seems I should not get the 
Lazy exception since I use Seam persistence manager. My code works fine in 
Seam1.2.0Patch1, but failed in the CVS. Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: framework:entity-query

2007-03-26 Thread gus888
Check your EntityManager object is entityManager. I ever got the null exception 
when use EntityManager em. Later, after I changed to EntityManager 
entityManager, the exception gone.

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

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


[jboss-user] [JBoss Seam] - Re: framework:entity-query

2007-03-26 Thread gus888
Like this:  core:managed-persistence-context name=entityManager 
  | persistence-unit-jndi-name=java:/cvnEntityManagerFactory/
  | 

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

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


[jboss-user] [JBoss Seam] - Problem on deploying Seam mail example on CVS20070324

2007-03-25 Thread gus888
Hi there,

I downloaded Seam CVS20070324, run 'ant deploy' under examples/mail. When I 
start Jboss4.0.5, I got the following exception. I don't know whether I need to 
modify other settings or not.  Any guidance is appreciative!
2007-03-25 19:25:02,062 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] schema 
export unsuccessful
  | org.hibernate.JDBCException: Error during import script execution
  | at 
org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:258)
  | at 
org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:192)
  | at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:133)
  | at 
org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:311)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:688)
  | at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
  | at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy186.start(Unknown Source)
  | at 
org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
  | at 
org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
  | at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
  | at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 

[jboss-user] [JBoss Seam] - Re: Problem on deploying Seam mail example on CVS20070324

2007-03-25 Thread gus888
Follow the first thread above When I began to run the mail program(input name 
and email address, and click button), I got the following exception. I ever 
successfully deploy the mail example in Seam1.2.0Pacth1 in the same deployment 
method. Thanks for any help.

2007-03-25 19:58:59,828 ERROR [org.jboss.seam.example.mail.MailExample] Error 
sending mail
  | java.lang.IllegalStateException: No Factories configured for this 
Application. This happens if the faces-initialization does not work at all - 
make sure that you properly include all configuration settings necessary for a 
basic faces application and that all the necessary libs are included. Also 
check the logging output of your web application and your container for any 
exceptions!
  | If you did that and find nothing, the mistake might be due to the fact that 
you use some special web-containers which do not support registering 
context-listeners via TLD files and a context listener is not setup in your 
web.xml.
  | A typical config looks like this;
  | listener
  |   
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
  | /listener
  | 
  | at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
  | at 
javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:742)
  | at 
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:509)
  | at org.jboss.seam.ui.JSF.renderChild(JSF.java:171)
  | at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
  | at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:54)
  | at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:42)
  | at org.jboss.seam.mail.ui.UIBody.encodeChildren(UIBody.java:33)
  | at org.jboss.seam.ui.JSF.renderChild(JSF.java:174)
  | at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
  | at org.jboss.seam.mail.ui.UIMessage.encodeChildren(UIMessage.java:159)
  | at org.jboss.seam.ui.JSF.renderChild(JSF.java:174)
  | at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:150)
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:112)
  | at org.jboss.seam.example.mail.MailExample.send(MailExample.java:42)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
  | 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.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 
org.jboss.seam.example.mail.MailExample_$$_javassist_19.send(MailExample_$$_javassist_19.java)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
  | at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 

[jboss-user] [JBoss Seam] - Re: Can anybody share how to create mailbox ER tables?

2007-03-22 Thread gus888
Hi Peter,

Thank you for your reply. In my project, I want to use entity tables to save 
these emails (sent emails and received emails) into database. So I want to use 
entityManager.persist(...). Could you please give some guidance on designing 
email entity fields? Thank you very much.
Best regards,

Gus

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

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


[jboss-user] [JBoss Seam] - Exceptions on Seam CVS20070322

2007-03-22 Thread gus888
Hi there,

When I moved to Seam Seam CVS20070315 and Seam CVS20070322 from Seam 
CVS20070305, I always got the following NoSuchMethodException 
exception:2007-03-22 22:14:13,609 ERROR [com.icesoft.util.SeamUtilities] 
Exception loading seam environment: 
  | java.lang.NoSuchMethodException: 
org.jboss.seam.core.Manager.encodeConversationId(java.lang.String)
  | at java.lang.Class.getMethod(Class.java:1581)
  | at 
com.icesoft.util.SeamUtilities.loadSeamEnvironment(SeamUtilities.java:250)
  | at com.icesoft.util.SeamUtilities.clinit(SeamUtilities.java:49)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.checkSeamRequestParameters(PersistentFacesServlet.java:483)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:326)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 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)
  | 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.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
  | 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:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)

In addition, I also got the LazyInitializationException: 
org.hibernate.LazyInitializationException: could not initialize proxy
The strange thing is that there was no the exception on CVS20070305. I use  
core:managed-persistence-context name=entityManager 
  | persistence-unit-jndi-name=java:/cvnEntityManagerFactory/
Any help is appreciative.

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

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


[jboss-user] [JBoss Seam] - Can anybody share how to create mailbox ER tables?

2007-03-21 Thread gus888
Hi all,

I want to use Seam mail, but I don't have any idea on how to create mail box 
database tables, e.g. inbox_mails, sent_mails, deleted_mails. Anybody can share 
the entity relational structures? Thank you very much in advance.

Best regards,

Gus

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

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


[jboss-user] [JBoss Seam] - Re: Seam, EL enhancements and ICEFaces

2007-03-12 Thread gus888
I got the exact same exception. 

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

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


[jboss-user] [JBoss Seam] - Re: Anybody made s:upload work in Seam+ICEfaces app?

2007-03-05 Thread gus888
Hi Tony,

Thank you very much for your very detailed codes, but I still have a problem 
with servlet mapping. Could you please share your web.xml and faces-config.xml 
codes? Thank you!!!

Gus

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

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


[jboss-user] [JBoss Seam] - Re: Anybody made s:upload work in Seam+ICEfaces app?

2007-03-05 Thread gus888
Hi Tony,

Oh, I found the solution. I missed the following code in web.xml:   !-- 
file upload Servlet --
  | servlet
  | servlet-nameuploadServlet/servlet-name
  | servlet-class
  | com.icesoft.faces.component.inputfile.FileUploadServlet
  | /servlet-class
  | load-on-startup1/load-on-startup
  | /servlet
  | 
  | servlet-mapping
  | servlet-nameuploadServlet/servlet-name
  | url-pattern/uploadHtml/url-pattern
  | /servlet-mapping
Thank you.

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

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


[jboss-user] [JBoss Seam] - Re: s:dynamicImage is possible in Seam 1.1.5

2007-03-04 Thread gus888
Hi Peter,

I tested it. It is excellent!!! Thank you sooo much for your great job!

Best regards,

Gus

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

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


[jboss-user] [JBoss Seam] - Re: Questions on s:selectItems

2007-03-03 Thread gus888
Hi Peter,

Thank you for your reply. Yes, when I use em as persistent name, I got an 
exception entityManager is null. Then I changed em into entityManager in 
components.xml, and also changed the converter code to: return 
((EntityManager)Component.getInstance(entityManager)).find(Category.class, 
Integer.valueOf(arg2));  then the exception disappeared.

anonymous wrote : the s:selectItems currently doesn't support 
h:selectOneRadio.Sorry I made a stupid mistake, s:selectItems works in 
h:selectOneRadio. Thank you very much.

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

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


[jboss-user] [JBoss Seam] - Re: Questions on s:selectItems

2007-03-03 Thread gus888
petemuir wrote : Or are you trying to use the entityconverter with this? 
Peter, I exactly followed the ui example in Seam 1.2.0. 
1. added following code in components.xml:framework:entity-query 
name=categories ejbql=select c from Category c /
2. created Converters class, and added the convert code as same as the ui 
example.

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

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


[jboss-user] [JBoss Seam] - Re: Questions on s:selectItems

2007-03-03 Thread gus888
Thank you so much, Peter.

Gus

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

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


[jboss-user] [JBoss Seam] - A bug on s:fileUpload in Seam + ICEfaces

2007-03-03 Thread gus888
Hi,

I think that it is a bug in org.jboss.seam.ui.UIFileUpload. In the 
decode(FacesContext context) method of UIFileUpload, if I run seamspace 
example, the request in Object *request* = 
context.getExternalContext().getRequest(); got MultipartRequest Object. But in 
Seam+ICEfaces application, I found that the request got 
ServletEnvironmentRequest  Object (from icefaces) in both ice:form 
enctype=multipart/form-data and h:form enctype=multipart/form-data 
cases. Since the decode method does not have if (request instanceof 
ServletEnvironmentRequest)... the uploaded byte data is always null. Hope it is 
correct. Thanks.

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

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


[jboss-user] [JBoss Seam] - Questions on s:selectItems

2007-03-02 Thread gus888
Hi,

It seems that s:selectItems has a bug. If I use em entity manager name in the 
components.xml: core:managed-persistence-context name=em 
  | persistence-unit-jndi-name=java:/cvnEntityManagerFactory/, 
and I used following code in converters class:return ((EntityManager) 
Component.getInstance(em)).find(
  | Category.class, 
Integer.valueOf(arg2));
then I got the entityManager is null exception. However, after I change em to 
entityManager, exception disappeared. I have been using em for a little 
long time. Should I have to use entityManger?

In addition, I ever read a posting which stated the s:selectItems currently 
doesn't support h:selectOneRadio. Is it correct? since I cannot get it work. 
Thanks. I use Seam CVS20070302

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

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


[jboss-user] [JBoss Seam] - null exception on @inject in ICEfaces PanelTabListener

2007-02-27 Thread gus888
Hi there,

I tried to inject a Seam session bean into panelTabListener, but I always got 
null value. The code is follows:@Name(tabListenerImpl)
  | @Stateless
  | public class TabListenerImpl implements TabChangeListener {
  | 
  | @In (create=true, required=true)
  | @Out (required=false)
  | private ProjectFinder projectFinder;
  | 
  | public void processTabChange(TabChangeEvent e) throws 
AbortProcessingException {
  | int index = e.getNewTabIndex();
  | if (index == 0)
  | projectFinder.find();
  | }
  | }
The jsp code:ice:panelTabSet selectedIndex=0 styleClass=myTab
  | 
  | ice:panelTab id=tab1 label=Project
  | ice:panelGroup id=Panel1
  | f:subview id=re1
  | ui:include src=/projects.xhtml /
  | /f:subview
  | /ice:panelGroup
  | /ice:panelTab
  | ice:panelTab id=tab2 label=Tab 2
  | ice:panelGroup id=Panel2
  | f:subview id=re2
  | h:outputText value=Tab 2 /
  | /f:subview
  | /ice:panelGroup
  | /ice:panelTab
  | ice:tabChangeListener type=icefaces.TabListenerImpl/
  | /ice:panelTabSet
I don't what is wrong with code, or some issues on ICEfaces+Seam. Anybody can 
give some direction? Thank you in advance.

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

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


  1   2   3   >