How to savestate Spring service bean?

2007-07-18 Thread 101questionjsf
Currently I'm using the JSF bean as Session scoped, so everything ok. But when i change to request scoped, and make the Spring bean transient in my JSF bean, nullpointer because Spring bean is not saved when serialized. Any of you have any work around for this, headache... -- View this message

Need to use Spring

2006-05-05 Thread 101questionjsf
Currently I'm using JSF myfaces, do I need to use Spring + Hibernate? Find them quite complex to use... -- View this message in context: http://www.nabble.com/Need-to-use-Spring-t1562778.html#a4244067 Sent from the MyFaces - Users forum at Nabble.com.

Re: savestate problem, help!!

2006-04-21 Thread 101questionjsf
Still stuck. Deadline getting near. Anyone has any master detail codes to share, will be much appreciated. In deep trouble now. -- View this message in context: http://www.nabble.com/savestate-problem%2C-help%21%21-t1478833.html#a4021076 Sent from the MyFaces - Users forum at Nabble.com.

Re: dataTable master/detail getRowData() - help needed

2006-04-21 Thread 101questionjsf
hi, not sure about your method. But i use the following method in master detail: I remove the datamodel, use arraylist so that it can be serializable. Use savestate to store the arraylist. Then use updateactionlistener to fire the current row to the bean. t:saveState

RE: savestate problem, help!!

2006-04-21 Thread 101questionjsf
Thanks for your reply. I managed to get it work the following way: i use the following method in master detail: I remove the datamodel, use arraylist so that it can be serializable. Use savestate to store the arraylist. Then use updateactionlistener to fire the current row to the bean.

Savestate bean, but exception no valid constructor

2006-04-21 Thread 101questionjsf
I'm using bean with sorting: public UserBean() { //user_id is the default field for sorting super(user_id); } When i put this bean in savestate, i encounter: javax.faces.FacesException: java.io.InvalidClassException: com..admin.UserBean; no valid

savestate problem, help!!

2006-04-20 Thread 101questionjsf
hi all, My listdatamodel is not getting saved. Whenever I clicked on the datascroller button, I have tried so many times, either i get serialiable error or illegalexception -10 error, base is null exception.. Currently, I have the following in my jsp. t:saveState value=#{processBean} /,

savestate problem, help!!

2006-04-20 Thread 101questionjsf
hi all, My listdatamodel is not getting saved. Whenever I clicked on the datascroller button, I have tried so many times, either i get serialiable error or illegalexception -10 error, base is null exception.. Currently, I have the following in my jsp. t:saveState value=#{processBean} /,

Re: savestate problem, help!!

2006-04-20 Thread 101questionjsf
Let me put this simply: Previously, I'm using session scope, now i changed to request scope. I'm using ListDataModel wrapping around an arraylist. Also using datatable and datascroller. I'm using savestate outside of f:view: t:saveState value=#{processBean} / Whenever i clicked page 2 on

Re: savestate problem, help!!

2006-04-20 Thread 101questionjsf
I have managed to make it work if STATE_SAVING_METHOD is server, but it is storing to session. I'm using wrappedData to prevent the serializable error on my listdatamodel: t:saveState value=#{processBean.processResultsModel.wrappedData} / But when i click on the forward and backward buttons of

Forced to use session bean for datatable

2006-04-18 Thread 101questionjsf
hi all, I'm using datatable with sorting option for quite a number of pages, with session beans for nearly all beans. If I switch to use request scope bean, the sorting will not work for the datatable. Is it alright that nearly all my beans are session scoped? Or is there any other option such

RE: Servlet Filter? I'm stuck

2006-04-07 Thread 101questionjsf
hi, I changed the filter pattern in web.xml from /user/* to /*.jsf, then it goes into infinite loop, keep calling login.jsf. I tried checking the uri with endWith login.jsf and login.jsp, then stop looping, but images and css files cannot come thru. Anyone has a filter to spare?

RE: Servlet Filter? I'm stuck

2006-04-07 Thread 101questionjsf
hi, Thanks for your help. I have tried, but weird thing is that the css file and images files cannot be seen on the login page... The filter take out these css and images? -- View this message in context: http://www.nabble.com/RE%3A-Servlet-Filter--t8978.html#a3800292 Sent from the MyFaces

JDBC and Hibernate

2006-04-05 Thread 101questionjsf
hi all, Currently, i'm using JDBC statements, and using Oracle db. But got a feeling these JDBC statements are going to be Oracle specific... Please help me confirm this is true? If using Hibernate, will it tie to Oracle db or it will be regardless of the backend db, it can just run in any db

Spring needed? Myfaces - hibernate?

2006-04-03 Thread 101questionjsf
I'm very new to spring and hibernate. Appreciate someone can let me know why Spring is needed as the middle tier between faces and hibernate? Is faces able to access Hibernate directly? Currently I'm only using Myfaces and using jdbc to access database... -- View this message in context:

Re: Spring needed? Myfaces - hibernate?

2006-04-03 Thread 101questionjsf
hi, I have read thru appfuse site. So to integrate spring, hibernate into jsf, I need to create some dao interface and imple object, xml file mapped to table for hibernate. For spring, i need to create manager interface and imple object. So jsf will talk to spring and spring will talk to

RE: Spring, myfaces, hibernate

2006-03-31 Thread 101questionjsf
hi all, thanks for replying. I can understand using hibernate will remove jdbc coding. But currently, I'm using Myfaces, it already has all the linking between webpages in xx-config.xml, web.xml, so is there any need for Spring? Or maybe i should go n read up more on Spring :) but just want to

RE: Spring, myfaces, hibernate

2006-03-31 Thread 101questionjsf
hi all, thanks for replying. I can understand using hibernate will remove jdbc coding. But currently, I'm using Myfaces, it already has all the linking between webpages in xx-config.xml, web.xml, so is there any need for Spring? Or maybe i should go n read up more on Spring :) but just want to

RE: Spring, myfaces, hibernate

2006-03-31 Thread 101questionjsf
hi all, thanks for replying. I can understand using hibernate will remove jdbc coding. But currently, I'm using Myfaces, it already has all the linking between webpages in xx-config.xml, web.xml, so is there any need for Spring? Or maybe i should go n read up more on Spring :) but just want to

Spring, myfaces, hibernate

2006-03-30 Thread 101questionjsf
Currently I'm using only myfaces to do my application. Is it advisable to use Spring and Hibernate? Can I proceed without them? Currently, whenever connect to db to do something, I'm writing jdbc statements, not using hibernate. And never use Spring. Only 1 jsp page linked to 1 managed bean.

how to not show log message from faces?

2006-03-30 Thread 101questionjsf
hi all, I have used log4j for logging, but the messages from below also appear on my log file, i only want those messages from my application and not messages from faces technology Anyone know how to filter off these system faces messages?