Re: Relative URLs

2014-10-30 Thread George Christman
My work wants to be able to control the https through the proxy. They don't want tapestry interfering with the urls and if you don't secure the page it will give you http urls. On Thu, Oct 30, 2014 at 9:25 PM, Chris Mylonas wrote: > Hi George, > > idk but why would you want relative URIs for rev

Re: Relative URLs

2014-10-30 Thread Chris Mylonas
Hi George, idk but why would you want relative URIs for rev.proxy/loadbalancer siches? ../../to/page Looks like it's always absolute dude - as in href="/blah/path/to/page" The hostname is not written into the URI. I've just checked my delivered html behind httpd->tomcat and URIs are all ab

Re: Create a page without a template

2014-10-30 Thread Chris Mylonas
to expedite, checkout jumpstart's @EJB for reference, similar sic class transformation worker2 implementation On Fri, 31 Oct 2014 11:56:54 +1100, George Christman wrote: lol okay, I guess I'll have to learn how to create an annotation ;)

Re: Create a page without a template

2014-10-30 Thread George Christman
lol okay, I guess I'll have to learn how to create an annotation ;) On Thu, Oct 30, 2014 at 3:26 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 30 Oct 2014 17:14:04 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > Lol ok, i was excited for a min ;) >> > >

Re: Create a page without a template

2014-10-30 Thread Thiago H de Paula Figueiredo
On Thu, 30 Oct 2014 17:14:04 -0200, George Christman wrote: Lol ok, i was excited for a min ;) ;) Well, you can stil be excited and implement the annotation, as you're already implementing a class transformation. :) -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultan

Re: Create a page without a template

2014-10-30 Thread George Christman
Lol ok, i was excited for a min ;) On Oct 30, 2014 2:41 PM, "Thiago H de Paula Figueiredo" wrote: > On Thu, 30 Oct 2014 16:26:57 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > That's a functional annotation? >> > > Nope, a suggestion. :) > > -- > Thiago H. de Paula Figueiredo >

Re: Create a page without a template

2014-10-30 Thread Thiago H de Paula Figueiredo
On Thu, 30 Oct 2014 16:26:57 -0200, George Christman wrote: That's a functional annotation? Nope, a suggestion. :) -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br -

Re: Create a page without a template

2014-10-30 Thread George Christman
That's a functional annotation? On Thu, Oct 30, 2014 at 1:56 PM, Lance Java wrote: > And perhaps a @NotSecure annotation to go with it ;). > On 30 Oct 2014 17:40, "George Christman" wrote: > > > Thanks Thiago, sounds pretty simple :) > > On Oct 30, 2014 1:14 PM, "Thiago H de Paula Figueiredo"

Re: Create a page without a template

2014-10-30 Thread Lance Java
And perhaps a @NotSecure annotation to go with it ;). On 30 Oct 2014 17:40, "George Christman" wrote: > Thanks Thiago, sounds pretty simple :) > On Oct 30, 2014 1:14 PM, "Thiago H de Paula Figueiredo" < > thiag...@gmail.com> > wrote: > > > On Thu, 30 Oct 2014 15:07:03 -0200, George Christman <

Re: Create a page without a template

2014-10-30 Thread George Christman
Thanks Thiago, sounds pretty simple :) On Oct 30, 2014 1:14 PM, "Thiago H de Paula Figueiredo" wrote: > On Thu, 30 Oct 2014 15:07:03 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > Hi I'm trying to create a httpstatus page that does nothing more than >> return a 200 response. Is

Re: Secure all pages except 1

2014-10-30 Thread Thiago H de Paula Figueiredo
On Thu, 30 Oct 2014 15:04:42 -0200, George Christman wrote: I need to secure all my pages with the exception of just 1, is there a simple approach to this? Yep! Write a ComponentClassTransformWorker2 (http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/services/transform/Componen

Re: Create a page without a template

2014-10-30 Thread Thiago H de Paula Figueiredo
On Thu, 30 Oct 2014 15:07:03 -0200, George Christman wrote: Hi I'm trying to create a httpstatus page that does nothing more than return a 200 response. Is there a way to do this without having to create a template? Yep! Just have its onActivate() method return a StreamResponse (probably

Create a page without a template

2014-10-30 Thread George Christman
Hi I'm trying to create a httpstatus page that does nothing more than return a 200 response. Is there a way to do this without having to create a template? I know I can do things like this with MarkupWriter in a component, I just don't know how to do it in a page. -- George Christman www.CarDaddy

Secure all pages except 1

2014-10-30 Thread George Christman
I need to secure all my pages with the exception of just 1, is there a simple approach to this? I tried the following with failure. I'm trying to avoid individually securing pages do to the fact I occasionally forget some. I need to have 1 page that runs on http that can be accessed by the load ba

Relative URLs

2014-10-30 Thread George Christman
How do I get Tapestry to use relative urls rather than Absolute? My apps are hosted behind reverse proxies and load balancers which forward all http and https request off as http over 80 to the app servers. Thanks.

Re: Re: persistence units

2014-10-30 Thread Antal van Kalleveen
Interresting, We've had the same 'problems' and i solved it with a 'mapped' caching EntityProvider, like this: package nl.intercommit.godocument.services.internal.core; import java.util.HashMap; import java.util.Map; import javax.persistence.EntityManager; import javax.persistence.Persistence

Re: persistence units

2014-10-30 Thread John
Hi, To get Tapestry 5.3.7 working with more than 1 PU, 2 SQL Servers and 1 PostgreSQL Db in my case, I supplied this modified class in my project JAR. I'm not sure this works on 5.4 or is required? Without this change I think you just get the first defined PU whatever you define with Persiste