Re: t5: secure annotation

2011-01-10 Thread Joost Schouten (ml)
This [1] is my jetty plugin in my pom.xml where src/test/resources/jettykeystore.cert is my selfsigned certificate. Hope it is what you are looking for. Cheers, Joost [1] maven jetty plugin with SSL enabled org.mortbay.jetty maven-jetty-plugin 8080 6 8443 3 src/test/resources/

t5: secure annotation

2011-01-10 Thread Angelo C.
Hi, putting @secure in a class and run it in mvn jetty:rn, got: SSL connection error. how to setup jetty to take care of this? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-secure-annotation-tp3334816p3334816.html Sent from the Tapestry - User

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. 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 be downloaded: http://

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

2011-01-09 Thread Borut Bolčina
Thanks! 2011/1/8 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; >

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: 5.2.4 and assets protection

2011-01-09 Thread Christian Riedel
ll the tml files > -- > 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. > > ---

Re: T5: 5.2.4 and assets protection

2011-01-09 Thread Angelo C.
but assets/ shows all the tml files -- 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

Re: T5: 5.2.4 and assets protection

2011-01-09 Thread Christian Riedel
5.2.4, we still need AssetProtectionDispatcher to protect. and is there a > new version for 5.2.4? this still works for 5.2.4: > > com.saiwaisolutions > AssetProtectionDispatcher > 1.0.0 > am I right? Thanks, > > Angelo > > -- > View this message in context:

Re: T5: 5.2.4 and memory

2011-01-09 Thread Angelo C.
lass count 4102 (4415) 7397 (8853) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-5-2-4-and-memory-tp624p665.html Sent from the Tapestry - User mailing list archive at

Re: T5: 5.2.4 and memory

2011-01-08 Thread Yohan Yudanara
ror: 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. > > --

Re: T5: 5.2.4 and memory

2011-01-08 Thread Alex Kotchnev
bject) (at AppModule.java:513) > 2011-01-09 13:54:52.354 java[1093:903] 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 cont

Re: T5: 5.2.4 and assets protection

2011-01-08 Thread Alex Kotchnev
s there a > new version for 5.2.4? this still works for 5.2.4: > > com.saiwaisolutions > AssetProtectionDispatcher > 1.0.0 > am I right? Thanks, > > Angelo > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-5-2-4-and-a

T5: 5.2.4 and assets protection

2011-01-08 Thread Angelo C.
, 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. - To unsubscribe, e-mail

T5: 5.2.4 and memory

2011-01-08 Thread Angelo C.
ption 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 the Tapestry - User mailing list archive at

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. 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/dtd/hibe

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

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." wrote: > > Hi Thiago, > > so

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

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

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 PeriodicalExecut

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 > May be this helps! > > // > // Mixin > // > package tapestrydemo.mixins; > > import org.apache.tapestry5.ComponentResources; > import org.apache.tapestry5.BindingConstants; > import org.apache.tap

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. wrote: I just replaced the version number from 5.1.0.5 to 5.2.4 and compile, run, the first error is: [WARN] DTDEntityResol

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-

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Josh Canfield
s, > > > > org.hibernate > hibernate > 3.2.2.ga > > > > c3p0 > c3p0 > 0.9.1.2 > > > > geronimo-spec > geronimo-spec-jta > 1.0-M1 > test > > > > org.hibernate > hibernate-annotations > 3.2.1.ga > > > -- > View thi

t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Angelo C.
1.0-M1 test org.hibernate hibernate-annotations 3.2.1.ga -- 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: 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(...) bloc

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

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 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 isXHR() method to check if th

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

2011-01-06 Thread Josh Canfield
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. On Thu, Jan 6, 2011 at 9:02 AM, Sergio Esteves wrote: > Hi all, > > I have the following code: > > > > > >        ... > > > >

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: ... ... ... The problem is I can't return thirdBlock when I submit the form in the secondBloc

t5: zone, blocks, and form - simple question

2011-01-06 Thread Sergio Esteves
Hi all, I have the following code: ... ... ... The problem is I can't return thirdBlock when I submit the form in the secondBlock (" Return type org.apache.tapestry5.internal.structure.BlockImpl can not be handled."). Am I doing something wrong? Th

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

Re: T5: archiving a page

