Re: T5: 5.2.4 and assets protection

2011-01-09 Thread Christian Riedel
.1045711.n5.nabble.com/T5-5-2-4-and-assets-protection-tp637p637.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

Re: T5: 5.2.4 and assets protection

2011-01-09 Thread Christian Riedel
-- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-5-2-4-and-assets-protection-tp637p710.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: T5: 5.2.4 and assets protection

2011-01-09 Thread Angelo C.
you can try that with the hotel booking demo: http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/assets/1.2-SNAPSHOT/ctx/ at lest two files are listed: Book.tml favi -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-5-2-4-and-assets-protection

Re: [T5] Complexity for simple things, where is the documentation?

2011-01-09 Thread Borut Bolčina
Thanks! 2011/1/8 Taha Hafeez tawus.tapes...@gmail.com Hi Borut.. With pleasure. var PeriodicAjaxUpdater = Class.create({ initialize:function(params){ this.element = $(params.element); this.url = params.url; this.period = params.period; $T(this.element).zoneId =

Re: T5: 5.2.4 and assets protection

2011-01-09 Thread Thiago H. de Paula Figueiredo
On Sun, 09 Jan 2011 09:32:28 -0200, Angelo C. angelochen...@gmail.com wrote: you can try that with the hotel booking demo: http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/assets/1.2-SNAPSHOT/ctx/ at lest two files are listed: Book.tml favi They're listed, but .tml files can't

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-08 Thread Angelo C.
Hi Thiago, so T5 uses Hibernate 3.6? here is a dependency tree I got from my pom.xml, T5.2.4 pulls out hibernate 3.6: [INFO] +- org.apache.tapestry:tapestry-hibernate:jar:5.2.4:compile [INFO] | \- org.apache.tapestry:tapestry-hibernate-core:jar:5.2.4:compile [INFO

t5: something learned from upgrading from 5.1.0.5 to 5.2.4

2011-01-08 Thread Angelo C.
Hi, was able to upgrade a mid size t5 app from 5.1.0.5 to 5.2.4, still testing every aspect, something learned so far: 1) Hibernate 3.6 will be used, so two changes: use http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd; in hibernate.cfg.xml if there is a mappedBy

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-08 Thread Josh Canfield
I haven't done any research, but are we actually using features from 3.6? Shouldn't tapestry depend on the oldest forward compatible version possible, and let the app developer override it? On Jan 8, 2011 2:28 AM, Angelo C. angelochen...@gmail.com wrote: Hi Thiago, so T5 uses Hibernate 3.6

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-08 Thread Thiago H. de Paula Figueiredo
On Sat, 08 Jan 2011 08:27:46 -0200, Angelo C. angelochen...@gmail.com wrote: Hi Thiago, Hi! so T5 uses Hibernate 3.6? Tapestry(-core) doesn't use Hibernate at all. Tapestry-Hibernate does. As far as I can remember, the dependency scope is provided, i.e, it will use the Hibernate

Re: t5: something learned from upgrading from 5.1.0.5 to 5.2.4

2011-01-08 Thread Thiago H. de Paula Figueiredo
On Sat, 08 Jan 2011 12:54:25 -0200, Angelo C. angelochen...@gmail.com wrote: Hi, Hi! was able to upgrade a mid size t5 app from 5.1.0.5 to 5.2.4, still testing every aspect, something learned so far: 1) Hibernate 3.6 will be used, so two changes: use http://www.hibernate.org

T5: 5.2.4 and memory

2011-01-08 Thread Angelo C.
-01-09 13:54:52.357 java[1093:903] Internal JNF Error: failed calling Throwable.toString() -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-5-2-4-and-memory-tp624p624.html Sent from the Tapestry - User mailing list archive at Nabble.com

T5: 5.2.4 and assets protection

2011-01-08 Thread Angelo C.
version1.0.0/version am I right? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-5-2-4-and-assets-protection-tp637p637.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: 5.2.4 and assets protection

2011-01-08 Thread Alex Kotchnev
. and is there a new version for 5.2.4? this still works for 5.2.4: groupIdcom.saiwaisolutions /groupId artifactIdAssetProtectionDispatcher/artifactId version1.0.0/version am I right? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-5-2-4

Re: T5: 5.2.4 and memory

2011-01-08 Thread Alex Kotchnev
] JavaNativeFoundation error occurred obtaining Java exception description 2011-01-09 13:54:52.357 java[1093:903] Internal JNF Error: failed calling Throwable.toString() -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-5-2-4-and-memory-tp624p624.html Sent from

Re: T5: 5.2.4 and memory

2011-01-08 Thread Yohan Yudanara
://tapestry.1045711.n5.nabble.com/T5-5-2-4-and-memory-tp624p624.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional

Re: t5: zone, blocks, and form - simple question

2011-01-07 Thread Sergio Esteves
No, it is not an ajax request (tested with the isXHR). The form can't find the specified zone on its parameter, and I don't know why. I have something like zone0(block0( zone1(block1(...) block2(form-zone1(...) block3(.... On 06-01-2011 23:38, Thiago H. de Paula Figueiredo wrote: On Thu,

Re: t5: zone, blocks, and form - simple question

2011-01-07 Thread Sergio Esteves
Ok, I used the zone0 and it worked. On 07-01-2011 10:51, Sergio Esteves wrote: No, it is not an ajax request (tested with the isXHR). The form can't find the specified zone on its parameter, and I don't know why. I have something like zone0(block0( zone1(block1(...) block2(form-zone1(...)

t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Angelo C.
artifactIdhibernate-annotations/artifactId version3.2.1.ga/version /dependency -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-upgrading-from-5-1-0-5-to-5-2-4-tp3331829p3331829.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Josh Canfield
/version scopetest/scope /dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-annotations/artifactId version3.2.1.ga/version /dependency -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-upgrading-from-5-1-0-5-to-5-2-4-tp3331829p3331829.html Sent from

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Angelo C.
'HibernateSessionSource'): Associations marked as mappedBy must not define database mappings like @JoinTable or @JoinColumn: sample.t5.entities.User.details but the same app runs in 5.1.0.5 -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-upgrading-from-5-1-0-5-to-5-2-4

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Thiago H. de Paula Figueiredo
All the information you'll need is in the error messages. Your project had the Hibernate dependency upgraded to 3.6. On Fri, 07 Jan 2011 13:44:08 -0200, Angelo C. angelochen...@gmail.com wrote: I just replaced the version number from 5.1.0.5 to 5.2.4 and compile, run, the first error is:

Re: [T5] Complexity for simple things, where is the documentation?

2011-01-07 Thread Borut Bolčina
Taha, can you please post the PeriodicAjaxUpdater.js also? Cheers, Borut 2010/10/17 Taha Hafeez tawus.tapes...@gmail.com May be this helps! // // Mixin // package tapestrydemo.mixins; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.BindingConstants; import

Re: [T5] Complexity for simple things, where is the documentation?

2011-01-07 Thread Taha Hafeez
Hi Borut.. With pleasure. var PeriodicAjaxUpdater = Class.create({ initialize:function(params){ this.element = $(params.element); this.url = params.url; this.period = params.period; $T(this.element).zoneId = params.zone; var self = this; new

t5: trigger a shell script from t5 app

2011-01-06 Thread Angelo C.
Hi, This might not be a t5 related question, how to trigger a shell script from t5 app? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-trigger-a-shell-script-from-t5-app-tp3330203p3330203.html Sent from the Tapestry - User mailing list archive

Re: t5: trigger a shell script from t5 app

2011-01-06 Thread Paul Stanton
just like any other java program, you can do java.lang.Runtime.exec or download apache commons-exec and use org.apache.commons.exec.DefaultExecutor. p. On 6/01/2011 8:56 PM, Angelo C. wrote: Hi, This might not be a t5 related question, how to trigger a shell script from t5 app? Thanks

t5: zone, blocks, and form - simple question

2011-01-06 Thread Sergio Esteves
Hi all, I have the following code: div t:type=Zone t:id=theZone t:delegate to=block:firstBlock / t:block id=firstBlock ... /t:block t:block id=secondBlock form t:type=form t:zone=theZone ... /form /t:block t:block id=thirdBlock ... /t:block /div The problem is I

Re: t5: zone, blocks, and form - simple question

2011-01-06 Thread Sergio Esteves
OK, I have one more zone with a block that contains the code I posted bellow. On 06-01-2011 17:02, Sergio Esteves wrote: Hi all, I have the following code: div t:type=Zone t:id=theZone t:delegate to=block:firstBlock / t:block id=firstBlock ... /t:block t:block id=secondBlock form

Re: t5: zone, blocks, and form - simple question

2011-01-06 Thread Thiago H. de Paula Figueiredo
On Thu, 06 Jan 2011 21:29:08 -0200, Josh Canfield joshcanfi...@gmail.com wrote: Are you sure that your request was coming via ajax? There is an event result processor for BlockImpl when the request is ajax, but not if it's a traditional request. Good point. Inject Request and use its

Re: [T5] Removing project name and port number from URL

2010-12-31 Thread Michal Gruca
it is 8443, change that to 443 in order to avoid adding port number to https connections Regards Michał Gruca -- View this message in context: http://tapestry-users.832.n2.nabble.com/T5-Removing-project-name-and-port-number-from-URL-tp5876705p5877869.html Sent from the Tapestry Users mailing

Re: T5: archiving a page

2010-12-31 Thread Joost Schouten (ml)
, is there any maven dependencies I can directly specify to pull down the Flying Saucer? or some codes that I can directly use in a T5 app? Thanks, Angelo Joost Schouten (mailing lists) wrote: Another option is to use Flying Saucer [1] to render the html in pure java. I use it with iText [2] to create pdf's

[T5] Removing project name and port number from URL

2010-12-30 Thread niksami
? Is this the best way to resolve my problem? Regards. - Niksa Mijanovic Java developer, jr. www.fleka.me -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Removing-project-name-and-port-number-from-URL-tp3322312p3322312.html Sent from the Tapestry - User mailing list

Re: [T5] Removing project name and port number from URL

2010-12-30 Thread Donny Nadolny
-filemyApp/welcome-file  /welcome-file-list in web.xml. Will that work on Jetty too? Is this the best way to resolve my problem? Regards. - Niksa Mijanovic Java developer, jr. www.fleka.me -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Removing-project-name

Re: [T5] Removing project name and port number from URL

2010-12-30 Thread niksami
Thanks, I'll try that. :) - Niksa Mijanovic Java developer, jr. www.fleka.me -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Removing-project-name-and-port-number-from-URL-tp3322312p3322495.html Sent from the Tapestry - User mailing list archive at Nabble.com

T5: archiving a page

2010-12-30 Thread Angelo C.
Hi, Is there a way to archive a page? say render it into a jpeg or a pdf ? Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-archiving-a-page-tp3322541p3322541.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: archiving a page

2010-12-30 Thread Donny Nadolny
. angelochen...@gmail.com wrote: Hi, Is there a way to archive a page? say render it into a jpeg or a pdf ? Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-archiving-a-page-tp3322541p3322541.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: archiving a page

2010-12-30 Thread Angelo C.
Thanks for the quick answer, not so familiar with selenium, can it be run headless in the server? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-archiving-a-page-tp3322541p3322591.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: archiving a page

2010-12-30 Thread Donny Nadolny
it be run headless in the server? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-archiving-a-page-tp3322541p3322591.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe

Re: T5: archiving a page

2010-12-30 Thread Joost Schouten (mailing lists)
, Angelo C. angelochen...@gmail.com wrote: Thanks for the quick answer, not so familiar with selenium, can it be run headless in the server? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-archiving-a-page-tp3322541p3322591.html Sent from the Tapestry - User mailing

Re: T5: archiving a page

2010-12-30 Thread Markus Feindler
Have a look at https://xhtmlrenderer.dev.java.net/ , it's exactly what you need. Selenium is neither suitable nor made for your use case. Hi, Is there a way to archive a page? say render it into a jpeg or a pdf ? Angelo -

Re: T5: archiving a page

2010-12-30 Thread Donny Nadolny
: Thanks for the quick answer, not so familiar with selenium, can it be run headless in the server? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-archiving-a-page-tp3322541p3322591.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: archiving a page

2010-12-30 Thread Martin Strand
If Java is not required, you could use CutyCapt to render the page: http://cutycapt.sourceforge.net/ It supports jpeg, pdf and more. On Thu, 30 Dec 2010 16:23:15 +0100, Angelo C. angelochen...@gmail.com wrote: Hi, Is there a way to archive a page? say render it into a jpeg or a pdf ?

Re: T5: archiving a page

2010-12-30 Thread Angelo C.
Hi Joost, This is a good solution, is there any maven dependencies I can directly specify to pull down the Flying Saucer? or some codes that I can directly use in a T5 app? Thanks, Angelo Joost Schouten (mailing lists) wrote: Another option is to use Flying Saucer [1] to render the html

t5: building injected objects

2010-12-29 Thread Sergio Esteves
Hi all, If I have a class with this: �...@inject @OfflineJob engine;» and my project class: «OfflineJob buildFoo(@InjectService(EjbContext) Context ejbContext) throws NamingException { ... } OfflineJob buildBar(@InjectService(EjbContext) Context ejbContext) throws NamingException { ... }»

Re: t5: building injected objects

2010-12-29 Thread Robert Zeigler
Both could be built, but you'll get an exception at runtime because Tapestry can't disambiguate which service you want injected. You would need to either specify the service id of (foo or bar) of the service you want injected, or else mark the two services in some way and use said marker

Re: t5: building injected objects

2010-12-29 Thread Sergio Esteves
The service id is the word that appears after the build? Like, if I do this: «OfflineJob buildFoo(@InjectService(EjbContext) Context ejbContext) throws NamingException { ... } OfflineJob buildBar(@InjectService(EjbContext) Context ejbContext) throws NamingException { ... }» Will I be able to

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-26 Thread Thiago H. de Paula Figueiredo
On Sat, 25 Dec 2010 14:54:17 -0200, Sergio Esteves sergio.este...@xpand-it.com wrote: Hi, Hi! I have tried to do this: tml: «... ${foo} ...» java: «... public void foo() { count++; } ...» (I tried with void getFoo() too) With all due respect, this is a very bad idea. Please post what

T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Sergio Esteves
Hi, I have tried to do this: tml: «... ${foo} ...» java: «... public void foo() { count++; } ...» (I tried with void getFoo() too) But without success. The thing is the returning type of void. Thanks. - To unsubscribe,

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Taha Hafeez
You can't in T5. May I ask what are you trying to do ? regards Taha On Sat, Dec 25, 2010 at 10:24 PM, Sergio Esteves sergio.este...@xpand-it.com wrote: Hi, I have tried to do this: tml: «... ${foo} ...» java: «... public void foo() { count++; } ...» (I tried with void getFoo() too

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Sergio Esteves
I'm using an ajaxformloop and I'm trying to simulate the index of the component loop, without making a new component. So, in each iteration of the loop I increment a variable that I use after in the components within the loop. Regards. On 25-12-2010 16:59, Taha Hafeez wrote: You can't in T5

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Taha Hafeez
in T5. May I ask what are you trying to do ? regards Taha On Sat, Dec 25, 2010 at 10:24 PM, Sergio Esteves sergio.este...@xpand-it.com wrote: Hi, I have tried to do this: tml: «... ${foo} ...» java: «... public void foo() { count++; } ...» (I tried with void getFoo() too) But without

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Sergio Esteves
trying to simulate the index of the component loop, without making a new component. So, in each iteration of the loop I increment a variable that I use after in the components within the loop. Regards. On 25-12-2010 16:59, Taha Hafeez wrote: You can't in T5. May I ask what are you trying to do

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Taha Hafeez
Hafeez wrote: You can't in T5. May I ask what are you trying to do ? regards Taha On Sat, Dec 25, 2010 at 10:24 PM, Sergio Esteves sergio.este...@xpand-it.com wrote: Hi, I have tried to do this: tml: «... ${foo} ...» java: «... public void foo() { count++; } ...» (I

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Josh Canfield
to simulate the index of the component loop, without making a new component. So, in each iteration of the loop I increment a variable that I use after in the components within the loop. Regards. On 25-12-2010 16:59, Taha Hafeez wrote: You can't in T5. May I ask what are you trying

Re: t5: using Tapestry with Memcached

2010-12-23 Thread Dmitry Gusev
Here is a few scenarios I when used memcached with T5: http://dmitrygusev.blogspot.com/2010/09/tapestry5-caching-method-results.html http://dmitrygusev.blogspot.com/2010/09/tapestry5-caching-method-results.html http://dmitrygusev.blogspot.com/2010/09/gae-and-tapestry5-data-access-layer.html

t5: using Tapestry with Memcached

2010-12-22 Thread Angelo C.
Hi, Anybody tried T5 with Memcached? has good performance? any wiki on this? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-using-Tapestry-with-Memcached-tp3315939p3315939.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: t5: using Tapestry with Memcached

2010-12-22 Thread Borut Bolčina
Yes, we have used memcached, but it has nothing to do with T5. Are you asking for memcached performance? -borut 2010/12/23 Angelo C. angelochen...@gmail.com Hi, Anybody tried T5 with Memcached? has good performance? any wiki on this? Thanks, Angelo -- View this message in context

Re: T5 disable loading specified module

2010-12-21 Thread LLTYK
: http://tapestry-users.832.n2.nabble.com/T5-disable-loading-specified-module-tp3127241p5855485.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

t5: getting locale in a page class

2010-12-17 Thread Angelo C.
in Chinese: http://localhist/zh ? Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-getting-locale-in-a-page-class-tp3310211p3310211.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: t5: getting locale in a page class

2010-12-17 Thread Angelo C.
looks like I did not search enough, turned out, should use: @Inject private ThreadLocale locale; -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-getting-locale-in-a-page-class-tp3310211p3310214.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: t5: getting locale in a page class

2010-12-17 Thread Howard Lewis Ship
I did not search enough, turned out, should use: @Inject private ThreadLocale locale; -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-getting-locale-in-a-page-class-tp3310211p3310214.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: Javascript problem

2010-12-16 Thread Andreas Andreou
I dont like this way of refering to nodes ( document.entryForm.oosComment ) i'm not sure how many browsers fully support this but it looks like this can work when nodes have the name attribute set. If i remember correctly, T5.1 used to include a name in each form but this was removed in 5.2 -

RE: T5: Javascript problem

2010-12-16 Thread Newham, Cameron
Thanks Andreas. Yes, name attribute was the problem. I've changed to using getElementById and it's working again. c. -Original Message- From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of Andreas Andreou Sent: 16 December 2010 10:12 To: Tapestry users Subject: Re: T5

Re: T5: Javascript problem

2010-12-16 Thread Nicolas Barrera
of annotations in the Java class. About t5/js documentation I can tell you about this link I found useful: http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained please take into account that annotation's names may vary between version 5.1.x.x and 5.2.x.x... I don't remember quite well about

Re: T5: Javascript problem

2010-12-16 Thread Nicolas Barrera
Yes, it's true it might not be the fastest or easiest way, but I think it's good that Tapestry forces you to things the right way. Nicolás.-

Re: T5: Javascript problem

2010-12-16 Thread Richard Hill
One use case I have for putting javascript in .tml is to get a function to execute after a zone update. Due to Tapestry attaching onclick event handlers to actionlinks (as opposed to using onclick attribute), it's not that easy afaik to guarantee your own method will get called afterwards (the

T5 Guide: Building T5.2.4 Application Using Netbeans 6.9.1

2010-12-16 Thread ael
Name-Finish. 7. Wait for the Application to be created. (Processing Archetype) Wait for the libraries to be downloaded. ^_^ You have a working Tapestry Application... Thank Guys GOOD JOB :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Guide-Building-T5-2-4

RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
] Sent: 12 December 2010 01:35 To: Tapestry users Subject: Re: T5: Progress indicator and AJAX example? Hi It is very simple. In ProgressBar#afterRender an event timer is created which is passed on to javascript. Javascript is a periodicExecuter with period passed as a parameter. For each period

RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
(it triggers an event - but...?) Sorry if this seems obvious, but it unfortunately isn't to me. c. -Original Message- From: Newham, Cameron [mailto:cameron.new...@bl.uk] Sent: 14 December 2010 09:35 To: Tapestry users Subject: RE: T5: Progress indicator and AJAX example? Thanks Taha for going

Re: T5: Progress indicator and AJAX example?

2010-12-14 Thread Thiago H. de Paula Figueiredo
On Tue, 14 Dec 2010 07:35:22 -0200, Newham, Cameron cameron.new...@bl.uk wrote: Thanks Taha for going to the trouble of providing source. It is very simple. LOL. When people say this it usually isn't! And I'm afraid my knowledge of AJAX and Javascript make your code fairly impenetrable

Re: T5: Progress indicator and AJAX example?

2010-12-14 Thread Taha Hafeez
(). If there is not handler, it returns null. c. Hope it helps regards Taha -Original Message- From: Newham, Cameron [mailto:cameron.new...@bl.uk] Sent: 14 December 2010 09:35 To: Tapestry users Subject: RE: T5: Progress indicator and AJAX example? Thanks Taha for going

Re: T5: Progress indicator and AJAX example?

2010-12-14 Thread Taha Hafeez
That is exactly what i meant..! regards Taha On Tue, Dec 14, 2010 at 5:55 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 14 Dec 2010 07:35:22 -0200, Newham, Cameron cameron.new...@bl.uk wrote: Thanks Taha for going to the trouble of providing source. It is very

RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
Thanks Taha. Now it all makes sense. I don't know why I didn't see the alert() - duh! c. -Original Message- From: Taha Hafeez [mailto:tawus.tapes...@gmail.com] Sent: 14 December 2010 17:31 To: Tapestry users Subject: Re: T5: Progress indicator and AJAX example? Hi, The reason

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

Re: T5: Progress indicator and AJAX example?

2010-12-12 Thread Thiago H. de Paula Figueiredo
High quality explanation, Taha! :) Thanks for it and the example! On Sat, 11 Dec 2010 23:34:47 -0200, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi It is very simple. In ProgressBar#afterRender an event timer is created which is passed on to javascript. Javascript is a periodicExecuter

Re: T5: Progress indicator and AJAX example?

2010-12-11 Thread françois facon
Hi Taha, Thanks for sharing your code. It make me discover the CaptureResultCallback (new in 5.2). If I understand well your sample, to get progress value the progressBar component raise a server side event called 'update' and get the value from this callback. is it right? 2010/12/11 Taha

Re: T5: t:errors not displaying when form has a zone

2010-12-11 Thread Thiago H. de Paula Figueiredo
On Sat, 11 Dec 2010 05:50:28 -0200, Angelo C. angelochen...@gmail.com wrote: Hi, Hi! I got a form like this, t:errors got displayed, but if I put a zone in the form, errors are not shown, why? You're not updating the form. If you had a Zone surrounding the Form, the errors would be

T5: Progress indicator and AJAX example?

2010-12-10 Thread Newham, Cameron
research I did a few months ago that there is a progress bar in one of the T5 component archives but there are no examples as to how to use it and I'm not even sure if it works. I imagine that if I wanted just a simple field on a page that updated with a % then I would have Javascript make

Re: T5: Progress indicator and AJAX example?

2010-12-10 Thread Thiago H. de Paula Figueiredo
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

Re: T5: Progress indicator and AJAX example?

2010-12-10 Thread Richard Hill
Hi Cameron, For an example of how to make an ajax call from your own js see the mail I sent yesterday. Richard. On Fri, 2010-12-10 at 09:14 -0200, Thiago H. de Paula Figueiredo wrote: On Fri, 10 Dec 2010 09:04:49 -0200, Newham, Cameron cameron.new...@bl.uk wrote: Hi, Hi! I

T5: When Flash persisted values are cleared?

2010-12-10 Thread Dmitriy Vsekhvalnov
Hi all, i'm slightly confused with @Persist(flash) and XHR requests. I have a Message component which used to show alert/warn/info messages on the page, it has a message property, which is flash persisted: @Persisted(flash) private String msg; //+ getter and setter On several pages it wrapped

Re: T5: When Flash persisted values are cleared?

2010-12-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Dec 2010 12:18:22 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Hi all, i'm slightly confused with @Persist(flash) and XHR requests. Hi! A flash persisted value is cleared when it's read from the session, something that happens once per request AFAIK. What you see

Re: T5: When Flash persisted values are cleared?

2010-12-10 Thread Dmitriy Vsekhvalnov
Does @PageDetached works with components? On Fri, Dec 10, 2010 at 9:20 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Fri, 10 Dec 2010 12:18:22 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Hi all, i'm slightly confused with @Persist(flash) and XHR requests.

Re: T5: When Flash persisted values are cleared?

2010-12-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Dec 2010 18:55:06 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Does @PageDetached works with components? No, but you can use @CleanupRender or @AfterRender for that. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant,

Re: T5: Progress indicator and AJAX example?

2010-12-10 Thread Taha Hafeez
Hi, Here is a simple example Java Code :- import org.apache.tapestry5.BindingConstants; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.Link; import org.apache.tapestry5.MarkupWriter; import org.apache.tapestry5.annotations.AfterRender; import

T5: t:errors not displaying when form has a zone

2010-12-10 Thread Angelo C.
t:type=submit name=Preview t:id=Preview/ t:errors/ /t:form t:zone t:id=myzone /t:zone t:block id=preview /t:block -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-t-errors-not-displaying-when-form-has-a-zone-tp3301313p3301313.html Sent from

T5: t:errors not displaying when form has a zone

2010-12-10 Thread Angelo C.
t:type=submit name=Preview t:id=Preview/ t:errors/ /t:form t:zone t:id=myzone /t:zone t:block id=preview /t:block -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-t-errors-not-displaying-when-form-has-a-zone-tp3301312p3301312.html Sent from

Re: T5 portuguese message for minimum-string-length

2010-12-08 Thread Ulrich Stärk
%d characteres para %s.' (meno - menos). How can I override that message in T5? I tried with minLength=3[My message] but it didn't work out. Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

T5 Auto Generated Picture Gallery (Intranet)

2010-12-08 Thread ael
){ this.filename = filename; } public String getFilename() { return filename; } public void setFilename(String filename) { this.filename = filename; } } Note: For documentation purpose only... -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5

T5 portuguese message for minimum-string-length

2010-12-07 Thread Sergio Esteves
pelo meno %d characteres para %s.' (meno - menos). How can I override that message in T5? I tried with minLength=3[My message] but it didn't work out. Thanks.

Re: T5 portuguese message for minimum-string-length

2010-12-07 Thread Sergio Esteves
as 'Tem de inserir pelo meno %d characteres para %s.'. But there is an orthohraphic error in that message, and it should be like 'Tem de inserir pelo meno %d characteres para %s.' (meno - menos). How can I override that message in T5? I tried with minLength=3[My message] but it didn't work out

Re: T5: scripting

2010-12-07 Thread Werner Keil
I got some great results from the Java 6 Scripting JSR with Groovy as its implementation in a T5 app. We used it mainly for templating, but if you prefer simple scripting, that would also work. I may add some simple snippets for those who wish to see. Werner On Fri, Dec 3, 2010 at 8:42 PM

Re: T5: scripting

2010-12-07 Thread Angelo C.
Please do, that will be of great help! Thanks. Werner Keil wrote: I got some great results from the Java 6 Scripting JSR with Groovy as its implementation in a T5 app. We used it mainly for templating, but if you prefer simple scripting, that would also work. I may add some simple

Re: T5: scripting

2010-12-06 Thread Thiago H. de Paula Figueiredo
On Mon, 06 Dec 2010 00:54:46 -0200, Angelo C. angelochen...@gmail.com wrote: was thinking of trying out GRails, now with Groovy in T5, seems that's a good use. so far got some services and page class up and running already, not sure about any difference in performance, I presume

Re: T5 capture keyboard events?

2010-12-06 Thread wesleywj2
://tapestry.1045711.n5.nabble.com/T5-capture-keyboard-events-tp3293142p3293942.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional

Re: T5 capture keyboard events?

2010-12-06 Thread Thiago H. de Paula Figueiredo
On Mon, 06 Dec 2010 10:46:08 -0200, wesleywj2 wesley...@yahoo.co.uk wrote: hi, Hi! thks for reply, i've never used custom javascript and load into tapestry before, most of the time just use the Annotation @IncludeJavaScriptLibrary, is that the way? perhaps if i have a javascript

Re: T5 capture keyboard events?

2010-12-06 Thread Howard Lewis Ship
: http://tapestry.1045711.n5.nabble.com/T5-capture-keyboard-events-tp3293142p3293142.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

Re: T5: scripting

2010-12-06 Thread Angelo C.
- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-scripting-tp3291002p3295149.html Sent from the Tapestry

Re: T5: scripting

2010-12-06 Thread Paul Stanton
groovy is for hippies ;) On 7/12/2010 12:45 PM, Angelo C. wrote: if that's the case, probably Groovy is for scripting and test code for now. Thiago H. de Paula Figueiredo wrote: On Mon, 06 Dec 2010 00:54:46 -0200, Angelo C.angelochen...@gmail.com wrote: All the performance comparisons I've

Re: T5: scripting

2010-12-05 Thread Angelo C.
looks like not for T5, probably for an earlier version? Wilson Ikeda wrote: I believe that this is something that should be added to tapestry site (if it's not already): Tapestry - Groovy integration http://groovestry.sourceforge.net/ -- View this message in context: http

Re: T5:scripting

2010-12-05 Thread Wilson Ikeda
Oh, sorry it was something i spotted some time ago and didnt have time to look more close, but found Howards blog about it : http://tapestryjava.blogspot.com/2007/02/tapestry-5-and-groovy.html and looks like he is using groovy on t5 trunk integration tests : http://comments.gmane.org

<    4   5   6   7   8   9   10   11   12   13   >