Re: How do I render zone from component A in component B

2014-10-14 Thread Kalle Korhonen
On Mon, Oct 13, 2014 at 9:52 PM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: On 14 Oct 2014, at 1:14 pm, George Christman gchrist...@cardaddy.com wrote: So I was able to get it working by using the following code inside of SiteIndex, but this does not seem very reusable.

Re: Why do I have to explicitly render a zone if it's ID is specified in the ajax-enabled Select component ?

2014-10-14 Thread Chris Poulsen
Hi, On Tue, Oct 14, 2014 at 7:27 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: snip Perhaps it's time for Tapestry to replace the zone parameter with ajax=true or xhr=true? Geoff A good deal of the components already supports async parameter for exactly this. -- Chris

Re: Why do I have to explicitly render a zone if it's ID is specified in the ajax-enabled Select component ?

2014-10-14 Thread Geoff Callender
Since 5.4! I'd completely missed that. Thanks. On 14 Oct 2014, at 5:39 pm, Chris Poulsen mailingl...@nesluop.dk wrote: Hi, On Tue, Oct 14, 2014 at 7:27 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: snip Perhaps it's time for Tapestry to replace the zone parameter with

Re: Hibernate multiple databases

2014-10-14 Thread Antal van Kalleveen
Hi Nathan, I've written a module which has support for multiple databases through Hibernate. It's roughly based on Taha's implementation. Besides that it contains a lot more usefull components ;) See: https://github.com/intercommit/Weaves Regards, Antal OriginalMessage From:

Re: Why do I have to explicitly render a zone if it's ID is specified in the ajax-enabled Select component ?

2014-10-14 Thread Muhammad Gelbana
​I used to have a dummy zone in my layout component so I can use it's ID to enable ajax for Select components if they aren't inside a zone and I can't use ^ !! A good deal of the components already supports async parameter for exactly ​ this. Chris, so not *all* components does ? Should I

Re: How do I render zone from component A in component B

2014-10-14 Thread George Christman
Geoff, I always try to follow you suggested pattern, but unfortunately I don't think it's always possible. I'd like to present a use case scenario and perhaps maybe you guys can break me out of my current design rut. *Use case 1* 1. My navigation bar is contained within my layout component which

Re: Ajax form not holding onto field values after validation error.

2014-10-14 Thread Lance Java
This makes sense. For validation errors, tapestry does NOT redirect-after-post so the POST request is the same as the render request. I can only assume that onPrepare() is called twice in the same request in the case of validation errors so your null check stops the POST values from being

Re: Ajax form not holding onto field values after validation error.

2014-10-14 Thread George Christman
Yup, that's exactly what was happening. On Tue, Oct 14, 2014 at 11:35 AM, Lance Java lance.j...@googlemail.com wrote: This makes sense. For validation errors, tapestry does NOT redirect-after-post so the POST request is the same as the render request. I can only assume that onPrepare() is

Re: Custom validation js not firing in 5.4.

2014-10-14 Thread George Christman
Does anybody using 5.4 understand this issue? I'm still unable to get the clientside validation js working. On Fri, Oct 10, 2014 at 1:59 PM, George Christman gchrist...@cardaddy.com wrote: I found one mistake where I wasn't calling the js directly from render, but that still doesn't seem to

Re: How do I render zone from component A in component B

2014-10-14 Thread Kalle Korhonen
On Tue, Oct 14, 2014 at 8:18 AM, George Christman gchrist...@cardaddy.com wrote: Geoff, I always try to follow you suggested pattern, but unfortunately I don't think it's always possible. I'd like to present a use case scenario and perhaps maybe you guys can break me out of my current design

Re: How do I render zone from component A in component B

2014-10-14 Thread Lance Java
I think you might be having the same issue I had a while ago [1] Both the layout and the component are defined by the page. It's a bit counter intuitive but the layout is not the component's parent so events will not bubble up to it. The page is the parent to both. [1]

Re: How do I render zone from component A in component B

2014-10-14 Thread George Christman
Commented inline On Tue, Oct 14, 2014 at 12:15 PM, Kalle Korhonen kalle.o.korho...@gmail.com wrote: On Tue, Oct 14, 2014 at 8:18 AM, George Christman gchrist...@cardaddy.com wrote: Geoff, I always try to follow you suggested pattern, but unfortunately I don't think it's always

Re: How do I render zone from component A in component B

2014-10-14 Thread Kalle Korhonen
On Tue, Oct 14, 2014 at 11:11 AM, George Christman gchrist...@cardaddy.com wrote: Commented inline On Tue, Oct 14, 2014 at 12:15 PM, Kalle Korhonen kalle.o.korho...@gmail.com wrote: On Tue, Oct 14, 2014 at 8:18 AM, George Christman gchrist...@cardaddy.com wrote: My original response

Re: How do I render zone from component A in component B

2014-10-14 Thread Geoff Callender
I'm nodding enthusiastically as I read Kalle's comments. He's right - the differences between being in an authenticated state and non-authenticated state are so significant and it simplifies matters if a page can assume it is dealing with just one state or the other. I should have mentioned

Re: Ajax form not holding onto field values after validation error.

2014-10-14 Thread Geoff Callender
IMHO, I think it's helpful to indicate when and why you're instantiating UserProfile, rather than just conditioning by is null. void onPrepareForRender() throws Exception { // If fresh start, make sure there's a UserProfile object available. if (form.isValid()) {