[appfuse-user] lazy intialization problem

2009-09-15 Thread Anil Rawat
i am using appfuse1.93, spring,hiberante and struts 1.2 i am having an preformance issue with hibernate how can i set fetch mode= lazy dynamically at runtime so that only that class object is called because if i use lazy ="true" in hbm.xml file in my parent class which is called , then hibernat

[appfuse-user] small update for whoever is still following this discourse :)

2009-09-15 Thread measwel
Phew.. Fixed one part of the problem. I needed to add setter and getter for user in preferencesAction... Now the read from db user preferences goes okay. Now the saving part... -- View this message in context: http://www.nabble.com/exception-thrown-when-trying-to-get-current-user-tp25458093s2369

Re: [appfuse-user] debugging

2009-09-15 Thread measwel
I can add to that, that the mapping to the preference object parameters is not correct too. I set some preferences in the DB to 1. When I debug, I can see the values are indeed set to 1 in the user.preferences object. Nevertheless, on preferencesForm all values are shown as 0 (uncheked)... This

[appfuse-user] debugging

2009-09-15 Thread measwel
After finally setting up remote debugging from Netbeans into Jetty, I can see that the properties object is not instantiated when trying to save it, it is null. Who can tell me what the problem is? In my form I have:

[appfuse-user] in regard to country list

2009-09-15 Thread measwel
1) where is ${country} specified? My system does not set the default. 2) Is there a way to place the countries combobox next to the zip code box? -- View this message in context: http://www.nabble.com/in-regard-to-country-list-tp25461995s2369p25461995.html Sent from the AppFuse - User

Re: [appfuse-user] exception thrown when trying to get current user

2009-09-15 Thread measwel
Hmm.. I can get the user, but the preferences are not getting saved. In preferencesForm I have:

Re: [appfuse-user] exception thrown when trying to get current user

2009-09-15 Thread Matt Raible
On Tue, Sep 15, 2009 at 12:09 PM, measwel wrote: > > As I understand one can: > > 1) user = userManager.getUserByUsername(getRequest().getRemoteUser()); > > 2) user = getCurrentUser(UserManager userManager, boolean > forceReloadInCurrentSession) > > 3) get the user from Acegi session. This is prob

Re: [appfuse-user] exception thrown when trying to get current user

2009-09-15 Thread measwel
As I understand one can: 1) user = userManager.getUserByUsername(getRequest().getRemoteUser()); 2) user = getCurrentUser(UserManager userManager, boolean forceReloadInCurrentSession) 3) get the user from Acegi session. This is probably the code : String currentUser; if

Re: [appfuse-user] exception thrown when trying to get current user

2009-09-15 Thread Matt Raible
On Tue, Sep 15, 2009 at 11:16 AM, measwel wrote: > > I have a preferences object embedded in the user object. On preferences.jsp > I > want to edit the preferences (bit fields). In preferencesAction I have: > > public String edit() { > >// determine the user and get his preferences >user

Re: [appfuse-user] url translation in appfuse

2009-09-15 Thread measwel
Never mind my blindness :) Its there :) Sorry to bother for nothing -- View this message in context: http://www.nabble.com/url-translation-in-appfuse-tp25426970s2369p25458166.html Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] url translation in appfuse

2009-09-15 Thread measwel
YES i will look for it in folders. Cant see it in IDE tibi wrote: > > its in the main webapp > did you run full source?? > > tibi > > measwel wrote: >> cant find the logout.jsp file on my system. where should it be? >> >> >> tibi wrote: >> >>> there is none >>> look at the logout.jsp file

[appfuse-user] exception thrown when trying to get current user

2009-09-15 Thread measwel
I have a preferences object embedded in the user object. On preferences.jsp I want to edit the preferences (bit fields). In preferencesAction I have: public String edit() { // determine the user and get his preferences user = userManager.getUser(getRequest().getParameter("user.id"));

[appfuse-user] exception thrown when trying to determine current user

2009-09-15 Thread measwel
I have a preferences object embedded in the user object. On preferences.jsp I want to edit the preferences (bit fields). In preferencesAction I have: public String edit() { // determine the user and get his preferences user = userManager.getUser(getRequest().getParameter("user.id"));

Re: [appfuse-user] url translation in appfuse

2009-09-15 Thread tibi
its in the main webapp did you run full source?? tibi measwel wrote: > cant find the logout.jsp file on my system. where should it be? > > > tibi wrote: > >> there is none >> look at the logout.jsp file >> >> >> tibi >> >> measwel wrote: >> >>> I found the source of the problem. >>> >>> I

Re: [appfuse-user] url translation in appfuse

2009-09-15 Thread measwel
cant find the logout.jsp file on my system. where should it be? tibi wrote: > > there is none > look at the logout.jsp file > > > tibi > > measwel wrote: >> I found the source of the problem. >> >> In security.xml there is this: >> >> >> >> >> Deleting this line under struts leads

Re: [appfuse-user] url translation in appfuse

2009-09-15 Thread tibi
there is none look at the logout.jsp file tibi measwel wrote: > I found the source of the problem. > > In security.xml there is this: > > > > > Deleting this line under struts leads to erroneous logout behaviour. I will > add it to JIRA. > > The question still stands though: where is

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-15 Thread tibi
look at your pom. you will find some examples there. here is mine: demo this iwll work with -P demo tibi measwel wrote: > how do you specify in the profile what DB to use? > > > tibi wrote: >

Re: [appfuse-user] 1 db for testing 1 for development

2009-09-15 Thread measwel
how do you specify in the profile what DB to use? tibi wrote: > > we use profiles > > mvn test -P test > and in the pom file add a prifle named test with a different database. > > tibi > > Matt Raible wrote: >> Not currently, no. However, you can change DbUnit's logic so it >> doesn't replac

Re: [appfuse-user] url translation in appfuse

2009-09-15 Thread measwel
I found the source of the problem. In security.xml there is this: Deleting this line under struts leads to erroneous logout behaviour. I will add it to JIRA. The question still stands though: where is the logout action specified? I cant find it anywhere. -- View this message in con

Re: [appfuse-user] url translation in appfuse

2009-09-15 Thread measwel
I have a strange problem now. The logout action is broken. I get redirected to the welcome page after clicking 'logout'. Menu config is: I cheked stuts.xml to see the action settings. But, I can not find any action defined for logout ! Is this normal? How is the system supposed to kno

RE: [appfuse-user] how to call Stored procedures in appfuse 2.0 (MSSQL)

2009-09-15 Thread Anshu
Hi I think to call stored procedure you can use Session session = getSessionFactory().getCurrentSession(); DelegatingPreparedStatement st = (DelegatingPreparedStatement)session.connection().prepareStatement("{call name_of_sp(?,?,?)}"); st.setString(1,""+a);