Re: [t5.3.1 - AjaxFormLoop] How to prevent removing the last row ?

2012-10-18 Thread Taha Siddiqi
You can return HttpError but that will also result in a error alert.


On Oct 19, 2012, at 2:50 AM, Muhammad Gelbana wrote:

> Would it be easier to override the http return code ? I'm not sure if
> that's even possible but it would be easier to write a line of java code
> than to override the javascript stack I guess.
> 
> On Thu, Oct 18, 2012 at 3:17 AM, Taha Siddiqi wrote:
> 
>> Hi
>> 
>> The formLoopRemoveLink does not check the return status but the removal is
>> done only on a HTTP OK(200) status.
>> 
>> You can override this js method with your custom logic.
>> 
>> regards
>> Taha
>> 
>> 
>> On Oct 18, 2012, at 3:28 AM, Muhammad Gelbana wrote:
>> 
>>> Am I lucky enough to get a positive answer now that we now reached
>> v5.3.6 ?
>>> 
>>> Thank you all :)
>>> 
>>> On Wed, Mar 14, 2012 at 10:28 PM, Muhammad Gelbana >> wrote:
>>> 
 Greetings to this magnificent mailing list and tapestry developers :)
 
 I have a perfectly operating ajax form loop but I'm trying to find a way
 to prevent the user from removing the last row in the form.
 In an annotated method to handle the remove row events from the ajax
>> form
 loop, I've done the proper checks and tried returning false and null but
 nothing worked. Has anyone done this before ?
 
 My goal is to prevent the removal of the last ajax form loop row and
 display a java script alert to clarify the error.
 
 Thanks.
 
 --
 *Regards,*
 *Muhammad Gelbana
 Java Developer*
 
 
>> 
>> 
>> -
>> 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



Re: New article re: T5-Flash integration

2012-10-18 Thread ael
Ioko-Tapestry-Commons 1.11.0 is compatible with T5.3.6 :)

https://github.com/ioko-tapestry-commons/ioko-tapestry-commons

Just build the source to have a jar file.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/New-article-re-T5-Flash-integration-tp2422860p5717048.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 5.3 with Tapestry-swfobject 1.5.0 not working.

2012-10-18 Thread ael
Ioko-Tapestry-Commons 1.11.0 is compatible with T5.3.6 :)

https://github.com/ioko-tapestry-commons/ioko-tapestry-commons

Just build the source to have a jar file.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-with-Tapestry-swfobject-1-5-0-not-working-tp5717023p5717047.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.3.1 - AjaxFormLoop] How to prevent removing the last row ?

2012-10-18 Thread Muhammad Gelbana
Would it be easier to override the http return code ? I'm not sure if
that's even possible but it would be easier to write a line of java code
than to override the javascript stack I guess.

On Thu, Oct 18, 2012 at 3:17 AM, Taha Siddiqi wrote:

> Hi
>
> The formLoopRemoveLink does not check the return status but the removal is
> done only on a HTTP OK(200) status.
>
> You can override this js method with your custom logic.
>
> regards
> Taha
>
>
> On Oct 18, 2012, at 3:28 AM, Muhammad Gelbana wrote:
>
> > Am I lucky enough to get a positive answer now that we now reached
> v5.3.6 ?
> >
> > Thank you all :)
> >
> > On Wed, Mar 14, 2012 at 10:28 PM, Muhammad Gelbana  >wrote:
> >
> >> Greetings to this magnificent mailing list and tapestry developers :)
> >>
> >> I have a perfectly operating ajax form loop but I'm trying to find a way
> >> to prevent the user from removing the last row in the form.
> >> In an annotated method to handle the remove row events from the ajax
> form
> >> loop, I've done the proper checks and tried returning false and null but
> >> nothing worked. Has anyone done this before ?
> >>
> >> My goal is to prevent the removal of the last ajax form loop row and
> >> display a java script alert to clarify the error.
> >>
> >> Thanks.
> >>
> >> --
> >> *Regards,*
> >> *Muhammad Gelbana
> >> Java Developer*
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Event parameter on the form or Multiple from handle in one method

2012-10-18 Thread Thiago H de Paula Figueiredo
On Thu, 18 Oct 2012 16:02:38 -0300, bhorvat   
wrote:



I like this approach.

btw is there any particular reason why this can not be achieved?  
Something> similar like event link that has parameter event. Or better  
yet ability to put multiple OnEvent annotations on one method or to  
specify mutiple

components in one OnEvent?


That would just complicate Tapestry for something that would be useful for  
just a couple of situations. In other words, bad cost-benefit ratio.


--
Thiago H. de Paula Figueiredo

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



Re: Event parameter on the form or Multiple from handle in one method

2012-10-18 Thread bhorvat
Thiago H de Paula Figueiredo wrote
> the event handler could just invoke another method  
> that handles forms 1, 2 and 3 and invoke another method for form 4.
> -- 
> Thiago H. de Paula Figueiredo
> 
> -

I like this approach. 

btw is there any particular reason why this can not be achieved? Something
similar like event link that has parameter event. Or better yet ability to
put multiple OnEvent annotations on one method or to specify mutiple
components in one OnEvent?




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Event-parameter-on-the-form-or-Multiple-from-handle-in-one-method-tp5717020p5717044.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: Event parameter on the form or Multiple from handle in one method

2012-10-18 Thread Thiago H de Paula Figueiredo
On Thu, 18 Oct 2012 15:02:23 -0300, bhorvat   
wrote:



Hi Taha,


Hi!

