Re: Multiple domains, one webapp

2015-08-11 Thread Thiago H de Paula Figueiredo
On Tue, 11 Aug 2015 06:47:38 -0300, Svein-Erik Løken wrote: The Manifest configuration is back! Thank you for clarification Thiago! :) If you main webapp project has anything Tapestry-IoC-related, like declaring services, contributing to them, decorating them or advising them, yes. Is t

RE: Multiple domains, one webapp

2015-08-11 Thread Svein-Erik Løken
> > > Is the "@ImportModule(CommonModule.class)" required? > > For multi-module development with the common module project open and > live-class-reloadable, yes. If you're just adding the common module JAR to > the main project (or any project using it as a dependency) as a JAR > directly, no. Yo

Re: Multiple domains, one webapp

2015-08-10 Thread Stephen Nutbrown
Thank you also Thiago! You are all awesome and so is tapestry :) On 10 Aug 2015 18:19, "Thiago H de Paula Figueiredo" wrote: > On Mon, 10 Aug 2015 13:04:25 -0300, Stephen Nutbrown > wrote: > > This looks really good and will be really helpful to lots of people - >> thank you! >> > > +1! > > Is t

Re: Multiple domains, one webapp

2015-08-10 Thread Thiago H de Paula Figueiredo
On Mon, 10 Aug 2015 13:04:25 -0300, Stephen Nutbrown wrote: This looks really good and will be really helpful to lots of people - thank you! +1! Is the "@ImportModule(CommonModule.class)" required? For multi-module development with the common module project open and live-class-reload

RE: Multiple domains, one webapp

2015-08-10 Thread Svein-Erik Løken
> This looks really good and will be really helpful to lots of people - thank > you! > I've had a look and have learnt some things from it myself, however I have > a few questions. > > Is the "@ImportModule(CommonModule.class)" required? > > Instead of that I have something like this in my pom.xm

Re: Multiple domains, one webapp

2015-08-10 Thread Stephen Nutbrown
This looks really good and will be really helpful to lots of people - thank you! I've had a look and have learnt some things from it myself, however I have a few questions. Is the "@ImportModule(CommonModule.class)" required? Instead of that I have something like this in my pom.xml or

RE: Multiple domains, one webapp

2015-08-10 Thread Svein-Erik Løken
> > > Read about URL rewriting at > > https://tapestry.apache.org/url-rewriting.html, but cannot figure out > > how this can solve my question of how to access assets from javascript. > > Pass the asset URLs from Tapestry to JavaScript. > Thank you Thiago! I have created a project for people

Re: Multiple domains, one webapp

2015-08-10 Thread Thiago H de Paula Figueiredo
On Mon, 10 Aug 2015 06:05:27 -0300, Svein-Erik Løken wrote: Read about URL rewriting at https://tapestry.apache.org/url-rewriting.html, but cannot figure out how this can solve my question of how to access assets from javascript. Pass the asset URLs from Tapestry to JavaScript. -- Thiag

RE: Multiple domains, one webapp

2015-08-10 Thread Svein-Erik Løken
Read about URL rewriting at https://tapestry.apache.org/url-rewriting.html, but cannot figure out how this can solve my question of how to access assets from javascript. > > I use to host tons of dealer websites on a single Tapestry application all > with their own unique domain. I used a comb

Re: Multiple domains, one webapp

2015-08-07 Thread George Christman
I use to host tons of dealer websites on a single Tapestry application all with their own unique domain. I used a combination of Mod rewrite and Tapestry's URL rewriter. It worked flawlessly. On Fri, Aug 7, 2015 at 8:00 AM, Svein-Erik Løken wrote: > > > > > WOW! Multi-module in Tapestry with Liv

RE: Multiple domains, one webapp

2015-08-07 Thread Svein-Erik Løken
> > > WOW! Multi-module in Tapestry with Live Class Reloading is fantastic! > > Thanks for pointing me in the right direction Thiago! > > Yay! Virtual high-five! :D Tapestry is awesome, isn't it? ;) > Oh yea! T5.4 is a success! > specify @SubModule(HappyModule.class) (or @ImportModule in T5.4)

Re: Multiple domains, one webapp

