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: Working with JPA - Page Requests - Checking if object with id exists - Redirecting if false

2015-08-04 Thread Thiago H de Paula Figueiredo
On Tue, 04 Aug 2015 09:07:45 -0300, Geoff Callender wrote: On the minus side, it gets called more than you might expect: http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/onactivateandonpassivate/3

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: prefilling password

2015-08-04 Thread Lance Java
I've always considered this a bit of a security flaw. Using the javascript console you can show the password in plain text. Eg: alert(document.getElementById('password').value); On 3 Aug 2015 21:13, "Thiago H de Paula Figueiredo" wrote: > On Mon, 03 Aug 2015 15:04:27 -0300, Christine > wrote:

Re: Working with JPA - Page Requests - Checking if object with id exists - Redirecting if false

2015-08-04 Thread Geoff Callender
Just be aware that there are pluses and minuses to doing it in onActivate(). On the plus side, onActivate() is an event handler, so it can control what’s displayed next by its return type. The return type could even be new HttpError(404, "Page not found"); http://jumpstart.doublenegati

Re: Working with JPA - Page Requests - Checking if object with id exists - Redirecting if false

2015-08-04 Thread Thiago H de Paula Figueiredo
On Tue, 04 Aug 2015 06:15:08 -0300, Poggenpohl, Daniel wrote: Hello everyone, as the subject describes, we are trying to decide when to redirect the user to the error page. Tapestry reads the context from the url. As it may happen, a (malicious or not) user can decide to try out IDs wi

Re: Working with JPA - Page Requests - Checking if object with id exists - Redirecting if false

2015-08-04 Thread Geoff Callender
Have you read this? http://jumpstart.doublenegative.com.au/jumpstart7/examples/infrastructure/handlingabadcontext/1 My personal preference is to treat ids that don’t exist, and ids that you are not authorised to, the same way: display a "does not exist” message on the same page. It wil

Re: Filling some filed of a form selecting a row from a grid

2015-08-04 Thread Thiago H de Paula Figueiredo
On Mon, 03 Aug 2015 18:24:45 -0300, Luca Arzeni wrote: Hi Thiago, Hi! invoice. At this point you need to select a customer: you can insert a customer number, but, if you don't know it, you can press the search button at the right of the customer number and the system will open a popup

Re: Filling some filed of a form selecting a row from a grid

2015-08-04 Thread Luca Arzeni
Thank you Thiago, I got it! Bye, larzen > Sent: Monday, August 03, 2015 at 11:56 PM > From: "Thiago H de Paula Figueiredo" > To: "Tapestry users" > Subject: Re: Filling some filed of a form selecting a row from a grid > > On Mon, 03 Aug 2015 18:24:45 -0300, Luca Arzeni wrote: > > > Hi Thiago,

Working with JPA - Page Requests - Checking if object with id exists - Redirecting if false

2015-08-04 Thread Poggenpohl, Daniel
Hello everyone, as the subject describes, we are trying to decide when to redirect the user to the error page. Tapestry reads the context from the url. As it may happen, a (malicious or not) user can decide to try out IDs with a URL. When in the page request process should I look in the databa