Re: [appfuse-user] AppFuse user registration - email auth

2007-01-29 Thread DNewfield
[EMAIL PROTECTED] wrote: > > 1.) In the signup action remember to set the user.setEnabled(false) > 2.) Remove the auto login code > 3.) Generate a token, store it on the user(add a collumn), make sure it's > unique(just add the username at the begining or end of the token ) > 4.) Add the token l

Re: [appfuse-user] AppFuse + GWT

2007-01-29 Thread jick
Hi , I am trying to integrate Appfuse+GWT. Could you tell me the steps , how to integrate Appfuse with GWT. Thanks, jick Smychagin Alexei wrote: > > hi, > > I've already done it. It works fine. > > > 2006/9/7, Matt Raible <[EMAIL PROTECTED]>: >> As far as I know, GWT communicates

Re: [appfuse-user] Redirect after authentication (acegi)

2007-01-29 Thread Jonathan Tse
Thanks Matt. But in my case, I have a jsp (not login.jsp) which present a login form to user and I want to redirect the user to a url which is different from defaultTargetUrl after the user has been authenticated. This is similar to Amazon login when you checkout, it will continue the checkout

Re: [appfuse-user] Extend GenericManager and GenericManagerImpl

2007-01-29 Thread Simon Wu
Actually I met this question in my previous project and I was not sure which option is better. :) So I follow someone's guide: Make fields private if you do not sure.(It seems it is a good OO style.) Simon On 1/30/07, Matt Raible <[EMAIL PROTECTED]> wrote: Is there any harm in making it protec

Re: [appfuse-user] Extend GenericManager and GenericManagerImpl

2007-01-29 Thread Matt Raible
Is there any harm in making it protected though? I'd like to give as many options to users as possible, without creating complexity or causing confusion. Matt On 1/29/07, Simon Wu <[EMAIL PROTECTED]> wrote: I prefer to keep genericDao private and init this Dao just as what Climbingrose did(Som

Re: [appfuse-user] Appfuse 2.0 export option

