Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
Amazing, thanks for the example here. My implementation isn't exactly the same, but your code example made the concept quite clear and I've got it working now. Thanks! On 04/06/2011 01:14 PM, Taha Hafeez wrote: Dear Rich I tried to implement what you desired ( to the best of my understanding)

Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
Thanks Josh, you are right. Using the Prototype Ajax.request object solved the problem (as it does include that header) and is easier to use anyway. Thanks for the tip. On 04/06/2011 12:51 PM, Josh Canfield wrote: When this is executed, it triggers the event method properly in the Java Page cl

Re: Implementation mixin and persistence

2011-04-06 Thread Taha Hafeez
Dear Rich I tried to implement what you desired ( to the best of my understanding) this is it import org.apache.tapestry5.ClientElement; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.Link; import org.apache.tapestry5.annotations.Environmental; import org.apache.tape

Re: Implementation mixin and persistence

2011-04-06 Thread LLTYK
Last time I did this I used a javascript cookie api. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Implementation-mixin-and-persistence-tp6243796p6246820.html Sent from the Tapestry Users mailing list archive at Nabble.com. -

Re: Implementation mixin and persistence

2011-04-06 Thread Josh Canfield
> When this is executed, it triggers the event method properly in the Java > Page class, but it also triggers the render cycle in the page class as well, > as far as my logs indicate. Sounds like tapestry isn't detecting that you are doing XHR. It's detected based on an HTTP header "X-Requested-Wi

Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
To add, I'm not sure creating a pure XHR request is working out quite how I might have expected. The following javascript snippet: var request = false; try { request = new XMLHttpRequest(); var url = "/ViewTransactionsTab:HideShow/" + escape(hide); request

Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
Thanks, that was an interesting read, but it doesn't help solve my problem. I still don't see how I would pass a persisted property-bound parameter to the implementation mixin. The only related code I've seen is like @Component(parameters={"hidden=hide"}) but using that like this doesn't work

Re: Implementation mixin and persistence

2011-04-05 Thread Taha Hafeez
Hi There was a discussion related to 'Parameters in Implementation Mixins'... http://tapestry.1045711.n5.nabble.com/Parameters-in-implementation-mixins-td3395407.html Hope it helps regards Taha On Wed, Ap