Re: T5: porting to Got5-JQuery > how to use former Tapestry.ElementEffect ?

2010-10-22 Thread Andreas Andreou
i think you have quite an elegant solution here - i'll make sure to apply
this to the 5.2 branch and i guess it'll also appear in master soon

On Sat, Oct 23, 2010 at 00:22, gbrits  wrote:
>
> for people that might run into this:
>
> I didn't know that ElementEffect was the prototype way of handling things,
> jquery handles effects differently.
> Moreover, it's best practise to observe Tapestry.ZONE_UPDATED_EVENT instead
> of misusing an effect which is only meant for visual purposes.
>
> The problem is, at the moment the GOT jquery implementation of a zone
> doesn't trigger the Tapestry.ZONE_UPDATED_EVENT.
>
> I raised a ticket at http://github.com/got5/tapestry5-jquery/
> in the mean time you can plug this in your own js to be able to listen to
> the ZONE_UPDATED_EVENT
>
> hth,
> Geert-Jan
>
>
>
> /* extending "ui.tapestryZone":
>  * - ability to update update-feedback functions
>  * - firing Tapestry.ZONE_UPDATED_EVENT on zone-update
>  * - fixing show vs update effecs (they were reversed)  quick hack.
>  * */
> $.extend($.ui.tapestryZone.prototype, {
>        setoptions: function(opt) {
>                this.options=opt;
>        },
>        /**
>         * Refresh a zone
>         * @zoneId
>         * @url to request
>         * @params optional, can contain data. Request will switch from GET to 
> POST
>         */
>        update: function(specs) {
>            var el = this.element;
>
>            ajaxRequest = {
>                url: specs.url,
>                success: function(data) {
>                    el.html(data.content);
>                    el.effect(effect);
>                    $.tapestry.utils.loadScriptsInReply(data);
>                    el.trigger(Tapestry.ZONE_UPDATED_EVENT);
>                }
>            };
>
>            if (specs.params != undefined) {
>                ajaxRequest = $.extend(ajaxRequest, {
>                    type: 'post',
>                    data: specs.params
>                })
>            }
>
>            effect = el.is(":visible") ? this.options.show : 
> this.options.update;
>
>            $.ajax(ajaxRequest);
>        }
>
> });
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/T5-porting-to-Got5-JQuery-how-to-use-former-Tapestry-ElementEffect-tp3231132p3232973.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
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry PMC / Tacos developer
Open Source / JEE Consulting

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



Re: T5: porting to Got5-JQuery > how to use former Tapestry.ElementEffect ?

2010-10-22 Thread gbrits

for people that might run into this: 

I didn't know that ElementEffect was the prototype way of handling things,
jquery handles effects differently.
Moreover, it's best practise to observe Tapestry.ZONE_UPDATED_EVENT instead
of misusing an effect which is only meant for visual purposes. 

The problem is, at the moment the GOT jquery implementation of a zone
doesn't trigger the Tapestry.ZONE_UPDATED_EVENT. 

I raised a ticket at http://github.com/got5/tapestry5-jquery/
in the mean time you can plug this in your own js to be able to listen to
the ZONE_UPDATED_EVENT

hth, 
Geert-Jan



/* extending "ui.tapestryZone":
 * - ability to update update-feedback functions 
 * - firing Tapestry.ZONE_UPDATED_EVENT on zone-update 
 * - fixing show vs update effecs (they were reversed)  quick hack.
 * */
$.extend($.ui.tapestryZone.prototype, { 
setoptions: function(opt) {
this.options=opt;
},
/**
 * Refresh a zone
 * @zoneId
 * @url to request
 * @params optional, can contain data. Request will switch from GET to 
POST
 */
update: function(specs) {
var el = this.element;

ajaxRequest = {
url: specs.url,
success: function(data) {
el.html(data.content);
el.effect(effect);
$.tapestry.utils.loadScriptsInReply(data);
el.trigger(Tapestry.ZONE_UPDATED_EVENT);
}
};

if (specs.params != undefined) {
ajaxRequest = $.extend(ajaxRequest, {
type: 'post',
data: specs.params
})
}

effect = el.is(":visible") ? this.options.show : 
this.options.update;

$.ajax(ajaxRequest);
}

});


