t5: standard form and post
Hi, T5 binds < t:form > to a page class. if standard < form > is used, how to define a page class method to accept the posting from the form? Thanks. Angelo -- View this message in context: http://old.nabble.com/t5%3A-standard-form-and-post-tp28049417p28049417.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: Decorate parameter
Actually i do it at the very end of chain and manipulate only string. The work is done at link encoding and decoding. Le 26 mars 2010 à 22:16, Josh Canfield a écrit : :) Thanks. I understood that it could be done but I'm curious how you use it for an event link? Do you contribute to ValueEncoderSource an encoder for Long.class and just obfuscate all Longs? Josh On Fri, Mar 26, 2010 at 1:57 PM, Christophe Cordenier wrote: Hi I have used value encoder for select component and component event link encoder/decoder service for context (action and event) Best regards Le 26 mars 2010 à 21:44, Josh Canfield a écrit : Or implementing the obfuscation logic inside the ValueEncoder? This interface is exactly where Tapestry expect you to any conversion between object and string representation of it used inside an URL or HTML page. Hmm... how do you provide a ValueEncoder in an event or page link? On Fri, Mar 26, 2010 at 10:58 AM, Thiago H. de Paula Figueiredo wrote: On Fri, 26 Mar 2010 14:38:38 -0300, Josh Canfield wrote: I am currently trying to decorate the encoder parameter of Select component (at least every component that has an encoder parameter) to apply an indirection on client Value (see owasp rule A4) This seems like a wide net... Have you considered using a different type for the ids that you want obfuscated? Or implementing the obfuscation logic inside the ValueEncoder? This interface is exactly where Tapestry expect you to any conversion between object and string representation of it used inside an URL or HTML page. That's the simplest and more reusable solution I can think. Another one would be the decoration of ValueEncoderSource. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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 -- -- http://www.bodylabgym.com - a private, by appointment only, one-on- one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. --- -- 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 -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - 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: Decorate parameter
:) Thanks. I understood that it could be done but I'm curious how you use it for an event link? Do you contribute to ValueEncoderSource an encoder for Long.class and just obfuscate all Longs? Josh On Fri, Mar 26, 2010 at 1:57 PM, Christophe Cordenier wrote: > Hi > I have used value encoder for select component and component event link > encoder/decoder service for context (action and event) > > Best regards > Le 26 mars 2010 à 21:44, Josh Canfield a écrit : > >>> Or implementing the obfuscation logic inside the ValueEncoder? This >>> interface is exactly where Tapestry expect you to any conversion between >>> object and string representation of it used inside an URL or HTML page. >> >> Hmm... how do you provide a ValueEncoder in an event or page link? >> >> >> On Fri, Mar 26, 2010 at 10:58 AM, Thiago H. de Paula Figueiredo >> wrote: >>> >>> On Fri, 26 Mar 2010 14:38:38 -0300, Josh Canfield >>> >>> wrote: >>> > I am currently trying to decorate the encoder parameter of Select > component > (at least every component that has an encoder parameter) to apply an > indirection on client Value (see owasp rule A4) This seems like a wide net... Have you considered using a different type for the ids that you want obfuscated? >>> >>> Or implementing the obfuscation logic inside the ValueEncoder? This >>> interface is exactly where Tapestry expect you to any conversion between >>> object and string representation of it used inside an URL or HTML page. >>> That's the simplest and more reusable solution I can think. Another one >>> would be the decoration of ValueEncoderSource. >>> >>> -- >>> Thiago H. de Paula Figueiredo >>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, >>> and >>> instructor >>> Owner, software architect and developer, 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 >>> >>> >> >> >> >> -- >> -- >> http://www.bodylabgym.com - a private, by appointment only, one-on-one >> health and fitness facility. >> -- >> http://www.ectransition.com - Quality Electronic Cigarettes at a >> reasonable price! >> -- >> TheDailyTube.com. Sign up and get the best new videos on the internet >> delivered fresh to your inbox. >> >> - >> 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 > > -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Decorate parameter
Hi I have used value encoder for select component and component event link encoder/decoder service for context (action and event) Best regards Le 26 mars 2010 à 21:44, Josh Canfield a écrit : Or implementing the obfuscation logic inside the ValueEncoder? This interface is exactly where Tapestry expect you to any conversion between object and string representation of it used inside an URL or HTML page. Hmm... how do you provide a ValueEncoder in an event or page link? On Fri, Mar 26, 2010 at 10:58 AM, Thiago H. de Paula Figueiredo wrote: On Fri, 26 Mar 2010 14:38:38 -0300, Josh Canfield > wrote: I am currently trying to decorate the encoder parameter of Select component (at least every component that has an encoder parameter) to apply an indirection on client Value (see owasp rule A4) This seems like a wide net... Have you considered using a different type for the ids that you want obfuscated? Or implementing the obfuscation logic inside the ValueEncoder? This interface is exactly where Tapestry expect you to any conversion between object and string representation of it used inside an URL or HTML page. That's the simplest and more reusable solution I can think. Another one would be the decoration of ValueEncoderSource. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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 -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - 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: Decorate parameter
> Or implementing the obfuscation logic inside the ValueEncoder? This > interface is exactly where Tapestry expect you to any conversion between > object and string representation of it used inside an URL or HTML page. Hmm... how do you provide a ValueEncoder in an event or page link? On Fri, Mar 26, 2010 at 10:58 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, 26 Mar 2010 14:38:38 -0300, Josh Canfield > wrote: > >>> I am currently trying to decorate the encoder parameter of Select >>> component >>> (at least every component that has an encoder parameter) to apply an >>> indirection on client Value (see owasp rule A4) >> >> This seems like a wide net... Have you considered using a different >> type for the ids that you want obfuscated? > > Or implementing the obfuscation logic inside the ValueEncoder? This > interface is exactly where Tapestry expect you to any conversion between > object and string representation of it used inside an URL or HTML page. > That's the simplest and more reusable solution I can think. Another one > would be the decoration of ValueEncoderSource. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, software architect and developer, 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 > > -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Res: [T5.1] Problem with imported maven T5.1 project
Ha! You solved the problem. :) I've deleted the T5 jars from the .m2 directory and updated the projects dependencies... And it worked. Thank you!! De: Thiago H. de Paula Figueiredo Para: Tapestry users Enviadas: Sexta-feira, 26 de Março de 2010 15:13:41 Assunto: Re: [T5.1] Problem with imported maven T5.1 project On Fri, 26 Mar 2010 15:01:22 -0300, Josh Canfield wrote: > Don't be offended if your a wicked Tomcat guru and you've already been > down this path, but if you've previously started Tomcat with a bad WAR > then it's likely that Tomcat is still keeping around the bad war in > it's exploded directory (which doesn't have the jar file) and ignoring > your nice new war file... that'd be my first/best guess. Or a corrupt JAR. Try deleting all the Tapestry JARs in your local repository, forcing Maven to redownload them. --Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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 Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
Re: Decorate parameter
Hi Josh, Thanks you for suggestions. Best Regards, Christophe. 2010/3/26 Josh Canfield > > I am currently trying to decorate the encoder parameter of Select > component > > (at least every component that has an encoder parameter) to apply an > > indirection on client Value (see owasp rule A4) > > This seems like a wide net... Have you considered using a different > type for the ids that you want obfuscated? For a project where I > didn't need clients guessing at db ids I built an ObscureId object > with accompanying TypeCoercer, Translator and Binding. It also makes > your intentions obvious for someone coming in later to work on the > project. > > void onActivate(final ObscureId id) {} > > ObscureId onPassivate() {return ObscureId.valueOf(something.id)} > > > > I can share the code for what I have if you're interested. I'm not too > proud of my hacky obfuscation technique, but not too ashamed to share. > > Josh > > On Wed, Mar 24, 2010 at 10:06 AM, Christophe Cordenier > wrote: > > Hi > > > > I am currently trying to decorate the encoder parameter of Select > component > > (at least every component that has an encoder parameter) to apply an > > indirection on client Value (see owasp rule A4) > > > > I have tried to use InternalComponentResources of the container to write > a > > new value via the Binding, or the ParameterAccess, but no way... > > It depends on the case but can fail with NullPointerException or because > > default binding is invariant... > > > > Any hints ? > > > > -- > > Regards, > > Christophe Cordenier. > > > > Developer of wooki @wookicentral.com > > > > > > -- > -- > http://www.bodylabgym.com - a private, by appointment only, one-on-one > health and fitness facility. > -- > http://www.ectransition.com - Quality Electronic Cigarettes at a > reasonable price! > -- > TheDailyTube.com. Sign up and get the best new videos on the internet > delivered fresh to your inbox. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com
Re: Decorate parameter
Hi 2010/3/26 Thiago H. de Paula Figueiredo > On Fri, 26 Mar 2010 14:38:38 -0300, Josh Canfield > wrote: > > I am currently trying to decorate the encoder parameter of Select >>> component >>> (at least every component that has an encoder parameter) to apply an >>> indirection on client Value (see owasp rule A4) >>> >> >> This seems like a wide net... Have you considered using a different >> type for the ids that you want obfuscated? >> > > Or implementing the obfuscation logic inside the ValueEncoder? This > interface is exactly where Tapestry expect you to any conversion between > object and string representation of it used inside an URL or HTML page. > That's the simplest and more reusable solution I can think. Another one > would be the decoration of ValueEncoderSource. > This is exactly what i did. The thing is that i wanted to make this totally transparent to the user through a mixin and also allow to apply this obfuscation on demand only not to be too intrusive. By the way valueEncoder works like a charm. > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, 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 > > -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com
Re: [T5.1] Problem with imported maven T5.1 project
On Fri, 26 Mar 2010 15:01:22 -0300, Josh Canfield wrote: Don't be offended if your a wicked Tomcat guru and you've already been down this path, but if you've previously started Tomcat with a bad WAR then it's likely that Tomcat is still keeping around the bad war in it's exploded directory (which doesn't have the jar file) and ignoring your nice new war file... that'd be my first/best guess. Or a corrupt JAR. Try deleting all the Tapestry JARs in your local repository, forcing Maven to redownload them. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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
Res: [T5.1] Problem with imported maven T5.1 project
I'm running Tomcat by it's instance on Eclipse... So, just to make sure, I've removed the instance and created a new one.. But I'm still having the same problems. So, I don't believe it's Tomcat's fault this time. Thanks. De: Josh Canfield Para: Tapestry users Enviadas: Sexta-feira, 26 de Março de 2010 15:01:22 Assunto: Re: [T5.1] Problem with imported maven T5.1 project Don't be offended if your a wicked Tomcat guru and you've already been down this path, but if you've previously started Tomcat with a bad WAR then it's likely that Tomcat is still keeping around the bad war in it's exploded directory (which doesn't have the jar file) and ignoring your nice new war file... that'd be my first/best guess. Josh On Fri, Mar 26, 2010 at 7:49 AM, Everton Agner wrote: > Hi, > > I moved a T5 Project (maven project) from one computer to another, and I'm > having this Exception when starting Tomcat: > > SEVERE: Exception starting filter SecurityTest > java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter > > I know there was problems with the Tapestry Formos maven repository, and I > added the Apache Repository - So, the dependencies are being loaded normally. > Also, the generated project WAR file contains all the Tapestry Libs, which > confused me why I'm having this Exception. > > I'm new to Maven, so it may be some confusion of mine... > > I appreciate any help :) > > Thanks! > > > > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
Re: [T5.1] Problem with imported maven T5.1 project
Don't be offended if your a wicked Tomcat guru and you've already been down this path, but if you've previously started Tomcat with a bad WAR then it's likely that Tomcat is still keeping around the bad war in it's exploded directory (which doesn't have the jar file) and ignoring your nice new war file... that'd be my first/best guess. Josh On Fri, Mar 26, 2010 at 7:49 AM, Everton Agner wrote: > Hi, > > I moved a T5 Project (maven project) from one computer to another, and I'm > having this Exception when starting Tomcat: > > SEVERE: Exception starting filter SecurityTest > java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter > > I know there was problems with the Tapestry Formos maven repository, and I > added the Apache Repository - So, the dependencies are being loaded normally. > Also, the generated project WAR file contains all the Tapestry Libs, which > confused me why I'm having this Exception. > > I'm new to Maven, so it may be some confusion of mine... > > I appreciate any help :) > > Thanks! > > > > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Decorate parameter
On Fri, 26 Mar 2010 14:38:38 -0300, Josh Canfield wrote: I am currently trying to decorate the encoder parameter of Select component (at least every component that has an encoder parameter) to apply an indirection on client Value (see owasp rule A4) This seems like a wide net... Have you considered using a different type for the ids that you want obfuscated? Or implementing the obfuscation logic inside the ValueEncoder? This interface is exactly where Tapestry expect you to any conversion between object and string representation of it used inside an URL or HTML page. That's the simplest and more reusable solution I can think. Another one would be the decoration of ValueEncoderSource. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: Decorate parameter
> I am currently trying to decorate the encoder parameter of Select component > (at least every component that has an encoder parameter) to apply an > indirection on client Value (see owasp rule A4) This seems like a wide net... Have you considered using a different type for the ids that you want obfuscated? For a project where I didn't need clients guessing at db ids I built an ObscureId object with accompanying TypeCoercer, Translator and Binding. It also makes your intentions obvious for someone coming in later to work on the project. void onActivate(final ObscureId id) {} ObscureId onPassivate() {return ObscureId.valueOf(something.id)} I can share the code for what I have if you're interested. I'm not too proud of my hacky obfuscation technique, but not too ashamed to share. Josh On Wed, Mar 24, 2010 at 10:06 AM, Christophe Cordenier wrote: > Hi > > I am currently trying to decorate the encoder parameter of Select component > (at least every component that has an encoder parameter) to apply an > indirection on client Value (see owasp rule A4) > > I have tried to use InternalComponentResources of the container to write a > new value via the Binding, or the ParameterAccess, but no way... > It depends on the case but can fail with NullPointerException or because > default binding is invariant... > > Any hints ? > > -- > Regards, > Christophe Cordenier. > > Developer of wooki @wookicentral.com > -- -- http://www.bodylabgym.com - a private, by appointment only, one-on-one health and fitness facility. -- http://www.ectransition.com - Quality Electronic Cigarettes at a reasonable price! -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: LinkSubmit with Context?
On Mar 26, 2010, at 9:06 AM, Michael Gentry wrote: > Maybe try putting your context on the t:form instead of the > t:linksubmit and see if that works. I've never tried it, but seems > like it should work ... Well, what I really want is to be able to tell which of several buttons in the same form that send the same event got clicked, so I want an event handler to be called with arguments... Pierce - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Google Summer of Code 2010
2010/3/26 Ulrich Stärk : > I can't tell since I didn't have a look. One of the tasks for a student > would be to assess existing third-party code and work with the author > towards an integration... You should have a look, there really is not much work left for a student to do. I would propose to rather put them on topics where no solution is available yet. Like transaction support, CDI integration, and so on... Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[Announce] Spread The Source has now its Maven repository
In order to better contribute with Tapestry 5 community, "Spread the source" projects are now available as downloadable Maven artifacts. First available artifact is Tapestry 5 Google Analytics plugin. How to & sources @ http://github.com/spreadthesource/tapestry5-googleanalytics We've got to say *a big thank you* to Christophe Furmaniak for sharing his Continuous Integration build platform with us. More contributions are coming soon. Note that all of them are extracted from Wooki's experience and emphasize the 'reusability facet' of Tapestry. Regards, - Spread the source dev team -- http://spreadthesource.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: LinkSubmit with Context?
Maybe try putting your context on the t:form instead of the t:linksubmit and see if that works. I've never tried it, but seems like it should work ... mrg On Fri, Mar 26, 2010 at 11:58 AM, Pierce T. Wetter III wrote: > > Ok, so I want a button in my form to jump to a new page, but I want to make > sure I got the values from the form first. > > There doesn't seem to be a context binding on LinkSubmit though, though > there are on Submit I see. > > So what's the solution? (5.2-SNAPSHOT solutions are OK). > > Pierce > - > 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: Tapestry and SeeSaw talk
Hi, Skillsmatter have changed the permissions - so it may work better now or try http://vimeo.com/10399058 Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek < felix.gonscho...@gmail.com> wrote: > hi ben, > > i am very interested in watching your podcast/video, but somehow this is > not possible. Instead of the video is see a "Sorry" message from vimeo, > saying that i am not allowed to watch your file. Do you have any access > restrictions activated? > > I would really apreciate to watch your talk. > > Thank you! > > Felix > > Am 24.03.2010 18:29, schrieb Ben Gidley: > > Hi, >> >> I did a talk last night on how we used tapestry for SeeSaw.com and if you >> are interested there is a video podcast at >> http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand >> the slides are at links.gidley.co.uk/tiafr >> >> Ben Gidley >> >> www.gidley.co.uk >> b...@gidley.co.uk >> >> > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
LinkSubmit with Context?
Ok, so I want a button in my form to jump to a new page, but I want to make sure I got the values from the form first. There doesn't seem to be a context binding on LinkSubmit though, though there are on Submit I see. So what's the solution? (5.2-SNAPSHOT solutions are OK). Pierce - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: DateTimePicker?
Thanks, Juan! On Fri, Mar 26, 2010 at 10:52 AM, Juan E. Maya wrote: > Hi Michael, > > Chennille Kit has a component that allows u to ask for date and time. U can > check it here: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo > > On Fri, Mar 26, 2010 at 3:36 PM, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > > Has anyone done anything with a date picker that also specifies time of > > day? The WebFX calendar pop-up doesn't look like it deals with that. If > > it > > comes to it, I can always have a separate 'time' field and merge the two > > resulting Dates using Calendar/Joda, but perhaps someone has done > something > > smoother? > > > > Regards, > > > > Michael > > >
Re: DateTimePicker?
Hi Michael, Chennille Kit has a component that allows u to ask for date and time. U can check it here: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo On Fri, Mar 26, 2010 at 3:36 PM, Michael Prescott < michael.r.presc...@gmail.com> wrote: > Has anyone done anything with a date picker that also specifies time of > day? The WebFX calendar pop-up doesn't look like it deals with that. If > it > comes to it, I can always have a separate 'time' field and merge the two > resulting Dates using Calendar/Joda, but perhaps someone has done something > smoother? > > Regards, > > Michael >
[T5.1] Problem with imported maven T5.1 project
Hi, I moved a T5 Project (maven project) from one computer to another, and I'm having this Exception when starting Tomcat: SEVERE: Exception starting filter SecurityTest java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter I know there was problems with the Tapestry Formos maven repository, and I added the Apache Repository - So, the dependencies are being loaded normally. Also, the generated project WAR file contains all the Tapestry Libs, which confused me why I'm having this Exception. I'm new to Maven, so it may be some confusion of mine... I appreciate any help :) Thanks! Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
DateTimePicker?
Has anyone done anything with a date picker that also specifies time of day? The WebFX calendar pop-up doesn't look like it deals with that. If it comes to it, I can always have a separate 'time' field and merge the two resulting Dates using Calendar/Joda, but perhaps someone has done something smoother? Regards, Michael
Res: [T5.1] Return a file as response of a ActionLink event
Thank you guys for the surprisingly quick responses! :) De: Thiago H. de Paula Figueiredo Para: Tapestry users Enviadas: Sexta-feira, 26 de Março de 2010 11:31:04 Assunto: Re: [T5.1] Return a file as response of a ActionLink event On Fri, 26 Mar 2010 11:24:32 -0300, Everton Agner wrote: > Hi, Hi! > I need to return a PDF file as response of a ActionLink request... How can I > do that? Can I return a Resource or a File in the "onActionFrom()" method > and T5 takes care of the Response header configuration? Wrap your file in a StreamResponse and return it. Example here: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF, specially the PDFStreamResponse section. --Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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 Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
Re: [T5.1] Return a file as response of a ActionLink event
Seems I'm late to the party, but nevermind. :-) We're doing this, but with Submits, not ActionLinks. *Page.tml:* *Page.java:* private StreamResponse response; public StreamResponse onSubmit() { return response; } void onSelectedFromContent() { response = new FileDownloadStreamResponse("content.html", "text/html", /* get a stream from somewhere, depends on your needs */ ); } *FileDownloadStreamResponse.java:* public class FileDownloadStreamResponse implements StreamResponse { private String contentType; private InputStream inputStream; private String filename; public FileDownloadStreamResponse(String filename, String contentType, InputStream inputStream) { this.filename = filename; this.contentType = contentType; this.inputStream = inputStream; } @Override public String getContentType() { return contentType; } @Override public InputStream getStream() throws IOException { return inputStream; } @Override public void prepareResponse(Response response) { response.setHeader("Content-Disposition", "attachment; filename=" + filename); } } Michael On Fri, Mar 26, 2010 at 10:24 AM, Everton Agner wrote: > Hi, > > I need to return a PDF file as response of a ActionLink request... How can > I do that? Can I return a Resource or a File in the "onActionFrom()" > method and T5 takes care of the Response header configuration? > > Thanks! > > > > > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com >
Re: [T5.1] Return a file as response of a ActionLink event
We are doing it this way using T5's StreamResponse: return new StreamResponse() { public String getContentType() { return pdf.getContentType(); } public InputStream getStream() { return pdf.getPdfStream(); } public void prepareResponse(Response response) { response.setHeader("Content-Disposition", "attachment; filename=fpca.pdf"); } }; The "pdf" variable is of our own class, but the only missing thing is the content type, which we set as "application/pdf". mrg On Fri, Mar 26, 2010 at 10:24 AM, Everton Agner wrote: > Hi, > > I need to return a PDF file as response of a ActionLink request... How can I > do that? Can I return a Resource or a File in the "onActionFrom()" method > and T5 takes care of the Response header configuration? > > Thanks! > > > > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5.1] Return a file as response of a ActionLink event
On Fri, 26 Mar 2010 11:24:32 -0300, Everton Agner wrote: Hi, Hi! I need to return a PDF file as response of a ActionLink request... How can I do that? Can I return a Resource or a File in the "onActionFrom()" method and T5 takes care of the Response header configuration? Wrap your file in a StreamResponse and return it. Example here: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF, specially the PDFStreamResponse section. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: [T5.1] Return a file as response of a ActionLink event
Hi Use StreamResponse for binary content. Best Regards, Christophe Cordenier. 2010/3/26 Everton Agner > Hi, > > I need to return a PDF file as response of a ActionLink request... How can > I do that? Can I return a Resource or a File in the "onActionFrom()" > method and T5 takes care of the Response header configuration? > > Thanks! > > > > > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com > -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com
Re: [T5.1] Return a file as response of a ActionLink event
On 26 Mar 2010, at 2:24 pm, Everton Agner wrote: Hi, I need to return a PDF file as response of a ActionLink request... How can I do that? Can I return a Resource or a File in the "onActionFrom()" method and T5 takes care of the Response header configuration? Quick response off the top of my head, can you set the return type to Object and just return a string which is the URL of the file you want to send back? Mark -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[T5.1] Return a file as response of a ActionLink event
Hi, I need to return a PDF file as response of a ActionLink request... How can I do that? Can I return a Resource or a File in the "onActionFrom()" method and T5 takes care of the Response header configuration? Thanks! Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
Re: .jsp behaviour in tapestry 5 pages
On Fri, 26 Mar 2010 05:18:45 -0300, Manuel Riegler wrote: Hello Igor, Hi! I know the code on these pages. in the example its a actionLink within a tapestry page. but for me it was unclear how the event can be triggered from outside! ComponentResources.createEventLink() generates an URL that, when requested, triggers the event, regardless of who requested it. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: Google Summer of Code 2010
I can't tell since I didn't have a look. One of the tasks for a student would be to assess existing third-party code and work with the author towards an integration... Uli On 25.03.2010 12:22, Piero Sartini wrote: Of course we have come up with some Tapestry-specific tasks as well which can be found at [3]. They include JPA and EJB3 integration and more nifty components. Thiago and I will be mentoring students that whish to carry out those tasks. What do you miss from the existing JPA integration [1]? Piero [1] http://tynamo.org/tapestry-jpa+guide - 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
[5.2] NPE on property accessor ?
Hi, Does anybody where this NullPointerException could be coming from? This is working is tapestry 5.1 but fails on trunk. The stacktrace : # org.equanda.tapestry5.base.PagerConfig._$get_rowCount(PagerConfig.java) # org.equanda.tapestry5.base.PagerConfig.getRowCount(PagerConfig.java:129) # org.equanda.tapestry5.components.JSPagedLoop.getDisplayStyle(JSPagedLoop.java:328) # $PropertyConduit_12799bb2ae5.get($PropertyConduit_12799bb2ae5.java) # org.apache.tapestry5.internal.bindings.PropBinding.get(PropBinding.java:59) The useful bits from PageConfig are private int rowCount; public int getRowCount() { return rowCount; } Kind regards, Joachim -- Joachim Van der Auwera PROGS bvba, progs.be - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
how to start learn T5.2.x?
I have stopped learn T5 for a long time due to i am doing some other project currently. Now i want start learn T5 again,but where to start? Does the tutorial1 project in the SVN repositry is valid?i cant run that project, i think the exception is that cant load the tapestry-hibernate module. which project i can run with the RunjettyRun plugins,among the projects i have checked out from the SVN repositroy? thank you very much!!
Re: .jsp behaviour in tapestry 5 pages
Hello Igor, I know the code on these pages. in the example its a actionLink within a tapestry page. but for me it was unclear how the event can be triggered from outside! is the idea to create an eventlink like componentResources.createEventLink(arg0, arg1) and to work whit it like mentioned in "Auslösen von Komponentenereignissen" on page 386? Igor Drobiazko schrieb: Hello Manuel, this topic is covered in the book. Please read the pages 68 - 69. The example is short but should give you an idea of how to trigger your own events pragmatically. On Fri, Mar 26, 2010 at 12:27 AM, Manuel Riegler < manuel.rieg...@students.fh-hagenberg.at> wrote: thx for your immediate response, but its still not clear for me how this works... "You can create the URL for this to pass to your SSO system." where can I pass the URL which leads to the Twitter website for requesting authentication params? would be enormous help if you could provide some short code snipped using the mentioned "ComponentResources" and "ComponentEventCallback". unfortunately I find nothing which could lighten my mind in the tapestry books I use (Tapestry 5, Igor Drobiazko) Am 25.03.2010 19:16, schrieb Howard Lewis Ship: What you are describing is a callback; using ComponentResources you can generate a component event callback to a particular page, or component within a page. You can create the URL for this to pass to your SSO system. This is the same technique used in Ajax support to allow the client to trigger server-side behaviors. On Thu, Mar 25, 2010 at 11:10 AM, Manuel Riegler wrote: hi everybody, I am developing a webapplication using tapestry 5 and I try to implement twitter single sign on (SSO with OAuth). I already implemented that process in a former project with a .jsp. The .jsp redirected to twitter, and twitter had the .jsp as callback, soo the .jsp handled also the received parameters from twitter. so in the .jsp it wasn´t a problem since the java code gets executed everytime the page (.jsp) is called. my question is, how can I provide this behaviour in tapestry? how is it possible that a fragment of java code of a tapestry page is executed everytime the pages gets called? @SetupRender does that, but needs "void" or "boolean" as return type, since I can not navigate to an other page from there. also onActivate() isnt a solution, since it is invoked only once at page initialization and NOT when a callback from external returns. I hope someone can give me some hints! big THANKS in advance, best regards, Manuel - 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org