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()) {
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
1: I do like below:
FacesContextFactory _facesContextFactory =
|(FacesContextFactory)
FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
| LifecycleFactory lifecycleFactory =
|(LifecycleFactory)
FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
|
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);
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
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
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,
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,
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