T5 / Ajax / What controls XHR ?

2009-12-16 Thread Gunnar Eketrapp
Hi!

We have trouble with zone updates via an ActionLink in Internet Explorer (7
 8).
And right now this is stopping is from launchin our new site 

For some reason the request.isXHR() is fasle when the request comes from IE.

A newbie question what so ever.

What controls the XHR flag?

It must be something in ..

   javascript:Tapestry.waitForPage(event);

Right?

Another strange thing is that an actionlink within a zone does not have a
onClick attribute after a zone update (according to firebug) but works
anyway!

When page is first rendeerd
===
a id=forgotPassword2 href=sv/register.telllayout.forgotpassword2
onclick=javascript:Tapestry.waitForPage(event);Glömt lösenordet?/a

After the zone has been updated (according to firebug)
===
a id=forgotPassword2-12596c1dd00 href=
/sv/register.telllayout.forgotpassword2Glömt lösenordet?/a


Thanks in advance!
Gunnar Eketrapp


Re: T5 / Ajax / What controls XHR ?

2009-12-16 Thread Inge Solvoll
Try analyzing the real request serverside. See RequestImpl.isXHR(). Check
out which headers are set.

On Wed, Dec 16, 2009 at 10:19 AM, Gunnar Eketrapp gunnar.eketr...@gmail.com
 wrote:

 Hi!

 We have trouble with zone updates via an ActionLink in Internet Explorer (7
  8).
 And right now this is stopping is from launchin our new site 

 For some reason the request.isXHR() is fasle when the request comes from
 IE.

 A newbie question what so ever.

 What controls the XHR flag?

 It must be something in ..

   javascript:Tapestry.waitForPage(event);

 Right?

 Another strange thing is that an actionlink within a zone does not have a
 onClick attribute after a zone update (according to firebug) but works
 anyway!

 When page is first rendeerd
 ===
 a id=forgotPassword2 href=sv/register.telllayout.forgotpassword2
 onclick=javascript:Tapestry.waitForPage(event);Glömt lösenordet?/a

 After the zone has been updated (according to firebug)
 ===
 a id=forgotPassword2-12596c1dd00 href=
 /sv/register.telllayout.forgotpassword2Glömt lösenordet?/a


 Thanks in advance!
 Gunnar Eketrapp



Re: T5 / Ajax / What controls XHR ?

2009-12-16 Thread Kristian Marinkovic
the prototype library is setting a HTTP header
that is processed by T5 to determine if the request 
is an AJAX request. 

the request should contain a header entry with: 
'X-Requested-With': 'XMLHttpRequest'

g,
kris 





Inge Solvoll inge.tapes...@gmail.com 
16.12.2009 10:33
Bitte antworten an
Tapestry users users@tapestry.apache.org


An
Tapestry users users@tapestry.apache.org
Kopie

Thema
Re: T5 / Ajax / What controls XHR ?






Try analyzing the real request serverside. See RequestImpl.isXHR(). Check
out which headers are set.

On Wed, Dec 16, 2009 at 10:19 AM, Gunnar Eketrapp 
gunnar.eketr...@gmail.com
 wrote:

 Hi!

 We have trouble with zone updates via an ActionLink in Internet Explorer 
(7
  8).
 And right now this is stopping is from launchin our new site 

 For some reason the request.isXHR() is fasle when the request comes from
 IE.

 A newbie question what so ever.

 What controls the XHR flag?

 It must be something in ..

   javascript:Tapestry.waitForPage(event);

 Right?

 Another strange thing is that an actionlink within a zone does not have 
a
 onClick attribute after a zone update (according to firebug) but works
 anyway!

 When page is first rendeerd
 ===
 a id=forgotPassword2 href=sv/register.telllayout.forgotpassword2
 onclick=javascript:Tapestry.waitForPage(event);Glömt lösenordet?/a

 After the zone has been updated (according to firebug)
 ===
 a id=forgotPassword2-12596c1dd00 href=
 /sv/register.telllayout.forgotpassword2Glömt lösenordet?/a


 Thanks in advance!
 Gunnar Eketrapp




Re: T5 / Ajax / ID generation

2009-12-16 Thread Robin Komiwes
Already had this problem and I'm still asking myself if it is a good thing
to not let the developper controls the clientId. I tend to think it should
be the matter of the developper, not of the framework.

On Tue, Dec 15, 2009 at 10:28 PM, Benny Law benny.mk@gmail.com wrote:

 Hi, sorry for jumping in, but I ran into this before myself. I still don't
 quite understand the need for T5 to do this though: If the zone is being
 replaced during the update, how can element IDs be duplicated inside the
 zone? Losing control over element IDs is a bit inconvenient, and that's one
 of the (numerous) things I disliked about ASP.NET.

 Thanks for any light you can shed on this.

 Benny

 On Tue, Dec 15, 2009 at 4:20 PM, Thiago H. de Paula Figueiredo 
 thiag...@gmail.com wrote:

  Em Tue, 15 Dec 2009 19:07:49 -0200, Gunnar Eketrapp 
  gunnar.eketr...@gmail.com escreveu:
 
   Hi!
 
 
  Hi!
 
   Is there any way to prevent T5 from adding these numbers. The initally
  fields have been replaced so it should be safe to reuse the id names !!!
 
 
  I guess not. This is Tapestry trying to avoid having more than one
 element
  with the same id.
  Hint: use the class attribute instead of id in this case.
 
  --
  Thiago H. de Paula Figueiredo
  Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
  and instructor
  Owner, software architect and developer, Ars Machina Tecnologia da
  Informação Ltda.
  http://www.arsmachina.com.br
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 



T5 / Ajax / IE7 / ???

2009-12-15 Thread Gunnar Eketrapp
Hi!

We have problems with ajax in IE7. (+Chrome)

Is there any know issues when it comes to T5 + Ajax + IE7.

It works like a charm in FIrefox!

Oops Same problem in chrome 

Any known isues?

Thanks in advance!

/Gunnar Eketrapp


Re: T5 / Ajax / IE7 / ???

2009-12-15 Thread Thiago H. de Paula Figueiredo
Em Tue, 15 Dec 2009 15:18:34 -0200, Gunnar Eketrapp  
gunnar.eketr...@gmail.com escreveu:



Hi!


Hi!


We have problems with ajax in IE7. (+Chrome)


What problems?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5 / Ajax / IE7 / ???

2009-12-15 Thread Gunnar Eketrapp
When updating a zone from IE Tapetsry does not recognize the zone.

The warn below does only come when using IE.

18:45:12.196 [btpool0-3] DEBUG com.xyz.components.Layout - [ENTER]
onActionFromForgotPassword()
18:45:12.197 [btpool0-3] DEBUG com.xyz.components.Layout - [ EXIT]
onActionFromForgotPassword
[org.apache.tapestry5.corelib.components.z...@21f752]
18:45:12.197 [btpool0-3] WARN  o.a.t.s.T.ComponentInstanceResultProcessor -
Component foobar/About:layout.loginzone was returned from an event handler
method, but is not a page component. The page containing the component will
render the client response.

/Gunnar

2009/12/15 Thiago H. de Paula Figueiredo thiag...@gmail.com

 Em Tue, 15 Dec 2009 15:18:34 -0200, Gunnar Eketrapp 
 gunnar.eketr...@gmail.com escreveu:

  Hi!


 Hi!

  We have problems with ajax in IE7. (+Chrome)


 What problems?

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, software architect and developer, Ars Machina Tecnologia da
 Informação Ltda.
 http://www.arsmachina.com.br

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
[Hem: 08-715 59 57, Mobil: 0708-52 62 90]
Allévägen 2A, 132 42 Saltsjö-Boo


T5 / Ajax / ID generation

2009-12-15 Thread Gunnar Eketrapp
Hi!

We have a login form within a div that is initially hided and slided out by
javascript when clicking on a login button.

Within this div we use aja to replace the login form with a request
forgotton password etc etc.

My problem now is when going back from the request forgotton password look
an regenerating the login fields T5 creates
id's like ...

id=password-837654873

... which we need T5 not to since we have jaavascript that dependes on
knowing the ids of these fields.

Is there any way to prevent T5 from adding these numbers. The initally
fields have been replaced so it should be safe to reuse the id names !!!
(?).

Thanks in advance,

Gunnar Eketrapp


Re: T5 / Ajax / ID generation

2009-12-15 Thread Thiago H. de Paula Figueiredo
Em Tue, 15 Dec 2009 19:07:49 -0200, Gunnar Eketrapp  
gunnar.eketr...@gmail.com escreveu:



Hi!


Hi!


Is there any way to prevent T5 from adding these numbers. The initally
fields have been replaced so it should be safe to reuse the id names !!!


I guess not. This is Tapestry trying to avoid having more than one element  
with the same id.

Hint: use the class attribute instead of id in this case.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5 / Ajax / ID generation

2009-12-15 Thread Benny Law
Hi, sorry for jumping in, but I ran into this before myself. I still don't
quite understand the need for T5 to do this though: If the zone is being
replaced during the update, how can element IDs be duplicated inside the
zone? Losing control over element IDs is a bit inconvenient, and that's one
of the (numerous) things I disliked about ASP.NET.

Thanks for any light you can shed on this.

Benny

On Tue, Dec 15, 2009 at 4:20 PM, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

 Em Tue, 15 Dec 2009 19:07:49 -0200, Gunnar Eketrapp 
 gunnar.eketr...@gmail.com escreveu:

  Hi!


 Hi!

  Is there any way to prevent T5 from adding these numbers. The initally
 fields have been replaced so it should be safe to reuse the id names !!!


 I guess not. This is Tapestry trying to avoid having more than one element
 with the same id.
 Hint: use the class attribute instead of id in this case.

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, software architect and developer, Ars Machina Tecnologia da
 Informação Ltda.
 http://www.arsmachina.com.br

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: [T5] AJAX and partial updates of forms ? [Zone AjaxFormLoop FormInjector FormFragment and the like]

2009-08-21 Thread kartweel

Did you have any success going down this path? I'm trying to do the same
thing. Tapestry is great until it doesn't do something you need to do then
all the benefits of it go out the window as you spend 2 weeks figuring out
how to do something that is quite simple without it.


Francois Armand wrote:
 
 Francois Armand wrote:
 Hello guys,
 [..]
 [1] Ex of what I want :
 t:form
 
 t:actionlink zone=myzoneUpdate info/t:actionlink  // in real 
 life, I whould like to use a mixin for that, trigger on some action on 
 a field
 ...
 t:zone t:id=myzone
 [here goes a lot of stuff with fields and components and the like]
 /t:zone

 /t:form

 
 Nobody to that ?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--AJAX-and-partial-updates-of-formsZone-AjaxFormLoop-FormInjector-FormFragment-and-the-like--tp19664541p25076129.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 ajax examples

2009-06-27 Thread haipeng du
What is the good reference for ajax in T5? I did not find any good
documentation from T5 website.
Thanks.

-- 
Haipeng Du
Salt Lake City


Re: T5 ajax examples

2009-06-27 Thread Sergey Didenko
See Ajax  JavaScript in User Guide pane on this page:
http://tapestry.apache.org/tapestry5.1/

On Sun, Jun 28, 2009 at 12:10 AM, haipeng duhaipen...@gmail.com wrote:
 What is the good reference for ajax in T5? I did not find any good
 documentation from T5 website.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5: Ajax response content-tpye

2009-02-25 Thread Zsombor Nemestóthy

Hi All!

I would like to change the content-type of the ajax response, when 
rendering a component from an ajax request.

The content-type is 'application/json' and it need to be 'plain/text'.
We develop an ip-tv middleware and the setTopBox's browser (Opera gogi) 
can not understand the application/json content-type (I think it treats 
the response as binary data). I handle the ajax response with my own 
javascript code, so 'plain/text' would be fine.
I see from the source code that the mime-type's hard coded at the 
InternalConstants.JSON_MIME_TYPE variable, so i don't know how to change it.

Anyone has idea how to accomplish this?

Regards, Zsombor


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 AJAX

2009-01-16 Thread Alan Chaney

Hi

I'm considering to move to T5 for a major new project. I evaluated T4 at 
some length a couple of years ago but went a different way for my needs 
at the time. We have experience with JQuery. I understand that T5 comes 
with prototype and scriptaculous support. How easy is it to replace 
those with Jquery? Or is it possible for them to 'coexist'?


Does anyone have any specific experience of using Jquery and T5?

Regards

Alan Chaney

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5 AJAX

2009-01-16 Thread Thiago HP
On Fri, Jan 16, 2009 at 2:02 PM, Alan Chaney
a...@compulsivecreative.com wrote:
 Hi

Hi!

 I'm considering to move to T5 for a major new project. I evaluated T4 at
 some length a couple of years ago but went a different way for my needs at
 the time. We have experience with JQuery. I understand that T5 comes with
 prototype and scriptaculous support. How easy is it to replace those with
 Jquery? Or is it possible for them to 'coexist'?

AFAIK, nobody tried to replace Prototype/Scriptaculous in Tapestry 5
yet. On the other hand, they can coexist, as documented here:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries. Summary: you
can use both at the same time, you will just need to use $jQuery() or
$j() instead of $().

-- 
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 Ajax Tree control?

2008-12-17 Thread superoverdrive
I am looking for a T5 ajax tree control, such as this one here:

http://www.mathertel.de/AjaxEngine/S03_AJAXControls/TreeView.aspx

or this one:

http://samples.gaiaware.net/TreeView.aspx

however with right-mouse-click context menus

Does something like this already exist for T5 ?

If not, what would be the best approach? Using existing Javascript code or do 
it all from scratch the Tapestry way to do it?

Thanks!

Toby

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: AJAX ActionLink exception if clicked as page loads

2008-11-20 Thread Inge Solvoll
I ran into this problem myself.

Is it possible to listen for an event that says Tapestry javascript has
finished initializing the page? The scenario of users clicking links before
they are decorated with ajax javascript is very common, so there should be
a built-in best-practice solution for this. I know I could solve it server
side by checking for isXHR, but I don't think the case of users being faster
thinkers than the CPU should be a natural part of my graceful degredation.
Users without proper XHR support should.

I would like to be able to hide my links until they are ajax-enabled. Or
implement some other trick to prevent this bug from happening. But I guess
this would be pretty hard if I'm not able to track the status of the
Tapestry init script?

I could just use the Prototype dom loaded event, and add a 2 second timeout
to be relatively sure, but it ain't exactly pretty :)

Regards
Inge
On Mon, Sep 8, 2008 at 2:58 PM, luna_guo [EMAIL PROTECTED] wrote:


 Geoff
 It's ok to return a block object in a action handler method,but you can't
 use the type Block,it will throw exceptions.You should use Object instead.

 /luna
 --
 View this message in context:
 http://www.nabble.com/T5%3A-AJAX-ActionLink-exception-if-clicked-as-page-loads-tp19346336p19372125.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: T5: AJAX ActionLink exception if clicked as page loads

