Re: Getting Session State Object from another servlet alongside Tapestry

2012-05-11 Thread Lance Java
This is interesting because I will probably be doing the same thing soon to integrate the DWR servlet with tapestry. I guess you will need to instantiate the servlet and set the init-params on it. I was thinking of configuring the values as http://tapestry.apache.org/symbols.html tapestry symbols

T5.3.1 How to expand all the tree nodes?

2012-05-11 Thread wesleywj2
hi, i need advice on how to expand the tree node with eventlink, currently based on the example from http://jumpstart.doublenegative.com.au/jumpstart/examples/component/treebrowse http://jumpstart.doublenegative.com.au/jumpstart/examples/component/treebrowse it has only the collapse function.

Joining tapestry exception handling

2012-05-11 Thread jeczmien
I need advice how to execute my code during tapestry exception handling. Current: 1. Something wrong has happen and tapestry shows exception page 2. error is logged in container' log My use case: 1. Something wrong has happen and tapestry shows exception page 2. error is logged in container'

Re: Joining tapestry exception handling

2012-05-11 Thread Dmitry Gusev
Try this: http://tapestry.apache.org/overriding-exception-reporting.html On Fri, May 11, 2012 at 3:21 PM, jeczmien jeczm...@podgorska.ddns.infowrote: I need advice how to execute my code during tapestry exception handling. Current: 1. Something wrong has happen and tapestry shows exception

Re: T5.3.1 How to expand all the tree nodes?

2012-05-11 Thread Lance Java
Page.tml t:tree t:id=tree t:model=treeModel / Page.java - @InjectComponent Tree tree; @Cached // use cached because this method may be called twice in a single request public TreeModel getTreeModel() { ... } public void onExpandAll() { TreeExpansionModel expansionModel =

high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Robert Lentz
Hi All, we want to rollout a Tapestry app very shortly, but we struggle with load testing issues. We are currently load testing on one Tomcat 6.0.32: - 500 worker threads, tapestry.production-mode=true - Intel(R) Xeon(R) CPU X7460 @ 2.66GHz - OpenJDK Runtime Environment (IcedTea6 1.7.10)

Bean editor model does not contain a property named 'device.id'.

2012-05-11 Thread fmaylinch
Hello, We get this exception when using a t:grid. ApplicationDevice has a 'Device device' property, which in turn has a 'String id' property. I suppose t:reorder and t:exclude don't support property navigation. Is this right? Should we use a custom t:model then? Any tips/suggestions on that

Re: Bean editor model does not contain a property named 'device.id'.

2012-05-11 Thread Thiago H. de Paula Figueiredo
On Fri, 11 May 2012 10:24:35 -0300, fmaylinch ferranmayli...@gmail.com wrote: Hello, Hi! We get this exception when using a t:grid. ApplicationDevice has a 'Device device' property, which in turn has a 'String id' property. I suppose t:reorder and t:exclude don't support property

Re: high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Howard Lewis Ship
That's an interesting result. Why, oh why, did I ever implement render variables? So the conventional thinking on synchronized methods is that they where there is limited contention, and the method is short, synchronized is the best way to go. This method exists, and is synchronized, to avoid

Re: high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Denis Stepanov
Would it be better to put synchronized block inside null check block like: if (renderVariables == null) { synchronized(this) { ... If I'm not mistaken resetParametersConduits doesn't need to be synchronized it should only change per thread value. Denis May 11, 2012 v 6:06 PM, Howard Lewis

Re: high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Howard Lewis Ship
That's a common mistake. Although I've heard that future JDK/JVM may address this common case, it is not valid to read a shared variable outside a synchronized block, even to check for null-ness. This was a common mistake propagated in books and blogs in the early 2000's. Another alternative

Re: high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Howard Lewis Ship
In case I wasn't clear; I'm waiting for a commitment that you will retest with updated Tapestry code before I make the changes. I'm willing to juggle my schedule to assist, if you're ready to do your part. On Fri, May 11, 2012 at 9:06 AM, Howard Lewis Ship hls...@gmail.com wrote: That's an

Re: getting the object in a row from a grid component

2012-05-11 Thread ramonchu
Hi. I finally implemented a ValueEncoderFactory , so I can pass the full object in the context, as I originally wanted. Thanks for all the answers. -- View this message in context: http://tapestry.1045711.n5.nabble.com/getting-the-object-in-a-row-from-a-grid-component-tp5687588p5703516.html

Re: high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Robert Lentz
Howard, thank you very much for the quick and insightful response. I haven't yet understood the code completely, why that many synchronized methods are invoked like ( private synchronized void resetParameterConduits() etc) I would be really happy to test your shortly and crank out a 5.3.4-rc-1

Re: high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Cezary Biernacki
On Fri, May 11, 2012 at 6:33 PM, Howard Lewis Ship hls...@gmail.com wrote: That's a common mistake. Although I've heard that future JDK/JVM may address this common case, it is not valid to read a shared variable outside a synchronized block, even to check for null-ness. This was a common

How to add an URL-anchor to a redirect?

2012-05-11 Thread René Bernhardsgrütter
Hi T5 Users, is it somehow possible to add an anchor-tag (example.com/#entry123) to a page redirect? I should control this inside the POJO, not in the template (there it's no problem). The only way I found was by injecting the Link interface (org.apache.tapestry5.Link) but then I can't use

Re: How to add an URL-anchor to a redirect?

2012-05-11 Thread Thiago H. de Paula Figueiredo
On Fri, 11 May 2012 20:12:46 -0300, René Bernhardsgrütter rene.bernhardsgruet...@cerder.com wrote: Hi T5 Users, Hi! is it somehow possible to add an anchor-tag (example.com/#entry123) to a page redirect? I should control this inside the POJO, not in the template (there it's no

Re: high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Robert Lentz
Forgot to mention that we are using Tapestry 5.3.3. Regards Robert Am 11.05.2012 18:44, schrieb Robert Lentz: Howard, thank you very much for the quick and insightful response. I haven't yet understood the code completely, why that many synchronized methods are invoked like ( private