tapestry-jpa entities not associated with correct entity manager

2012-11-11 Thread John
I'm finding that entities are not being attached to the correct entity manager even though they are indicated in the persistence.xml. This manifests that if the user logs in first which uses AuditDBUnit then the entities in JabberDBUnit are not available. If the JabberDBUnit is used first, enti

RE: select event handler wont hit breakpoint - quarky runtime came back

2012-11-11 Thread Lance Java
I'm not trying to steal your thunder. My design/CSS skills are pretty rubbish so chances are it won't look pretty. There have been a few questions on this list lately regarding a gallery component and I wanted to provide a sample showing that it was possible to do it without the need for @Persist.

Re: Render whole table grid row as a link?

2012-11-11 Thread Lance Java
Well, I'm sure you're a smart guy and can figure out how to get the tbody. The mixin will fire after the grid component has rendered. The grid renders a table inside a div so you will need to do something like: List topChildren = writer.getElement().getChildren(); Element div = (Element) topChil

Re: Using maps withing templates

2012-11-11 Thread Muhammad Gelbana
Here is a sample of what I'm trying to do: > > ixlTest.parameterGroups{'testOptions'}{'serverIp'} And the error I'm getting > Could not convert 'ixlTest.parameterGroups{'testOptions'}{'serverIp'}' > into a component parameter binding: Error parsing property expression > 'ixlTest.parameterGroups{

Re: tapestry-jpa entities not associated with correct entity manager

2012-11-11 Thread Lenny Primak
I would suggest either using or looking at FlowLogix tapestry library It has a jpa package that takes care of using multiple persistence units in one application. The key is to have entities with different PUs in different packages. On Nov 11, 2012, at 3:49 AM, "John" wrote: > I'm finding tha

Re: Render whole table grid row as a link?

2012-11-11 Thread Lance Java
I've just written a GridDecorator mixin that allows you to decorate rows or cells in a grid. The code can be found here: https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/mixins/GridDecorator.java A demo can be found here with examples for RowDecorator and Ce

Re: Can I attach an instance mixin to a nested component

2012-11-11 Thread Lance Java
I was able to solve my problem by developing a GridDecorator mixin which applies RowDecorators and CellDecorators. Code Here: https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/mixins/GridDecorator.java https://github.com/uklance/tapestry-stitch/blob/master/sr

java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

2012-11-11 Thread TG
I got a new exception "java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request." after I upgraded the tapestry to 5.3.6. I was using 5.3.4 (or maybe earlier) before without any issue. Our codes - ... @InjectPa

Re: Using maps withing templates

2012-11-11 Thread Paul Stanton
You can write a method in your java class instead of trying to write a parameter binding. eg getSomething(String key1, String key2) {...} On 12/11/2012 3:52 AM, Muhammad Gelbana wrote: Here is a sample of what I'm trying to do: ixlTest.parameterGroups{'testOptions'}{'serverIp'} And the e

Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

2012-11-11 Thread Muhammad Gelbana
Any more info about the error message(s) ? What about the stacktrace ? Could this be more about GAE and not Tapestry ? On Mon, Nov 12, 2012 at 12:21 AM, TG wrote: > I got a new exception "java.lang.IllegalStateException: Sanity check - > neither a stream response nor a redirect response was gene

Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

2012-11-11 Thread Alex Kotchnev
I ran into this issue after I upgraded to GAE 1.7.2 or 1.7.3. Switching to 1.7.1.1 resolved the issue. Cheers - Alex K On Sun, Nov 11, 2012 at 9:57 PM, Muhammad Gelbana wrote: > Any more info about the error message(s) ? What about the stacktrace ? > Could this be more about GAE and not Tapestry

Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

2012-11-11 Thread TG
Alex, great info. I can't downgrade, as we are testing Cloud endpoints, which is only available in 1.7.3. Any idea what is breaking Tapestry 5.3.6 in this case? Any workaround is acceptable too. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/java-lang-IllegalSt