2008-11-20 Thread Geoff Callender

See https://issues.apache.org/jira/browse/TAP5-1 .
Perhaps you should add your comments and maybe even re-open it?

On 20/11/2008, at 7:28 PM, Inge Solvoll wrote:


I ran into this problem myself.

Is it possible to listen for an event that says Tapestry javascript  
has
finished initializing the page? The scenario of users clicking  
links before
they are decorated with ajax javascript is very common, so there  
should be
a built-in best-practice solution for this. I know I could solve it  
server
side by checking for isXHR, but I don't think the case of users  
being faster
thinkers than the CPU should be a natural part of my graceful  
degredation.

Users without proper XHR support should.

I would like to be able to hide my links until they are ajax- 
enabled. Or
implement some other trick to prevent this bug from happening. But I  
guess

this would be pretty hard if I'm not able to track the status of the
Tapestry init script?

I could just use the Prototype dom loaded event, and add a 2 second  
timeout

to be relatively sure, but it ain't exactly pretty :)

Regards
Inge
On Mon, Sep 8, 2008 at 2:58 PM, luna_guo [EMAIL PROTECTED] wrote:



Geoff
It's ok to return a block object in a action handler method,but you  
can't
use the type Block,it will throw exceptions.You should use Object  
instead.


/luna
--
View this message in context:
http://www.nabble.com/T5%3A-AJAX-ActionLink-exception-if-clicked-as-page-loads-tp19346336p19372125.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Ajax And Zones

2008-11-07 Thread Thiago H. de Paula Figueiredo
Em Fri, 07 Nov 2008 04:49:05 -0300, Inge Solvoll [EMAIL PROTECTED]  
escreveu:


Isn't this the same problem I ran into some weeks ago? Forms not  
supported in zones?


My experience says that you can put a Form inside a Zone, but you cannot  
put a Zone around some fields inside a Form (hence the No object of type  
org.apache.tapestry5.services.FormSupport is available from the  
Environment message).


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Ajax And Zones

2008-11-07 Thread Marcel Sammut

So am I dead in the water here?  Sounds like this functionality isn't
supported in T5?  Seems strange that Tapestry 5 requires an INPUT field to
be contained within a Form, and AJAX uses Zones, and you can not combine the
two.  So basically, AJAX functionality in T5 should only be used with
straight text and HTML, no input fields.

In my situation, the AJAX component doesn't contain a Form, but the
components container may, so how do you use AJAX Zones with forms...for
example, dynamic content.

Thanks,
Marcel


Thiago H. de Paula Figueiredo wrote:
 
 Em Fri, 07 Nov 2008 04:49:05 -0300, Inge Solvoll [EMAIL PROTECTED]  
 escreveu:
 
 Isn't this the same problem I ran into some weeks ago? Forms not  
 supported in zones?
 
 My experience says that you can put a Form inside a Zone, but you cannot  
 put a Zone around some fields inside a Form (hence the No object of type  
 org.apache.tapestry5.services.FormSupport is available from the  
 Environment message).
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--Ajax-And-Zones---Missing-FormSupprt-tp20373776p20389729.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] Ajax And Zones

2008-11-06 Thread Marcel Sammut

Greetings,
I have a component which displays a header and body contents, where the
contents are collapsed via AJAX support.  The component is a DIV which wraps
a table that contains the header, AJAX block and Zone.  There is an
ActionLink which is used to invoke the AJAX method that returns the AJAX
block to be rendered in the Zone via a delegate component.  The basic AJAX
concept was derived from the following example:
http://202.177.217.122:8080/jumpstart/examples/javascript/ajax

Everything is ok and the contents are not rendered when the AJAX ActionLink
is invoked.  That is done by returning null from the event handler.  The
problem occurs when the event handler returns the AJAX block to be rendered
again (i.e.: expand the contents).  Note, that the component itself is
wrapped within a form on the page.  I recieve the following error after the
AJAX method exists and returns a valid Block component:

No object of type org.apache.tapestry5.services.FormSupport is available
from the Environment.  Available types are
org.apache.tapestry5.RenderSupport,
org.apache.tapestry5.ValidationDecorator,
org.apache.tapestry5.internal.services.ClientBehaviorSupport,
org.apache.tapestry5.services.Heartbeat.

Here is my template:
div xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
table
tr
td t:actionlink t:id=updateState 
t:zone=ajaxZoneId ${stateImage}
/img/t:actionlink  /td
/tr
tr
td
t:block t:id=ajaxBody
t:body/t:body
/t:block
t:zone t:id=ajaxZoneId
t:delegate to=ajaxBody/t:delegate
/t:zone
/td
/tr   
/table
/div  

Java:
public class Header {
@Parameter(required=false)
private boolean collapsed=false;

@Inject
@Property
private Block ajaxBody;

@Inject
@Property
private Request request;

@Persist
private boolean isCollopsed = collapsed;

Object onActionFromUpdateState() {
if (!request.isXHR()) return null;

Object body = null;

if (isCollopsed)
return ajaxBody;

isCollopsed = !isCollopsed;
collapsed = isCollopsed;

return body;
}

}

-- 
View this message in context: 
http://www.nabble.com/-T5--Ajax-And-Zones-tp20373776p20373776.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Ajax And Zones

2008-11-06 Thread Inge Solvoll
Isn't this the same problem I ran into some weeks ago? Forms not supported
in zones?

Seems to be a lot of people not getting this.

regards
Inge

On Fri, Nov 7, 2008 at 3:47 AM, Marcel Sammut [EMAIL PROTECTED] wrote:


 Greetings,
 I have a component which displays a header and body contents, where the
 contents are collapsed via AJAX support.  The component is a DIV which
 wraps
 a table that contains the header, AJAX block and Zone.  There is an
 ActionLink which is used to invoke the AJAX method that returns the AJAX
 block to be rendered in the Zone via a delegate component.  The basic AJAX
 concept was derived from the following example:
 http://202.177.217.122:8080/jumpstart/examples/javascript/ajax

 Everything is ok and the contents are not rendered when the AJAX ActionLink
 is invoked.  That is done by returning null from the event handler.  The
 problem occurs when the event handler returns the AJAX block to be rendered
 again (i.e.: expand the contents).  Note, that the component itself is
 wrapped within a form on the page.  I recieve the following error after the
 AJAX method exists and returns a valid Block component:

 No object of type org.apache.tapestry5.services.FormSupport is available
 from the Environment.  Available types are
 org.apache.tapestry5.RenderSupport,
 org.apache.tapestry5.ValidationDecorator,
 org.apache.tapestry5.internal.services.ClientBehaviorSupport,
 org.apache.tapestry5.services.Heartbeat.

 Here is my template:
 div xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
table
tr
td t:actionlink t:id=updateState
 t:zone=ajaxZoneId ${stateImage}
 /img/t:actionlink  /td
/tr
tr
td
t:block t:id=ajaxBody
t:body/t:body
/t:block
t:zone t:id=ajaxZoneId
t:delegate
 to=ajaxBody/t:delegate
/t:zone
/td
/tr
/table
 /div

 Java:
 public class Header {
@Parameter(required=false)
private boolean collapsed=false;

@Inject
@Property
private Block ajaxBody;

@Inject
@Property
private Request request;

@Persist
private boolean isCollopsed = collapsed;

Object onActionFromUpdateState() {
if (!request.isXHR()) return null;

Object body = null;

if (isCollopsed)
return ajaxBody;

isCollopsed = !isCollopsed;
collapsed = isCollopsed;

return body;
}

 }

 --
 View this message in context:
 http://www.nabble.com/-T5--Ajax-And-Zones-tp20373776p20373776.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: [Spam Rating:3.40] Re: T5: Ajax components

2008-11-04 Thread James Sherwood
Hello,

I am just in the process of learning T5 so the 'easy' part is not so 'easy'
right now.

Is there any good tutorials on how to make components like I listed by
chance?

--James

-Original Message-
From: devilabit [mailto:[EMAIL PROTECTED] 
Sent: October-31-08 5:55 PM
To: users@tapestry.apache.org
Subject: [Spam Rating:3.40] Re: T5: Ajax components


It is easy to make custom components or create mixins in Tapestry and the
t5components you mention do look promising.  You also have the option of
using another javascript library like extjs if you need more advanced sexy
looking widgets.


James Sherwood wrote:
 
 Hello,
 
  
 
 I have been looking into some Ajax components to use in my upcoming T5
 project.
 
  
 
 Tapestry itself does not seem to have much along these lines built in and
 I
 was wondering where people are getting there Ajax components from(besides
 building them as this seems a bit above me right now)?
 
  
 
 The T5Components site seems to be the best and I am particularly
 interested
 in the in place editor:
 
  
 
 http://87.193.218.134:8080/t5c-demo/inplaceeditorpage
 
  
 
 and the tab set style of component:
 
  
 
 http://87.193.218.134:8080/t5c-demo/tabsetpage
 
  
 
 Are these the components I should be using or is there going to be built
 in
 ones at some point or am I missing something about using Ajax in T5 for
 components such as these?
 
  
 
  
 
  
 
 Thanks,
 
 --James
 
  
 
  
 
  
 
 
 

-- 
View this message in context:
http://www.nabble.com/T5%3A-Ajax-components-tp20246910p20273881.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__ Information from ESET Smart Security, version of virus signature
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com

 

__ Information from ESET Smart Security, version of virus signature
database 3536 (20081019) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Spam Rating:3.40] Re: T5: Ajax components

2008-11-04 Thread Lance Java
I find this page useful http://wiki.apache.org/tapestry/Tapestry5HowTos

2008/11/4 James Sherwood [EMAIL PROTECTED]

 Hello,

 I am just in the process of learning T5 so the 'easy' part is not so 'easy'
 right now.

 Is there any good tutorials on how to make components like I listed by
 chance?

 --James

 -Original Message-
 From: devilabit [mailto:[EMAIL PROTECTED]
 Sent: October-31-08 5:55 PM
 To: users@tapestry.apache.org
 Subject: [Spam Rating:3.40] Re: T5: Ajax components


 It is easy to make custom components or create mixins in Tapestry and the
 t5components you mention do look promising.  You also have the option of
 using another javascript library like extjs if you need more advanced
 sexy
 looking widgets.


 James Sherwood wrote:
 
  Hello,
 
 
 
  I have been looking into some Ajax components to use in my upcoming T5
  project.
 
 
 
  Tapestry itself does not seem to have much along these lines built in and
  I
  was wondering where people are getting there Ajax components from(besides
  building them as this seems a bit above me right now)?
 
 
 
  The T5Components site seems to be the best and I am particularly
  interested
  in the in place editor:
 
 
 
  http://87.193.218.134:8080/t5c-demo/inplaceeditorpage
 
 
 
  and the tab set style of component:
 
 
 
  http://87.193.218.134:8080/t5c-demo/tabsetpage
 
 
 
  Are these the components I should be using or is there going to be built
  in
  ones at some point or am I missing something about using Ajax in T5 for
  components such as these?
 
 
 
 
 
 
 
  Thanks,
 
  --James
 
 
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/T5%3A-Ajax-components-tp20246910p20273881.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 __ Information from ESET Smart Security, version of virus signature
 database 3536 (20081019) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



 __ Information from ESET Smart Security, version of virus signature
 database 3536 (20081019) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: [Spam Rating:3.40] Re: T5: Ajax components

2008-11-04 Thread Sven Homburg
this url is also very helpfull
http://jumpstart.doublenegative.com.au:8080/jumpstart/

2008/11/4 James Sherwood [EMAIL PROTECTED]

 Hello,

 I am just in the process of learning T5 so the 'easy' part is not so 'easy'
 right now.

 Is there any good tutorials on how to make components like I listed by
 chance?

 --James

 -Original Message-
 From: devilabit [mailto:[EMAIL PROTECTED]
 Sent: October-31-08 5:55 PM
 To: users@tapestry.apache.org
 Subject: [Spam Rating:3.40] Re: T5: Ajax components


 It is easy to make custom components or create mixins in Tapestry and the
 t5components you mention do look promising.  You also have the option of
 using another javascript library like extjs if you need more advanced
 sexy
 looking widgets.


 James Sherwood wrote:
 
  Hello,
 
 
 
  I have been looking into some Ajax components to use in my upcoming T5
  project.
 
 
 
  Tapestry itself does not seem to have much along these lines built in and
  I
  was wondering where people are getting there Ajax components from(besides
  building them as this seems a bit above me right now)?
 
 
 
  The T5Components site seems to be the best and I am particularly
  interested
  in the in place editor:
 
 
 
  http://87.193.218.134:8080/t5c-demo/inplaceeditorpage
 
 
 
  and the tab set style of component:
 
 
 
  http://87.193.218.134:8080/t5c-demo/tabsetpage
 
 
 
  Are these the components I should be using or is there going to be built
  in
  ones at some point or am I missing something about using Ajax in T5 for
  components such as these?
 
 
 
 
 
 
 
  Thanks,
 
  --James
 
 
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/T5%3A-Ajax-components-tp20246910p20273881.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 __ Information from ESET Smart Security, version of virus signature
 database 3536 (20081019) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



 __ Information from ESET Smart Security, version of virus signature
 database 3536 (20081019) __

 The message was checked by ESET Smart Security.

 http://www.eset.com



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
with regards
Sven Homburg
http://www.chenillekit.org
http://tapestry5-components.googlecode.com


Re: T5: Ajax components

2008-10-31 Thread devilabit

It is easy to make custom components or create mixins in Tapestry and the
t5components you mention do look promising.  You also have the option of
using another javascript library like extjs if you need more advanced sexy
looking widgets.


James Sherwood wrote:
 
 Hello,
 
  
 
 I have been looking into some Ajax components to use in my upcoming T5
 project.
 
  
 
 Tapestry itself does not seem to have much along these lines built in and
 I
 was wondering where people are getting there Ajax components from(besides
 building them as this seems a bit above me right now)?
 
  
 
 The T5Components site seems to be the best and I am particularly
 interested
 in the in place editor:
 
  
 
 http://87.193.218.134:8080/t5c-demo/inplaceeditorpage
 
  
 
 and the tab set style of component:
 
  
 
 http://87.193.218.134:8080/t5c-demo/tabsetpage
 
  
 
 Are these the components I should be using or is there going to be built
 in
 ones at some point or am I missing something about using Ajax in T5 for
 components such as these?
 
  
 
  
 
  
 
 Thanks,
 
 --James
 
  
 
  
 
  
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Ajax-components-tp20246910p20273881.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: Ajax components

2008-10-30 Thread James Sherwood
Hello,

 

I have been looking into some Ajax components to use in my upcoming T5
project.

 

Tapestry itself does not seem to have much along these lines built in and I
was wondering where people are getting there Ajax components from(besides
building them as this seems a bit above me right now)?

 

The T5Components site seems to be the best and I am particularly interested
in the in place editor:

 

http://87.193.218.134:8080/t5c-demo/inplaceeditorpage

 

and the tab set style of component:

 

http://87.193.218.134:8080/t5c-demo/tabsetpage

 

Are these the components I should be using or is there going to be built in
ones at some point or am I missing something about using Ajax in T5 for
components such as these?

 

 

 

Thanks,

--James

 

 

 



Re: [T5] AJAX and partial updates of forms ? [Zone AjaxFormLoop FormInjector FormFragment and the like]

2008-09-26 Thread Francois Armand

Francois Armand wrote:

Hello guys,
[..]
[1] Ex of what I want :
t:form

t:actionlink zone=myzoneUpdate info/t:actionlink  // in real 
life, I whould like to use a mixin for that, trigger on some action on 
a field

...
t:zone t:id=myzone
[here goes a lot of stuff with fields and components and the like]
/t:zone

/t:form



Nobody to that ?

--
Francois Armand
Etudes  Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] AJAX and partial updates of forms ? [Zone AjaxFormLoop FormInjector FormFragment and the like]

2008-09-25 Thread Francois Armand

Hello guys,

I think I really need some clarification on all the things around 
partial update of a form.
To begin, I read a lot of topic on this subject on the ml, all the doc 
available on the site and the example for T5 test suite, but I just 
don't get it, and I believe I'm not the only one in this case.


My need is quite simple : I want to know how to update a full zone (that 
contains fields) inside a form given some field's value or action in the 
same form.
Typical example are a select that update other fields availability, a 
radio button that enable some some more datas, etc. I'm aware of some 
workaround or specific case (a select can update an other select thanks 
to the onEvent mixin of t5-component lib), as am I of some related bug 
as https://issues.apache.org/jira/browse/TAP5-138 (add a zone parameter 
in select), but I really need a more general solution.


