Re: Zone update 5.3-5.4 timing changes

2017-06-27 Thread Jonathan Barker
Unfortunately, there are not. I could arrange a join.me session at your convenience if you are willing. On Mon, Jun 26, 2017 at 1:16 PM, Thiago H. de Paula Figueiredo wrote: > Hi! > > Is there any publicly-accessible page demonstrating this behavior? > > On Sat, Jun 24, 2017 at 4:10 PM, Jonathan

Re: Zone update 5.3-5.4 timing changes

2017-06-26 Thread Thiago H. de Paula Figueiredo
Hi! Is there any publicly-accessible page demonstrating this behavior? On Sat, Jun 24, 2017 at 4:10 PM, Jonathan Barker < jonathan.theit...@gmail.com> wrote: > Hello all, > > We are in the midst of an upgrade of an application from 5.3.7 to > 5.4.x, and we have hit a snag. Actions that were prev

Re: zone="^"

2016-11-28 Thread Bob Harner
FYI, this is mentioned in the docs here: http://tapestry.apache.org/ajax-and-zones.html (about half way down -- search for the word "carat") On Mon, Nov 28, 2016 at 10:54 AM, Adam X wrote: > Thanks ! > > On Mon, Nov 28, 2016 at 4:53 PM, Peter Hvass > wrote: >> Hey there Adam! It means it ta

Re: zone="^"

2016-11-28 Thread Adam X
Thanks ! On Mon, Nov 28, 2016 at 4:53 PM, Peter Hvass wrote: > Hey there Adam! It means it targets the nearest containing zone! > > i.e.: > > >> > > Bob > > >> > > > In this example the eventlink targets zone2. > > Hope this helps! > > Peter > > On 28 November 2016 at 17:48, A

Re: zone="^"

2016-11-28 Thread Peter Hvass
Hey there Adam! It means it targets the nearest containing zone! i.e.: > Bob > In this example the eventlink targets zone2. Hope this helps! Peter On 28 November 2016 at 17:48, Adam X wrote: > Hi, > > This jumpstart example uses zone attribute as in the title: > > htt

Re: Zone update and inactive timeout

2016-11-11 Thread .. ...
Thanks both of you. I used Christian Riedel suggestion and it worked like a charm. Vavricka On Thu, Nov 10, 2016 at 10:55 AM, Cezary Biernacki wrote: > The problem is caused by AJAX polling, and it is not specific to Tapestry, > but to how Java servlet containers manage sessions. I had similar

Re: Zone update and inactive timeout

