RE: T5: Progress indicator and AJAX example?

2010-12-13 Thread Newham, Cameron
Thank you Thiago and Richard.



-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 10 December 2010 11:14
To: Tapestry users
Subject: Re: T5: Progress indicator and AJAX example?

On Fri, 10 Dec 2010 09:04:49 -0200, Newham, Cameron cameron.new...@bl.uk  
wrote:

 Hi,

Hi!

 I imagine that if I wanted just a simple field on a page that updated
 with a % then I would have Javascript make an AJAX get and obtain a
 value from the server. However, as I'm a complete newbie to AJAX, an
 example of how to do this would be extremely helpful.

The AJAX part itself is completely Tapestry-unrelated and there are many  
examples in the Internet, maybe even in this mailing list archives. I  
answered something similar yesterday. The AJAX Prototype documentation is  
here: http://api.prototypejs.org/ajax/Ajax/Request/.

 Example silly
 questions: does my field have to be in a Zone?

No, as long as you write your own JavaScript code to do and handle an AJAX  
request and then update the page DOM.

 Also, would the % value updated by my process just be held in a @Persist
 field?

Absolutely no. Just get the % value when handling the request. You don't  
even need a field for that.

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


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



Re: Updating a CheckBox Value via Ajax Call

2010-12-13 Thread alanhay

Okay, no-one can help with this?

That's why I will probably never use this framework again: the almost
complete lack of any associated community or resources.
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Updating-a-CheckBox-Value-via-Ajax-Call-tp3300400p3302969.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: Updating a CheckBox Value via Ajax Call

2010-12-13 Thread Sven Homburg
Have a nice day

with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org





2010/12/13 alanhay alan@cigna.com:

 Okay, no-one can help with this?

 That's why I will probably never use this framework again: the almost
 complete lack of any associated community or resources.
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Updating-a-CheckBox-Value-via-Ajax-Call-tp3300400p3302969.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: Updating a CheckBox Value via Ajax Call

2010-12-13 Thread Thiago H. de Paula Figueiredo

On Mon, 13 Dec 2010 09:18:45 -0200, alanhay alan@cigna.com wrote:


Okay, no-one can help with this?


This is a Tapestry 4 question. Almost everybody in this list is using  
Tapestry 5 already.



That's why I will probably never use this framework again: the almost
complete lack of any associated community or resources.


Lack of community? Just because your question, which is about an old  
version of Tapestry, wasn't answered? Have you checked the number of  
questions being posted and answered and commented every day in this  
mailing list? The new documentation? JumpStart? Our new committers?


You can complain about anything you want, but please check your arguments  
before posting.


--
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: Updating a CheckBox Value via Ajax Call

2010-12-13 Thread alanhay

This is a Tapestry 4 question. Almost everybody in this list is using   
Tapestry 5 already. 

So where are people using Tapestry 4 meant to seek help?

Lack of community? Just because your question, which is about an old   
version of Tapestry, wasn't answered? 

Well I'm sure I could find plenty of places where I might get an answer on,
say, for example, a question relating to Struts 1.

Have you checked the number of   
questions being posted and answered and commented every day in this   
mailing list? 

Yes, as you say all around Tapestry 5.

The new documentation? JumpStart? Our new committers? 

Well I have read the documentation and have an issue whereby something does
not work as I expected. I am therefore seeking help from someone who may
have more knowledge of these things. As you point out however no-one in
really interested in Tapestry 4 any more.

You can complain about anything you want, but please check your arguments   
before posting. 

I think your points above have simply reinforced the point I made vis a vis
the lack of community.

-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Updating-a-CheckBox-Value-via-Ajax-Call-tp3300400p3303003.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: Updating a CheckBox Value via Ajax Call

2010-12-13 Thread Christophe Cordenier
Hi Alan !

Just an advice, when refering to T4 you should precise it in your post
title. I am sure people in here have experience with T4 and if they can
help, they'll do it.

But be sure this kind of comments won't help you, this is unrespectful
regarding all the efforts people are making to help each other in the
community.

Regards

2010/12/13 alanhay alan@cigna.com


 This is a Tapestry 4 question. Almost everybody in this list is using
 Tapestry 5 already.

 So where are people using Tapestry 4 meant to seek help?

 Lack of community? Just because your question, which is about an old
 version of Tapestry, wasn't answered?

 Well I'm sure I could find plenty of places where I might get an answer on,
 say, for example, a question relating to Struts 1.

 Have you checked the number of
 questions being posted and answered and commented every day in this
 mailing list?

 Yes, as you say all around Tapestry 5.

 The new documentation? JumpStart? Our new committers?

 Well I have read the documentation and have an issue whereby something does
 not work as I expected. I am therefore seeking help from someone who may
 have more knowledge of these things. As you point out however no-one in
 really interested in Tapestry 4 any more.

 You can complain about anything you want, but please check your arguments
 before posting.

 I think your points above have simply reinforced the point I made vis a vis
 the lack of community.

 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Updating-a-CheckBox-Value-via-Ajax-Call-tp3300400p3303003.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




-- 
Regards,
Christophe Cordenier.

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


AjaxFormLoop in Tapestry 5.1.0.8-SNAPSHOT

2010-12-13 Thread Marcos Mainar
Hi there everyone,

I am using Tapestry 5.1.0.5 and in one of my pages I have an AjaxFormLoop.
In order to get rid of this error
https://issues.apache.org/jira/browse/TAP5-733 , I updated to Tapestry
5.1.0.8-SNAPSHOT using this Maven repository
http://repository.apache.org/snapshots/org/apache/tapestry/. However, now
neither the Add row link nor the Delete row one are working, they just don't
have any effect when you click on them.