What I have tried first is to simply add a zone in the form [1], but I 
get No object of type org.apache.tapestry5.services.FormSupport is 
available from the Environment.  Afterward, I tried to use 
forminjector, formfrogment, ajaxformloop (which works great in the 
special context of adding/removing an unique row of some kind), and 
nothing seems to work for this use case.


So. Is somebody aware of a way to do it ? Where is the triggerzone 
mixin that take an action (onselect, onchage, etc) and can be add to 
our component ? Where is the ZoneForm that can be put inside a form ?


I would like this thread can lead to some kind of reference on the 
subject, so that an howto can be written on this topic.


Thanks in advance for the help !

[1] Ex of what I want :
t:form

t:actionlink zone=myzoneUpdate info/t:actionlink  // in real life, 
I whould like to use a mixin for that, on a field

...
t:zone t:id=myzone
[here goes a lot of stuff with fields and components and the like]
/t:zone

/t:form

--
Francois Armand
Etudes  Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: Ajax Examples/Tutorials

2008-09-22 Thread James Sherwood
Hello,

I was wondering if anyone knew of any good ajax Examples/Tutorials with T5?

Things such as text fields that do not require form submits to change data.

Thanks in advance,
--James

Re: T5: Ajax Examples/Tutorials

2008-09-22 Thread Daniel Jue
These are listed on the Tapestry web page and in the Tapestry 5 wiki.

Here is a 3rd party library demo:
http://87.193.218.134:8080/t5c-demo/


On Mon, Sep 22, 2008 at 10:16 AM, James Sherwood [EMAIL PROTECTED]
 wrote:

 Hello,

 I was wondering if anyone knew of any good ajax Examples/Tutorials with T5?

 Things such as text fields that do not require form submits to change data.

 Thanks in advance,
 --James


Re: T5: AJAX ActionLink exception if clicked as page loads

2008-09-08 Thread luna_guo

Geoff
It's ok to return a block object in a action handler method,but you can't
use the type Block,it will throw exceptions.You should use Object instead.

/luna
-- 
View this message in context: 
http://www.nabble.com/T5%3A-AJAX-ActionLink-exception-if-clicked-as-page-loads-tp19346336p19372125.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: AJAX ActionLink exception if clicked as page loads

2008-09-06 Thread Geoff Callender

Is this a known problem? Is there a known solution?

I have a page with 2 ActionLinks - the first link updates the whole  
page; the second link specifies a zone.


If you click on the two links in quick succession then an exception is  
thrown.  Alternatively, just Reload the page and click on the second  
link before the page has finished reloading and you'll get the same  
exception.


Here's the page, with source: 
http://202.177.217.122:8080/jumpstart/examples/javascript/ajax

Here's the exception:

A component event handler method returned the value  
[EMAIL PROTECTED] Return type  
org.apache.tapestry5.internal.structure.BlockImpl can not be handled.  
Configured return types are java.lang.Class, java.lang.String,  
java.net.URL, org.apache.tapestry5.Link,  
org.apache.tapestry5.StreamResponse,  
org.apache.tapestry5.runtime.Component.


Geoff

Re: T5: AJAX ActionLink exception if clicked as page loads

2008-09-06 Thread Filip S. Adamsen

Hi Geoff,

Tapestry doesn't hook up zones etc. until the DOM is loaded, so the link 
isn't an AJAX link at the time you click it.


You can check Request#isXhr in your event handler to see if it's an AJAX 
request - if it's not you can't return a Block, so you'll have to figure 
out another way to do what needs to be done.


-Filip

On 2008-09-06 14:48, Geoff Callender wrote:

Is this a known problem? Is there a known solution?

I have a page with 2 ActionLinks - the first link updates the whole 
page; the second link specifies a zone.


If you click on the two links in quick succession then an exception is 
thrown.  Alternatively, just Reload the page and click on the second 
link before the page has finished reloading and you'll get the same 
exception.


Here's the page, with source: 
http://202.177.217.122:8080/jumpstart/examples/javascript/ajax


Here's the exception:

A component event handler method returned the value 
[EMAIL PROTECTED] Return type 
org.apache.tapestry5.internal.structure.BlockImpl can not be handled. 
Configured return types are java.lang.Class, java.lang.String, 
java.net.URL, org.apache.tapestry5.Link, 
org.apache.tapestry5.StreamResponse, 
org.apache.tapestry5.runtime.Component.


Geoff


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] AJAX Tapestry Forms?

2008-08-22 Thread Tobias Wehrum

Hi there,

as the title suggests, I want to submit a form without refreshing the 
page. I don't even want to refresh a zone, but I need to specify a 
javascript function handling the return value of my function.
While this is quite easy with normal HTML forms, I don't want to break 
with Tapestry - especially with the validation, the automatic object 
updating and a couple of form components, but unfortunatly I have no 
clue where to start with and don't even know if it is possible.


Any thoughts on this?

(By the way, what I want to do is to put a Tapestry form in a Lightbox - 
which should just just close after the submit.)


- Tobias


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] AJAX Tapestry Forms? / strange behavior of AjaxComponentEventRequestHandler

2008-08-22 Thread Tobias Wehrum

CORRECTION:

I spent some time with the debugger and it seems that
104: if (callback.isAborted()) return;
just doesn't get called

would be

I spent some time with the debugger and it seems that in
104: if (callback.isAborted()) return;
callback.aborted == false

Tobias Wehrum schrieb:

And again hi everyone,

I managed to ajaxify my forms - but I have a problem left with the 
return value of my onSubmit function.


First to explain, to make AJAX possible, I use a slightly modified 
Tapestry.linkZone:


-- 


function ajaxifyForm(element)
{
   element = $(element); var successHandler = function(transport)
   {
   // outputting transport for debug reasons
   };
   if (element.tagName == FORM)
   {
   Tapestry.getFormEventManager(element).preventSubmission = true;
   element.observe(Tapestry.FORM_PROCESS_SUBMIT_EVENT, function()
   {
   element.request({ onSuccess : successHandler, onFailure: 
Tapestry.ajaxFailureHandler });

   });
   }
-- 



So far, it works quite nice, but transport.responseJSON was empty 
despite my onSubmit returning a JSONObject.


Looking at the Firebug Console, I find this for the POST response: 
{testkey:testvalue}{}

Obviously this isn't correct JSON - it adds a {} to my clean response.

Looking through the tapestry-core, I found 
org.apache.tapestry5.internal.services.AjaxComponentEventRequestHandler, 
and in line 106 a new JSONObject is created (which would be {}). After 
i remove this (and the following) line, the response is just 
{testkey:testvalue} - as it should be.


I spent some time with the debugger and it seems that
104: if (callback.isAborted()) return;
just doesn't get called, despite a ComponentResultProcessorWrapper 
([...].internal.services, too) gets to handle a result without any 
IOException. But strange, after the method in triggerContextEvent in 
92 returns, the callback.aborted is false.


Anybody's got a clue what's going on here - or, even better, a solution?

- Tobias

Tobias Wehrum schrieb:

Hi there,

as the title suggests, I want to submit a form without refreshing the 
page. I don't even want to refresh a zone, but I need to specify a 
javascript function handling the return value of my function.
While this is quite easy with normal HTML forms, I don't want to 
break with Tapestry - especially with the validation, the automatic 
object updating and a couple of form components, but unfortunatly I 
have no clue where to start with and don't even know if it is possible.


Any thoughts on this?

(By the way, what I want to do is to put a Tapestry form in a 
Lightbox - which should just just close after the submit.)


- Tobias


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Ajax request and expired session

2008-07-01 Thread Julian Wood
The response is empty because the session has expired, and objects  
carried in session (specifically security details stored by acegi),  
are not accessible anymore. So yes, it is easy just to check to see if  
they are there or not, and set the header appropriately.


Thanks,

J


On 30-Jun-08, at 12:57 PM, Josh Canfield wrote:

Without more detail it's hard to say why your response is empty. You  
don't
need a session to return a response from your AJAX handler. You  
could check
your objects that you are getting from the session and if they are  
null set

the response header.

On Mon, Jun 30, 2008 at 11:08 AM, Julian Wood [EMAIL PROTECTED]  
wrote:


I've been interested in a solution to this too. When I place a  
header in

the response object in an AJAX handler, however, it is always there,
regardless of whether the application has timed out or not. The AJAX
response content is still just {}. Is it possible to tell from  
within the
app whether or not the session has expired, so that this header can  
be set

conditionally?

Thanks,

J




On 29-Jun-08, at 1:19 AM, Josh Canfield wrote:

I've solved this problem before by setting an HTTP header in my  
response

for
AJAX requests that reports a status (x-myapp-status=success). If the
header
is not there but you get a successful response from your XHR you can
assume
that it's not content you want and do something appropriate  
(redirect the

whole page to login, or display an error)

Josh

On Fri, Jun 27, 2008 at 1:29 AM, Janko Muzykant [EMAIL PROTECTED]  
wrote:



hi, i'm curious how you handle situation when ajax request is  
being sent

but
page fragment cannot be rendererd because it depends on session  
which has

expired in a meantime.

here is typical request flow in my application:

* users clicks actionLink linked with some zone
* acegi detects no credentials in session (session has expired)
* acegi redirects to login page
* but hey! this is still XHR. rendered page returns to client
* ...and nothing changes. we got entire login page in response  
but it is

useless as it will be not displayed.

i have no idea how to solve that problem. could you suggest  
something?


thanks,
jm.



--
View this message in context:

http://www.nabble.com/-T5--Ajax-request-and-expired-session-tp18150477p18150477.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
TheDailyTube.com. Sign up and get the best new videos on the  
internet

delivered fresh to your inbox.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Ajax request and expired session

2008-06-30 Thread Julian Wood
I've been interested in a solution to this too. When I place a header  
in the response object in an AJAX handler, however, it is always  
there, regardless of whether the application has timed out or not. The  
AJAX response content is still just {}. Is it possible to tell from  
within the app whether or not the session has expired, so that this  
header can be set conditionally?


Thanks,

J



On 29-Jun-08, at 1:19 AM, Josh Canfield wrote:

I've solved this problem before by setting an HTTP header in my  
response for
AJAX requests that reports a status (x-myapp-status=success). If the  
header
is not there but you get a successful response from your XHR you can  
assume
that it's not content you want and do something appropriate  
(redirect the

whole page to login, or display an error)

Josh

On Fri, Jun 27, 2008 at 1:29 AM, Janko Muzykant [EMAIL PROTECTED]  
wrote:




hi, i'm curious how you handle situation when ajax request is being  
sent

but
page fragment cannot be rendererd because it depends on session  
which has

expired in a meantime.

here is typical request flow in my application:

* users clicks actionLink linked with some zone
* acegi detects no credentials in session (session has expired)
* acegi redirects to login page
* but hey! this is still XHR. rendered page returns to client
* ...and nothing changes. we got entire login page in response but  
it is

useless as it will be not displayed.

i have no idea how to solve that problem. could you suggest  
something?


thanks,
jm.



--
View this message in context:
http://www.nabble.com/-T5--Ajax-request-and-expired-session-tp18150477p18150477.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Ajax request and expired session

2008-06-30 Thread Josh Canfield
Without more detail it's hard to say why your response is empty. You don't
need a session to return a response from your AJAX handler. You could check
your objects that you are getting from the session and if they are null set
the response header.

On Mon, Jun 30, 2008 at 11:08 AM, Julian Wood [EMAIL PROTECTED] wrote:

 I've been interested in a solution to this too. When I place a header in
 the response object in an AJAX handler, however, it is always there,
 regardless of whether the application has timed out or not. The AJAX
 response content is still just {}. Is it possible to tell from within the
 app whether or not the session has expired, so that this header can be set
 conditionally?

 Thanks,

 J




 On 29-Jun-08, at 1:19 AM, Josh Canfield wrote:

 I've solved this problem before by setting an HTTP header in my response
 for
 AJAX requests that reports a status (x-myapp-status=success). If the
 header
 is not there but you get a successful response from your XHR you can
 assume
 that it's not content you want and do something appropriate (redirect the
 whole page to login, or display an error)

 Josh

 On Fri, Jun 27, 2008 at 1:29 AM, Janko Muzykant [EMAIL PROTECTED] wrote:


 hi, i'm curious how you handle situation when ajax request is being sent
 but
 page fragment cannot be rendererd because it depends on session which has
 expired in a meantime.

 here is typical request flow in my application:

 * users clicks actionLink linked with some zone
 * acegi detects no credentials in session (session has expired)
 * acegi redirects to login page
 * but hey! this is still XHR. rendered page returns to client
 * ...and nothing changes. we got entire login page in response but it is
 useless as it will be not displayed.

 i have no idea how to solve that problem. could you suggest something?

 thanks,
 jm.



 --
 View this message in context:

 http://www.nabble.com/-T5--Ajax-request-and-expired-session-tp18150477p18150477.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 --
 TheDailyTube.com. Sign up and get the best new videos on the internet
 delivered fresh to your inbox.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


