[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-15 Thread umarzubair
Now insert/updates are working. I have done two changes. 1. At start of httpservlet, I have written lines of code // to start transaction, it is required for any update, insert try { if (!Transactions.isTransactionActiveOrMarkedRollback()) {

[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-12 Thread umarzubair
Ok. Now I have a couple of more issues. 1: How can I create FacesContext within my httpservlet. I am using FacesContext for getting ResourceBundle and Locale etc. For component calls from JSF FacesContext.getCurrentInstance() is working fine. 2: Database changes are not being commited

[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-12 Thread Ci
1: I do like below: FacesContextFactory _facesContextFactory = |(FacesContextFactory) FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); | LifecycleFactory lifecycleFactory = |(LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); |

[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-11 Thread umarzubair
Now, I am using SeamServletFilter. I have to use following line of code in my httpservlet AuthenticationBean authBean = new AuthenticationBean(); authBean.setLoginId(userId); authBean.setPassword(pwd); LoginAction la = (LoginAction) Component.getInstance(LoginAction.class);

[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-11 Thread [EMAIL PROTECTED]
This is the right way. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977594#3977594 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977594 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-10 Thread Ci
SeamServletFilter ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977233#3977233 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977233 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-10 Thread sebasfiorent
No, SeamServletFilter is intended to create an process Ajax calls. I've implemented a Filter which does some things, and uses Seam components. Inside my Filter class I have the following method which gets called in every request. protected void inicarSeam(ServletRequest request,

[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-10 Thread sebasfiorent
No, SeamServletFilter is intended to create an process Ajax calls. I've implemented a Filter which does some things, and uses Seam components. Inside my Filter class I have the following method which gets called in every request. protected void inicarSeam(ServletRequest request,

[jboss-user] [JBoss Seam] - Re: How can I create seam context etc in httpservlet

2006-10-10 Thread [EMAIL PROTECTED]
SeamServletFilter is the right way to go. Its not *only* for AJAX. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977322#3977322 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977322