RE: how to use HibernateEntityValueEncoder

2013-05-18 Thread Ken in Nashua
Hey Joakim... I tried your suggestion... and it worked. I actually created an interface with a host of default methods that I am forcing down the hierarchy... one of which is displayableName. And I made it past the tapestry code... final PropertyAdapter propertyAdapter = classProp

RE: Adding search service in Tapestry app

2013-05-18 Thread Nomen Nomanum
Thanks Thiago and Lance! I will try this and see what happens. > Date: Sat, 18 May 2013 21:47:22 +0100 > Subject: Re: Adding search service in Tapestry app > From: lance.j...@googlemail.com > To: users@tapestry.apache.org > > Unfortunately, hibernate's Search.getFullTextSession(...) casts the se

Re: Adding search service in Tapestry app

2013-05-18 Thread Lance Java
Unfortunately, hibernate's Search.getFullTextSession(...) casts the session to a concrete type which fails if you pass the session singleton provided by tapestry-hibernate. Instead, you must do something like the following in your AppModule @Scope(ScopeConstants.PERTHREAD) public static FullTextS

Re: Adding search service in Tapestry app

2013-05-18 Thread Thiago H de Paula Figueiredo
On Sat, 18 May 2013 17:05:03 -0300, Nomen Nomanum wrote: Hi. I am about to implement Hibernate Search +Lucene service in my Tap. Hi! First of all, read this: http://tapestry.apache.org/defining-tapestry-ioc-services.html. Is there anything I should get in concern before doing it? Lea

Adding search service in Tapestry app

2013-05-18 Thread Nomen Nomanum
Hi. I am about to implement Hibernate Search +Lucene service in my Tap. Is there anything I should get in concern before doing it? How to wrap/decorate that service? And how could I make service to be injected? Thanks in reply.

Re: Passing parameters to Mixins

2013-05-18 Thread Boris Horvat
My bad everything is working, I was just bad at checking :( On Sat, May 18, 2013 at 8:35 PM, Boris Horvat wrote: > Hi all, > > I am not sure what am I doing wrong. > > > > > > @Import(library = {"init-jscrollpane.js", "jquery.scrollpane.min.js", > "jquery.mousewheel.js"}, stylesheet = {"jscr

Passing parameters to Mixins

2013-05-18 Thread Boris Horvat
Hi all, I am not sure what am I doing wrong. @Import(library = {"init-jscrollpane.js", "jquery.scrollpane.min.js", "jquery.mousewheel.js"}, stylesheet = {"jscrollpane.css"}) public class JScrollPane { /** * The JSON parameter for your widget */ @Parameter(defaultPrefix = B

RE: how to use HibernateEntityValueEncoder

2013-05-18 Thread Ken in Nashua
Joakim, Thank you for the suggestion. I was hoping for checkins on the framework I use but non yet. I am stuck until that happens. But I can unit test while stuck. I will try your suggestion... making a get/set displayableString() and just put toString() inside of it. The tapestry frame

Re: Logging advice on non interface service

2013-05-18 Thread Boris Horvat
Hm...strange this method of mine is not invoked, any idea as to why? On Sat, May 18, 2013 at 3:57 PM, Boris Horvat wrote: > I dont suppose that will be as simple as > > > @Match("*") > public static T decorateLogging(Class serviceInterface, T delegate, > String serviceId, Logger logger, >

Re: Logging advice on non interface service

2013-05-18 Thread Boris Horvat
I dont suppose that will be as simple as @Match("*") public static T decorateLogging(Class serviceInterface, T delegate, String serviceId, Logger logger, LoggingDecorator decorator) { return decorator.build(serviceInterface, delegate, serviceId, logger); } Well I tried this

Re: Logging advice on non interface service

2013-05-18 Thread Thiago H de Paula Figueiredo
On Fri, 17 May 2013 16:02:32 -0300, Boris Horvat wrote: Hi all, Hi! Any ideas if I can make this work without creating an interface? Try decoration instead. Advice needs proxies, and proxies are only created for interface-based services. -- Thiago H. de Paula Figueiredo ---

Zone and content changment

2013-05-18 Thread Nomen Nomanum
I want to implement a scenario where based on clicked actionlink, zone updates it's content. Lets say I have stored some divs inside that zone, and I need trigger, videlicit checker to see what div to render. How to achieve this behavior?