Re: [T5] Ajax request and expired session

2008-06-29 Thread Josh Canfield
I've solved this problem before by setting an HTTP header in my response for
AJAX requests that reports a status (x-myapp-status=success). If the header
is not there but you get a successful response from your XHR you can assume
that it's not content you want and do something appropriate (redirect the
whole page to login, or display an error)

Josh

On Fri, Jun 27, 2008 at 1:29 AM, Janko Muzykant [EMAIL PROTECTED] wrote:


 hi, i'm curious how you handle situation when ajax request is being sent
 but
 page fragment cannot be rendererd because it depends on session which has
 expired in a meantime.

 here is typical request flow in my application:

 * users clicks actionLink linked with some zone
 * acegi detects no credentials in session (session has expired)
 * acegi redirects to login page
 * but hey! this is still XHR. rendered page returns to client
 * ...and nothing changes. we got entire login page in response but it is
 useless as it will be not displayed.

 i have no idea how to solve that problem. could you suggest something?

 thanks,
 jm.



 --
 View this message in context:
 http://www.nabble.com/-T5--Ajax-request-and-expired-session-tp18150477p18150477.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


[T5] Ajax request and expired session

2008-06-27 Thread Janko Muzykant

hi, i'm curious how you handle situation when ajax request is being sent but
page fragment cannot be rendererd because it depends on session which has
expired in a meantime. 

here is typical request flow in my application:

* users clicks actionLink linked with some zone
* acegi detects no credentials in session (session has expired)
* acegi redirects to login page
* but hey! this is still XHR. rendered page returns to client
* ...and nothing changes. we got entire login page in response but it is
useless as it will be not displayed.

i have no idea how to solve that problem. could you suggest something?

thanks,
jm.



-- 
View this message in context: 
http://www.nabble.com/-T5--Ajax-request-and-expired-session-tp18150477p18150477.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] ajax graceful degradation

2008-06-20 Thread Julien

Hi,

I've used the zone and block components to create an ajax refreshed page 
part.


When the user click the actionlink, the content of the zone is replaced 
by the content of the block. It works great :)

But I'd like my page to gracefully degrade when javascript is turned off.

request.isXHR() works well, but how to replace the content of the zone 
in a non-ajax request, that refresh the whole page ?


Here's the code:

private Block onActionFromModifyDisplay(){
   if(!request.isXHR()){
   //what to do here ?   
   return null;

   }
   return displayBlock;
   }

Thx

  Julien


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [T5] ajax graceful degradation

2008-06-20 Thread Cordenier Christophe
Hello,

Change your method to public Object onActionFromModifyDisplay() and return a 
Page instance or whatever redirect the user to a page instead of Block.

Christophe.

-Message d'origine-
De : Julien [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 20 juin 2008 10:47
À : Tapestry users
Objet : [T5] ajax graceful degradation

Hi,

I've used the zone and block components to create an ajax refreshed page
part.

When the user click the actionlink, the content of the zone is replaced
by the content of the block. It works great :)
But I'd like my page to gracefully degrade when javascript is turned off.

request.isXHR() works well, but how to replace the content of the zone
in a non-ajax request, that refresh the whole page ?

Here's the code:

private Block onActionFromModifyDisplay(){
if(!request.isXHR()){
//what to do here ?
return null;
}
return displayBlock;
}

Thx

   Julien


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] ajax graceful degradation

2008-06-20 Thread Julien

Hello,

By returning null, the same page is reloaded.
But the content of my zone should be updated, replaced by the content of 
the block component.


Julien

Cordenier Christophe a écrit :

Hello,

Change your method to public Object onActionFromModifyDisplay() and return a 
Page instance or whatever redirect the user to a page instead of Block.

Christophe.

-Message d'origine-
De : Julien [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 20 juin 2008 10:47
À : Tapestry users
Objet : [T5] ajax graceful degradation

Hi,

I've used the zone and block components to create an ajax refreshed page
part.

When the user click the actionlink, the content of the zone is replaced
by the content of the block. It works great :)
But I'd like my page to gracefully degrade when javascript is turned off.

request.isXHR() works well, but how to replace the content of the zone
in a non-ajax request, that refresh the whole page ?

Here's the code:

private Block onActionFromModifyDisplay(){
if(!request.isXHR()){
//what to do here ?
return null;
}
return displayBlock;
}

Thx

   Julien


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [T5] ajax graceful degradation

2008-06-20 Thread Cordenier Christophe
I think you must manage the non-XHR state by yourself, and for exemple use a 
delegate component in your zone to display the block if Ajax is not supported 
by the browser. Hope this helps !

Christophe.

-Message d'origine-
De : Julien [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 20 juin 2008 11:19
À : Tapestry users
Objet : Re: [T5] ajax graceful degradation

Hello,

By returning null, the same page is reloaded.
But the content of my zone should be updated, replaced by the content of
the block component.

Julien

Cordenier Christophe a écrit :
 Hello,

 Change your method to public Object onActionFromModifyDisplay() and return 
 a Page instance or whatever redirect the user to a page instead of Block.

 Christophe.

 -Message d'origine-
 De : Julien [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 20 juin 2008 10:47
 À : Tapestry users
 Objet : [T5] ajax graceful degradation

 Hi,

 I've used the zone and block components to create an ajax refreshed page
 part.

 When the user click the actionlink, the content of the zone is replaced
 by the content of the block. It works great :)
 But I'd like my page to gracefully degrade when javascript is turned off.

 request.isXHR() works well, but how to replace the content of the zone
 in a non-ajax request, that refresh the whole page ?

 Here's the code:

 private Block onActionFromModifyDisplay(){
 if(!request.isXHR()){
 //what to do here ?
 return null;
 }
 return displayBlock;
 }

 Thx

Julien


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
 exclusif de ses destinataires. Il peut également être protégé par le secret 
 professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
 immédiatement l'expéditeur et de le détruire. L'intégrité du message ne 
 pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne 
 pourra être recherchée quant au contenu de ce message. Bien que les meilleurs 
 efforts soient faits pour maintenir cette transmission exempte de tout virus, 
 l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
 saurait être recherchée pour tout dommage résultant d'un virus transmis.

 This e-mail and the documents attached are confidential and intended solely 
 for the addressee; it may also be privileged. If you receive this e-mail in 
 error, please notify the sender immediately and destroy it. As its integrity 
 cannot be secured on the Internet, the Atos Origin group liability cannot be 
 triggered for the message content. Although the sender endeavours to maintain 
 a computer virus-free network, the sender does not warrant that this 
 transmission is virus-free and will not be liable for any damages resulting 
 from any virus transmitted.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] ajax graceful degradation

2008-06-20 Thread Julien


Thanks Christophe.

I'll try this,
It would be nice if Tapestry could do this automatically.

Julien.

Cordenier Christophe a écrit :

I think you must manage the non-XHR state by yourself, and for exemple use a 
delegate component in your zone to display the block if Ajax is not supported 
by the browser. Hope this helps !

Christophe.

-Message d'origine-
De : Julien [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 20 juin 2008 11:19
À : Tapestry users
Objet : Re: [T5] ajax graceful degradation

Hello,

By returning null, the same page is reloaded.
But the content of my zone should be updated, replaced by the content of
the block component.

Julien

Cordenier Christophe a écrit :
  

Hello,

Change your method to public Object onActionFromModifyDisplay() and return a 
Page instance or whatever redirect the user to a page instead of Block.

Christophe.

-Message d'origine-
De : Julien [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 20 juin 2008 10:47
À : Tapestry users
Objet : [T5] ajax graceful degradation

Hi,

I've used the zone and block components to create an ajax refreshed page
part.

When the user click the actionlink, the content of the zone is replaced
by the content of the block. It works great :)
But I'd like my page to gracefully degrade when javascript is turned off.

request.isXHR() works well, but how to replace the content of the zone
in a non-ajax request, that refresh the whole page ?

Here's the code:

private Block onActionFromModifyDisplay(){
if(!request.isXHR()){
//what to do here ?
return null;
}
return displayBlock;
}

Thx

   Julien


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: T5 ajax zones example

2008-06-10 Thread Blower, Andy
Yeah, this is all fixed now in 5.0.13. Plus the AjaxFormLoop and issue I was 
having with the select box doing a resort and updating a zone!

I'm pretty happy, except I'm stuck in meetings in the US all week and not doing 
Tapestry dev... ho hum.

Good work Howard.

Andy

 -Original Message-
 From: Filip S. Adamsen [mailto:[EMAIL PROTECTED]
 Sent: 06 June 2008 14:08
 To: Tapestry users
 Subject: Re: T5 ajax zones example

 Howard is on it. See https://issues.apache.org/jira/browse/TAPESTRY-
 2341.

 -Filip

 On 2008-06-06 16:07, james cai wrote:
  I have the same problem using T5.0.12.Who can fix this?
 
  thanks.
 
 
 
  Sabine K. wrote:
  Hi,
 
  this works perfect with the Firefox. With the Internet Explorer it
 gives
  by triggering the submit button, the link works:
 
  org.apache.tapestry.runtime.ComponentEventException
  A component event handler method returned the value
  [EMAIL PROTECTED] Return
 type
  org.apache.tapestry.internal.structure.BlockImpl can not be handled.
  Configured return types are java.lang.Class, java.lang.String,
  java.net.URL, org.apache.tapestry.Link,
  org.apache.tapestry.StreamResponse,
 org.apache.tapestry.runtime.Component.
 
  Any idea?
 
 
 
  Ted Steen wrote:
  This is a simple example showing ajax with and without forms.
  Hope it helps!
 
  --Test.tml--
  html
 xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
  headtitleAjax test/title/head
  body
  t:block t:id=someBlock
  Boring block
  /t:block
 
  t:block t:id=dynamicBlock
  fun dynamic block!
  br /
  date on server ${date}
  br /
  message: ${message}
  /t:block
 
  t:actionlink t:id=theLink t:zone=zoneToUpdateclick
  me!/t:actionlink
 
  t:form t:id=theForm t:zone=zoneToUpdate
  t:textfield t:value=message /
  br /
  t:submit /
  /t:form
 
  hr/
 
  t:zone t:id=zoneToUpdate
  Content before update
  /t:zone
 
  /body
  /html
 
  --Test.java--
  public class Test
  {
  @Inject
  private Block someBlock;
  @Inject
  private Block dynamicBlock;
 
  @Property
  private String message;
 
  public String getDate()
  {
  return new Date().toString();
  }
 
  @OnEvent(component=theLink, value=action)
  private Block actionFromTheLink()
  {
  return someBlock;
  }
 
  @OnEvent(component=theForm, value=success)
  private Block successFromTheForm()
  {
  return dynamicBlock;
  }
  }
 
 
  2008/3/11, Janko Muzykant [EMAIL PROTECTED]:
 
  Tapestry's page mentions about zones and update-divs but i'm not
 able to
  find
  even one example how to use them. is there anyone who successfully
 tried
  to
  use these features?
 
  cheers,
  m.
 
 
  --
  View this message in context:
  http://www.nabble.com/T5-ajax-zones-example-
 tp15991696p15991696.html
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  --
 ---
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  /ted
 
 
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zone changing

2008-06-06 Thread Lance Java
I've always thought it would be nice to return a MapString,Block with the
key being the zone id so I can specify the zone(s) to update.

On 05/06/2008, Janko Muzykant [EMAIL PROTECTED] wrote:


 Thiago H. de Paula Figueiredo wrote on 05 Jun 2008 15:26:58 MET:

  On Thu, 05 Jun 2008 11:18:53 -0300, Janko Muzykant [EMAIL PROTECTED]
  wrote:
 
   Hi Markus,
   thanks for links, but this unfortunately does not solve the
   problem. i will
   try to highlight my case. commiting the form currenlty we have no
   possibility to select destination zone other when that one assigned in
   form element (eg. t:form t:zone=blah), right?
 
  Not quite. :) The t:zone parameter defines what zone will be
  updated. The return value of the event handler method defines what
  content (a Zone or  Block) will be used to update that zone.
 
 yup, that is what i called 'destination zone' :)  its conent may be
 updated dynamically by returned Block or Zone but i
 would like to choose quite different destination (depending on clicked
 button). and that's my problem :)

 greetins,
 jm.

 --
 Signature missing...


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: T5 ajax zones example

2008-06-06 Thread james cai

I have the same problem using T5.0.12.Who can fix this?

thanks.



Sabine K. wrote:
 
 Hi, 
 
 this works perfect with the Firefox. With the Internet Explorer it gives
 by triggering the submit button, the link works:
 
 org.apache.tapestry.runtime.ComponentEventException
 A component event handler method returned the value
 [EMAIL PROTECTED] Return type
 org.apache.tapestry.internal.structure.BlockImpl can not be handled.
 Configured return types are java.lang.Class, java.lang.String,
 java.net.URL, org.apache.tapestry.Link,
 org.apache.tapestry.StreamResponse, org.apache.tapestry.runtime.Component.
 
 Any idea?
 
 
 
 Ted Steen wrote:
 
 This is a simple example showing ajax with and without forms.
 Hope it helps!
 
 --Test.tml--
 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
 headtitleAjax test/title/head
 body
 t:block t:id=someBlock
 Boring block
 /t:block
 
 t:block t:id=dynamicBlock
 fun dynamic block!
 br /
 date on server ${date}
 br /
 message: ${message}
 /t:block
 
 t:actionlink t:id=theLink t:zone=zoneToUpdateclick
 me!/t:actionlink
 
 t:form t:id=theForm t:zone=zoneToUpdate
 t:textfield t:value=message /
 br /
 t:submit /
 /t:form
 
 hr/
 
 t:zone t:id=zoneToUpdate
 Content before update
 /t:zone
 
 /body
 /html
 
 --Test.java--
 public class Test
 {
 @Inject
 private Block someBlock;
 @Inject
 private Block dynamicBlock;
 
 @Property
 private String message;
 
 public String getDate()
 {
 return new Date().toString();
 }
 
 @OnEvent(component=theLink, value=action)
 private Block actionFromTheLink()
 {
 return someBlock;
 }
 
 @OnEvent(component=theForm, value=success)
 private Block successFromTheForm()
 {
 return dynamicBlock;
 }
 }
 
 
 2008/3/11, Janko Muzykant [EMAIL PROTECTED]:


 Tapestry's page mentions about zones and update-divs but i'm not able to
 find
 even one example how to use them. is there anyone who successfully tried
 to
 use these features?

 cheers,
 m.


 --
 View this message in context:
 http://www.nabble.com/T5-ajax-zones-example-tp15991696p15991696.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 /ted
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5-ajax-zones-example-tp15991696p17693047.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zone changing