2016-11-10 Thread Cezary Biernacki
The problem is caused by AJAX polling, and it is not specific to Tapestry, but to how Java servlet containers manage sessions. I had similar one (AJAX polling with Jetty) and IIRC I solved it by implementing my own SessionHandler and SessionManager classes (subclassing and replacing ones provided b

Re: Zone update and inactive timeout

2016-11-10 Thread Christian Riedel
Hi Vavricka, every time you poll the server the session timeout is reset. You could track real user activity on your own in the browser using some js and issue a logout request after 30 minutes or so... Cheers Christian > Am 10.11.2016 um 09:26 schrieb .. ... : > > Hi, > > I am using tapest

Re: Zone Update with POST

2016-01-08 Thread Kalle Korhonen
For handling POST, I'd utilize Tynamo's tapestry-resteasy ( http://www.tynamo.org/tapestry-resteasy+guide/). JS could be something like this: $.ajax({ url: 'http://my.server.com/editor/save', data: data, error: function() { }, dataType: 'json', success: function(data) { },

Re: Zone event, new client id

2015-07-24 Thread Tony Nelson
Sorry, this is the submit of a zone event. Here is all of the relevant code. I did check, afterRender is not called in the chain. The log line that is generated with this code is: [INFO] components.EmailForm tinymce.execCommand('mceAddEditor',true,'null'); Thanks again for any help. @InjectC

Re: Zone event, new client id

2015-07-24 Thread Thilo Tanner
Hi Tony, In which render phase are trying to access the client id? It may help if you post parts of your code. Injecting the component to access the client id works for me (for the following common pattern): @Environmental private JavaScriptSupport javaScriptSupport; @Component private Select

Re: zone on a

2014-09-23 Thread Geoff Callender
Or put zone on the , like in the examples. http://jumpstart.doublenegative.com.au/jumpstart7/examples/ajax/eventlinksinaloop http://jumpstart.doublenegative.com.au/jumpstart7/examples/ajax/formsinaloop On 23 Sep 2014, at 9:42 pm, Boris Horvat wrote: > Html doesn't supprit div

Re: zone on a

2014-09-23 Thread Boris Horvat
Html doesn't supprit div or any other tag in the middle of the table so browser will remove it. I have learned that the hard way. You have 3 options. Dont use table. Use ajaxformloop. Put zone inside the On 23 Sep 2014 12:02, "squallmat ." wrote: > Hi, > > I have a table, one of the row () has

Re: zone on a

2014-09-23 Thread Geoff Callender
Here are 2 working examples you can use as a reference point: http://jumpstart.doublenegative.com.au/jumpstart7/examples/ajax/eventlinksinaloop http://jumpstart.doublenegative.com.au/jumpstart7/examples/ajax/formsinaloop Cheers, Geoff On 23 Sep 2014, at 8:01 pm, squallmat . w

Re: zone updates prolong session life

2014-08-24 Thread Kalle Korhonen
The way I deal with this issue is by configuring aggressively short sessions (in the order of a few minutes) and using optional components that make intelligent (i.e. can track user activity on the client) keep-alive requests on pages/workflows that need longer sessions. That's also the principle b

Re: zone updates prolong session life

2014-08-24 Thread Thiago H de Paula Figueiredo
On Sat, 23 Aug 2014 09:07:38 -0300, John wrote: I was hoping that maybe the jquery zonerefresh mixin could be made to mark its request in such a way to tell the container not to update the session time? I'm guessing the container part of this work would be outside Tapestry though. I beli

Re: zone updates prolong session life

2014-08-23 Thread John
Ship To: Tapestry users Sent: Friday, August 22, 2014 11:30 PM Subject: Re: zone updates prolong session life This is not currently possible with Tapestry; in fact some people use just the opposite approach, using a Zone update to keep the session live. It is difficult to tell, o

Re: zone updates prolong session life

2014-08-22 Thread Howard Lewis Ship
This is not currently possible with Tapestry; in fact some people use just the opposite approach, using a Zone update to keep the session live. It is difficult to tell, on the server side, what the "intent" of a request is, and Tapestry has had no concept of "user generated action" as the intent.

Re: Zone and Event Link ID refresh

2014-02-23 Thread Boris Horvat
I have been able to trace the problem bact to the change in the zone id on java side. It is fune now :) Thanks On 23 Feb 2014 13:45, "Thiago H de Paula Figueiredo" wrote: > On Sat, 22 Feb 2014 17:51:16 -0300, Boris Horvat > wrote: > > Hi everyone, >> > > Hi! > > Event handler method please? :

Re: Zone and Event Link ID refresh

2014-02-23 Thread Thiago H de Paula Figueiredo
On Sat, 22 Feb 2014 17:51:16 -0300, Boris Horvat wrote: Hi everyone, Hi! Event handler method please? :) -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br - To u

Re: zone containing a scrollable element

2013-11-18 Thread John
All I did was create a zone within the parent container and update that, works fine and saved me from a wasteful outer rerendering. John - Original Message - From: Chris Mylonas To: Tapestry users Sent: Thursday, November 14, 2013 7:01 AM Subject: Re: zone containing a

Re: zone containing a scrollable element

2013-11-13 Thread Chris Mylonas
Hi John, I had a similar update zone problem with the tree element, but because of my left hand tree, right hand update got around it by vertical-align in css for the tree side. If you are using jquery, the scrollTop might help. http://stackoverflow.com/questions/14886038/get-scroll-position-usin

RE: Zone display when update after Ajax call

2013-09-12 Thread ANDRE Christophe
Thanks for the fast answer! That was it! -Message d'origine- De : Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Envoyé : jeudi 12 septembre 2013 15:10 À : Tapestry users Objet : Re: Zone display when update after Ajax call On Thu, 12 Sep 2013 09:56:25 -0300, ANDRE Chris