-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-porting-to-Got5-JQuery-how-to-use-former-Tapestry-ElementEffect-tp3231132p3232973.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



Re: T5.1 IFrame and src context

2010-10-22 Thread Richard Hill
To answer my own question:

@Inject
private PageRenderLinkSource prls;


public String getFrameSrc() {

Link l = prls.createPageRenderLinkWithContext
  (DiffReportHTML.class,getContext());

return l.toAbsoluteURI();

}

Sorry for unnecessary post (late friday afternoon, brain switching
off) :)


-Original Message-
From: Richard Hill 
Reply-to: r...@su3analytics.com
To: Tapestry users 
Subject: T5.1 IFrame and src context
Date: Fri, 22 Oct 2010 16:30:58 +0100

Hi All,

I have an  in my T5.1 page. The src is another page served by
the same tapestry webapp. The page to be loaded in the  takes 2
parameters, a string and an int, as activation context. How do I
construct the value of the src to correctly link to the page with the
correctly formatted activation parameters?

Thanks very much,

Richard

 



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




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



T5.1 IFrame and src context

2010-10-22 Thread Richard Hill
Hi All,

I have an  in my T5.1 page. The src is another page served by
the same tapestry webapp. The page to be loaded in the  takes 2
parameters, a string and an int, as activation context. How do I
construct the value of the src to correctly link to the page with the
correctly formatted activation parameters?

Thanks very much,

Richard

 



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



Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread Thiago H. de Paula Figueiredo
On Fri, 22 Oct 2010 12:10:38 -0200, Taha Hafeez   
wrote:



Just move the annotation out of the pages package.


This is one of the most common pitfalls Tapestry beginners fall: never  
never never put something in a pages, components or mixins package that  
isn't a page, component or mixin.



Although I don't know the internals of tapestry that well but I think
because pages and components packages have live reloading they may be  
loaded from different classloaders...


Taha, you're absolutely correct. ;)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread Taha Hafeez
Just move the annotation out of the pages package.

Although I don't know the internals of tapestry that well but I think
because pages and components packages have live reloading they may be loaded
from different classloaders...

regards
Taha


On Fri, Oct 22, 2010 at 7:19 PM, shinlang wrote:

>
> Hi Thiago,
>
> thanks for your reply. I will certainly give that a try, but i won't be in
> the office until monday. I'm not sure, if i stated my problem right (as i'm
> quite new to tapestry). I am not dynamically adding the annotation to the
> class, as far as i can see, so getting it from the component source should
> work, shouldn't it?
>
> There is a test project that desscribes the problem, it can be found at
> http://satansoft.de/tapestry/annotationtest.zip.
>
> In the TestFilter class you can see how i try to get the annotation from
> the
> page.
>
> Btw, i'm using Tapestry 5.2...
>
> Regards,
> Sascha
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Annotations-and-ComponentRequestFilter-Problem-tp3232159p3232277.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
>
>


Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread shinlang

Hi Thiago,

thanks for your reply. I will certainly give that a try, but i won't be in
the office until monday. I'm not sure, if i stated my problem right (as i'm
quite new to tapestry). I am not dynamically adding the annotation to the
class, as far as i can see, so getting it from the component source should
work, shouldn't it? 

There is a test project that desscribes the problem, it can be found at
http://satansoft.de/tapestry/annotationtest.zip.

In the TestFilter class you can see how i try to get the annotation from the
page.

Btw, i'm using Tapestry 5.2...

Regards,
Sascha
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Annotations-and-ComponentRequestFilter-Problem-tp3232159p3232277.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



Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread shinlang

Hi taha,

you can find an example project here:
http://satansoft.de/tapestry/annotationtest.zip

It uses a very simple setup to show the problem. In TestFilter.java in the
annotationTest() method you can see that the upper test case is not working,
but the lower case is working well.

Regards,
Sascha
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Annotations-and-ComponentRequestFilter-Problem-tp3232159p3232236.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



Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread Thiago H. de Paula Figueiredo
On Fri, 22 Oct 2010 10:25:03 -0200, shinlang   
wrote:



