Re: Setting css property dynamically

2013-09-25 Thread Bob Harner
My suspicion would be with your cdn binding implementation. As an experiment, if you leave it off, does the url value get updated at all? background:url("${prop:theme?.imageUrl}") no-repeat top On Wed, Sep 25, 2013 at 9:22 AM, Borut Bolčina wrote: > Hi, > > what is causing the css style not

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Thiago H de Paula Figueiredo
On Wed, 25 Sep 2013 20:01:14 -0300, Boris Horvat wrote: Is there a list like the default services that should be added. For example if I add my configuration of the hibernate it complains HibernateEntityPackageManager doesn't exist In this case, you need the HibernateModule added to the r

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Boris Horvat
Ah sorry for spam this is the last one for the day. Is there a list like the default services that should be added. For example if I add my configuration of the hibernate it complains HibernateEntityPackageManager doesn't exist On Thu, Sep 26, 2013 at 12:56 AM, Boris Horvat wrote: > ah I think

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Boris Horvat
ah I think I see RegistryBuilder b = new RegistryBuilder(); b.add(HibernateModule.class); Registry r = b.build(); r.getService(MyService.class); that makes sense Cheers On Thu, Sep 26, 2013 at 12:55 AM, Boris Horvat wrote: > Thanks for the detail replay it helps

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Boris Horvat
Thanks for the detail replay it helps me to figure out the best way to organise everything. btw once you have everything registered how do you get a service? cheers On Thu, Sep 26, 2013 at 12:38 AM, Martin Kersten < martin.kersten...@gmail.com> wrote: > Hi Boris, > >I just use a registery

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Martin Kersten
Hi Boris, I just use a registery builder and add the sub modules I need to test (as already mentioned). Often I use public TestModule static classes that reside into the TestCase class. Then I just use those TestModule classes to build the registry. They contain often only the services needed u

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Boris Horvat
btw PackageNameHibernateConfigurer uses AnnotationConfiguration that has been deprecated any plans to change this class? On Wed, Sep 25, 2013 at 11:36 PM, Boris Horvat wrote: > I use Submodule but I guess for the tests I need RegistryBuilder. Will try > that > > Thanks > > > On Wed, Sep 25, 2013

Re: Unable to locate a single service assignable to type org.apache.tapestry5.services.ComponentEventResultProcessor