Re: Zone display when update after Ajax call

2013-09-12 Thread Thiago H de Paula Figueiredo
On Thu, 12 Sep 2013 09:56:25 -0300, ANDRE Christophe wrote: Hi, Hi! ajaxResponseRenderer.addRender("myZone ", myZone); Try this instead: ajaxResponseRenderer.addRender("myZone ", myZone.getBody()); Notice that, instead of passing the whole zone, you pass its body. Sometimes what y

Re: Zone refresh inserts duplicate html

2013-06-28 Thread Boris Horvat
Yea that helps, I tried it last night and it works. Thanks for the suggestion On Fri, Jun 28, 2013 at 3:05 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 27 Jun 2013 20:03:49 -0300, Boris Horvat > wrote: > > Hi all, >> > > Hi! > > ajaxResponseRenderer.**addRender(

Re: Zone refresh inserts duplicate html

2013-06-27 Thread Thiago H de Paula Figueiredo
On Thu, 27 Jun 2013 20:03:49 -0300, Boris Horvat wrote: Hi all, Hi! ajaxResponseRenderer.addRender(getWorkId(), work); Could you pleas try pasing work.getBody() instead of work and tell us the result? -- Thiago H. de Paula Figueiredo -

RE: Zone and content changment

2013-05-17 Thread Nomen Nomanum
Thanks! I have implemented this. :) > From: horvat.z.bo...@gmail.com > Date: Fri, 17 May 2013 23:05:38 +0200 > Subject: Re: Zone and content changment > To: users@tapestry.apache.org > > I am not sure what you really wont. > > Here you have 2 choice. > > First you

Re: Zone and content changment

2013-05-17 Thread Boris Horvat
> > > From: horvat.z.bo...@gmail.com > > Date: Fri, 17 May 2013 22:35:26 +0200 > > Subject: Re: Zone and content changment > > To: users@tapestry.apache.org > > > > And why dont you want to use delegates and blocks? That is what they

RE: Zone and content changment

2013-05-17 Thread Nomen Nomanum
vat.z.bo...@gmail.com > Date: Fri, 17 May 2013 22:35:26 +0200 > Subject: Re: Zone and content changment > To: users@tapestry.apache.org > > And why dont you want to use delegates and blocks? That is what they are > there for...You could use > > > On Fri, May 17, 20

Re: Zone and content changment

2013-05-17 Thread Boris Horvat
d actionlink1, I want to render only div1, and not > div2. How to achieve this not including delegates and blocks? Is there any > other way? > > > From: horvat.z.bo...@gmail.com > > Date: Fri, 17 May 2013 21:58:32 +0200 > > Subject: Re: Zone and content changment > &g

RE: Zone and content changment

2013-05-17 Thread Nomen Nomanum
013 21:58:32 +0200 > Subject: Re: Zone and content changment > To: users@tapestry.apache.org > > Generic question requires a generic answer :) > > Start from here http://tapestry.apache.org/ajax-and-zones.html > > > On Fri, May 17, 2013 at 9:49 PM, Nomen Nomanum wr

Re: Zone and content changment

2013-05-17 Thread Boris Horvat
Generic question requires a generic answer :) Start from here http://tapestry.apache.org/ajax-and-zones.html On Fri, May 17, 2013 at 9:49 PM, Nomen Nomanum wrote: > I want to implement a scenario where based on clicked actionlink, zone > updates it's content. Lets say I have stored some divs in

Re: zone-overlay not working

2013-03-12 Thread Lance Java
1. Are you using tapestry-jquery or are you simply including jquery.js? http://tapestry5-jquery.com/ 2. If you're including jquery.js you need to call jQuery.noConflict() http://wiki.apache.org/tapestry/Tapestry5HowToIntegrateJQuery 3. If in noConflict() mode, $ will not be available, you will ne

Re: zone update ajaxResponseRenderer.addRender vs zone.getBody

2013-01-29 Thread sommeralex
thank you 2013/1/29 Howard Lewis Ship [via Tapestry] < ml-node+s1045711n5719664...@n5.nabble.com> > Also, you're seeing some evolution of the framework here, all at once. > > The Zone component was pretty early in Tapestry, but the ability to update > multiple Zone's all in a single request came