2010-12-31 Thread Joost Schouten (ml)
uot;\n"); } in.close(); String htmlContent = htmlBuilder.toString(); log.debug("The downloaded html file:\n\n" + htmlContent); return htmlContent; } On 31/12/10 12:54 AM, Angelo C. wrote: Hi Joost, This is a good solution, is there any maven dependen

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

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. wrote: 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
oper/CI > > machines, not on your production machine, although I've seen it done. > > > > On Thu, Dec 30, 2010 at 11:12 AM, Angelo C. > wrote: > > > >> > >> Thanks for the quick answer, not so familiar with selenium, can it be > run > >> headless

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 Joost Schouten (mailing lists)
t done. > > On Thu, Dec 30, 2010 at 11:12 AM, Angelo C. 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/

Re: T5: archiving a page

2010-12-30 Thread Donny Nadolny
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 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
. 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

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

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

2010-12-30 Thread Donny Nadolny
nly need to rename my WAR > file to ROOT.war and to add > >      myApp >   > 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 > -- > Vi

[T5] Removing project name and port number from URL

2010-12-30 Thread niksami
y 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 ar

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 ab

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 annotat

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: 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 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 you're trying to impleme

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

2010-12-25 Thread Josh Canfield
rg/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Loop.html >> >>> >> >>> regards >> >>> Taha >> >>> >> >>> >> >>> On Sat, Dec 25, 2010 at 10:32 PM, Sergio Esteves< >>

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

2010-12-25 Thread Taha Hafeez
>> regards > >>> Taha > >>> > >>> > >>> On Sat, Dec 25, 2010 at 10:32 PM, Sergio Esteves< > >>> sergio.este...@xpand-it.com> wrote: > >>> > >>>> I'm using an ajaxformloop and I'm trying to

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

2010-12-25 Thread Josh Canfield
On Sat, Dec 25, 2010 at 10:32 PM, Sergio Esteves< >>> sergio.este...@xpand-it.com> wrote: >>> >>>> I'm using an ajaxformloop and I'm trying to simulate the index of the >>>> component loop, without making a new component. >>>> So, in

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

2010-12-25 Thread Sergio Esteves
e...@xpand-it.com> wrote: 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,

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

2010-12-25 Thread Taha Hafeez
crement 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 ? >>> >>> regar

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 c

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++; }

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, e-m

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

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. > > Hi, > > Anybody tried T5 with Memcached? has good performance? any wiki on this? > Thanks, > > Angelo > -- > View this message in

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

Re: t5: getting locale in a page class

2010-12-17 Thread Howard Lewis Ship
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 maili

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

t5: getting locale in a page class

2010-12-17 Thread Angelo C.
e page is already 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 a

T5 Guide: Building T5.2.4 Application Using Netbeans 6.9.1

2010-12-16 Thread ael
type->Next 6. Project 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-Gui

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 DOM

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 Nicolas Barrera
les and add them by means 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

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 Subje

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

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 r

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 > wrote: > > Thanks Taha for going to the trouble of providing source. >> >> It is very simple. >>> >

Re: T5: Progress indicator and AJAX example?

2010-12-14 Thread Taha Hafeez
't to me. > > triggerEvent triggers an event which has to be handled by the container event handler. This event handler's return value is callback.getResult(). If there is not handler, it returns null. > c. > > Hope it helps regards Taha > > -Original Mess

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 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 to me. Let's rephra

RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
value set (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? T

RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
lto:tawus.tapes...@gmail.com] 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

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

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 wrote: 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 p

Re: T5: Progress indicator and AJAX example?

2010-12-11 Thread Taha Hafeez
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 it calls the event url with the previous value of percentage as a parameter. When the event is called

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. 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 shown, because it would

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 H

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

2010-12-10 Thread Angelo C.
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? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-t-errors-not

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

2010-12-10 Thread Angelo C.
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? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-t-errors-not

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 org.apache.tapestry5.ann

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 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, developer, and instructor

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 req

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 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 it that AJAX request

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 wrap

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 > wrote: > > > Hi, > > Hi! > > > I imagine that if

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

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 ma

T5 Auto Generated Picture Gallery (Intranet)

2010-12-08 Thread ael
} 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-Auto-Generated-P

Re: T5 portuguese message for "minimum-string-length"

2010-12-08 Thread Ulrich Stärk
ike '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. Thanks. - To unsu

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

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 portuguese message for "minimum-string-length"

2010-12-07 Thread Sergio Esteves
he.org/msg02541.html 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 "

T5 portuguese message for "minimum-string-length"

2010-12-07 Thread Sergio Esteves
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. Thanks.

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. wrote: All the performance comparisons I've seen show Java performa

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