[appfuse-user] WebServices from Appfuse 2.0 struts

2010-05-04 Thread sudhakargupta_somu
Hi Matt, I'm developing an web application using appfuse 2.0 struts, in that one i observed the UserService web service class, How to call the web service in other application to get the data ( where to configure the web service calling url ). can you please suggest me to solve the problem

[appfuse-user] Where to implements the Database Driven Struts Menu

2010-05-04 Thread Tony Luo
Hi All, I tried to implement database driven menu in StartupListener. But unfortunately, I can't get defaultMenuDisplayerMapping in StartupListener.updateContext. Is there any advice for this issue? Thanks. Regards Tony Luo - To

Re: [appfuse-user] Where to implements the Database Driven Struts Menu

2010-05-04 Thread Matt Raible
You might try doing it in a filter. Either that or specify servlet 2.4 in your web.xml and order your listeners. On Tue, May 4, 2010 at 9:10 AM, Tony Luo wrote: > Hi All, > > I tried to implement database driven menu in StartupListener. > But unfortunately, I can't get defaultMenuDisplayerMappin

Re: [appfuse-user] Where to implements the Database Driven Struts Menu

2010-05-04 Thread Tony Luo
Hi Matt, I still implmented it in StartupListener with the following code. MenuRepository repository = new MenuRepository(); repository.setServletContext(context); MenuDisplayerMapping displayerMapping = new MenuDisplayerMapping(); displayerMapping.setName("Velocity");

Re: [appfuse-user] WebServices from Appfuse 2.0 struts

2010-05-04 Thread Tony Luo
Appfuse 2.0 has intergrated with CXF. You can take a look. 2010/5/4 sudhakargupta_somu : > > Hi Matt, > >  I'm developing an web application using appfuse 2.0 struts, in that one i > observed the UserService web service class, How to call the web service in > other application to get the data ( wh

Re: [appfuse-user] Where to implements the Database Driven Struts Menu

2010-05-04 Thread Matt Raible
What's not working then? On Tue, May 4, 2010 at 9:45 AM, Tony Luo wrote: > Hi Matt, > > I still implmented it in StartupListener with the following code. > > MenuRepository repository = new MenuRepository(); >repository.setServletContext(context); >MenuDisplayerMapping displayerM

Re: [appfuse-user] Where to implements the Database Driven Struts Menu

2010-05-04 Thread Tony Luo
Just curious whether there is a better entry to support it. -,-b 2010/5/4 Matt Raible : > What's not working then? > > On Tue, May 4, 2010 at 9:45 AM, Tony Luo wrote: >> >> Hi Matt, >> >> I still implmented it in StartupListener with the following code. >> >> MenuRepository repository = new MenuR

Re: [appfuse-user] Where to implements the Database Driven Struts Menu

2010-05-04 Thread Matt Raible
The listener is a good place if it only needs to be initialized once for the application. If you need to initialize it differently for each user, I'd suggest putting it in a filter and caching the results. On Tue, May 4, 2010 at 9:54 AM, Tony Luo wrote: > Just curious whether there is a better e

Re: [appfuse-user] Where to implements the Database Driven Struts Menu

2010-05-04 Thread Tony Luo
Thanks for your sugguestion. It's really helpful to me. 2010/5/5 Matt Raible : > The listener is a good place if it only needs to be initialized once for the > application. If you need to initialize it differently for each user, I'd > suggest putting it in a filter and caching the results. > > On

[appfuse-user] Re: Extending GenericManager - Spring MVC

2010-05-04 Thread Juan Antonio
I have found this old thread, and i have a little doubt. if I didn't use the GenericManager, Should i inject the manager using applicationContext.xml, or there is another way to do it? Example: public class MyAction extends BaseAction { private MyManager myManager; pu

Re: [appfuse-user] Re: Extending GenericManager - Spring MVC

2010-05-04 Thread Matt Raible
Yes, this will work. What tutorial are you speaking of? A link would be great. On Tue, May 4, 2010 at 12:07 PM, Juan Antonio wrote: > > I have found this old thread, and i have a little doubt. > > if I didn't use the GenericManager, Should i inject the manager using > applicationContext.xml, or t

[appfuse-user] Re: Extending GenericManager - Spring MVC

2010-05-04 Thread Juan Antonio
Sorry, i forgot. http://appfuse.org/display/APF/Using+Struts+2 -- View this message in context: http://appfuse.547863.n4.nabble.com/Extending-GenericManager-Spring-MVC-tp562233p2126234.html Sent from the AppFuse - User mailing list archive at Nabble.com. ---

[appfuse-user] Re: Struts 2 Double Submit?

2010-05-04 Thread Juan Antonio
Another little question. :D if the action is label is defined in the form, and in the action bean in struts.xml, the method propertie is defined, it's necessary to declare it also in the submit method? Something like this: ... I believe i could use only: is this wrong? or the me

Re: [appfuse-user] Can't use GenericManager in StartupListener?

2010-05-04 Thread Matt Raible
public class StartupListenerTest extends TestCase { private MockServletContext sc = null; private ServletContextListener listener = null; private ContextLoaderListener springListener = null; protected void setUp() throws Exception { super.setUp(); sc = new MockServl

[appfuse-user] Can't use GenericManager in StartupListener?

2010-05-04 Thread Tony Luo
Hi All, I need to put a list of object in memory when application start. The object is quite simple so I generate the service by Generic Manager and configured it in applicationContext.xml The cod in StartupListener is like the following code GenericMa

Re: [appfuse-user] Can't use GenericManager in StartupListener?

2010-05-04 Thread Tony Luo
Hi Matt, I noticed that StartupListenerTest doesn' load applicationContext.xml. But even I put the configuration in applicationContext-dao.xml, the StartupListenerTest also failed to get the manager bean. 2010/5/5 Matt Raible : > public class StartupListener