2007-01-29 Thread Matt Raible
Index: web.xml === @@ -132,10 +140,6 @@ *.html -gzipFilter -/* - - rewriteFilter /* REQUEST On 1/29/07, Fan <[EMAIL PROTECTED]> wrote: Hey Matt: Would you like

Re: [appfuse-user] Appfuse 2.0 export option

2007-01-29 Thread Fan
Hey Matt: Would you like to show me which part of the web.xml you have removed ? Matt Raible-3 wrote: > > It looks like this is caused by the GzipFilter in Jetty. If I remove > its mapping from web.xml, exporting works fine after running "mvn > jetty:run-war". > > Matt > > On 1/29/07, Ma

Re: [appfuse-user] Extend GenericManager and GenericManagerImpl

2007-01-29 Thread Simon Wu
I prefer to keep genericDao private and init this Dao just as what Climbingrose did(Sometime I do init in Setter method.). So I do not need to cast genericDao to categoryDao. I do not like cast!! :) Thanks. Simon On 1/29/07, Matt Raible <[EMAIL PROTECTED]> wrote: I've made this change in SV

Re: [appfuse-user] how to get a properties message from controller

2007-01-29 Thread Matt Raible
Have you tried the same calls that exist in BaseFormController? return getMessageSourceAccessor().getMessage(msgKey, locale); Matt On 1/29/07, W. Ivan Coro <[EMAIL PROTECTED]> wrote: Hello All, From a controller that derives from a BaseFormController (spring mvc), I can use getText() to retri

[appfuse-user] how to get a properties message from controller

2007-01-29 Thread W. Ivan Coro
Hello All, From a controller that derives from a BaseFormController (spring mvc), I can use getText() to retrieve a message from the properties files, but how can I do the same if I'm using a plain Controller, which does not inherit from BaseFormController? Thanks a lot. I.

Re: [appfuse-user] Changing default extension from *.html to *.??

2007-01-29 Thread mraible
Any update on this Mike? It looks like most folks would prefer to stick with *.html (as would I). http://appfuse.org/pages/viewpage.action?pageId=495 Thanks, Matt Matt Raible-3 wrote: > > On 1/17/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: >> Matt, >> >> I have successfully used Dojo with

Re: [appfuse-user] Appfuse 2.0 export option

2007-01-29 Thread Matt Raible
It looks like this is caused by the GzipFilter in Jetty. If I remove its mapping from web.xml, exporting works fine after running "mvn jetty:run-war". Matt On 1/29/07, Matt Raible <[EMAIL PROTECTED]> wrote: This appears to be an issue with the Jetty Maven Plugin. If I run it in Tomcat (mvn car

Re: [appfuse-user] Appfuse 2.0 export option

2007-01-29 Thread Matt Raible
This appears to be an issue with the Jetty Maven Plugin. If I run it in Tomcat (mvn cargo:start -Dcargo.wait=true), it works fine. I tried to upgrade to Jetty 6.1.0, but that results in the following error: ERROR [btpool0-2] Dispatcher.serviceAction(513) | Could not execute action org.apache.ja

Re: [appfuse-user] Appfuse 2.0 export option

2007-01-29 Thread Fan
I am using struts2.0, running on windows XP professional with IE 6 Matt Raible-3 wrote: > > Which web framework, browser and OS are you using? > > Matt > > On 1/29/07, Fan <[EMAIL PROTECTED]> wrote: >> >> The export option in Current User does not work. I have this error >> message >> when I

Re: [appfuse-user] Appfuse 2.0 export option

2007-01-29 Thread Matt Raible
Which web framework, browser and OS are you using? Matt On 1/29/07, Fan <[EMAIL PROTECTED]> wrote: The export option in Current User does not work. I have this error message when I click on any one of the export option e.g. CSV, Excel, PDF. Here is the error prompt I got. C:\Docume~1\fan\lo

[appfuse-user] Appfuse 2.0 export option

2007-01-29 Thread Fan
The export option in Current User does not work. I have this error message when I click on any one of the export option e.g. CSV, Excel, PDF. Here is the error prompt I got. C:\Docume~1\fan\locals~1\Temp\cbnx80vw.xls could not be saved, because the source file could not be read. Try again late

Re: [appfuse-user] Turn on Ehcache in Appfuse

2007-01-29 Thread Michael Horwitz
You need to set the hibernate property hibernate.cache.use_second_level_cache to true, and if you want to use query caches you need to set hibernate.cache.use_query_cache true as well. Note that for the query cache you will need to enable caching on a query by query basis. Mike. On 1/29/07, Di

[appfuse-user] Turn on Ehcache in Appfuse

2007-01-29 Thread Ding, Qin
I try to use ehcache in my appfuse 1.9.4 application. In applicatonContext-hibernate.xml, I added following: @HIBERNATE-DIALECT@ true 'Y', false 'N' org.hibernate.cache.EhCacheProvider true In Status pojo, I added this xdoclet attribute

Re: [appfuse-user] Extend GenericManager and GenericManagerImpl

2007-01-29 Thread Matt Raible
I've made this change in SVN. http://tinyurl.com/22l49a Matt On 1/29/07, climbingrose <[EMAIL PROTECTED]> wrote: I thought genericDao and categoryDao will be the same by the fact that categoryDao is passing to GenericManagerImpl. If they are the same then I can simply cast genericDao to Catego

Re: [appfuse-user] Extend GenericManager and GenericManagerImpl

2007-01-29 Thread climbingrose
I thought genericDao and categoryDao will be the same by the fact that categoryDao is passing to GenericManagerImpl. If they are the same then I can simply cast genericDao to CategoryDao and use its getTopLevelCategories() method. On 1/30/07, Matt Raible <[EMAIL PROTECTED]> wrote: We can change

Re: [appfuse-user] Extend GenericManager and GenericManagerImpl

2007-01-29 Thread Matt Raible
We can change genericDao to protected, but I don't see how it solves your problem. This interface doesn't have the "getTopLevelCategories()" method, so you'll still need to set your categoryDao. Matt On 1/29/07, climbingrose <[EMAIL PROTECTED]> wrote: I wonder what would be the appropriate way

Re: [appfuse-user] Redirect after authentication (acegi)

2007-01-29 Thread Matt Raible
In the authenticationProcessingFilter, you can set the defaultTargetUrl. You can also set it's always used: HTH, Matt On 1/29/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Hi all, Does anyone know that how do i specify an explicit re

[appfuse-user] Extend GenericManager and GenericManagerImpl

2007-01-29 Thread climbingrose
I wonder what would be the appropriate way to extend GenericManager and GenericManagerImpl to add custom behaviours? What I have done is: public class CategoryManagerImpl extends GenericManagerImpl implements CategoryManager { private CategoryDao categoryDao; public CategoryManagerImpl

[appfuse-user] Redirect after authentication (acegi)

2007-01-29 Thread Jonathan Tse
Hi all, Does anyone know that how do i specify an explicit redirect url after acegi have authenticated the user? I understand that if I try to access a protected resource, acegi will automatically store the url in the session and redirect to this resource once the user is authenticated. Bu