2008-06-05 Thread Janko Muzykant

Hi Markus,
thanks for links, but this unfortunately does not solve the problem. i will
try to highlight my case. commiting the form currenlty we have no
possibility to select destination zone other when that one assigned in
form element (eg. t:form t:zone=blah), right? so how to refresh
different zones depending on different commit buttons? eg. i would like
commit button A to refresh zone_A and commit button B to refresh zone_B.

thanks again,
jm.





Marcus-11 wrote:
 
 Hi Janko,
 
 maybe this help
 
 http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/ZoneDemo.tml?view=markup
 http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/ZoneDemo.java?view=markup
 
 Marcus
 
 

-- 
View this message in context: 
http://www.nabble.com/T5-ajax-zone-changing-tp17598853p17670934.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zone changing

2008-06-05 Thread Thiago H de Paula Figueiredo
On Thu, 05 Jun 2008 11:18:53 -0300, Janko Muzykant [EMAIL PROTECTED]  
wrote:



Hi Markus,
thanks for links, but this unfortunately does not solve the problem. i  
will

try to highlight my case. commiting the form currenlty we have no
possibility to select destination zone other when that one assigned in
form element (eg. t:form t:zone=blah), right?


Not quite. :) The t:zone parameter defines what zone will be updated. The  
return value of the event handler method defines what content (a Zone or  
Block) will be used to update that zone.


Thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zone changing

2008-06-05 Thread Janko Muzykant

Thiago H. de Paula Figueiredo wrote on 05 Jun 2008 15:26:58 MET:

 On Thu, 05 Jun 2008 11:18:53 -0300, Janko Muzykant [EMAIL PROTECTED]
 wrote:

  Hi Markus,
  thanks for links, but this unfortunately does not solve the
  problem. i will
  try to highlight my case. commiting the form currenlty we have no
  possibility to select destination zone other when that one assigned in
  form element (eg. t:form t:zone=blah), right?

 Not quite. :) The t:zone parameter defines what zone will be
 updated. The return value of the event handler method defines what
 content (a Zone or  Block) will be used to update that zone.

yup, that is what i called 'destination zone' :)  its conent may be
updated dynamically by returned Block or Zone but i
would like to choose quite different destination (depending on clicked
button). and that's my problem :)

greetins,
jm.

-- 
Signature missing...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5 ajax zone changing

2008-06-02 Thread Janko Muzykant

hallo all,
is it possible to change zone (area that should be updated) dynamically in
response to invoked action?
for example, user commits a form and depending on selected value i would
like to update zone1 or zone2. 
It would be great if I could point the right zone inside my @OnEvent method.

cheers,
m.


-- 
View this message in context: 
http://www.nabble.com/T5-ajax-zone-changing-tp17598853p17598853.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zone changing

2008-06-02 Thread Marcus
Hi Janko,

maybe this help

http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/ZoneDemo.tml?view=markup
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/ZoneDemo.java?view=markup

Marcus


T5: Ajax periodic update

2008-05-19 Thread mad7777

Hi list,

I'd like to know if there is a simple way to perform a periodic Ajax update
request.

I've invented hacked a solution using the Ajax.PeriodicalUpdater from
prototype.js.  It involves putting an ActionLink on the page, giving it a
client id, making it invisible to the user (with display: none), and then
making a new Ajax.PeriodicalUpdater using the a.href from the ActionLink. 
The result of this call is a string containing the content generated by the
Block element, which I must then parse.  If I do not manipulate the
response, the Zone will contain something like { content : blah blah blah
}.

I'm not crazy about my solution, and, moreover, it results in a mysterious
403 Forbidden reply on some platforms.

Otherwise, having great fun with T5.  Keep up the excellent work!

Regards,
Marc

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Ajax-periodic-update-tp17315174p17315174.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Ajax update of one form field based on change to another form field?

2008-05-02 Thread Franz Amador
Thank you VERY much.  That works like a champ... except I keep getting
an exception in the log, though it doesn't affect the UI.  Here's the
way I ran with your suggestions.  First, the tml:

t:beaneditform t:id=beanEditForm object=propertiesBean
submitlabel=message:save-label
  t:parameter name=type
t:label for=type/
t:select t:id=type value=propertiesBean.type
  t:mixins=t5components/OnEvent event=change
onCompleteCallback=typeChanged/
  /t:parameter
  t:parameter name=port
t:label for=port/
t:textfield t:id=port value=propertiesBean.port/
  /t:parameter
/t:beaneditform

script type=text/javascript
  function typeChanged(response) {
$('port').value = response;
  }
/script

Next, the page java:

StreamResponse onChangeFromType(String typeName) {
DatabaseType type = DatabaseType.valueOf(typeName);
return new TextStreamResponse(text/plain,
String.valueOf(type.getDefaultPort()));
}

And lastly, the exception:

java.io.IOException: The filename, directory name, or volume label
syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:395)
at java.io.File.getCanonicalPath(File.java:531)
at org.mortbay.util.FileResource.getAlias(FileResource.java:176)
at org.mortbay.http.ResourceCache.getResource(ResourceCache.java:251)
at org.mortbay.http.HttpContext.getResource(HttpContext.java:2118)
at 
org.mortbay.jetty.servlet.WebApplicationContext.getResource(WebApplicationContext.java:785)
at 
org.mortbay.jetty.servlet.ServletHandler.getResource(ServletHandler.java:735)
at 
org.mortbay.jetty.servlet.ServletHandler$Context.getResource(ServletHandler.java:1082)
at 
org.apache.tapestry.internal.services.ContextImpl.getResource(ContextImpl.java:43)
at $Context_119abd0bad3.getResource($Context_119abd0bad3.java)
at $Context_119abd0ba6e.getResource($Context_119abd0ba6e.java)
at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:56)
at $RequestHandler_119abd0ba72.service($RequestHandler_119abd0ba72.java)
at 
nu.localhost.tapestry.acegi.services.internal.RequestFilterWrapper$1.doFilter(RequestFilterWrapper.java:60)
at 
nu.localhost.tapestry.acegi.services.internal.AcegiExceptionTranslationFilter.doFilter(AcegiExceptionTranslationFilter.java:67)
at 
nu.localhost.tapestry.acegi.services.internal.RequestFilterWrapper.service(RequestFilterWrapper.java:54)

with lots more frames below.  Using the debugger, I find that Jetty is
getting a request for a URL that looks like this:

/myapp/admin/database.type:change/MYSQL_5

which it's passing to File.getCanonicalPath as this:

C:\ResearchWorkspace\myapp-tapestry5\src\main\webapp\admin\database.type:change\MYSQL_5

which it doesn't like.  Any ideas?  MYSQL_5 is, of course, a value for
my database-type enum.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Chris Lewis


Franz Amador wrote:
 Hi, all.  I asked about this a while ago, and there was no good answer
 then, but I'm hoping that there are new options now.  I have a bean
 that holds information about a database connection.  I'm editing it
 with BeanEditForm.  One of the fields is the database type, an enum
 that renders as a dropdown.  Another field is the database-server
 port.  When the user picks a database type from the dropdown, I want
 to update the database port to the default value for that database
 type (e.g. 1521 for Oracle), while leaving the other fields alone.  Is
 there a good way to do this?

 I see there's now a zone parameter to BeanEditForm that causes the
 specified zone to be updated when the form is submitted.  This sounds
 promising, but I don't see how to make it work for my case.

 1) I would need to make the form auto-submit when the user picks a
 value from the dropdown.  I don't know how to do that, but there must
 be a way.

   
Why would you need to submit the form when a value is selected from the
list? If you know the available DBs before hand, then you know the
default ports. Store those as a client-side JSON object and use the
select's onchange event.
 2) I would need a way to prevent validation from complaining about
 missing or errant fields during the form auto-submit, but to have
 validation work normally during a regular form submit (via the submit
 button).

 3) I would need the form to do an Ajax zone update on an auto-submit
 (for a zone containing the form itself), but not on a regular form
 submit.

 On the whole, I prefer Tapestry 5 to Wicket, but for Ajax, I think
 Wicket's approach has some advantages.  In Wicket, you can register an
 event listener on a component (e.g. an on-change listener on a
 dropdown).  When the event happens, the listener method gets passed a
 list to which it appends components that should be re-rendered. 
While tapestry's Ajax support is still in the oven, it has @OnEvent
which does something similar.
  In my
 case, I'd append the database-port-field component to the list when
 the database-type enum changes value.  This approach allows me to
 update multiple components anywhere on the page in response to any
 event, with no need for a special update-target-wrapper component like
 Zone.  (You do have to call setOutputMarkupId(true) when creating a
 component that can be rendered via Ajax.)

 I hope this doesn't come across as a Wicket is better than Tapestry
 taunt.  I've experimented with both at some length, and I find
 Tapestry 5 tighter and leaner and faster.  However, I really need
 richer Ajax tools, and I think the Wicket approach is worth looking
 at.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   

-- 
http://thegodcode.net


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Franz Amador
On Thu, May 1, 2008 at 4:25 AM, Chris Lewis [EMAIL PROTECTED] wrote:
  Why would you need to submit the form when a value is selected from the
  list? If you know the available DBs before hand, then you know the
  default ports. Store those as a client-side JSON object and use the
  select's onchange event.

 ...

  While tapestry's Ajax support is still in the oven, it has @OnEvent
  which does something similar [to Wicket].

I don't want to submit the form.  It just appeared that that was the
only way to use the zone parameter on BeanEditForm to get what I want.
 It looks like you're proposing two alternatives:

1) Do it all client-side using JavaScript:  That would work for this
case, since I do know the mapping from DB types to DB ports in
advance.  I see two flaws, however.  The main one is that I have
other, similar cases in mind in which I'd need server-side computation
to update the form in response to field-change events.  Second, I
don't know JavaScript well and don't like it, so I'd really rather
keep it neatly encapsulated in components that somebody else writes.

2) Use @OnEvent:  Do form fields issue events, or is that planned for
the future?  If they do so now, could you tell me the event name for a
drop-down selection-made event, or tell me how to find it for myself?
I don't see any mention of events in the code for Select,
AbstractField, or Field.  Or do I need to use a mix-in?

As for Ajax support being still in the oven, I'm really hoping it's
coming out soon.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Chris Lewis
Sorry I was vague on that, and I was referring to the t5components
OnEvent mixin
(http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html).
Here's a quick example of ajax-based data retrieval. Note that where I
use hard-coded strings, you'd be using your database information bean
(or whatever). First you need your template:

form t:type=form
t:select t:id=mySelect model=selectOptions
value=selected t:mixins=t5components/OnEvent
event=change onCompleteCallback=selectionChanged/
t:textfield value=port t:id=dbPort/
br/input t:type=submit/
/form
   
script type=text/javascript
function selectionChanged(response) {
$('dbPort').value = response;
}
/script

The first thing to notice is the use of the onevent mixin, and notice
the subsequent parameters (event=change and
onCompleteCallback=selectionChanged). The 'event' parameter notifies
the mixin of which client side event it should bind to, while the
'onCompleteCallback' parameter is the name of an in-scope javascript
function that will receive the ajax response from the server. Also
notice our hard-coded script block in which we declare the named handler
'selectionChanged' - in which we set the value of the field by id
'dbPort' (which if you look at the form, you'll see that we created a
textfield with that id). Now the event handler in the page class:

public StreamResponse onChangeFromMySelect(String value) {
logger.info( changed:  + value);
return new TextStreamResponse(text/plain,
value.equals(Oracle) ? 1521 : 3306);
}

This is obviously a stupid implementation in that it tests for the
string Oracle and returns 1521, other wise 3306 as a plain-text
response, but it shows how to check for what was selected and how to
return something. Now if you fill in the simple missing parts of this,
you'll see that it works by retrieving values from the server based on
the selection in an asynchronous manner. The OnEvent mixin really opens
the door to a much wider potential of data binding, but by itself it
gives you some raw tools to do what you want.

 As for Ajax support being still in the oven, I'm really hoping it's
 coming out soon.
   
I imagine it will stop baking when web development methodologies stop
changing. I said 'in the oven' because there are still and handful unmet
goals outstanding in the ajax area. There are a few useful things now,
and I'd say you can bet on the fact that the innovative strides in the
ajax part will be as innovative as those in the rest of the framework.

-- 
http://thegodcode.net


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: Ajax update of one form field based on change to another form field?

2008-04-30 Thread Franz Amador
Hi, all.  I asked about this a while ago, and there was no good answer
then, but I'm hoping that there are new options now.  I have a bean
that holds information about a database connection.  I'm editing it
with BeanEditForm.  One of the fields is the database type, an enum
that renders as a dropdown.  Another field is the database-server
port.  When the user picks a database type from the dropdown, I want
to update the database port to the default value for that database
type (e.g. 1521 for Oracle), while leaving the other fields alone.  Is
there a good way to do this?

I see there's now a zone parameter to BeanEditForm that causes the
specified zone to be updated when the form is submitted.  This sounds
promising, but I don't see how to make it work for my case.

1) I would need to make the form auto-submit when the user picks a
value from the dropdown.  I don't know how to do that, but there must
be a way.

2) I would need a way to prevent validation from complaining about
missing or errant fields during the form auto-submit, but to have
validation work normally during a regular form submit (via the submit
button).

3) I would need the form to do an Ajax zone update on an auto-submit
(for a zone containing the form itself), but not on a regular form
submit.

On the whole, I prefer Tapestry 5 to Wicket, but for Ajax, I think
Wicket's approach has some advantages.  In Wicket, you can register an
event listener on a component (e.g. an on-change listener on a
dropdown).  When the event happens, the listener method gets passed a
list to which it appends components that should be re-rendered.  In my
case, I'd append the database-port-field component to the list when
the database-type enum changes value.  This approach allows me to
update multiple components anywhere on the page in response to any
event, with no need for a special update-target-wrapper component like
Zone.  (You do have to call setOutputMarkupId(true) when creating a
component that can be rendered via Ajax.)

I hope this doesn't come across as a Wicket is better than Tapestry
taunt.  I've experimented with both at some length, and I find
Tapestry 5 tighter and leaner and faster.  However, I really need
richer Ajax tools, and I think the Wicket approach is worth looking
at.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: ajax component ids with namespaces

2008-04-25 Thread buckofive


After fiddling with protoype the $$ coupled with the !^ selector seems to
work.  I'm including some custom helper code to accomplish getting an
element by id without regard to the tapestry id namespace.  If this is/was
obvious or there is better solution, I apologize but hopefully this will be
helpful to others.

// gets the first element where the id begins with the 'id_starts_with'
argument.
function $G(id_starts_with)
{
return( $G_(id_starts_with)[0] );
}

// gets all elements where their id's begin with the 'id_starts_with'
argument.
function $G_(id_starts_with)
{
return( $$([id^='+id_starts_with+']) );
}


