Re: How to get code coverage of Integration Test ?

2013-01-28 Thread Steve Eynon
T5 instruments pages and components itself and uses it's own class loader to reload them, so it's very unlikely Sonar is able to hook that. (Not that I know anything of Sonar.) - To unsubscribe, e-mail: users-unsubscr...@tapestry.

Re: Modular Tapestry application in Eclipse

2013-01-28 Thread Lance Java
Have you seen this page? http://tapestry.apache.org/component-libraries.html It tells you all you need. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Modular-Tapestry-application-in-Eclipse-tp5719628p5719636.html Sent from the Tapestry - User mailing list archive at Na

Re: Modular Tapestry application in Eclipse

2013-01-28 Thread Peter Wendorff
Hi again. Thanks for your answers alltogether. Finally I got it to work now. The @Submodule annotation I think was at least part of the solution, but it didn't work directly with that only. I'm not completely sure what else I changed, but now it's working and I'm able to create additional module

Re: Modular Tapestry application in Eclipse

2013-01-28 Thread Lance Java
I asked the same question here: http://tapestry.1045711.n5.nabble.com/Eclipse-Can-run-against-maven-jar-can-t-run-against-local-project-td5714087.html When running against a project in eclipse, you are running against .class files on the classpath, not a jar file. So tapestry can't see the manifes

Re: Modular Tapestry application in Eclipse

2013-01-28 Thread Nicolas Barrera
As an alternative to Jonathan approach (which I didn't know until know... and it looks good btw)... I'm using this configuration to the jetty plugin in the pom.xml (also to use workspace resolution with m2eclipse, as he said it's useful to not having to mvn install modules all the time)

Re: Modular Tapestry application in Eclipse

2013-01-28 Thread Jonathan Barker
If you want to enable Workspace Resolution with m2eclipse, you also may want to look into the configuration item in the maven jetty plugin. (...) M2eclipse lets you see the module's classes while you work, and the extraClasspath entry lets Jetty see them without having to repeatedly mvn install y

Re: Modular Tapestry application in Eclipse

2013-01-28 Thread Thiago H de Paula Figueiredo
Actually, what you're asking is about module autoloading and it's described here: http://tapestry.apache.org/autoloading-modules.html. Summary: put the JARs in the classpath. If they have the right MANIFEST.MF entries, Tapestry-IoC will find the modules and load them automatically them. O

Re: 5.4-alpha-2 bug - Delegate component in event link body cancels ajax

2013-01-28 Thread Howard Lewis Ship
That's an odd thing. I'll look into it pretty soon. On Mon, Jan 28, 2013 at 6:32 AM, Lance Java wrote: > I've simplified the bug report as it turns out that it has nothing to do > with > the delegate component. Any eventlink with markup in it's body prevents the > event from being XHR/ajax. > > >

Re: Modular Tapestry application in Eclipse

2013-01-28 Thread Thiago H de Paula Figueiredo
On Mon, 28 Jan 2013 17:48:16 -0200, Peter Wendorff wrote: Hi. Hi! I tried to setup a modular tapestry application with Maven and Eclipse. Creating the core application with maven is easy and works. Creating a java project with a Manifest file that exports some packages I easy, but how d

Modular Tapestry application in Eclipse

2013-01-28 Thread Peter Wendorff
Hi. I tried to setup a modular tapestry application with Maven and Eclipse. Creating the core application with maven is easy and works. Creating a java project with a Manifest file that exports some packages I easy, but how do I get the core application to find/load the module using run Jetty?

Re: tapestry jQuery theme

2013-01-28 Thread Emmanuel DEMEY
You can override the JQuerySymbolConstants.JQUERY_UI_DEFAULT_THEME constant in your AppModule : https://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/services/JQueryModule.java 2013/1/28 John > Hi, > > I'm using this tabs component > http://tapestry5-jquer

How to get code coverage of Integration Test ?

2013-01-28 Thread Julien Smadja
Hello, I'm working on a 40K lines of code project. We're using : 5.3.3 0.4.4 3.3.3 0.6.1.201212231917 I'm launching my application with *mvn clean tomcat:run* with agent : * -javaagent:/Users/juliensmadja/.m2/repository/org/jacoco/org.jacoco.agent/0.6.1.201212231917/jacocoagent.jar=destfile

Re: 5.4-alpha-2 bug - Delegate component in event link body cancels ajax

2013-01-28 Thread Lance Java
I've simplified the bug report as it turns out that it has nothing to do with the delegate component. Any eventlink with markup in it's body prevents the event from being XHR/ajax. -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-4-alpha-2-bug-Delegate-component-in-event

Re: 5.4-alpha-2 bug - Delegate component in event link body cancels ajax

2013-01-28 Thread Lance Java
I've just filed a jira for this as I'm pretty sure it's a bug https://issues.apache.org/jira/browse/TAP5-2060 -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-4-alpha-2-bug-Delegate-component-in-event-link-body-cancels-ajax-tp5719612p5719617.html Sent from the Tapestry -

5.4-alpha-2 bug - Delegate component in event link body cancels ajax

2013-01-28 Thread Lance Java
I have found a bug in 5.4-alpha-2 which does NOT occur in 5.3.6 when using the exact same code. The symptoms of the bug are: 1. I have a component parameter, "linkBody", which is a block 2. I delegate to the "linkBody" in the body of an ajax eventlink 3. When the "linkBody" parameter contains marku

Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-28 Thread Thiago H de Paula Figueiredo
On Mon, 28 Jan 2013 09:58:07 -0200, Segura wrote: @Contribute(WebSecurityManager.class) public static void addRealms(Configuration configuration) { AccountRealmImpl realm = new AccountRealmImpl(); configuration.add(realm); } It doesn't make any sense to to instanti

Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-28 Thread Segura
Kalle, really useful tip. But... I wrote simple interface public interface AccountRealm { void addAccount(String username, String password); boolean accountExists(String username); } and changed my realm description to public class AccountRealmImpl extends AuthorizingRealm im

Re: T5 Varargs in service methods

2013-01-28 Thread Thiago H de Paula Figueiredo
On Mon, 28 Jan 2013 07:53:52 -0200, llama-king wrote: Sorry to dig up an old thread but seems I'm experiencing precisely the same issue. Running on 5.3.6, injecting a service, calling method in service that takes varargs. Any ideas what might be the cause? This doesn't look like it's r

Re: parameter in tml page?

2013-01-28 Thread Thiago H de Paula Figueiredo
On Sun, 27 Jan 2013 12:18:47 -0200, sommeralex wrote: i dont wont a page property, i want to define the parameter dynamically in the TML page itself. Then you want to do something which is an anti-pattern, something that goes directly against the best practices: don't put logic in templa

Re: T5 Varargs in service methods

2013-01-28 Thread llama-king
Sorry to dig up an old thread but seems I'm experiencing precisely the same issue. Running on 5.3.6, injecting a service, calling method in service that takes varargs. Any ideas what might be the cause? java.lang.LinkageError: loader constraint violation: when resolving method "com.albourne.web.s

Re: tapestry jQuery theme

2013-01-28 Thread Steve Eynon
I'm assuming you know that, by default, T.3 doesn't use jQuery - so which library are you using to import jQuery. Could you be more specific with your question? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For