Well my main concern is how can I have a few t:form and have them  
process by
the same method. If I omit the form id in the OnEvent annotation then I  
can achieve that. However then that method is triggered for all other  
forms as well.


In other words. How can I make it so that form 1,2 and 3 is process by  
one method and form 4 by a different method.


You can't. You either have a single method for all them, using the context  
to know which form was submitted, or you have one event handler for that.  
In the first option, the event handler could just invoke another method  
that handles forms 1, 2 and 3 and invoke another method for form 4.


--
Thiago H. de Paula Figueiredo

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



Re: Event parameter on the form or Multiple from handle in one method

2012-10-18 Thread bhorvat
Hi Taha,

Well my main concern is how can I have a few t:form and have them process by
the same method. If I omit the form id in the OnEvent annotation then I can
achieve that. However then that method is triggered for all other forms as
well.

In other words. How can I make it so that form 1,2 and 3 is process by one
method and form 4 by a different method. 

Thanks for help

Cheers
Boris



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Event-parameter-on-the-form-or-Multiple-from-handle-in-one-method-tp5717020p5717042.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: How to make a zone refresh with a JavaScript polling?

2012-10-18 Thread dinesh707
Hi, it is working fine. I had some JS bugs created becouse of using jQuery in
the same code. When i fix all those problems it started to work. Thank you
all



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032p5717041.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: How to make a zone refresh with a JavaScript polling?

2012-10-18 Thread dinesh707
I tried the jump start demo. it compiles and run without any errors. But it
do not refresh the time as its shown in demo. It will call only the
"getServerTime()" once.  and it never calls the "onRefreshTimeZone()". Any
idea whats going on there?

I have some other codes in the system too. So its not plane time refreshing
system





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032p5717039.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: Update value in frontend by push from backend?

2012-10-18 Thread Lance Java
https://github.com/uklance/tapestry-cometd



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Update-value-in-frontend-by-push-from-backend-tp5717037p5717038.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: How to make a zone refresh with a JavaScript polling?

2012-10-18 Thread Charlouze
Hey,

You can also try this one :
http://java.dzone.com/articles/periodic-zone-refresh-mixin

I have been using it in one of my company application and it works great.

Charles.

2012/10/18 Dieter Sauvillers 

> Hi,
>
> have look at the periodic ajax update from jumpstart
>
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/periodicupdate
>
>
> On 18 October 2012 12:57, dinesh707  wrote:
> > I need to refresh a page zone. Is there a way that I write the JavaScript
> > code to call some method in Tapesrty (Java) code and it will refresh the
> > zone. Else how can i achieve this?
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032.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
>
>


Re: How to make a zone refresh with a JavaScript polling?

2012-10-18 Thread Lance Java
I've created a push library for tapestry here:
https://github.com/uklance/tapestry-cometd



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032p5717035.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: How to create custom using t:loop functionality

2012-10-18 Thread Dusko Jovanovski
The jumpstart project is an awesome resource for beginners
http://jumpstart.doublenegative.com.au/jumpstart/examples/

For your scenario, take a look at
http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/linkingloop1

On Wed, Oct 17, 2012 at 3:28 PM, dinesh707  wrote:

> Hi, I'm very new to tapestry. I have a video call where it contains "video
> name","uploader's name" and URL.  So i need to make a list appear in web
> page with video name appearing in
>  and and uploaders name in normal text (one below the other.  And if some
> one click the whole container (div container which includes video name and
> uploader name) i need to pass that video url to the player. How can i
> achive
> multiple elements appear in same div using single loop and how to make them
> clickbale with different parameter throwing.
>
>
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/How-to-create-custom-div-using-t-loop-functionality-tp5717002.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: How to make a zone refresh with a JavaScript polling?

2012-10-18 Thread Dieter Sauvillers
Hi,

have look at the periodic ajax update from jumpstart

http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/periodicupdate


On 18 October 2012 12:57, dinesh707  wrote:
> I need to refresh a page zone. Is there a way that I write the JavaScript
> code to call some method in Tapesrty (Java) code and it will refresh the
> zone. Else how can i achieve this?
>
>
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/How-to-make-a-zone-refresh-with-a-JavaScript-polling-tp5717032.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



Re: Why ActionLink Click is not working?

2012-10-18 Thread Kristian Marinkovic
Hi,

check the value of the context; if it is not set (null) only
onActionFromPlay() will be called; use the EventContext if you want to
catch this use case;

g,
Kris

On Thu, Oct 18, 2012 at 9:14 AM, dinesh707  wrote:
> Follofwing are some of my code parts. The system.out even do not create any
> output on ActionLink click. what am i doing wrong?
>
> Object onActionFromPlay(int videoId){
> System.out.println("onActionFromPlay(int videoId) CLICKED
> ===");
> Video _v;
> for (int i=0; i _v = videos.get(i);
> if (_v.getId() == videoId)
> currentVideo = _v;
> }
>
> if(request.isXHR())
> return videoZone.getBody();
> else
> return null;
>
> }
>
>
> 

t:id="play" > context="video.id" > t:zone="videoZone">Play Video > > > The Video I = ${currentvideo.name} > > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Why-ActionLink-Click-is-not-working-tp5717030.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


Why ActionLink Click is not working?

2012-10-18 Thread dinesh707
Follofwing are some of my code parts. The system.out even do not create any
output on ActionLink click. what am i doing wrong?

Object onActionFromPlay(int videoId){
System.out.println("onActionFromPlay(int videoId) CLICKED
===");
Video _v;
for (int i=0; iPlay Video


The Video I = ${currentvideo.name} 





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Why-ActionLink-Click-is-not-working-tp5717030.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