2015-08-06 Thread Thiago H de Paula Figueiredo
On Wed, 05 Aug 2015 17:42:29 -0300, Svein-Erik Løken wrote: WOW! Multi-module in Tapestry with Live Class Reloading is fantastic! Thanks for pointing me in the right direction Thiago! Yay! Virtual high-five! :D Tapestry is awesome, isn't it? ;) To get live class reloading work for the com

Re: Multiple domains, one webapp

2015-08-06 Thread Kalle Korhonen
On Wed, Aug 5, 2015 at 4:12 PM, Stephen Nutbrown wrote: > Seems to be working for me too! Thanks. > The only issue I am having is that my code for hibernate doesn't seem to > work quite as expexted. Ideally, this should be picked up from the happylib > public static void > contributeHibernateEnti

RE: Multiple domains, one webapp

2015-08-05 Thread Svein-Erik Løken
Do you have Tapestry-Module-Classes set up in the common module? https://tapestry.apache.org/autoloading-modules.html The hibernate.cfg.xml and maven dependency to hibernate should be set up in the main module. E.g.     org.hibernate     hibernate-c3p0 > The only issue I am having is that my

RE: Multiple domains, one webapp

2015-08-05 Thread Svein-Erik Løken
Do you have Tapestry-Module-Classes set up in the common module? https://tapestry.apache.org/autoloading-modules.html The hibernate.cfg.xml and maven dependency to hibernate should be set up in the main module. E.g. org.hibernate hibernate-c3p0 The only issue I am having is that

RE: Multiple domains, one webapp

2015-08-05 Thread Stephen Nutbrown
Seems to be working for me too! Thanks. The only issue I am having is that my code for hibernate doesn't seem to work quite as expexted. Ideally, this should be picked up from the happylib public static void contributeHibernateEntityPackageManager(Configuration configuration) { configurat

RE: Multiple domains, one webapp

2015-08-05 Thread Svein-Erik Løken
WOW! Multi-module in Tapestry with Live Class Reloading is fantastic! Thanks for pointing me in the right direction Thiago! To get live class reloading work for the common module in IntelliJ: Open Project Structure, Project Settings > Modules. Select the common module > Paths > Compiler output.

Re: Multiple domains, one webapp

2015-08-05 Thread Stephen Nutbrown
This one: https://tapestry.apache.org/component-libraries.html There are a few issues, if someone has a chance to edit them i'll just list them here: 1) It says: You will need to modify the Tapestry release version number ("5.2.0" in the listing above) to reflect the current version of Tapestr

Re: Multiple domains, one webapp

2015-08-04 Thread Thiago H de Paula Figueiredo
On Tue, 04 Aug 2015 18:15:20 -0300, Stephen Nutbrown wrote: Thanks. I have got the example set up from the documentation for the happy lib. I found some bits that seemed not quite right along the way. Which ones? If there's anything wrong on the documentation, we should fix it. -- Thi

Re: Multiple domains, one webapp

2015-08-04 Thread Stephen Nutbrown
Thanks. I have got the example set up from the documentation for the happy lib. I found some bits that seemed not quite right along the way. Perhaps it is possible to attach full working examples to the documentation as a zip or git repo. I am happy to attach it here for reference, any chance some

Re: Multiple domains, one webapp

2015-08-04 Thread Thiago H de Paula Figueiredo
On Tue, 04 Aug 2015 12:19:40 -0300, Stephen Nutbrown wrote: It's checked by default on my Eclipse Lunar - I haven't used it yet as i'm just diving into making this shared module to see how it goes. As long as the compiler target folder of the included library/module/subproject is include

Re: Multiple domains, one webapp

2015-08-04 Thread Thiago H de Paula Figueiredo
On Tue, 04 Aug 2015 12:12:02 -0300, Stephen Nutbrown wrote: Hi, Hi! I'm looking at the documentation at he moment for how to create a jar file for tapestry to use and I intend to use the documentation here: https://tapestry.apache.org/component-libraries.html I did spot that it says cl

Re: Multiple domains, one webapp

2015-08-04 Thread Stephen Nutbrown
It's checked by default on my Eclipse Lunar - I haven't used it yet as i'm just diving into making this shared module to see how it goes. Thanks, Steve On 4 August 2015 at 16:15, Lance Java wrote: > Further from Thiagos connents... > > In eclipse, when using the m2e plugin you can right click o