Hi,


Hi!


I have of course read the article at
http://tapestryjava.blogspot.com/2009/12/securing-tapestry-pages-with.html,
and i can't see any difference:

Component page = componentSource.getPage(pageName);
if (! page.getClass().isAnnotationPresent(RequiresLogin.class)) {
return false;
}


This doesn't work if you add the annotation after you started the  
application. Another way of doing that, which works well with live class  
reloading (you add, remove or change an annotation and it automatically  
works) is using a worker. This is the one which handles the @Secure  
annotation in Tapestry:


public class SecureWorker implements ComponentClassTransformWorker
{
public void transform(ClassTransformation transformation,  
MutableComponentModel model)

{
Secure secure = transformation.getAnnotation(Secure.class);

if (secure != null)
model.setMeta(MetaDataConstants.SECURE_PAGE, "true");
}
}

You can get the ComponentModel of a given page or component instance using  
getComponentResources().getComponentModel().


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: Tapestry's own security module

2010-10-22 Thread Thiago H. de Paula Figueiredo
On Fri, 22 Oct 2010 10:26:11 -0200, Taha Hafeez   
wrote:



Actually I had already read the article. But then this argument is not
applicable to security alone...


We're discussing security. :)


what we generally do is take the generalizations together and create a
module... right ?


I don't think so. Trying to do everything at the same time almost never  
ends with something with good quality. I have one security package and so  
does ChenilleKit. Both have different models that couldn't be merged  
without creating a very ugly, hard to use and understand Frankenstein.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread Taha Hafeez
Can you share the code

taha


On Fri, Oct 22, 2010 at 5:55 PM, shinlang wrote:

>
> Hi,
>
> i'm having a problem using custom annotations and a ComponentRequestFilter.
> I am defining my own class annotation (TestAnnotation) and a test class
> (Index) that uses this annotation.
>
> In my ComponentRequestFilter however, when i am checking the page class
> (via
> componentSource.getPage().getClass(), it doesn't have the annotation.
> However, When i try to read the annotation on the class itself (using
> Index.class), it's working.
>
> Therefore i assume this has something to do with class transformation in
> tapestry, it seems like the class annotation isn't present in the
> transformed class anymore.
>
> I have of course read the article at
> http://tapestryjava.blogspot.com/2009/12/securing-tapestry-pages-with.html
> ,
> and i can't see any difference:
>
> Component page = componentSource.getPage(pageName);
> if (! page.getClass().isAnnotationPresent(RequiresLogin.class)) {
>return false;
> }
>
> is exactly what I'm using (except for the different variable names...), it
> just doesn't work.
>
> When i try
>
> Index.class.isAnnotationPresent(TestAnnotation.class)
>
> it returns true, just as expected.
>
> If anyone got a good idea, i'd be very thankful.
>
> Regards,
> Sascha
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Annotations-and-ComponentRequestFilter-Problem-tp3232159p3232159.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
>
>


Re: Tapestry's own security module

2010-10-22 Thread Taha Hafeez
Actually I had already read the article. But then this argument is not
applicable to security alone...

what we generally do is take the generalizations together and create a
module... right ?

taha


On Fri, Oct 22, 2010 at 5:45 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 22 Oct 2010 08:45:11 -0200, Taha Hafeez 
> wrote:
>
>  Hi,
>>
>
> Hi!
>
>  Just curious (It may end up as a foolish question!)  why don't we have
>> a tapestry-security module which is generic and can have plugins like shino
>> or spring-security or a simple role based model ?
>>
>
> Not a foolish question at all. It was even asked before in this list. :)
>
> Short answer: there's no single model that covers all the situations.
> Long answer: read this discussion:
> http://tapestry.1045711.n5.nabble.com/Tapestry-Central-Securing-Tapestry-pages-with-Annotations-Part-1-td2400516.html#a2400534
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, 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
>
>


Annotations and ComponentRequestFilter Problem

2010-10-22 Thread shinlang

Hi,

i'm having a problem using custom annotations and a ComponentRequestFilter.
I am defining my own class annotation (TestAnnotation) and a test class
(Index) that uses this annotation.

