Re: [Tapestry Central] Last call: Tapestry Webinar (Thu May 21)

2009-05-23 Thread Otho
Since I couldn't attend... Is there a downloadable or streamed video somewhere? 2009/5/20 Howard Lewis Ship > The links were stripped out of the mail, try reading the blog entry > directly: > > > http://tapestryjava.blogspot.com/2009/05/last-call-tapestry-webinar-thu-may-21.html > > > On Wed, Ma

Re: T 5.1 How to inject Spring beans by name?

2009-05-23 Thread Otho
As far as I know there is no other direct solution. An indirekt one is to have a separate service layer for the bean. In the dao/daoImpl example: and then you can @Inject DaoService daoService; But using the ApplicationContext service isn't that bad. Regardless of the true lore of decoupling.

Re: T 5.1 How to inject Spring beans by name?

2009-05-23 Thread moonlee
Hi, Otho. Do you have some solutions for then problem. I get the exceptions now, and I don't want to use the ApplicationContext Service to get bean by name. Otho wrote: > > Since Spring beans are not exposed anymore as services I get exceptions > like > > > Error obtaining injected value for

Re: Best practices to trigger serverside event methods from javascript?

2009-05-23 Thread Joost Schouten (mailing lists)
I personally prefer generating an eventlink and adding the parameters the normal tapestry way. Then Tapestry will take care of everything for you. So still only generate one Link (pageOrComponentUrl:eventName) and append the parameters server side and pass them using RenderSupport.addScript() or ap

Re: Best practices to trigger serverside event methods from javascript?

2009-05-23 Thread Markus Joschko
Thanks, never thought about "normal parameters". I then probably need to do the coercion&stuff on my own. I guess there is a service I can use for that. However it still feels like hack. On Sat, May 23, 2009 at 10:06 PM, Thiago H. de Paula Figueiredo wrote: > Em Sat, 23 May 2009 16:17:11 -0300,

Re: Best practices to trigger serverside event methods from javascript?

2009-05-23 Thread Thiago H. de Paula Figueiredo
Em Sat, 23 May 2009 16:17:11 -0300, Markus Joschko escreveu: But that does not scale very well. Only 10 draggables and 10 droppables would result into 100 potential links that I need to render "just in case". And if you have to deal with 100 draggables this gets really ugly. So generate a s

Re: Best practices to trigger serverside event methods from javascript?

2009-05-23 Thread Markus Joschko
But that does not scale very well. Only 10 draggables and 10 droppables would result into 100 potential links that I need to render "just in case". And if you have to deal with 100 draggables this gets really ugly. On Sat, May 23, 2009 at 8:38 PM, Thiago H. de Paula Figueiredo wrote: > Try gene

Re: Best practices to trigger serverside event methods from javascript?

2009-05-23 Thread Thiago H. de Paula Figueiredo
Try generating Javascript snippets from server side using RenderSupport and ComponentResources.createEventLink(). -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago

Re: any ideas why the APPCATALOG resource being injected would not be getting resolved?..

2009-05-23 Thread Thiago H. de Paula Figueiredo
Em Fri, 22 May 2009 22:59:16 -0300, Tom Zurkan escreveu: i am upgrading from 5.0.18 to 5.1.05. any ideas would be appreciated. Make sure you only have 5.0.1.5 JARs in your classpath. A mix of versions can cause problemas similitar to the one you're having. thanks, tom 2009-05-22 18

Best practices to trigger serverside event methods from javascript?

2009-05-23 Thread Markus Joschko
I am currently implementing a drag'n'drop interface. There I have multiple draggables which can be put into multiple droppables. In every case I want to trigger a server side event listener and preferably return a json response. Now I wonder how to best trigger the event method. I can not pregenera

[tapestry-ioc] strange registry problem: findDecoratorsForService may no longer be invoked

2009-05-23 Thread Michael Zehender
Hello, After the registry was built and performRegistryStartup has been called, I get the following exception at processing the first request: java.lang.RuntimeException: Exception constructing service 'RatingSessionFactory': Method org .apache .tapestry5 .ioc.internal.ModuleImpl.findD

Re: Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-23 Thread kartweel
Cheers, I changed this to return null instead too. public String getBaseURL(String pageName) { return baseURLSource.getBaseURL(request.isSecure()); } Ryan Inge Solvoll-2 wrote: > > This should do the trick :) > > You can probably do the same thing more intuitively by advising the >

Re: Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-23 Thread Inge Solvoll
Haven't tested this one, but it looks simple and ok to me. public static void adviseRequestSecurityManager(MethodAdviceReceiver receiver, final Request request, final BaseURLSource baseURLSource, Logger log) { try { Method checkForInsecureRequest = receiver.getInterface().getMethod("ch