Re: Multiple domains, one webapp

2015-08-04 Thread Lance Java
Further from Thiagos connents... In eclipse, when using the m2e plugin you can right click on a project Properties -> Maven -> Resolve dependencies from Workplace projects This is flagged on by default. Perhaps intellij has a similar configuration option? It's rare that eclipse can do something

Re: Multiple domains, one webapp

2015-08-04 Thread Stephen Nutbrown
Hi, Many thanks for all of your thoughts on this. I have chosen to go with having a common project as a jar and setting up maven to build this project first and use it as a dependency for the other two. This means i'll be able to put the various entities in there that are shared between both web a

Re: Multiple domains, one webapp

2015-08-04 Thread Thiago H de Paula Figueiredo
On Tue, 04 Aug 2015 10:27:01 -0300, Svein-Erik Løken wrote: >> 4) You can't use Tapestry's Live Class Reloading on any class in the >> common >> JAR (e.g. Tapestry IOC service implementation classes). > > I think 4) is the biggest downside in a multi-module project. Do you > think Tapestry ca

RE: Multiple domains, one webapp

2015-08-04 Thread Svein-Erik Løken
> >> 4) You can't use Tapestry's Live Class Reloading on any class in the > >> common > >> JAR (e.g. Tapestry IOC service implementation classes). > > > > I think 4) is the biggest downside in a multi-module project. Do you > > think Tapestry can do a Live Class Reloading of the common JAR included

Re: Multiple domains, one webapp

2015-08-04 Thread Thiago H de Paula Figueiredo
On Tue, 04 Aug 2015 10:05:49 -0300, Svein-Erik Løken wrote: 4) You can't use Tapestry's Live Class Reloading on any class in the common JAR (e.g. Tapestry IOC service implementation classes). I think 4) is the biggest downside in a multi-module project. Do you think Tapestry can do a Li

RE: Multiple domains, one webapp

2015-08-04 Thread Svein-Erik Løken
> 1) You have to maintain three projects (or a Maven multi-module project if > you're using Maven) instead of one. > 2) You'll have two different app servers to configure & maintain. > 3) You'll probably need to maintain database credentials in two different > places. > 4) You can't use Tapestry's

Re: Multiple domains, one webapp

2015-08-02 Thread John Coleman
I'm going to agree with Bob here. Reducing complexity is a top level goal IMO. Using a different app for different URLs seems somewhat familiar to the MVC anti-pattern. The domain name used to access a system ought to be considered part of the presentation layer (like an interface vs an implementa

Re: Multiple domains, one webapp

2015-08-01 Thread Bob Harner
Stephen, An contrary viewpoint... There is really nothing wrong with having two web front ends for a single web app if you handle authentication in a clean and reliable way. Sure, the conventional wisdom is to split the app into 3 parts (clients, partners, and a common JAR containing classes that

Re: Multiple domains, one webapp

2015-07-30 Thread Stephen Nutbrown
Thanks for the advice. I'll go with this. I will look into how to create a module which I can use in both webapps, and I will need to find a reliable way to connect both of the webapps to the same (amazon RDS) database without running out of connections etc (I believe this will just mean working wi

Re: Multiple domains, one webapp

2015-07-30 Thread Norman Franke
Or have two instances of the same application with some configuration parameter to tell it which version it should be. Norman Franke Answering Service for Directors, Inc. www.myasd.com > On Jul 30, 2015, at 4:12 PM, Thiago H de Paula Figueiredo > wrote: > > On Thu, 3

Re: Multiple domains, one webapp

2015-07-30 Thread Thiago H de Paula Figueiredo
On Thu, 30 Jul 2015 16:19:50 -0300, Dimitris Zenios wrote: I would definitely split it into two web applications with a common tapestry module.Any other way will result to a mess. Agreed, as that's basically two distinct web applications which just happen to be in the same server, even if

Re: Multiple domains, one webapp

2015-07-30 Thread Dimitris Zenios
I would definitely split it into two web applications with a common tapestry module.Any other way will result to a mess. On Thu, Jul 30, 2015 at 10:12 PM, Stephen Nutbrown wrote: > Hi, > > To cut a long story short, I have a website running using tapestry which > has two main areas, we will call