Does anyone have any hints on what's happening?

Thanks a lot,

Marcos Mainar


Re: AjaxFormLoop in Tapestry 5.1.0.8-SNAPSHOT

2010-12-13 Thread Christophe Cordenier
Hi

Do you have any stacktrace or javascript error to share with us ?

2010/12/13 Marcos Mainar marcosmai...@gmail.com

 Hi there everyone,

 I am using Tapestry 5.1.0.5 and in one of my pages I have an AjaxFormLoop.
 In order to get rid of this error
 https://issues.apache.org/jira/browse/TAP5-733 , I updated to Tapestry
 5.1.0.8-SNAPSHOT using this Maven repository
 http://repository.apache.org/snapshots/org/apache/tapestry/. However, now
 neither the Add row link nor the Delete row one are working, they just
 don't
 have any effect when you click on them.

 Does anyone have any hints on what's happening?

 Thanks a lot,

 Marcos Mainar




-- 
Regards,
Christophe Cordenier.

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


Re: Updating a CheckBox Value via Ajax Call

2010-12-13 Thread Andreas Andreou
i'm not sure why the checkbox's checked state isn't updated after the
ajax response
(it might as well be a bug) but i'm pretty sure it'll work if you
request an update
of the dom node (or component) that surrounds the checkbox

On Mon, Dec 13, 2010 at 14:49, Christophe Cordenier
christophe.corden...@gmail.com wrote:
 Hi Alan !

 Just an advice, when refering to T4 you should precise it in your post
 title. I am sure people in here have experience with T4 and if they can
 help, they'll do it.

 But be sure this kind of comments won't help you, this is unrespectful
 regarding all the efforts people are making to help each other in the
 community.

 Regards

 2010/12/13 alanhay alan@cigna.com


 This is a Tapestry 4 question. Almost everybody in this list is using
 Tapestry 5 already.

 So where are people using Tapestry 4 meant to seek help?

 Lack of community? Just because your question, which is about an old
 version of Tapestry, wasn't answered?

 Well I'm sure I could find plenty of places where I might get an answer on,
 say, for example, a question relating to Struts 1.

 Have you checked the number of
 questions being posted and answered and commented every day in this
 mailing list?

 Yes, as you say all around Tapestry 5.

 The new documentation? JumpStart? Our new committers?

 Well I have read the documentation and have an issue whereby something does
 not work as I expected. I am therefore seeking help from someone who may
 have more knowledge of these things. As you point out however no-one in
 really interested in Tapestry 4 any more.

 You can complain about anything you want, but please check your arguments
 before posting.

 I think your points above have simply reinforced the point I made vis a vis
 the lack of community.

 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Updating-a-CheckBox-Value-via-Ajax-Call-tp3300400p3303003.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




 --
 Regards,
 Christophe Cordenier.

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




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



Using custom annotations to perform dependency injection

2010-12-13 Thread tarruda

 I have some JBoss seam services that get autowired to each other by the
runtime using the @In annotation
(http://docs.jboss.org/seam/1.1GA/api/org/jboss/seam/annotations/In.html) on
its fields. I want to use Tapestry IOC container for performing unit tests
on these components and for that I want tapestry to autowire any mocks I put
on its registry. Can I reuse the Seam @In annotations to perform dependency
injection, or do I need to create field accessors ?
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-custom-annotations-to-perform-dependency-injection-tp3303325p3303325.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



Referencing and displaying image asset from Webapp

2010-12-13 Thread Rich M

Hi,

I'm having a hard time figuring out how to dynamically display some 
images I have in a sub-path of my webapp/ folder in my Tapestry 
application (1.5.0.5).


I have db entities that store the names of files in a folder in 
webapp/layout/images/products/, and in a TML page using a grid, I want 
to be able to display these images.


The only way I was able to get an image to display was to provide a path 
like: /app/assets/ctx/1.0/layout/images/products/${prod.imageLink}


That gave me problems with my Application filter/dispatcher, however, as 
it seemed to regard this is a page access outside the scope of the 
user-session context and log out the user.


I'm pretty sure I shouldn't be hardcoding that reference to the asset 
from a url anyway, how can I have it load the image through tapestry 
like all the other images in the site, like the ones I load through CSS 
that do not break the application filter/dispatcher?


I hope I was clear enough as to what my problem is.

Thanks,
Rich

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



RE: Image file upload with Easy FCKEditor

2010-12-13 Thread 9902468

Yes, the php parts are totally replaced by Java, the Java implementation is
http://java.fckeditor.net/

EasyFCKEditor is just a bridge between that and T5.

It seems that the configuration that is provided by EasyFCK gets replaced
with configuration which points to php implementation. Any chance that your
fck editor conf declares that?

 - Ville 
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Image-file-upload-with-Easy-FCKEditor-tp3277128p3304140.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: Using FCKEditor in Tapestry 5

2010-12-13 Thread 9902468

The editor part is easy. To enable file uploads seamlessly you need more than
just a textfield and js init: you need java backend that communicates with
the editor and properly set's up server configuration also (Where do you
write images or flash or what not files, how you expose those to web etc.).
EasyFCK editor was designed to aid with this.

 - Ville
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-FCKEditor-in-Tapestry-5-tp3293559p3304144.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: Image file upload with Easy FCKEditor

2010-12-13 Thread 9902468

To make myself clearer :) FCK editor defaults to php backend if no
configuration is supplied, but the php backend can be replaced with any
language implementation as long as it just implements all needed aspects.
With T5 pure Java implementation was the only way to go.

 - Ville
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Image-file-upload-with-Easy-FCKEditor-tp3277128p3304146.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