Re: [T5.4] BeanEditor and Friends don't look as good as in Tap 5.3

2013-10-18 Thread Geoff Callender
Actually, that's probably flawed because it doesn't involve outputting the bootstrap class names (form-horizontal and col-*) into the rendered HTML. We have to expect that bootstrap.js might depend on them being in the rendered HTML. On 18/10/2013, at 12:44 AM, Geoff Callender wrote: > > If t

Tapestry 5 Crash on load from Eclipse while working ok from command (Jetty)

2013-10-18 Thread Jeremy Villalobos
I have not worked on a Tapestry 5 project for a few weeks. The last time I used it, the development environment was fully setup. Now I come back and I get the stack trace shown at the end of this email. I tried mvn jetty:run And that starts up the portal no-problem. But from eclipse (Run->Jet

Generate faithful PDF from Tapestry rendered HTML

2013-10-18 Thread Net Dawg
The requirement is to provide a PDF option to a page that is already being rendered in HTML as faithfully as possible. Specifically,  1) generate dynamic HTML from database based on posted parameters.  The HTML features imagery, optional javascript includes.  Importantly, this page features a l

Re: Jetty/Tappestry for different class locations?

2013-10-18 Thread Martin Kersten
I am unsure. I had problems detecting my test classes while running inside a jetty. I solved this issue by using some kind of a directory bundle (lame name but hadnt found something better yet). Since I saw this in the plastic IOC part I guess tapestry also can deal with fragmented classpath direct

Re: Dynamic Loading of Templates

2013-10-18 Thread Martin Kersten
> > Change that give us a resource that is not file based. And what do we get? > VirtualResource extending Resource why? > >VirtualResource is in an internal package (org.apache.tapestry5.internal .util) so it is *not* meant to be outside Tapestry's source code.< Even more kind of a downer. Do

Re: Dynamic Loading of Templates

2013-10-18 Thread Thiago H de Paula Figueiredo
On Fri, 18 Oct 2013 13:51:56 -0300, Martin Kersten wrote: Dont ask about Resource either... 2008 Resource is filebased. org.apache.tapestry5.ioc.Resource is *not* file-based. I have no idea why you said that statement. You can implement it in any way you want, including completely dynam

Re: Dynamic Loading of Templates

2013-10-18 Thread Martin Kersten
> I'd love to see your source code... it must be out of this world!!! Nah. Its just more true to test driven development and agility. You know small methods, DRY, KISS bla bla bla. It's simple as this. Tapestry is service heavy. Why do not have Page.getTemplate() (as option of cause). I asked for

Re: Jetty/Tappestry for different class locations?

2013-10-18 Thread Thiago H de Paula Figueiredo
On Fri, 18 Oct 2013 11:22:40 -0300, Martin Kersten wrote: I have the problem that all those projects render the classes to: parent.project/classes web.project/classes using maven jetty:run gets all those classes copied to a new location what makes the startup dead slow (several seconds).

Re: Dynamic Loading of Templates

2013-10-18 Thread Lance Java
Strange to hear you talk that way of the tapestry implementation. I personally think it's some of the best code I've seen and I genuinely think that familiarising myself with the tapestry source code has made me a better developer. Everything is overridable and there are many seams where you can in

Re: JPA

2013-10-18 Thread Andreas Ernst
Am 11.10.13 15:34, schrieb Dmitry Gusev: It's hard to say, sorry, should be something simple. You may attach with debugger and see. We can continue this discussion on the #tapestry IRC channel on irc.freenode.net if you want... just to stop spamming this ML. Thanks to Dmitry Gusev! https://iss

Re: Jetty/Tappestry for different class locations?

2013-10-18 Thread Martin Kersten
I have the problem that all those projects render the classes to: parent.project/classes web.project/classes using maven jetty:run gets all those classes copied to a new location what makes the startup dead slow (several seconds). I use an emebedded jetty where I just give the webapp directory lo

Re: Jack of All Trades Page

2013-10-18 Thread Lance Java
I'm guessing you could do it like this: @Test public void test() { Registry registry = ...; BindingSource bindingSource = registry.getService(BindingSource.class); TemplateParser parser = registry.getService(TemplateParser.class); Map params = new HashMap(); par

Re: Cannot pass string containing spaces into component event.

2013-10-18 Thread Thiago H de Paula Figueiredo
Instead of using the event context, use a query parameter, so you don't need to replicate in JS the logic in URLEncoder(Impl), which is *not* the same as regular URL encoding. On Fri, 18 Oct 2013 06:28:48 -0300, Davide Vecchi wrote: In a Tapestry-generated web page I have some Javascript l

Cannot pass string containing spaces into component event.

2013-10-18 Thread Davide Vecchi
In a Tapestry-generated web page I have some Javascript like this: var arg = 'StringWithoutSpaces'; // Works only if no spaces in this string. var sLink = '/mypage.mycomponent:myevent/' + encodeURIComponent(arg); alert(sLink); // Just for debug.

Re: Jetty/Tappestry for different class locations?

2013-10-18 Thread Muhammad Gelbana
I'm not sure what you're trying to do but I think you are looking for a way to load specific Tapestry modules. I use this "tapestry.modules" i.e. -Dtapestry.modules=my.app.AppModule,my.other.app.TestModule *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Thu, Oc

Re: Jack of All Trades Page

2013-10-18 Thread Martin Kersten
That's exactly what I want. I'll take a look thanks. 2013/10/18 Lance Java > Hey Martin, you're lucky because I have a fair idea of what you're up to > :). I think you want to write a custom binding so that your dynamic > template can reference values from a map. I'm thinking you'll contribute