2013-09-25 Thread rukmini n
HI Thiago, Thank you for your response. I know that, it is not paid customer service :). But you guys are really quick in responding and doing a good job. Thanks.. Coming to my issue, I did check the classpath, I dont have 2 versions of tapestry. What is next step that I have to take? Thanks, R

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Boris Horvat
I use Submodule but I guess for the tests I need RegistryBuilder. Will try that Thanks On Wed, Sep 25, 2013 at 10:55 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 25 Sep 2013 17:17:22 -0300, Boris Horvat > wrote: > > My config is already split in that way. But I cant

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Thiago H de Paula Figueiredo
On Wed, 25 Sep 2013 17:17:22 -0300, Boris Horvat wrote: My config is already split in that way. But I cant find a code that I can check to see how to load DAOModule :( @Submodule({DAOModule.class}) in another modules that is already loaded or RegistryBuilder.add(DDAOModule.class) or addin

Re: Unable to locate a single service assignable to type org.apache.tapestry5.services.ComponentEventResultProcessor

2013-09-25 Thread Thiago H de Paula Figueiredo
On Wed, 25 Sep 2013 16:49:42 -0300, rukmini n wrote: Can some one please help? Hi! Please have a little patience. This isn't paid customer service. :) Check whether you have two different Tapestry versions in the classpath. That's the first thing I'd think that would cause the same Tapest

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Boris Horvat
My config is already split in that way. But I cant find a code that I can check to see how to load DAOModule :( Any hints? :) On Wed, Sep 25, 2013 at 11:08 AM, Lance Java wrote: > > Is it possible somehow to automate this? > > Have you read Howard's answer on the Stack Overflow question? He sug

Re: Unable to locate a single service assignable to type org.apache.tapestry5.services.ComponentEventResultProcessor

2013-09-25 Thread rukmini n
Can some one please help? Thanks, Rukmini On Wed, Sep 25, 2013 at 11:46 AM, rukmini n wrote: > Hi All, > > I'm facing another issue while upgrading Tapestry from 5.0.15 to 5.2.5. I > have registration form and when i submit the form, after filling all the > info i'm getting the below exception

Re: Current Javassist incompatible with Java 8

2013-09-25 Thread Kalle Korhonen
GA in March 2014 for Java 8 ( http://openjdk.java.net/projects/jdk8/milestones). That schedule will likely hold now that its feature complete. Kalle On Wed, Sep 25, 2013 at 11:45 AM, Howard Lewis Ship wrote: > This is likely something to be addressed in the 5.5 time frame? When is > JDK 8 goin

Unable to locate a single service assignable to type org.apache.tapestry5.services.ComponentEventResultProcessor

2013-09-25 Thread rukmini n
Hi All, I'm facing another issue while upgrading Tapestry from 5.0.15 to 5.2.5. I have registration form and when i submit the form, after filling all the info i'm getting the below exception aused by: java.lang.RuntimeException: Error invoking service builder method org.apache.tapestry5.services

Re: Current Javassist incompatible with Java 8

2013-09-25 Thread Howard Lewis Ship
This is likely something to be addressed in the 5.5 time frame? When is JDK 8 going to be released? On Wed, Sep 25, 2013 at 11:42 AM, Kalle Korhonen wrote: > Just to close the loop - at least regarding plastic & T5.4 - ASM5 is needed > together with Java 8. There's a month old alpha release av

Re: Current Javassist incompatible with Java 8

2013-09-25 Thread Kalle Korhonen
Just to close the loop - at least regarding plastic & T5.4 - ASM5 is needed together with Java 8. There's a month old alpha release available at http://central.maven.org/maven2/org/ow2/asm/asm/5.0_ALPHA/. More information at http://old.nabble.com/Java-8-Support--td34970003.html. Kalle On Sun, Se

Re: Non Web App: Input and Command Line Validation

2013-09-25 Thread Thiago H de Paula Figueiredo
On Wed, 25 Sep 2013 12:19:52 -0300, Alessio Gambi wrote: It would be great also if I can add messages to the annotations as one expect. Bean Validations has its own way of dealing with validation messages and their internationalization. See http://docs.oracle.com/javaee/6/tutorial/doc/

Re: Non Web App: Input and Command Line Validation

2013-09-25 Thread Alessio Gambi
Some more steps, hopefully in the right direction: I defined the logic of a class transformer that inject a new field for every command line option to be validated and initialize the field with the value passed as input There are two missing pieces: - How can I add annotations the newly added

Re: Live Sites Running 5.4 Anyone?

2013-09-25 Thread Lenny Primak
These are preventing me (so far) to put T5.4 apps into production: TAP5-2182 - BeanEditor doesn't look as good in T5.4 as in T5.3 TAP5-2187 - CSS relative URL rewriting isn't lenient enough TAP5-2158 - Client-side validation of @Size is not working when only min or max is set TAP5-2185 - Problem

Re: Non Web App: Input and Command Line Validation

2013-09-25 Thread Alessio Gambi
A little update: I managed to get rid of the wrong slf4j library via the exclude tag inside maven I can use the bean validator with no problem. To have tapestry-beanvalidator working I had to "copy&paste" a subset of the original BeanValidatorModule inside my AppModule; in fact with the origin

Setting css property dynamically

2013-09-25 Thread Borut Bolčina
Hi, what is causing the css style not changing in this TML? ${theme.imageUrl} .tema { background:url("${cdn:prop:theme?.imageUrl}") no-repeat top center; height:180px; } Look at ${cdn:prop:theme?.imageUrl} The value ge

[Ann] tapestry-syntax-highlighter

2013-09-25 Thread Thiago H de Paula Figueiredo
Hi! I've just released tapestry-syntax-highlighter, a package for Tapestry 5.2+[1] which integrates the Prism source code syntax highlighter (http://prismjs.com). The source code is at https://github.com/thiagohp/tapestry-syntax-highlighter and the JAR is already at the Maven Central Repo

Re: Live Sites Running 5.4 Anyone?

2013-09-25 Thread Thiago H de Paula Figueiredo
On Wed, 25 Sep 2013 03:05:52 -0300, Peter Hvass wrote: Hello! Hi! Pleased to say that we released our first live site running with 5.4-alpha-22 over the last weekend and so far everything seems very smooth. Yay! Nice! Big thanks to Howard and the team for all of their hard work! Deve

Re: Non Web App: Input and Command Line Validation

2013-09-25 Thread Alessio Gambi
Hi again, >> However, I have the strong feeling that we (I and T5IoC) can do much more >> with just a little more effort... but unfortunately I have no time to dive >> into the code to find this out > Don't forget that Tapestry-IoC is about IoC and I think that's the only thing > it should focu

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Lance Java
> Is it possible somehow to automate this? Have you read Howard's answer on the Stack Overflow question? He suggests splitting your AppModules in such a way that you can load a DAOModule together with HibernateCoreModule for testing.

Re: Tapestry + Hibernate + Testing

2013-09-25 Thread Lance Java
It's in tapestry-hibernate-core https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=blob;f=tapestry-hibernate-core/src/main/java/org/apache/tapestry5/internal/hibernate/PackageNameHibernateConfigurer.java

Re: Live Sites Running 5.4 Anyone?

2013-09-25 Thread Massimo Lusetti
On Wed, Sep 25, 2013 at 8:05 AM, Peter Hvass wrote: Hello! > > > Pleased to say that we released our first live site running with > 5.4-alpha-22 over the last weekend > and so far everything seems very smooth. > > > Big thanks to Howard and the team for all of their hard work! Developing > under