[jboss-user] [JBoss Seam] - Questions about injection and outjection

2007-06-13 Thread y_zl
1)When a method in a session bean is invoked, will Seam inject all the variables annotated by @IN or just inject the variables used by the being invoked method? 2)When a Session Bean is injected as a facade, is it possible for the mthod in the session facade bean inject or outject varibales?

[jboss-user] [JBoss Seam] - Re: Questions about injection and outjection

2007-06-13 Thread y_zl
1) If the answer to question one is Yes, does it mean that it will inject non-relevant variables as well? Does it affect performance ? 2) For question 2, If I have two session beans A and B. B is used as a session facade. | @Stateless | @Name(a) | public Class A ...{

[jboss-user] [JBoss Seam] - Generate 1000 number using facelet

2007-06-07 Thread y_zl
Hi!, I tried to display 1000 numbers in a page under some condition. It seemed c:if and c:forEach did not work well with my condition, so I tried ui:repeat. The problem is I have to hold the 1000 numbers in a arraylist. Anybody knows better solutions that uses less memory? View the original

[jboss-user] [JBoss Seam] - Ajax and concurrency

2007-04-13 Thread y_zl
Hi! I have a SFSB with like following: | | .. | Doc doc; | | @Begin | public void getDoc() | { | doc=. | } | | public void preView() | { | | | | } | | @End | public String save() | { | if (doc!=null) | update(); |

[jboss-user] [JBoss Seam] - Two bytes char again

2007-04-13 Thread y_zl
Hi! In my textarea I inputed a char \\#\x\2\5\B\3;(?) and saved it to the DB. When it is retrieved for DB to the textarea, it becomes ?. This behavior is not what we want. Since we need the process string \\#\x\2\5\B\3; instead of char ?. Another problem is when we processing pages containing

[jboss-user] [JBoss Seam] - page parameter of two bytes character of EntityQuery

2007-03-26 Thread y_zl
Hi!, I constructed a search page using EntityQuery. I found the characters of two bytes entered in the form field becomes ? when the result page get redisplayed. Where does the paramters get processed? The the charaters in the submitted url is something like ...ED%FD% Regards View

[jboss-user] [EJB 3.0] - How to assign field value based on auto generated id

2007-03-25 Thread y_zl
I have a field named encryptId which is calcuated based on the id auto generated by mysql. Anybody could give some suggestion on when to set this value in EJB 3.0? any post constructor in EJB 3.0 ? Regards View the original post :

[jboss-user] [JBoss Seam] - is link secure?

2007-03-21 Thread y_zl
Hi! I'd like to know if the links generated by s:link s:button are secure. for example | s:link action=#{AA.method} value=XXX | f:param name=id value=#{object.id} / | /s:link | is it possible for somebody to copy this link to the browser and modify the object id in the current

[jboss-user] [JBoss Seam] - Page Refresh problem

2007-03-14 Thread y_zl
Hi! I have a stateless session bean which outjects a bean to the conversation scope and then redirects to a page which displays the content of the bean. Everything is ok for the display. But when I clicked the refresh button of the browser, this page became blank. Anybody knows a better way

[jboss-user] [JBoss Seam] - Re: Seam gen wire() problem

2007-03-07 Thread y_zl
Those *Home.java, *List.java *.page.xml , etc. were generated under seam 1.1.7 and are running under 1.2.0. I did not re-run seam to generate the projects, since I did a lot of modifications to the genrated pages. It is obvious that the code generated using 1.2 seam-gen are different from that

[jboss-user] [JBoss Seam] - Seam gen wire() problem

2007-03-06 Thread y_zl
Hi!, I just migrated from 1.1.7 to 1.2.0, the view pages gnerated by seam generate-entites don't work. when | public void wire() { | if (role != null) { | getInstance().setRole(role; | } | } is executed from the .page.xml the following exception were thrown. Any

[jboss-user] [JBoss Seam] - Re: Upgrading from 1.1.5 to 1.2

2007-03-04 Thread y_zl
I also got the exception. | | javax.faces.el.EvaluationException: Exception while invoking expression #{authenticator.authenticate} | at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165) | at

[jboss-user] [JBoss Seam] - pass parameters from page to page

2007-02-16 Thread y_zl
Hi! Anybody knows how to pass parameters from one page to another page? for example in pageA.xhtml I have | s:link value= view=/pageB.xhtml | f:param name=para1 value=para1/ | /s:link | in pageB.xhtml I'd like to do the following: | s:link value= view=/pageC.xhtml

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-11-29 Thread y_zl
Anybody can help to answer the above question? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3989864#3989864 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989864 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know

2006-11-28 Thread y_zl
Hi! bfo81, great! I have one question as following: Suppose I have two tables | user(id, name) | userlog(id,userid,content) | I'd like to create a new user and write the log at the same time. Suppose I use extended persistent manager. I have the following code: | @In @Out

[jboss-user] [JBoss Seam] - Seam-gen and recursive tables

2006-11-15 Thread y_zl
anonymous wrote : packages an updated seam-gen which includes a totally revamped database to application reverse engineering tool based on Hibernate Tools I tried a simple recursive table test which has a field parent with a foreign key to this table's id column. test (id, parent, desc)

[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta 1

2006-10-27 Thread y_zl
Security Example: It seems that Authenticator.instance().authenticate(user.getUsername(), user.getPassword()) in LoginAction always return true. It seems jboss-service.xml login-config.xml are not used any more. The sutentication configuration guide still apply to 1.1? View the original post

[jboss-user] [JBoss Seam] - security example problem

2006-10-23 Thread y_zl
Hi!, I followed the instructions from wiki to config the authentication model. but I got the following exception: org.jboss.seam.RequiredException: In attribute requires value for component: authenticatorAction.entityManager. It seems the entityManager attribute could not be created even