In my ComponentRequestFilter however, when i am checking the page class (via
componentSource.getPage().getClass(), it doesn't have the annotation.
However, When i try to read the annotation on the class itself (using
Index.class), it's working.

Therefore i assume this has something to do with class transformation in
tapestry, it seems like the class annotation isn't present in the
transformed class anymore.

I have of course read the article at
http://tapestryjava.blogspot.com/2009/12/securing-tapestry-pages-with.html,
and i can't see any difference:

Component page = componentSource.getPage(pageName);
if (! page.getClass().isAnnotationPresent(RequiresLogin.class)) {
return false;
}

is exactly what I'm using (except for the different variable names...), it
just doesn't work.

When i try 

Index.class.isAnnotationPresent(TestAnnotation.class)

it returns true, just as expected.

If anyone got a good idea, i'd be very thankful.

Regards,
Sascha
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Annotations-and-ComponentRequestFilter-Problem-tp3232159p3232159.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



Re: Tapestry's own security module

2010-10-22 Thread Thiago H. de Paula Figueiredo
On Fri, 22 Oct 2010 08:45:11 -0200, Taha Hafeez   
wrote:



Hi,


Hi!

Just curious (It may end up as a foolish question!)  why don't we  
have a tapestry-security module which is generic and can have plugins  
like shino or spring-security or a simple role based model ?


Not a foolish question at all. It was even asked before in this list. :)

Short answer: there's no single model that covers all the situations.
Long answer: read this discussion:  
http://tapestry.1045711.n5.nabble.com/Tapestry-Central-Securing-Tapestry-pages-with-Annotations-Part-1-td2400516.html#a2400534


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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



Tapestry's own security module

2010-10-22 Thread Taha Hafeez
Hi,

Just curious (It may end up as a foolish question!)  why don't we have a
tapestry-security module which is generic and can have plugins like shino or
spring-security or a simple role based model ?

This will make security pluggable.

We can have tapestry specific authorizations

@AuthorizeComponent({"deny=principal:someone", "admin,user"},
unauthorizeAction={DISABLE|HIDE|AUTHORIZE|RENDER_READONLY})

@AuthorizeEvent

@Authorize

regards
Taha


Re: Fwd: [Announce] Tapestry 5.2 Demo application

2010-10-22 Thread Christophe Cordenier
Hi !

Yes there is a tynamo branch, the work is in progress but you can already
test it !

Note : to get fresh informations on project evolution, you can register on
github and follow the project, you will be informed of commits by email. I
repeat myself, but everyone here can contribute by commenting, reporting
issues, forking, patching and so on ...

2010/10/22 Alejandro Scandroli 

> Is there a tynamo branch?? excellent!! :)
>
>
> On Fri, Oct 22, 2010 at 8:32 AM, Katia Aresti Gonzalez
>  wrote:
> > There is no security framework
> > just tapestry following Howard's tutorial
> > in the tynamo branch we use tynamo security, but this branch is not
> finished
> > yet. We will use tynamo conversations too.
> >
> > 2010/10/22 ael 
> >
> >>
> >> What Security Framework this you use for this project?
> >> --
> >> View this message in context:
> >>
> http://tapestry.1045711.n5.nabble.com/Fwd-Announce-Tapestry-5-2-Demo-application-tp3230348p3231528.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
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Regards,
Christophe Cordenier.

Committer on Apache Tapestry 5
Co-creator of wooki @wookicentral.com


Re: Fwd: [Announce] Tapestry 5.2 Demo application

2010-10-22 Thread Alejandro Scandroli
Is there a tynamo branch?? excellent!! :)


On Fri, Oct 22, 2010 at 8:32 AM, Katia Aresti Gonzalez
 wrote:
> There is no security framework
> just tapestry following Howard's tutorial
> in the tynamo branch we use tynamo security, but this branch is not finished
> yet. We will use tynamo conversations too.
>
> 2010/10/22 ael 
>
>>
>> What Security Framework this you use for this project?
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/Fwd-Announce-Tapestry-5-2-Demo-application-tp3230348p3231528.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
>>
>>
>

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



T5 Guide: Working Shopping Cart. Feel Free to comment...

