Re: Implementation mixin and persistence

2011-04-06 Thread Rich M
me text public class TestPage { @Persist @Property private boolean state; } regards Taha On Wed, Apr 6, 2011 at 10:35 PM, LLTYK wrote: Last time I did this I used a javascript cookie api. -- View this message in context: http://tapest

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
This is some text public class TestPage { @Persist @Property private boolean state; } regards Taha On Wed, Apr 6, 2011 at 10:35 PM, LLTYK wrote: > Last time I did this I used a javascript cookie api. > > -- > View this message in context: > http://tap

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

Implementation mixin and persistence

2011-04-05 Thread Rich M
Hi, I have a Page and it has a search form, contained within an ID'ed DIV. I made an implementation mixin that initializes an Event observer on the on click event of a 'button' in the Page's HTML. The event triggers javascript that hides/shows the search form. That works fine, but I want to