to get access to this T5 namespaced node : 
   form id=foo:1234 /
call
$G('foo')


cheers,
B
-- 
View this message in context: 
http://www.nabble.com/T5%3A-ajax-component-ids-with-namespaces-tp16826268p16908236.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: ajax component ids with namespaces

2008-04-22 Thread buckofive

Hi All,

I recently updated to Tapestry 5.0.11 from 5.0.10 and unfortunately my
custom javascript calls are broken because component id's returned from ajax
calls now have a :# next to them.  For example when I try to get a
reference to an object say $('foo') it doesn't exist because it is now
$('foo:12234') and this id changes on every ajax refresh.I read the post
from Howard about this being a namespace for ajax requests
(http://thread.gmane.org/gmane.comp.java.tapestry.user/59677/focus=59697)
but I'm a little confused as to how I get access to these nodes with scripts
now? Can the AJAX namespacing be turned off (globally or at the component
level)?  Does anyone have a workaround for this?  

Much thanks in adavanced,
B

-- 
View this message in context: 
http://www.nabble.com/T5%3A-ajax-component-ids-with-namespaces-tp16826268p16826268.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: T5: AJAX Zone updating doesn't work correctly in IE

2008-04-09 Thread Blower, Andy
Has anyone tried my demo page of the problem? I've simplified it as much as I 
can to show just the issue at hand. Should this go into JIRA now?

Class:

public class BasicAJAX
{
@Property
@Persist
private int count = 0;

@Component
private Zone aZone;

Object onActionFromOutsideZone() {
count++;
return aZone;
}

Object onActionFromInsideZone() {
count++;
return aZone;
}
}

Template:
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
body
h1Basic AJAX Tester (${count} - only updates on full page refresh)/h1

a t:type=actionlink t:id=outsideZone href=# t:zone=aZoneRefresh - 
this is an AJAX-enabled ActionLink/abr/br/

div t:type=zone t:id=aZone
pI am a AJAX updated ZONE! count=${count}/p
a t:type=actionlink t:id=insideZone href=# 
t:zone=aZoneRefresh - this is an AJAX-enabled ActionLink inside the 
zone/abr/br/
/div

/body
/html

 Rather than explain (probably badly) exactly what the problem is, I'll 
 provide a small example page called
 BasicAJAX. This page demonstrates that if an actionlink that causes a zone 
 refresh via AJAX is part of the
 refreshed zone itself, it only works on alternate clicks in IE. Each time 
 it's rendered as part of the zone
 update it causes a full page refresh when clicked, which means it can do a 
 zone update the following click.
 It works fine in Firefox though.

 If I return a block instead of a zone the second click in the link inside
 causes the ComponentEventException shown below, instead of the full page
 refresh.

 org.apache.tapestry.runtime.ComponentEventException - A component event
 handler method returned the value
 [EMAIL PROTECTED] Return type
 org.apache.tapestry.internal.structure.BlockImpl can not be handled.
 Configured return types are java.lang.Class, java.lang.String,
 java.net.URL,
 org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
 org.apache.tapestry.runtime.Component.


 It looks like a bug to me, should it be entered into a bug DB somewhere? I
 hope that this is a known problem that has already been fixed or is in the
 process of being fixed because it's a pretty big dealbreaker for T5 AJAX
 support as IE is still the dominant browser.

 (using T5.0.11, IE6.0.2900, FF2.0.0.6, Tomcat5.5.9)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: AJAX Zone updating doesn't work correctly in IE

2008-04-09 Thread Josh Canfield
I copied your example, and using IE 7 it works fine. I don't have
access to IE 6 at the moment to try it there.

Josh

On Wed, Apr 9, 2008 at 6:26 AM, Blower, Andy
[EMAIL PROTECTED] wrote:
 Has anyone tried my demo page of the problem? I've simplified it as much as I 
 can to show just the issue at hand. Should this go into JIRA now?

 Class:

 public class BasicAJAX
 {
@Property
@Persist
private int count = 0;

@Component
private Zone aZone;

Object onActionFromOutsideZone() {
count++;
return aZone;
}

Object onActionFromInsideZone() {
count++;
return aZone;
}
 }

 Template:
 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
 body
h1Basic AJAX Tester (${count} - only updates on full page refresh)/h1

a t:type=actionlink t:id=outsideZone href=# t:zone=aZoneRefresh 
 - this is an AJAX-enabled ActionLink/abr/br/

div t:type=zone t:id=aZone
pI am a AJAX updated ZONE! count=${count}/p
a t:type=actionlink t:id=insideZone href=# 
 t:zone=aZoneRefresh - this is an AJAX-enabled ActionLink inside the 
 zone/abr/br/
/div

 /body
 /html


  Rather than explain (probably badly) exactly what the problem is, I'll 
  provide a small example page called
  BasicAJAX. This page demonstrates that if an actionlink that causes a zone 
  refresh via AJAX is part of the
  refreshed zone itself, it only works on alternate clicks in IE. Each time 
  it's rendered as part of the zone
  update it causes a full page refresh when clicked, which means it can do a 
  zone update the following click.
  It works fine in Firefox though.
 
  If I return a block instead of a zone the second click in the link inside
  causes the ComponentEventException shown below, instead of the full page
  refresh.
 
  org.apache.tapestry.runtime.ComponentEventException - A component event
  handler method returned the value
  [EMAIL PROTECTED] Return type
  org.apache.tapestry.internal.structure.BlockImpl can not be handled.
  Configured return types are java.lang.Class, java.lang.String,
  java.net.URL,
  org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
  org.apache.tapestry.runtime.Component.
 
 
  It looks like a bug to me, should it be entered into a bug DB somewhere? I
  hope that this is a known problem that has already been fixed or is in the
  process of being fixed because it's a pretty big dealbreaker for T5 AJAX
  support as IE is still the dominant browser.
 
  (using T5.0.11, IE6.0.2900, FF2.0.0.6, Tomcat5.5.9)
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: T5: AJAX Zone updating doesn't work correctly in IE

2008-04-08 Thread Blower, Andy
Thanks for the reply José, but I haven't got a nested zone. Unfortunately my 
example code has been completely screwed up by submitting it via Nabble so it's 
really not clear what on earth I'm going on about. I was really hoping to get a 
reply on this issue before I report on T5 to management at 2pm today as well. 
That's life I guess, anyway here's my example pages again. Hopefully it'll be 
clearer what the problem is.

Andy.

- BasicAJAX.java -
package com.proquest.Tap5ProtoIMPA.pages;

import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.Persist;
import org.apache.tapestry.annotations.Property;
import org.apache.tapestry.corelib.components.Zone;


public class BasicAJAX
{
@Property
@Persist
private int count = 0;

@Component
private Zone aZone;

Object onActionFromOutsideZone() {
count++;
return aZone;
}

Object onActionFromInsideZone() {
count++;
return aZone;
}
}

- BasicAJAX.tml -
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
body style=font-family: Arial, Helvetica, sans-serif;  font-size: smaller;

h1Basic AJAX Tester (${count} - only updates on full page 
refresh)/h1

a t:type=actionlink t:id=outsideZone href=# 
t:zone=aZoneRefresh - this is an AJAX-enabled ActionLink/abr/br/

div style=margin-left: 50px
div t:type=zone t:id=aZone
t:block t:id=aBlock
pI am a AJAX updated BLOCK! count=${count}/p
a t:type=actionlink t:id=insideZone 
href=# t:zone=aZoneRefresh - this is an AJAX-enabled 
ActionLink/abr/br/
/t:block
/div
/div

/body
/html


From: José Paumard [mailto:[EMAIL PROTECTED]
Sent: 07 April 2008 20:21
To: Tapestry users
Subject: Re: T5: AJAX Zone updating doesn't work correctly in IE

Andy,

I already pointed out this problem, that doesnt seem to be browser related, but 
merely due to T5 conception. Basically Howard answered that on a div refresh, 
the id of the refreshed elements nested in that div are changed by T5 : a 
timestamp based code is added, making them unique among the client DOM. If this 
div contains itself another div, pointed by a link, then that link is lost. It 
explains the page refresh, since your action link (or event link) points to 
nothing.

Howard didnt make any clear statement about that, but it seems to me that 
nesting Zones is not legal in T5, or at least needs some patching in order to 
work properly.

José

Andy Blower a écrit :
Rather than explain (probably badly) exactly what the problem is, I'll
provide a small example page called BasicAJAX. This page demonstrates that
if an actionlink that causes a zone refresh via AJAX is part of the
refreshed zone itself, it only works on alternate clicks in IE. Each time
it's rendered as part of the zone update it causes a full page refresh when
clicked, which means it can do a zone update the following click. It works
fine in Firefox though.

If I return a block instead of a zone the second click in the link inside
causes the ComponentEventException shown below, instead of the full page
refresh.

org.apache.tapestry.runtime.ComponentEventException - A component event
handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry.internal.structure.BlockImpl can not be handled.
Configured return types are java.lang.Class, java.lang.String, java.net.URL,
org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
org.apache.tapestry.runtime.Component.


It looks like a bug to me, should it be entered into a bug DB somewhere? I
hope that this is a known problem that has already been fixed or is in the
process of being fixed because it's a pretty big dealbreaker for T5 AJAX
support as IE is still the dominant browser.

(using T5.0.11, IE6.0.2900, FF2.0.0.6, Tomcat5.5.9)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: AJAX Zone updating doesn't work correctly in IE

2008-04-07 Thread Andy Blower

Rather than explain (probably badly) exactly what the problem is, I'll
provide a small example page called BasicAJAX. This page demonstrates that
if an actionlink that causes a zone refresh via AJAX is part of the
refreshed zone itself, it only works on alternate clicks in IE. Each time
it's rendered as part of the zone update it causes a full page refresh when
clicked, which means it can do a zone update the following click. It works
fine in Firefox though.

If I return a block instead of a zone the second click in the link inside
causes the ComponentEventException shown below, instead of the full page
refresh.

org.apache.tapestry.runtime.ComponentEventException - A component event
handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry.internal.structure.BlockImpl can not be handled.
Configured return types are java.lang.Class, java.lang.String, java.net.URL,
org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
org.apache.tapestry.runtime.Component.


It looks like a bug to me, should it be entered into a bug DB somewhere? I
hope that this is a known problem that has already been fixed or is in the
process of being fixed because it's a pretty big dealbreaker for T5 AJAX
support as IE is still the dominant browser.

(using T5.0.11, IE6.0.2900, FF2.0.0.6, Tomcat5.5.9)

- BasicAJAX.java -
package com.proquest.Tap5ProtoIMPA.pages;

import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.Persist;
import org.apache.tapestry.annotations.Property;
import org.apache.tapestry.corelib.components.Zone;


public class BasicAJAX
{
@Property
@Persist
private int count = 0;

@Component
private Zone aZone;

Object onActionFromOutsideZone() {
count++;
return aZone;
}

Object onActionFromInsideZone() {
count++;
return aZone;
}
}

- BasicAJAX.tml -
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
body style=font-family: Arial, Helvetica, sans-serif;  font-size:
smaller;

h1Basic AJAX Tester (${count} - only updates on full page 
refresh)/h1

 # Refresh - this is an AJAX-enabled ActionLink br/br/

div style=margin-left: 50px
div t:type=zone t:id=aZone
pI am a AJAX updated ZONE! count=${count}/p
 # Refresh - this is an AJAX-enabled ActionLink 
br/br/
/div
/div

/body
/html
-- 
View this message in context: 
http://www.nabble.com/T5%3A-AJAX-Zone-updating-doesn%27t-work-correctly-in-IE-tp16537464p16537464.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: AJAX Zone updating doesn't work correctly in IE

2008-04-07 Thread José Paumard




Andy, 

I already pointed out this problem, that doesnt seem to be browser
related, but merely due to T5 conception. Basically Howard answered
that on a div refresh, the id of the refreshed elements nested in that
div are changed by T5 : a timestamp based code is added, making them
unique among the client DOM. If this div contains itself another div,
pointed by a link, then that link is lost. It explains the page
refresh, since your action link (or event link) points to nothing. 

Howard didnt make any clear statement about that, but it seems to me
that nesting Zones is not legal in T5, or at least needs some patching
in order to work properly. 

Jos

Andy Blower a crit:

  Rather than explain (probably badly) exactly what the problem is, I'll
provide a small example page called BasicAJAX. This page demonstrates that
if an actionlink that causes a zone refresh via AJAX is part of the
refreshed zone itself, it only works on alternate clicks in IE. Each time
it's rendered as part of the zone update it causes a full page refresh when
clicked, which means it can do a zone update the following click. It works
fine in Firefox though.

If I return a block instead of a zone the second click in the link inside
causes the ComponentEventException shown below, instead of the full page
refresh.

org.apache.tapestry.runtime.ComponentEventException - A component event
handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry.internal.structure.BlockImpl can not be handled.
Configured return types are java.lang.Class, java.lang.String, java.net.URL,
org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
org.apache.tapestry.runtime.Component.


It looks like a bug to me, should it be entered into a bug DB somewhere? I
hope that this is a known problem that has already been fixed or is in the
process of being fixed because it's a pretty big dealbreaker for T5 AJAX
support as IE is still the dominant browser.

(using T5.0.11, IE6.0.2900, FF2.0.0.6, Tomcat5.5.9)

- BasicAJAX.java -
package com.proquest.Tap5ProtoIMPA.pages;

import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.Persist;
import org.apache.tapestry.annotations.Property;
import org.apache.tapestry.corelib.components.Zone;


public class BasicAJAX
{
	@Property
	@Persist
	private int count = 0;

	@Component
	private Zone aZone;

	Object onActionFromOutsideZone() {
		count++;
		return aZone;
	}
	
	Object onActionFromInsideZone() {
		count++;
		return aZone;
	}
}

- BasicAJAX.tml -
html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"
body style="font-family: Arial, Helvetica, sans-serif;  font-size:
smaller;"
	
	h1Basic AJAX Tester (${count} - only updates on full page refresh)/h1
	
	 # Refresh - this is an AJAX-enabled ActionLink br/br/
	
	div style="margin-left: 50px"
		div t:type="zone" t:id="aZone"
			pI am a AJAX updated ZONE! count=${count}/p
			 # Refresh - this is an AJAX-enabled ActionLink br/br/
		/div
	/div

/body
/html
  





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [T5] Ajax validation

2008-03-27 Thread Zheng, Xiahong
Anyone? 

-Original Message-
From: Zheng, Xiahong 
Sent: Wednesday, March 26, 2008 3:09 PM
To: 'Tapestry users'
Subject: [T5] Ajax validation

If this topic has been discussed, please point me to the right place. It
seems that, by default, tapestry 5 only does client side validation when
you tab out of the input field. Server side validation happens on the
form submit only. How can I enable server side validation on a field by
field basis, i.e., via ajax onblur event?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Ajax validation

2008-03-27 Thread Julian Wood
I think you need to do this yourself, using the builtin AJAX  
facilities, rather than using any of the builtin validation facilities.


Say you were looking to make sure a username was unique on signup.  
Place an actionlink  beside the field (check availability). The  
actionlink would need context (the username). The actionlink can  
update a zone containing the text field, and which also has some  
hidden divs containing the validation messages (just as a field with  
regular validation would be decorated). Display/hide the validation  
message div based on a flag set by the actionlink handler (which  
would obviously check the db for username uniqueness).


That would be my first try (there are some pieces in there which  
might not work the way I'm thinking) - you could also do it with a  
mixin (see the AutoComplete component).


HTH,

J


On 27-Mar-08, at 7:27 AM, Zheng, Xiahong wrote:


Anyone?

-Original Message-
From: Zheng, Xiahong
Sent: Wednesday, March 26, 2008 3:09 PM
To: 'Tapestry users'
Subject: [T5] Ajax validation

If this topic has been discussed, please point me to the right  
place. It
seems that, by default, tapestry 5 only does client side validation  
when

you tab out of the input field. Server side validation happens on the
form submit only. How can I enable server side validation on a  
field by

field basis, i.e., via ajax onblur event?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [T5] Ajax validation

2008-03-27 Thread Zheng, Xiahong
Thanks for the clarification. I was wondering if such capability already
exists in T5. I like the mixin approach since it doesn't require another
click. 

-Original Message-
From: Julian Wood [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 11:39 AM
To: Tapestry users
Subject: Re: [T5] Ajax validation

I think you need to do this yourself, using the builtin AJAX  
facilities, rather than using any of the builtin validation facilities.

Say you were looking to make sure a username was unique on signup.  
Place an actionlink  beside the field (check availability). The  
actionlink would need context (the username). The actionlink can  
update a zone containing the text field, and which also has some  
hidden divs containing the validation messages (just as a field with  
regular validation would be decorated). Display/hide the validation  
message div based on a flag set by the actionlink handler (which  
would obviously check the db for username uniqueness).

That would be my first try (there are some pieces in there which  
might not work the way I'm thinking) - you could also do it with a  
mixin (see the AutoComplete component).

HTH,

J


On 27-Mar-08, at 7:27 AM, Zheng, Xiahong wrote:

 Anyone?

 -Original Message-
 From: Zheng, Xiahong
 Sent: Wednesday, March 26, 2008 3:09 PM
 To: 'Tapestry users'
 Subject: [T5] Ajax validation

 If this topic has been discussed, please point me to the right  
 place. It
 seems that, by default, tapestry 5 only does client side validation  
 when
 you tab out of the input field. Server side validation happens on the
 form submit only. How can I enable server side validation on a  
 field by
 field basis, i.e., via ajax onblur event?

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] Ajax validation

2008-03-26 Thread Zheng, Xiahong
If this topic has been discussed, please point me to the right place. It
seems that, by default, tapestry 5 only does client side validation when
you tab out of the input field. Server side validation happens on the
form submit only. How can I enable server side validation on a field by
field basis, i.e., via ajax onblur event?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zones example

2008-03-12 Thread Sabine K.

Hi, 

this works perfect with the Firefox. With the Internet Explorer it gives by
triggering the submit button, the link works:

org.apache.tapestry.runtime.ComponentEventException
A component event handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry.internal.structure.BlockImpl can not be handled.
Configured return types are java.lang.Class, java.lang.String, java.net.URL,
org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
org.apache.tapestry.runtime.Component.

Any idea?



Ted Steen wrote:
 
 This is a simple example showing ajax with and without forms.
 Hope it helps!
 
 --Test.tml--
 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
 headtitleAjax test/title/head
 body
 t:block t:id=someBlock
 Boring block
 /t:block
 
 t:block t:id=dynamicBlock
 fun dynamic block!
 br /
 date on server ${date}
 br /
 message: ${message}
 /t:block
 
 t:actionlink t:id=theLink t:zone=zoneToUpdateclick
 me!/t:actionlink
 
 t:form t:id=theForm t:zone=zoneToUpdate
 t:textfield t:value=message /
 br /
 t:submit /
 /t:form
 
 hr/
 
 t:zone t:id=zoneToUpdate
 Content before update
 /t:zone
 
 /body
 /html
 
 --Test.java--
 public class Test
 {
 @Inject
 private Block someBlock;
 @Inject
 private Block dynamicBlock;
 
 @Property
 private String message;
 
 public String getDate()
 {
 return new Date().toString();
 }
 
 @OnEvent(component=theLink, value=action)
 private Block actionFromTheLink()
 {
 return someBlock;
 }
 
 @OnEvent(component=theForm, value=success)
 private Block successFromTheForm()
 {
 return dynamicBlock;
 }
 }
 
 
 2008/3/11, Janko Muzykant [EMAIL PROTECTED]:


 Tapestry's page mentions about zones and update-divs but i'm not able to
 find
 even one example how to use them. is there anyone who successfully tried
 to
 use these features?

 cheers,
 m.


 --
 View this message in context:
 http://www.nabble.com/T5-ajax-zones-example-tp15991696p15991696.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 /ted
 
 

-- 
View this message in context: 
http://www.nabble.com/T5-ajax-zones-example-tp15991696p16000137.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zones example

2008-03-12 Thread Ted Steen
This example only works with 5.0.11.
I tried it with Internet Explorer just now and I see that the ajax form is
submitted and the form is updated (correct), but the click event appears to
go all the way to IE and the form is also submitted by IE. This is wrong,
and it is the cause for the ComponentEventException you get.
This is a bug.
So ajax with forms ( =my example) only works with gecko-based browser at the
moment.

2008/3/12, Sabine K. [EMAIL PROTECTED]:


 Hi,

 this works perfect with the Firefox. With the Internet Explorer it gives
 by
 triggering the submit button, the link works:


 org.apache.tapestry.runtime.ComponentEventException
 A component event handler method returned the value
 [EMAIL PROTECTED] Return type
 org.apache.tapestry.internal.structure.BlockImpl can not be handled.
 Configured return types are java.lang.Class, java.lang.String,
 java.net.URL,
 org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
 org.apache.tapestry.runtime.Component.

 Any idea?



 Ted Steen wrote:
 
  This is a simple example showing ajax with and without forms.
  Hope it helps!
 
  --Test.tml--
  html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
  headtitleAjax test/title/head
  body
  t:block t:id=someBlock
  Boring block
  /t:block
 
  t:block t:id=dynamicBlock
  fun dynamic block!
  br /
  date on server ${date}
  br /
  message: ${message}
  /t:block
 
  t:actionlink t:id=theLink t:zone=zoneToUpdateclick
  me!/t:actionlink
 
  t:form t:id=theForm t:zone=zoneToUpdate
  t:textfield t:value=message /
  br /
  t:submit /
  /t:form
 
  hr/
 
  t:zone t:id=zoneToUpdate
  Content before update
  /t:zone
 
  /body
  /html
 
  --Test.java--
  public class Test
  {
  @Inject
  private Block someBlock;
  @Inject
  private Block dynamicBlock;
 
  @Property
  private String message;
 
  public String getDate()
  {
  return new Date().toString();
  }
 
  @OnEvent(component=theLink, value=action)
  private Block actionFromTheLink()
  {
  return someBlock;
  }
 
  @OnEvent(component=theForm, value=success)
  private Block successFromTheForm()
  {
  return dynamicBlock;
  }
  }
 
 
  2008/3/11, Janko Muzykant [EMAIL PROTECTED]:
 
 
  Tapestry's page mentions about zones and update-divs but i'm not able
 to
  find
  even one example how to use them. is there anyone who successfully
 tried
  to
  use these features?
 
  cheers,
  m.
 
 
  --
  View this message in context:
  http://www.nabble.com/T5-ajax-zones-example-tp15991696p15991696.html
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  /ted
 
 

 --
 View this message in context:
 http://www.nabble.com/T5-ajax-zones-example-tp15991696p16000137.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
/ted


Re: T5 ajax zones example

2008-03-12 Thread Stephane Decleire
I've got the same error in Firefox (v2.0.0.12) when triggering the 
button ... :-(


Stephane

Sabine K. a écrit :
Hi, 


this works perfect with the Firefox. With the Internet Explorer it gives by
triggering the submit button, the link works:

org.apache.tapestry.runtime.ComponentEventException
A component event handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry.internal.structure.BlockImpl can not be handled.
Configured return types are java.lang.Class, java.lang.String, java.net.URL,
org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
org.apache.tapestry.runtime.Component.

Any idea?



Ted Steen wrote:
  

This is a simple example showing ajax with and without forms.
Hope it helps!

--Test.tml--
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
headtitleAjax test/title/head
body
t:block t:id=someBlock
Boring block
/t:block

t:block t:id=dynamicBlock
fun dynamic block!
br /
date on server ${date}
br /
message: ${message}
/t:block

t:actionlink t:id=theLink t:zone=zoneToUpdateclick
me!/t:actionlink

t:form t:id=theForm t:zone=zoneToUpdate
t:textfield t:value=message /
br /
t:submit /
/t:form

hr/

t:zone t:id=zoneToUpdate
Content before update
/t:zone

/body
/html

--Test.java--
public class Test
{
@Inject
private Block someBlock;
@Inject
private Block dynamicBlock;

@Property
private String message;

public String getDate()
{
return new Date().toString();
}

@OnEvent(component=theLink, value=action)
private Block actionFromTheLink()
{
return someBlock;
}

@OnEvent(component=theForm, value=success)
private Block successFromTheForm()
{
return dynamicBlock;
}
}


2008/3/11, Janko Muzykant [EMAIL PROTECTED]:


Tapestry's page mentions about zones and update-divs but i'm not able to
find
even one example how to use them. is there anyone who successfully tried
to
use these features?

cheers,
m.


--
View this message in context:
http://www.nabble.com/T5-ajax-zones-example-tp15991696p15991696.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

--
/ted





  


Re: T5 ajax zones example

2008-03-12 Thread Stephane Decleire

It doesn't work on Firefox for me ...
And i don't think the error returned deals with the client.

Ted Steen a écrit :

This example only works with 5.0.11.
I tried it with Internet Explorer just now and I see that the ajax form is
submitted and the form is updated (correct), but the click event appears to
go all the way to IE and the form is also submitted by IE. This is wrong,
and it is the cause for the ComponentEventException you get.
This is a bug.
So ajax with forms ( =my example) only works with gecko-based browser at the
moment.

2008/3/12, Sabine K. [EMAIL PROTECTED]:
  

Hi,

this works perfect with the Firefox. With the Internet Explorer it gives
by
triggering the submit button, the link works:


org.apache.tapestry.runtime.ComponentEventException
A component event handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry.internal.structure.BlockImpl can not be handled.
Configured return types are java.lang.Class, java.lang.String,
java.net.URL,
org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
org.apache.tapestry.runtime.Component.

Any idea?



Ted Steen wrote:


This is a simple example showing ajax with and without forms.
Hope it helps!

--Test.tml--
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
headtitleAjax test/title/head
body
t:block t:id=someBlock
Boring block
/t:block

t:block t:id=dynamicBlock
fun dynamic block!
br /
date on server ${date}
br /
message: ${message}
/t:block

t:actionlink t:id=theLink t:zone=zoneToUpdateclick
me!/t:actionlink

t:form t:id=theForm t:zone=zoneToUpdate
t:textfield t:value=message /
br /
t:submit /
/t:form

hr/

t:zone t:id=zoneToUpdate
Content before update
/t:zone

/body
/html

--Test.java--
public class Test
{
@Inject
private Block someBlock;
@Inject
private Block dynamicBlock;

@Property
private String message;

public String getDate()
{
return new Date().toString();
}

@OnEvent(component=theLink, value=action)
private Block actionFromTheLink()
{
return someBlock;
}

@OnEvent(component=theForm, value=success)
private Block successFromTheForm()
{
return dynamicBlock;
}
}


2008/3/11, Janko Muzykant [EMAIL PROTECTED]:
  

Tapestry's page mentions about zones and update-divs but i'm not able


to


find
even one example how to use them. is there anyone who successfully


tried


to
use these features?

cheers,
m.


--
View this message in context:
http://www.nabble.com/T5-ajax-zones-example-tp15991696p15991696.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
/ted


  

--
View this message in context:
http://www.nabble.com/T5-ajax-zones-example-tp15991696p16000137.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


T5 ajax zones example

2008-03-11 Thread Janko Muzykant

Tapestry's page mentions about zones and update-divs but i'm not able to find
even one example how to use them. is there anyone who successfully tried to
use these features?

cheers,
m.

-- 
View this message in context: 
http://www.nabble.com/T5-ajax-zones-example-tp15991696p15991696.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zones example

2008-03-11 Thread Ted Steen
This is a simple example showing ajax with and without forms.
Hope it helps!

--Test.tml--
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
headtitleAjax test/title/head
body
t:block t:id=someBlock
Boring block
/t:block

t:block t:id=dynamicBlock
fun dynamic block!
br /
date on server ${date}
br /
message: ${message}
/t:block

t:actionlink t:id=theLink t:zone=zoneToUpdateclick
me!/t:actionlink

t:form t:id=theForm t:zone=zoneToUpdate
t:textfield t:value=message /
br /
t:submit /
/t:form

hr/

t:zone t:id=zoneToUpdate
Content before update
/t:zone

/body
/html

--Test.java--
public class Test
{
@Inject
private Block someBlock;
@Inject
private Block dynamicBlock;

@Property
private String message;

public String getDate()
{
return new Date().toString();
}

@OnEvent(component=theLink, value=action)
private Block actionFromTheLink()
{
return someBlock;
}

@OnEvent(component=theForm, value=success)
private Block successFromTheForm()
{
return dynamicBlock;
}
}


2008/3/11, Janko Muzykant [EMAIL PROTECTED]:


 Tapestry's page mentions about zones and update-divs but i'm not able to
 find
 even one example how to use them. is there anyone who successfully tried
 to
 use these features?

 cheers,
 m.


 --
 View this message in context:
 http://www.nabble.com/T5-ajax-zones-example-tp15991696p15991696.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
/ted


Re: T5 ajax zones example

2008-03-11 Thread Janko Muzykant

thanks Ted!
that helped me a lot. one additional question. is it possible to mark as
'zone-to-update' something different than a form element? a simple div for
example?



Ted Steen wrote:
 
 This is a simple example showing ajax with and without forms.
 Hope it helps!
 
 cut
 -- 
 /ted
 
 

-- 
View this message in context: 
http://www.nabble.com/T5-ajax-zones-example-tp15991696p15993669.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 ajax zones example

2008-03-11 Thread Ted Steen
I'm not sure that I understand what you mean?
The zone is replaced by a div (I think) and then the content of that div is
updated with the return values from the event handlers.


2008/3/11, Janko Muzykant [EMAIL PROTECTED]:


 thanks Ted!
 that helped me a lot. one additional question. is it possible to mark as
 'zone-to-update' something different than a form element? a simple div for
 example?




 Ted Steen wrote:
 
  This is a simple example showing ajax with and without forms.
  Hope it helps!
 

  cut
  --
  /ted
 
 


 --
 View this message in context:
 http://www.nabble.com/T5-ajax-zones-example-tp15991696p15993669.html

 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
/ted


Re: T5 ajax zones example

2008-03-11 Thread Mark W. Shead

On Mar 11, 2008, at 8:00 PM, Weisu wrote:

Hi Ted, I had tried your example, but I can not make the form part  
to work,

it only displays Content before update. I am using T5.0.10.


I am using 5.0.11, but I had to change:

   @OnEvent(component=theForm, value=success)

to

   @OnEvent(component=theForm, value=action)

The link worked before the change.  It was just the form that said  
undefined.


Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] AJAX form submit

2008-02-28 Thread Adriaan Joubert
Hi,

I have a form that needs to change the view in a zone on a page. So I
use the new (5.0.11-SNAPSHOT) form with a zone (fantastic stuff,
Howard!)

t:form t:id=choose zone=allocations
t:label for=liquidated
Show liquidated funds
/t:label
t:checkbox t:id=liquidated value=liquidatedShown
onClick=this.form.onsubmit()/
 input type=submit value=Choose/
/t:form

t:zone t:id=allocations
t:delegate to=block:allocationsForm /
/t:zone

Rather than using the submit button, I want to submit the form when
the state of the checkbox changes. I discovered fairly quickly that
using 'this.form.submit()' posts directly and circumvents the
javascript, but some digging showed that this.form.onsubmit() does the
job.

This works fine, but I get a javascript error out of Tapestry.js:

The error is at line 159 below, because the event is undefined. Would
it be possible to check for an undefined event here? Or is there some
way in which I can add an event to the onSubmit()?

I'd appreciate any suggestions!

Cheers,

Adriaan

142 if (element.tagName == FORM)
143 {
144 // The existing handler, if present, will be responsible for form
validations, which must
145 // come before submitting the form via XHR.
146
147 var existingHandler = element.onsubmit;
148
149 var handler = function(event)
150 {
151 if (existingHandler != undefined)
152 {
153 var existingResult = existingHandler.call(element, event);
154 if (! existingResult) return false;
155 }
156
157 element.request({ onSuccess : successHandler });
158
159 event.stop();
160
161 return false;
162 };
163
164 element.onsubmit = handler;
165
166 return;
167 }

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: Ajax update of BeanEditForm on drop-down select?

2008-01-15 Thread Franz Amador
I'm using BeanEditForm to generate a form that includes a drop-down selector.  
I'd like to get an event when the user selects a value so I can update other 
fields in the form, preferably via a partial-page Ajax-style update.  Is this 
possible?  If so, is there an example I can look at?  If not, is there a way to 
do this with a regular form?  Thanks!



Re: T5: Ajax update of BeanEditForm on drop-down select?

2008-01-15 Thread Howard Lewis Ship
This is coming soon, but it won't be part of BeanEditForm ... to get
that level of interactivity will require that you spell out your
individual fields and labels, along with extra components  mixins to
describe the Ajax functionality to Tapestry.

On Jan 15, 2008 2:44 PM, Franz Amador [EMAIL PROTECTED] wrote:
 I'm using BeanEditForm to generate a form that includes a drop-down selector. 
  I'd like to get an event when the user selects a value so I can update other 
 fields in the form, preferably via a partial-page Ajax-style update.  Is this 
 possible?  If so, is there an example I can look at?  If not, is there a way 
 to do this with a regular form?  Thanks!





-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Ajax update of BeanEditForm on drop-down select?

2008-01-15 Thread Sven Homburg
arrgl  today i've checked in my first ajax mixin OnChange.
i think i must slow down my development ;-)

2008/1/16, Howard Lewis Ship [EMAIL PROTECTED]:

 This is coming soon, but it won't be part of BeanEditForm ... to get
 that level of interactivity will require that you spell out your
 individual fields and labels, along with extra components  mixins to
 describe the Ajax functionality to Tapestry.

 On Jan 15, 2008 2:44 PM, Franz Amador [EMAIL PROTECTED] wrote:
  I'm using BeanEditForm to generate a form that includes a drop-down
 selector.  I'd like to get an event when the user selects a value so I can
 update other fields in the form, preferably via a partial-page Ajax-style
 update.  Is this possible?  If so, is there an example I can look at?  If
 not, is there a way to do this with a regular form?  Thanks!
 
 



 --
 Howard M. Lewis Ship

 Creator Apache Tapestry and Apache HiveMind

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
with regards
Sven Homburg


T5: AJAX and Firefox doesn't work

2008-01-02 Thread Britske

A strange thing happens. 

following an example of returning a streamresponse based on a user-click,
this all works well in IE7 but not in Firefox. Instead firefox exectutes the
action and the simply fires an onActivate-event rendering the action useless
(the page is simply loaded again as if the action wasn't fired. ) 

Anyone knows whats happening here? (I know this may nog be tapestry-related,
but I'm not sure. )

- template --

script type=text/javascript
function handleResponse (xhrResponse){
alert (xhrResponse.responseText);
}

function asyncCall (){
new Ajax.Request ('${quickSearchBoxLink}',
{asynchronous:true,onSuccess:handleResponse});
}
/script

button onclick=asyncCall();Do AJAX Call/button


-- class --

/**
 * Generates a URI to the server-side function for the XHR
 * to use.
 *
 * @return the link
 */
public String getQuickSearchBoxLink ()  {
Link l = getResources().createActionLink 
(quickSearchBoxAction, false);
return l.toURI();
}

/**
 * This is a server-side method called via XHR that returns
 * some text.
 *
 * @return some text
 */
private StreamResponse onQuickSearchBoxAction (){
return new TextStreamResponse (text/html, Five bucks below 
the belt. 
That's how I roll.);
}

Thanks, (and a happy New Year!)

Geert-Jan
-- 
View this message in context: 
http://www.nabble.com/T5%3A-AJAX-and-Firefox-doesn%27t-work-tp14575595p14575595.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: T5: AJAX and Firefox doesn't work

2008-01-02 Thread Yeeswara Nadapana (HCL Financial Services)

Hi,

I want to use like t:loop source=filterList which is a List of
String objects. I want to add those strings to the combo box... so
trying to loop through the option tag... Please explain how to add
those elements to combo box?

Thanks,
Yeeswar.

-Original Message-
From: Britske [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 02, 2008 3:13 PM
To: users@tapestry.apache.org
Subject: T5: AJAX and Firefox doesn't work


A strange thing happens. 

following an example of returning a streamresponse based on a
user-click,
this all works well in IE7 but not in Firefox. Instead firefox exectutes
the
action and the simply fires an onActivate-event rendering the action
useless
(the page is simply loaded again as if the action wasn't fired. ) 

Anyone knows whats happening here? (I know this may nog be
tapestry-related,
but I'm not sure. )

- template --

script type=text/javascript
function handleResponse (xhrResponse){
alert (xhrResponse.responseText);
}

function asyncCall (){
new Ajax.Request ('${quickSearchBoxLink}',
{asynchronous:true,onSuccess:handleResponse});
}
/script

button onclick=asyncCall();Do AJAX Call/button


-- class --

/**
 * Generates a URI to the server-side function for the XHR
 * to use.
 *
 * @return the link
 */
public String getQuickSearchBoxLink ()  {
Link l = getResources().createActionLink
(quickSearchBoxAction, false);
return l.toURI();
}

/**
 * This is a server-side method called via XHR that returns
 * some text.
 *
 * @return some text
 */
private StreamResponse onQuickSearchBoxAction (){
return new TextStreamResponse (text/html, Five bucks
below the belt. 
That's how I roll.);
}

Thanks, (and a happy New Year!)

Geert-Jan
-- 
View this message in context:
http://www.nabble.com/T5%3A-AJAX-and-Firefox-doesn%27t-work-tp14575595p1
4575595.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DISCLAIMER:
---
The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.
---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: AJAX and Firefox doesn't work

2008-01-02 Thread Howard Lewis Ship
That's supposed to work; there was a bug in 5.0.6 that may have caused
this behavior (and is fixed in 5.0.7).

On Jan 2, 2008 1:43 AM, Britske [EMAIL PROTECTED] wrote:

 A strange thing happens.

 following an example of returning a streamresponse based on a user-click,
 this all works well in IE7 but not in Firefox. Instead firefox exectutes the
 action and the simply fires an onActivate-event rendering the action useless
 (the page is simply loaded again as if the action wasn't fired. )

 Anyone knows whats happening here? (I know this may nog be tapestry-related,
 but I'm not sure. )

 - template --

 script type=text/javascript
 function handleResponse (xhrResponse){
 alert (xhrResponse.responseText);
 }

 function asyncCall (){
 new Ajax.Request ('${quickSearchBoxLink}',
 {asynchronous:true,onSuccess:handleResponse});
 }
 /script

 button onclick=asyncCall();Do AJAX Call/button


 -- class --

 /**
  * Generates a URI to the server-side function for the XHR
  * to use.
  *
  * @return the link
  */
 public String getQuickSearchBoxLink ()  {
 Link l = getResources().createActionLink 
 (quickSearchBoxAction, false);
 return l.toURI();
 }

 /**
  * This is a server-side method called via XHR that returns
  * some text.
  *
  * @return some text
  */
 private StreamResponse onQuickSearchBoxAction (){
 return new TextStreamResponse (text/html, Five bucks below 
 the belt.
 That's how I roll.);
 }

 Thanks, (and a happy New Year!)

 Geert-Jan
 --
 View this message in context: 
 http://www.nabble.com/T5%3A-AJAX-and-Firefox-doesn%27t-work-tp14575595p14575595.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: AJAX and Firefox doesn't work

2008-01-02 Thread Britske

somehow the bug doesn't appear anymore.  I'm running 5.0.6 so it could be
related. I'll investigate once I encounter it again. 


Howard Lewis Ship wrote:
 
 That's supposed to work; there was a bug in 5.0.6 that may have caused
 this behavior (and is fixed in 5.0.7).
 
 On Jan 2, 2008 1:43 AM, Britske [EMAIL PROTECTED] wrote:

 A strange thing happens.

 following an example of returning a streamresponse based on a user-click,
 this all works well in IE7 but not in Firefox. Instead firefox exectutes
 the
 action and the simply fires an onActivate-event rendering the action
 useless
 (the page is simply loaded again as if the action wasn't fired. )

 Anyone knows whats happening here? (I know this may nog be
 tapestry-related,
 but I'm not sure. )

 - template --

 script type=text/javascript
 function handleResponse (xhrResponse){
 alert (xhrResponse.responseText);
 }

 function asyncCall (){
 new Ajax.Request ('${quickSearchBoxLink}',
 {asynchronous:true,onSuccess:handleResponse});
 }
 /script

 button onclick=asyncCall();Do AJAX Call/button


 -- class --

 /**
  * Generates a URI to the server-side function for the XHR
  * to use.
  *
  * @return the link
  */
 public String getQuickSearchBoxLink ()  {
 Link l = getResources().createActionLink
 (quickSearchBoxAction, false);
 return l.toURI();
 }

 /**
  * This is a server-side method called via XHR that returns
  * some text.
  *
  * @return some text
  */
 private StreamResponse onQuickSearchBoxAction (){
 return new TextStreamResponse (text/html, Five bucks
 below the belt.
 That's how I roll.);
 }

 Thanks, (and a happy New Year!)

 Geert-Jan
 --
 View this message in context:
 http://www.nabble.com/T5%3A-AJAX-and-Firefox-doesn%27t-work-tp14575595p14575595.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 
 -- 
 Howard M. Lewis Ship
 
 Creator Apache Tapestry and Apache HiveMind
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-AJAX-and-Firefox-doesn%27t-work-tp14575595p14581723.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 Ajax - Which Ajax/Javascript framework will be next?

2007-12-26 Thread Daniel Jue
 I thought that Dojo was *the* standard framework of choice of Tapestry 4. Am
 I missing something here?

Fixed.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5 Ajax - Which Ajax/Javascript framework will be next?

2007-12-25 Thread Jan Vissers
Reading http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html
I'm just wondering what Ajax/Javascript 'du jour' will be in T5.0.8

I thought that Dojo was *the* standard framework of choice of Tapestry. Am
I missing something here?

-J.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 Ajax - Which Ajax/Javascript framework will be next?

2007-12-25 Thread Chris Lewis
I'd say you are missing something: this is Tapestry 5. If I'm not 
mistaken prototype has been the choice since the beginning of T5 - 
hardly 'du jour'. There has been chatter here and there about having a 
pluggable system for using the JS of your choice, however I don't think 
this has received any official attention from Howard.


Jan Vissers wrote:

Reading http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html
I'm just wondering what Ajax/Javascript 'du jour' will be in T5.0.8

I thought that Dojo was *the* standard framework of choice of Tapestry. Am
I missing something here?

-J.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] Ajax architecture

2007-09-26 Thread Borut Bolčina
Hello,

does anyone know if similar drawing exist for T5?
http://www.icefaces.org/main/product/architecture.iface

It is not meant to be provocative - I just need to be objective in my report
for our future web framework. I am very well aware that ability to build
custom components easily outweighs the number of prepared (available)
components - but still...

Regards,
Borut


T5: Ajax, Releases

2007-08-22 Thread Angelo Chen

Hi,
  looking at T5's roadmap, it says ajax support will be in by summer 2007,
is the ajax already part of some beta versions? and will soon be in a
pre-release? and T5's final release is Fall, 2007, possible?

Thanks,

A.C.

  
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Ajax%2C-Releases-tf4314840.html#a12285626
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] Ajax tests

2007-08-16 Thread David Avenante
Hi,

I play with T5 and want to explore Ajax capacity.

I need to know which service is responsible on the instantiation of a
component.

Is it possible to have a resume (classes implied) of how Tapestry process
component instantiation.

Thanks for any input ;)


T5: Ajax example for Tapestry 5

2007-07-10 Thread easy-to-remember
Has anyone got an example of a T5 example application that uses Ajax components?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5 - Ajax

2007-05-29 Thread Anderson Balduíno

Hi,

   I am new in tapestry and I would like to know if somebody could help me
in an integration AJAX with T5. I Need to make one ajax call to reconstruct
one grid. Which would be the best form to make it? Which toolkit Javascript
I could use? I Thank any suggestion will be appreciated.

Regards,
Anderson