Re: zone update ajaxResponseRenderer.addRender vs zone.getBody

2013-01-29 Thread Howard Lewis Ship
Also, you're seeing some evolution of the framework here, all at once. The Zone component was pretty early in Tapestry, but the ability to update multiple Zone's all in a single request came later. The deprecated MultiZoneUpdate object was the older way to update multiple zones, but it was tediou

Re: zone update ajaxResponseRenderer.addRender vs zone.getBody

2013-01-29 Thread Muhammad Gelbana
If I remember correctly, the first one returns the zone including the enclosing tags, while the later returns only the zone's body ! Like: ...body... so the later returns "...body...", while the first one returns the whole structure: ...body... So your zone eventually will be:

Re: Zone inside loop problem

2012-12-05 Thread Geoff Callender
When activated during an AJAX request, the component has no state. In onSuccessFromKomentar(int materijalID) you should probably set this.materijalID. On 05/12/2012, at 8:39 PM, dodjavola wrote: > Hey folks :) > I have another big issue. I have component, with zone, and form that > refreshes the

Re: Zone inside loop problem

2012-12-05 Thread Thiago H de Paula Figueiredo
On Wed, 05 Dec 2012 08:40:42 -0200, Cezary Biernacki wrote: You need to use Tapestry's t:submit component, not plain HTML input tag. Actually, you only need to use the Submit component when you have more than one submit button and you need to know which one was clicked. Otherwise, a ca

Re: Zone update triggers update on parent Zone

2012-11-15 Thread Paul Stanton
I've since had a similar requirement and i found comparing event.origionalTarget to event.currentTarget solves the problem. On 15/03/2012 8:29 AM, Paul Stanton wrote: like i said, this could be a bug. why not log it in jira and see what the big heads think? On 15/03/2012 1:44 AM, nquirynen

Re: Zone update after ajax request to component event

2012-09-28 Thread Lance Java
I'm not too familiar with the tapestry-jquery code but perhaps updateZoneOnEvent(eventName, element, zoneId, url) does exactly what you want? https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/tapestry-jquery.js -- View this message in context: ht

Re: Zone update after ajax request to component event