2010-10-22 Thread ael

This is my shopping cart using SSO.

TbCart.Class

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dash.ssocart.entities;

/**
 *
 * @author alan
 */
public class TbCart implements java.io.Serializable {

private String items;

public TbCart() {
}

public TbCart(String items) {
this.items = items;
}

public String getItems() {
return items;
}

public void setItems(String items) {
this.items = items;
}
}



UserSession.Class

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dash.ssocart.sso;

import com.dash.ssocart.entities.TbCart;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author alan
 */
public class UserSession {

   private List tbcart = new ArrayList();
   private TbCart items;

public List getTbcart() {
return tbcart;
}

public void setTbcart(List tbcart) {
this.tbcart = tbcart;
}

public TbCart getItems() {
return items;
}

public void setItems(TbCart items) {
this.items = items;
tbcart.add(items);
}
}



Index.java

package com.dash.ssocart.pages;

import com.dash.ssocart.entities.TbCart;
import com.dash.ssocart.sso.UserSession;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.annotations.SessionState;

/**
 * Start page of application SSOCart.
 */
public class Index
{
@SessionState
@Property
private UserSession usersession;
private boolean usersessionExists;

Object onActivate(){

// Create New Cart Items
TbCart c = new TbCart("Tapestry Book");

usersession.setItems(c);

return null;
}
}



About.java

package com.dash.ssocart.pages;

import com.dash.ssocart.entities.TbCart;
import com.dash.ssocart.sso.UserSession;
import java.util.List;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.annotations.SessionState;

public class About
{

@SessionState
@Property
private UserSession usersession;
private boolean usersessionExists;


public List getCart(){

return usersession.getTbcart();
}

}



About.tml


 



Practice made perfect...
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-Guide-Working-Shopping-Cart-Feel-Free-to-comment-tp3231907p3231907.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



Re: T5: porting to Got5-JQuery > how to use former Tapestry.ElementEffect ?

2010-10-22 Thread gbrits

thanks, i'll have a look

2010/10/22 Andreas Andreou-4 [via Tapestry] <
ml-node+3231498-238900553-91...@n5.nabble.com
>

> I took a look and it shouldnt be hard to add this ...
> The important file is tapestry-jquery.js and around line 150
> there's a definition for a ui.tapestryZone widget
>
> So, you need to modify the update function of the widget
> to lookup functions in the Tapestry.ElementEffect namespace
> and have them run.
>
> On Thu, Oct 21, 2010 at 21:58, gbrits <[hidden 
> email]>
> wrote:
>
> >
> > I'm porting my tapestry application to jquery using  Got5-JQuery and it
> looks
> > great!
> > One thing I can't figure out though:
> >
> > tapestry allows registering callbacks on zoneupdates, etc. using:
> >
> > Tapestry.ElementEffect.
> >
> > e.g for illustration purposes I had:
> >
> > Tapestry.ElementEffect.updateavailtrigger = function(element){
> >   alert('yeah');
> > }
> >
> > However Tapestry.ElementEffect isn't recognized anymore by the new jquery
>
> > client-code.
> >
> > I had a quick look at the tapestry.js (the jquery one)  but couldn't
> figure
> > it out.
> >
> > Anyone knows how to define such a callback?
> >
> > Thanks,
> > Geert-Jan
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-porting-to-Got5-JQuery-how-to-use-former-Tapestry-ElementEffect-tp3231132p3231132.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
> >
>
>
>
> --
> Andreas Andreou - [hidden 
> email]-
> http://blog.andyhot.gr 
> Tapestry PMC / Tacos developer
> Open Source / JEE Consulting
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  View message @
> http://tapestry.1045711.n5.nabble.com/T5-porting-to-Got5-JQuery-how-to-use-former-Tapestry-ElementEffect-tp3231132p3231498.html
> To unsubscribe from T5: porting to Got5-JQuery > how to use former
> Tapestry.ElementEffect ?, click 
> here.
>
>
>

-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-porting-to-Got5-JQuery-how-to-use-former-Tapestry-ElementEffect-tp3231132p3231882.html
Sent from the Tapestry - User mailing list archive at Nabble.com.