2012-09-28 Thread nquirynen
Yep I use tapestry5-jquery :) Ok so I added the following code to my javascript click events callback: if (responseJSON.zones) { // perform multi zone update $.each(responseJSON.zones, function(zoneId) { $('#' + zoneId).tapestryZone("applyContentUpdate", responseJSON.zones[zoneId]); })

Re: Zone update after ajax request to component event

2012-09-28 Thread Emmanuel DEMEY
Hi, If you use Tapestry5-jQuery, you should have a look to this javascript code : https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/components/upload/upload-jquery.js Manu 2012/9/28 nquirynen > Hi, > > I have a component (grid) where I add

Re: Zone update after ajax request to component event

2012-09-28 Thread Ivan Khalopik
As you use your own zone update mechanism instead of native(e.g. EventLink component) you can provide js-callback for ajax request as you mention before. To update zone use something like this: var zone = Tapestry.findZoneManager(spec.zoneId); function rowClickCalback(response) { zone.process

Re: Zone update after ajax request to component event

2012-09-28 Thread Lance Java
Take a look at Geoff's ZoneUpdater mixin [1] which fires a serverside event by listening to a clientside event on a DOM element. You should never update the innerHTML of a zone directly, use the client-side ZoneManager. If you are using tapestry-jquery, there is a different implementation of this.

Re: Zone update after ajax request to component event

2012-09-28 Thread Charlouze
Hey, I've never used it but if you want to use jQuery, you should take a look at the tapestry5-jquery plugin : http://tapestry5-jquery.com/ Charles. 2012/9/28 nquirynen > Hi, > > I have a component (grid) where I added a javascript onclick event on my > rows where I do an ajax (jquery) request

Re: + zone

2012-08-07 Thread Thiago H de Paula Figueiredo
On Tue, 07 Aug 2012 05:56:47 -0300, Dimitris Zenios wrote: I was talking of something like this. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> My Nifty Web Application Nifty Web Application Index About

Re: + zone

2012-08-07 Thread Dimitris Zenios
I was talking of something like this. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> My Nifty Web Application Nifty Web Application Index About (C) 2008

Re: + zone

2012-08-06 Thread Thiago H de Paula Figueiredo
On Mon, 06 Aug 2012 19:36:17 -0300, Dimitris Zenios wrote: Any example or a hint please? Layout.tml: On Tue, Aug 7, 2012 at 12:13 AM, Thiago H de Paula Figueiredo wrote: On Mon, 06 Aug 2012 16:03:44 -0300, Dimitris Zenios wrote: Is there a way to have a layout component

Re: + zone

2012-08-06 Thread Dimitris Zenios
Any example or a hint please? On Tue, Aug 7, 2012 at 12:13 AM, Thiago H de Paula Figueiredo wrote: > On Mon, 06 Aug 2012 16:03:44 -0300, Dimitris Zenios > wrote: > >> Is there a way to have a layout component and all its body would be >> rendered using zone? > > > Yes, why not? > > -- > Thiago H

Re: + zone

2012-08-06 Thread Thiago H de Paula Figueiredo
On Mon, 06 Aug 2012 16:03:44 -0300, Dimitris Zenios wrote: Is there a way to have a layout component and all its body would be rendered using zone? Yes, why not? -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail:

Re: Zone within a Zone problem

2012-06-30 Thread bhorvat
Hm... I think that normal behavior is that if you have zone with in a zone once an in nor zone is refreshed it triggers the refresh of the outer zone as well, is there a way to stop this? cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-within-a-Zone-problem-tp5

Re: Zone within a Zone problem

2012-06-30 Thread bhorvat
Other code is normal html code. I will show you the code of the link click @OnEvent("selectComponent") public void selectComponent(ShotComponent component) { selectedComponent = component; ajaxResponseRenderer.addRender("zoneComponent", zoneComponent); } I have tried

Re: Zone within a Zone problem

2012-06-30 Thread Dragan Sahpaski
On Sat, Jun 30, 2012 at 7:18 PM, bhorvat wrote: > It seems that the inner zone is not triggering the outer to refresh as well. > I guess I am just not wiring things up properly as this should not be the > case. This is what I have > > > > > >

Re: Zone within a Zone problem

2012-06-30 Thread Dragan Sahpaski
On Sat, Jun 30, 2012 at 7:06 PM, bhorvat wrote: > Well that was my starting point where I encountered the problem in the first > place. Once the outer zone refreshes it changes the zone id and the link > does not work any more. The zone id is change but the link that was pointing > to that zone is

Re: Zone within a Zone problem

2012-06-30 Thread bhorvat
It seems that the inner zone is not triggering the outer to refresh as well. I guess I am just not wiring things up properly as this should not be the case. This is what I have Simplified ShotDetails Link

Re: Zone within a Zone problem

2012-06-30 Thread bhorvat
Well that was my starting point where I encountered the problem in the first place. Once the outer zone refreshes it changes the zone id and the link does not work any more. The zone id is change but the link that was pointing to that zone is not changed But now I get where I was wrong I didnt pu

Re: Zone within a Zone problem

2012-06-30 Thread Dragan Sahpaski
Hi, On Sat, Jun 30, 2012 at 4:30 PM, bhorvat wrote: > Hi, > > Can you please help me with the first approach since the second one is great > if the link is surrounded by the zone it needs to refresh but if it is > not... > > so I have > > > > > > > > How do I use zone.getClientId(), where

Re: Zone within a Zone problem

2012-06-30 Thread bhorvat
Hi, Can you please help me with the first approach since the second one is great if the link is surrounded by the zone it needs to refresh but if it is not... so I have How do I use zone.getClientId(), where do I put it, in the link? or in the zone, or both? I tried a bunch of optio

Re: Zone within a Zone problem

2012-06-30 Thread bhorvat
Ok tnx it is good to know :D cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-within-a-Zone-problem-tp5714194p5714205.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: Zone within a Zone problem

2012-06-30 Thread Dragan Sahpaski
On Sat, Jun 30, 2012 at 1:31 PM, bhorvat wrote: > Solution #2 works greate, thanks for that. > It is strange that once the zone is updated and changes the id's it does not > change the id's of those components/links that depend on that id It changes the client id's. You are talking mainly about s

Re: Zone within a Zone problem

2012-06-30 Thread bhorvat
Solution #2 works greate, thanks for that. It is strange that once the zone is updated and changes the id's it does not change the id's of those components/links that depend on that id -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-within-a-Zone-problem-tp5714194p5714

Re: Zone within a Zone problem

2012-06-30 Thread Dragan Sahpaski
Hi, After the update of the first zone - the second zone's Id is changed (tapestry does this when the zone updates). Check with firebug or something. Solution: 1: Inject the zone and take make getClientId() (to take the generated id) 2: From the docs in http://tapestry.apache.org/ajax-and-zones.ht

Re: Zone update

2012-06-18 Thread liquid_sun
Tried, but no luck. Still recaptcha comp. does not appear -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-update-tp5713961p5713963.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Zone update

2012-06-18 Thread Thiago H de Paula Figueiredo
On Mon, 18 Jun 2012 11:13:43 -0300, liquid_sun wrote: Hi, Hi! Try returning formZone.getBody() instead of formZone itself. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

Re: Zone Refresh with dynamic context

2012-06-08 Thread tomandjerry
JSONObject json = new JSONObject(); json.put("period", 5); json.put("URL", createEventLink(newTime)); json.put("id", "poller"));

Re: Zone Refresh with dynamic context

2012-06-08 Thread Taha Siddiqi
I use my own implementation for Periodic display which displays a block till you return null from the event handler . It is for tapestry-jquery, so you will have to change the js from jquery to prototype. (I am not sure it will help because of the size of the code :). May be I will write a po

Re: Zone Refresh with dynamic context

2012-06-08 Thread Lance Java
Firstly, Tapestry.Initializer.zoneRefresh requires an "id" to be present in the json object. Secondly, each time "zoneRefresh" is called, a PeriodicalExecuter is created so you are likely creating more and more of these every time your zone is refreshed until you run out of memory. I think you ar

Re: Zone Refresh with dynamic context

2012-06-08 Thread Thiago H de Paula Figueiredo
Instead of using context, use a request parameter instead, so you avoid having to deal with changing the URL Tapestry generated. In addition, I don't think you will be able to use the ZoneRefresh mixin, so you'll need a little bit of custom JavaScript, most probably adapted from ZoneRefresh

Re: Zone refresh in form fragment 'wizard'

2012-05-09 Thread Chris Cureau
No takers? Ah well...I'll break it into separate pages. I just wish I knew what I was doing wrong. Maybe a renderobject in the template would help? Igor, can't wait for your book! On May 8, 2012 10:25 AM, "Chris Cureau" wrote: > I've looked at the form fragments in firebug. It doesn't appear tha

Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Chris Cureau
I've looked at the form fragments in firebug. It doesn't appear that the form fragment is being changed at all except the visible attribute. I've pasted the output from firebug below: Before fragment 3: That's all we need! Please verify the following information: To complete this employee,

Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 May 2012 11:19:02 -0300, Chris Cureau wrote: I've just added a few more debugging statements... isInSubmit() is getting called before each fragment rendering phase. It returns false on the first two fragments and true on the last. What I see is this: The first and second frag

Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Chris Cureau
I've just added a few more debugging statements... isInSubmit() is getting called before each fragment rendering phase. It returns false on the first two fragments and true on the last. What I see is this: The first and second fragments work as expected...the first just presenting text, and the s

Re: Zone refresh in form fragment 'wizard'

2012-05-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 May 2012 10:48:38 -0300, Chris Cureau wrote: Hi Thiago! Hi! Thanks for the quick response. I put together a smaller version of my page to save some space. It exhibits the same problems. No exceptions are thrown in the console, but I can see my page going through onSucces

Re: Zone refresh in form fragment 'wizard'

2012-05-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 May 2012 23:15:43 -0300, Chris Cureau wrote: Hi there! Hi! Please post the template and code please, at least the relevant parts (events, form submissions, links, etc). In addition, some exception or error should have been raised. Please take a look at the console output a

Re: Zone and Jquery issue in Tapestry5.2.6

2012-04-20 Thread François Facon
Hi Mahendra, Tapestry5-jquery project allows you to choose whether to include or not Prototype (and original tapestry components). jQuery will be added to the javascript stack in every case. In your AppModule, contributeApplicationDefaults method, you can add configuration.add(JQuerySymbolConstant

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Figured it out. Thanks for help and sorry for spam :) I will submit a JIRA tomorrow cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634634.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Ok. So I have been able to figure it out (after several hours of staring in javascript). The tapestry sends the scirpts in the ajax response and that it loads the old version of the file. Which is why you suggested to override Upload.java, right? So now I understand it all except how exactly to c

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
This is really strange. I have spent the last hour trying to figure out how the exception is thrown and then I found the upload.js file, the only problem is that at one point the script run into it. But the file wasn't named upload.js. It didnt have a name, and in chrome I can see that the "name"

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Yea but when I have included it like this, and do the ajax update I still get the same error. So I am either not including it right or it is not working as it should :S thnx -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634484.html Se

Re: Zone refresh image uplaod

2012-04-11 Thread Taha Hafeez Siddiqi
Hi It is only added on ajax update. regards Taha On Apr 12, 2012, at 7:12 AM, bhorvat wrote: > Sorry to bother you with something so minor but tnx :D > > That file is not in my javascript files that are included so I can not be > sure where to replace it with > > Tapestry.Initializer.injecte

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Sorry to bother you with something so minor but tnx :D That file is not in my javascript files that are included so I can not be sure where to replace it with Tapestry.Initializer.injectedUpload = function(element) { var form = $(element).form; if(form){ form.enctype = "multipar

Re: Zone refresh image uplaod

2012-04-11 Thread Taha Hafeez Siddiqi
https://github.com/apache/tapestry5/blob/trunk/tapestry-upload/src/main/resources/org/apache/tapestry5/upload/components/upload.js On Apr 12, 2012, at 6:54 AM, bhorvat wrote: > Hi Taha, > > Strangely I can not find the upload.js anywhere. Any ideas where is it? > > Thank you for help > > regar

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Hi Taha, Strangely I can not find the upload.js anywhere. Any ideas where is it? Thank you for help regards boris -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634428.html Sent from the Tapestry - User mailing list archive at Nabble

Re: Zone refresh image uplaod

2012-04-11 Thread Taha Hafeez Siddiqi
Sorry I ended up using a non-ajax method because of other reasons. I think it is a bug so you can file a jira. Meanwhile you can override the upload.js script by copying Upload.java from tapestry-upload along with the corresponding js and replace the contents by Tapestry.Initializer.injectedUpl

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Hi Taha, glad to see that there are others with problem :D any suggestion how to solve this. I am stuck :( -- View this message in context: http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634387.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Zone refresh image uplaod

2012-04-11 Thread bhorvat
Hi. Ok so the basic scenario is like this (I have striped some code naturally) so once this zone is refreshed I get the javascript exception which messes everything on the page. For example the auto complete no longer works. If I dont h

Re: Zone refresh image uplaod

2012-04-11 Thread Taha Hafeez Siddiqi
I did face this issue once. I think the issue is with upload.js in tapestry-upload.js Tapestry.Initializer.injectedUpload = function(element) { var form = $(element).form; form.enctype = "multipart/form-data"; form.encoding = "multipart/form-data"; } $(element).form returns null for

Re: Zone refresh image uplaod

2012-04-11 Thread François Facon
Hi Boris, AjaxUpload works fine with christian sample https://github.com/got5/tapestry5-jquery/blob/master/src/test/resources/org/got5/tapestry5/jquery/pages/AjaxUploadTest.tml on jetty Could you give us more details regarding your dependencies - tapestry-upload, - commons-fileupload - tapestry-j

Re: Zone update triggers update on parent Zone

2012-03-14 Thread Paul Stanton
like i said, this could be a bug. why not log it in jira and see what the big heads think? On 15/03/2012 1:44 AM, nquirynen wrote: Found a solution for my problem (not sure if it's a good solution, but it works): In the update event of the parent zone (zone1 in my example) I added an if state

Re: Zone update triggers update on parent Zone

2012-03-14 Thread nquirynen
Found a solution for my problem (not sure if it's a good solution, but it works): In the update event of the parent zone (zone1 in my example) I added an if statement to know if it's not just an inner zone that's getting updated: $('#zone1').bind(Tapestry.ZONE_UPDATED_EVENT, function(event) {

Re: Zone update triggers update on parent Zone

2012-03-14 Thread nquirynen
Ok, thanks for the explanation, also on the constructing of zone updates. I tested it with the time and your right. Is there any way I can know if in the ZONE_UPDATED_EVENT of the inner zone (zone1) comes from a zone1 or zone2 update? Because I have javascript code in the zone1 update event, that

Re: Zone update triggers update on parent Zone

2012-03-06 Thread Paul Stanton
i see you are using tapestry-jquery. I've converted your example over to prototypejs and observe the following: When submitting the form both alerts appear (zone2 first, zone1 2nd). zone1's javascript event listener is triggered when zone2's zone is updated even though its body is not re-rende

Re: Zone and Eventlink refresh problem

2012-01-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Jan 2012 03:22:58 -0200, Paul Stanton wrote: Just a side note, this has caught a few users over time (since t5.1). Boris' expected behaviour does not seem to me to be too unrealistic an expectation! Depending on your personality type ;) you may even consider this a bug. Mayb

Re: Zone and Eventlink refresh problem

2012-01-27 Thread Denis Stepanov
I've created a new issue "Warn user or disallow zone with randomly generated id" https://issues.apache.org/jira/browse/TAP5-1834 Denis On 27.1.2012, at 6:22, Paul Stanton wrote: > Just a side note, this has caught a few users over time (since t5.1). > > Boris' expected behaviour does not seem

Re: Zone and Eventlink refresh problem

2012-01-26 Thread Paul Stanton
Just a side note, this has caught a few users over time (since t5.1). Boris' expected behaviour does not seem to me to be too unrealistic an expectation! Depending on your personality type ;) you may even consider this a bug. Maybe the zone re-rendering process should handle this client id c

Re: Zone and Eventlink refresh problem

2012-01-21 Thread bhorvat
Hm... Yea this worked perfectly. I know that the new id is generated but I was under the impression that tapestry eventlink will adapt to that since I did set which zone to target I thought that once everything is refresh that will also refresh... Thank you both for assistance :) -- View this me

Re: Zone and Eventlink refresh problem

2012-01-21 Thread Dragan Sahpaski
Hi, On Sat, Jan 21, 2012 at 8:37 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sat, 21 Jan 2012 16:56:59 -0200, Dragan Sahpaski < > dragan.sahpa...@gmail.com> wrote: > > Hi, >> > > Hi, Dragan! > > > This is expected behavior. >> Once you update the outer zone the inner zon

Re: Zone and Eventlink refresh problem

2012-01-21 Thread Thiago H. de Paula Figueiredo
On Sat, 21 Jan 2012 16:56:59 -0200, Dragan Sahpaski wrote: Hi, Hi, Dragan! This is expected behavior. Once you update the outer zone the inner zone id is generated again if you don't specify it explicitly. Exactly! Solution 2: - Generate the zone's client id yourself, with a binding

Re: Zone and Eventlink refresh problem

2012-01-21 Thread Dragan Sahpaski
Hi, This is expected behavior. Once you update the outer zone the inner zone id is generated again if you don't specify it explicitly. Solution 1: - Take the zone's generated clientId @InjectComponent private Zone zoneMediaPreview; // the zoneMediaPreview component is located before the eve

Re: Zone and Eventlink refresh problem

2012-01-21 Thread Thiago H. de Paula Figueiredo
On Fri, 20 Jan 2012 20:43:09 -0200, bhorvat wrote: Hope this is bit better. Thanks t:id is the Tapestry component id. id is the HTML id attribute. You should add id attributes to solve your problem: -- Thiago H. de Paula Figueiredo Independent Jav

  1   2   >