Tapestry5 Form Validate, Success,Failure, Select Events

2009-10-14 Thread sandeepraj singh
Hi, I have a scenario like below Page A.tml == Now, in the above i have noticed the behaviour as below 1) I am able to catch the validate event in side MyComponent.java 2) I am able to catch , validate, validateform,success, failure, submit events in PageA.java 3) No other event except

SSO objects and Services

2009-10-14 Thread Andrey Larionov
Can i inject (via @SessionState) SSO objects into services? I'm try but value of field always null. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Antwort: SSO objects and Services

2009-10-14 Thread dirk . lattermann
Hello Andrey, Andrey Larionov schrieb am 14.10.2009 09:40:29: > Can i inject (via @SessionState) SSO objects into services? I'm try > but value of field always null. @SessionState works only in page and component classes. You can add the parameter "ApplicationStateManager asm" to the construct

Re: SSO objects and Services

2009-10-14 Thread Andrey Larionov
Thanks. Obivious solution. i should be more attentive. On Wed, Oct 14, 2009 at 11:53, wrote: > Hello Andrey, > > Andrey Larionov schrieb am 14.10.2009 09:40:29: > >> Can i inject (via @SessionState) SSO objects into services? I'm try >> but value of field always null. > > @SessionState works on

Re: Tapestry5 Form Validate, Success,Failure, Select Events

2009-10-14 Thread cordenier christophe
Hi Actually you can only handle Validate event for the components declared in 'MyComponent'. During submission process each text field triggers an event that can be handled by the parent components. In your case, if you have field components inside 'MyComponent' you will be only allowed to handle v

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-10-14 Thread Roy Douglas
Thanks, I did and put the following in my pom.xml org.chenillekit chenillekit-project 1.2.0 then I got this from my eclipse console output Missing artifact org.chenillekit:chenillekit-project:jar:1.2.0:compile Maven Builder: AUTO_BUILD other dependencies was running fine, what sh

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-10-14 Thread Bryan Lewis
I tried your dependency and got the same error. Change "chenillekit-project" to "chenillekit-tapestry". The complete dependency from my pom is: org.chenillekit chenillekit-tapestry 1.2.0 jboss j

Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-10-14 Thread Ville Virtanen
Hi, If this ever gets published in English we will buy one copy for sure, so plase :) - Ville Igor Drobiazko wrote: > > Not yet but I'll ask the publisher again. > > On Tue, Oct 13, 2009 at 9:02 PM, Borut Bolčina > wrote: > >> Hi, >> >> any news on when the book will be available in En

Re: Tapestry5 Form Validate, Success,Failure, Select Events

2009-10-14 Thread sandeepraj singh
Thanks Christophe. You are right, the fact that process submission has validate event only, makes it possible to only catch the validate event. cordenier christophe wrote: > > Hi > Actually you can only handle Validate event for the components declared in > 'MyComponent'. During submission proc

DDOS emergency button for Tapestry 5?

2009-10-14 Thread Mats Henricson
Hi! I'm working on a Tapestry 5.1 site that frequently gets hammered by DDOS attacks. We recently talked about it in our team, and one idea I'm currently investigating is to have a flag in our system that I can turn on dynamically that would require all users to be logged in. So, real users would

Re: DDOS emergency button for Tapestry 5?

2009-10-14 Thread Robin Komiwes
On what kind of page do you want to interact? A Tapestry page or a simple HTML page (which I think should be better when are under a DDOS attack) ?You have a lot of places where you can interact, depending on the previous question :-) On Wed, Oct 14, 2009 at 2:08 PM, Mats Henricson wrote: > Hi!

Re: DDOS emergency button for Tapestry 5?

2009-10-14 Thread Ulrich Stärk
I'd do it with a RequestFilter. Uli Am 14.10.2009 14:08 schrieb Mats Henricson: Hi! I'm working on a Tapestry 5.1 site that frequently gets hammered by DDOS attacks. We recently talked about it in our team, and one idea I'm currently investigating is to have a flag in our system that I can tur

Re: DDOS emergency button for Tapestry 5?

2009-10-14 Thread Thiago H. de Paula Figueiredo
Em Wed, 14 Oct 2009 09:08:35 -0300, Mats Henricson escreveu: Hi! Hi! So, what would you guys do? Is there a simpler solution? A filter? I would use a ResquestFilter or a Dispatcher checking some service (that would hold the underDDoS field) and redirecting to a given page when neede

Re: DDOS emergency button for Tapestry 5?

2009-10-14 Thread Robin Komiwes
Sorry, did a mistake, correct reply is: On what kind of page do you want to redirect? A Tapestry page or a simple HTML page (which I think should be better when are under a DDOS attack) ? You have a lot of places where you can interact, depending on the previous question :-) On Wed, Oct 14, 2009 a

Re: DDOS emergency button for Tapestry 5?

2009-10-14 Thread Mats Henricson
A simple HTML probably seems like the best idea, or I could go into an infinite loop. And even if there was no such loop, a simple HTML would stand up best under a DDOS attack. Mats > Sorry, did a mistake, correct reply is: > On what kind of page do you want to redirect? A Tapestry page or a simp

Re: DDOS emergency button for Tapestry 5?

2009-10-14 Thread Mats Henricson
>> Hi! > > Hi! Hi! You Tapestry guys are slow today. It took a whopping 8 minutes to get an answer... ;-) >> So, what would you guys do? Is there a simpler solution? A filter? > > I would use a ResquestFilter or a Dispatcher checking some service (that > would hold the underDDoS field) and red

ControlcheckBox in Tapestry5

2009-10-14 Thread Durgesh_Kab
Hi, I am migrating the project from Tapestry 4 to Tapestry 5. I had used ControlCheckBox controller in my project, where by selecting in the header all the content data gets automatically selected. I am unable to find the same in Tapestry5. If anyone have come across any such requirement or com

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-10-14 Thread Roy Douglas
Yes, it works perfectly!! Thanks everyone!!! I tried your dependency and got the same error. Change "chenillekit-project" to "chenillekit-tapestry". The complete dependency from my pom is: org.chenillekit chenillekit-tapestry 1.2.0

Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread Michael Gentry
Hi everyone. I've been developing using Eclipse+Jetty and everything runs fine in that environment. I decided I needed to test deployment, so I built the WAR, fired up Geronimo (with Tomcat as the servlet engine, not Jetty), and installed. When I hit the main page I get this error: org.apache.t

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread cordenier christophe
Hello What version of Tapestry are you using ? It reminds me a bug report on JIRA that has been fixed. Regards Christophe. 2009/10/14 Michael Gentry > Hi everyone. > > I've been developing using Eclipse+Jetty and everything runs fine in > that environment. I decided I needed to test deployment

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread cordenier christophe
I found this also : https://issues.apache.org/jira/browse/TAP5-541 2009/10/14 cordenier christophe > Hello > What version of Tapestry are you using ? It reminds me a bug report on JIRA > that has been fixed. > > Regards > Christophe. > > 2009/10/14 Michael Gentry > > Hi everyone. >> >> I've bee

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread Michael Gentry
I'm using 5.1.0.5. On Wed, Oct 14, 2009 at 10:51 AM, cordenier christophe wrote: > Hello > What version of Tapestry are you using ? It reminds me a bug report on JIRA > that has been fixed. > > Regards > Christophe. > > 2009/10/14 Michael Gentry > >> Hi everyone. >> >> I've been developing usin

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread Michael Gentry
That bug report sure looks like what I'm encountering. I'll see if I can figure it out. Thanks! On Wed, Oct 14, 2009 at 10:53 AM, cordenier christophe wrote: > I found this also : https://issues.apache.org/jira/browse/TAP5-541 > > 2009/10/14 cordenier christophe > >> Hello >> What version of

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread Michael Gentry
It looks like Geronimo has an older version of Woodstox: ./repository/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.jar Versus what my application packaged: ./repository/default/PWR/1255532550665/PWR-1255532550665.war/WEB-INF/lib/woodstox-core-asl-4.0.3.jar I'm not sure if that is the real reason, bu

Re: Tapestry5.1 Upgrade Issue

2009-10-14 Thread Dave Greggory
I created a bug (https://issues.apache.org/jira/browse/TAP5-892). So when I use tapestry-spring-5.0.18 with Tapestry 5.1.0.5, it works fine. Whatever the problem is, it seems to have been introduced in the new version of tapestry-spring. Hopefully, this can get fixed soon. :) ---

T5.1: IllegalStateException when logging out from Tapestry-spring-security

2009-10-14 Thread Olle Hallin
Hi! I have had some problems with T5 5.1.0.5 and tapestry-spring-security 2.1.0 and the logout behaviour. After logging out, numerous java.lang.IllegalStateExceptions are thrown from all over the place, due to @Persist and @SessionState objects that want's to get stuffed back to the session. I di

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread Lance Java
> Wouldn't the JAR in my lib supercede the one provided by the container? The default classloader implementation (ie java.lang.Classloader) is to attempt to resolve the class in the parent classloader before trying the current classloader. Different containers provide different configuration option

Re: T5.1: IllegalStateException when logging out from Tapestry-spring-security

2009-10-14 Thread Thiago H. de Paula Figueiredo
Em Wed, 14 Oct 2009 12:29:08 -0300, Olle Hallin escreveu: Hi! Hi! I have had some problems with T5 5.1.0.5 and tapestry-spring-security 2.1.0 and the logout behaviour. After logging out, numerous java.lang.IllegalStateExceptions are thrown from all over the place, due to @Persist and @

Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Lindsay Ridgeway
[If this question has been answered, please send me a link. I'm new to Nabble, I couldn't find such an answer, I apologize if it's there.] I'm new to T5. After much experimenting and Googling, I thought I'd try a list. I need a form with several submit buttons. It has to be a form, because th

t5: when updating zone, non persistent fields outside of zone are null, is this expected?

2009-10-14 Thread Britske
Perhaps a pretty ignorant question, but: I have a searchresults-page with a zone-component which is updated through an ajax call. Another component lives within the zone-component and it's setuprender-method is called. In this method I need to access the 'searchresults-object' which is stored

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Ulrich Stärk
Why don't you just give us your complete specs and let us do your work. For free of course! Uli Am 14.10.2009 19:16 schrieb Lindsay Ridgeway: [If this question has been answered, please send me a link. I'm new to Nabble, I couldn't find such an answer, I apologize if it's there.] I'm new to

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Lindsay Ridgeway
Hi, Ulrich. Are you saying my request for assistance in understanding how to submit from JavaScript was inappropriate? I could have followed the approach of other posts I've seen on this list: I could have copy/pasted all the false trails I've been down and all the useless error messages I've go

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Ulrich Stärk
http://catb.org/~esr/faqs/smart-questions.html Am 14.10.2009 20:00 schrieb Lindsay Ridgeway: Hi, Ulrich. Are you saying my request for assistance in understanding how to submit from JavaScript was inappropriate? I could have followed the approach of other posts I've seen on this list: I could

Re: t5: when updating zone, non persistent fields outside of zone are null, is this expected?

2009-10-14 Thread Ulrich Stärk
Persisting some property doesn't prevent Tapestry from reusing a page. If Tapestry obtains a page from the page pool and encounters a persisted property, it will set the value from whatever source is specified as the persistence mechanism (flash and session come from the session, client from the

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Martin Strand
I'd also like to have multiple Java methods that receive control depending on which submit button is clicked. You can accomplish this with the Submit component, which fires an event of your choice, e.g. @Component(parameters = "event=buttonOneClicked") private Submit buttonOne; void onButtonO

Re: ControlcheckBox in Tapestry5

2009-10-14 Thread Shing Hing Man
Have you tried the following ? http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source code. The following thread might be useful. http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-td24752416.ht

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Thiago H. de Paula Figueiredo
Em Wed, 14 Oct 2009 14:16:30 -0300, Lindsay Ridgeway escreveu: But in addition, each submit button is associated with a different JavaScript function. Each JavaScript function enters into a particular dialog in order to obtain some information. The JavaScript function needs to store that

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Lindsay Ridgeway
Hi, Martin. Thanks for your response. Unfortunately, I still feel lost. (Let me say that I have programmed computers every day for over 40 years and have spent the last three days totally immersed in Tapestry documentation and a large existing Tapestry code base that doesn't happen to have an e

T5: t:delegate and component recursion emulation

2009-10-14 Thread Dirk Lattermann
Inspired by http://blog.bolkey.com/2009/06/tapestry-5-recursive-tree/, I tried to develop a simple tree component that renders a tree of nodes as nested ul/li lists. Always good to learn Tapestry behaviour. I know that Tapestry doesn't support recursive components, but this can be somewhat circumv

Re: T5: ognl equivalents

2009-10-14 Thread Thiago H. de Paula Figueiredo
Em Wed, 14 Oct 2009 16:47:37 -0300, ross.efi escreveu: Is there an equivalent expression in Tapestry5 to the following Tapestry4 OGNL expression: ognl:@com.myexample.somedomainobj...@some_constant Just use the OGNL binding provided by ChenilleKit. Or, better yet, create a getter in your pag

T5: ognl equivalents

2009-10-14 Thread ross.efi
Is there an equivalent expression in Tapestry5 to the following Tapestry4 OGNL expression: ognl:@com.myexample.somedomainobj...@some_constant or do I have to just expose it via a getter on the page class? Seems like more code than necessary. Ross -- View this message in context: http://www.n

Re: DDOS emergency button for Tapestry 5?

2009-10-14 Thread Sergey Didenko
It is more effective to use reverse proxy like nginx as a frontend. And use it to cut ddos requests. You will need to setup it with a rule like "if the request does not contain auth cookie - send error.html ". May be more complex one because this can be hijacked with a fake cookie. Even more effe

Re: Page methods guidelines ...

2009-10-14 Thread Sergey Didenko
May be this will help you: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whatiscalledandwhen On Sun, Oct 11, 2009 at 11:40 AM, Gunnar Eketrapp wrote: > Hi! > > I have been porting a web app to T5 for some weeks now and have some > questions on how you folks do! > > I s

Re: DDOS emergency button for Tapestry 5?

2009-10-14 Thread Andreas Andreou
i'd also recommend Sergey's suggestion - it also frees up app server resources/threads since the app server won't need to wait for clients to get all the bytes of each response. On Wed, Oct 14, 2009 at 11:03 PM, Sergey Didenko wrote: > It is more effective to use reverse proxy like nginx as a fro

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Martin Strand
Perhaps something like this? Not tested at all but I suppose it ought to work. in your template: window.onload = function () { alert('about to submit'); document.forms[0].firstChild.value = 'i just set the hidden value'; document.forms[0].submit(); }; in your cla

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Lindsay Ridgeway
Martin Strand-4 wrote: > > Perhaps something like this? Thanks for your reply, Martin. I appreciate the time you put into it. I've continued experimenting on my own. Here's a generic version of what I've come up with: THE JAVASCRIPT function extraStep() { alert("ENTER extraStep");

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Geoff Callender
On 15/10/2009, at 11:11 AM, Lindsay Ridgeway wrote: * I'm still not clear when to use "t:" and when not to. For example, could I have used "form" instead of "t:form"? I don't know. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/lang/previewabletemplates --

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Martin Strand
* Naturally I'd have preferred to use "t:hidden" rather than "t:textfield" for the hidden field. Unfortunately, I get the error "Unable to resolve 'hidden' to a component class name." I think Hidden was added in Tapestry 5.1 so if you're using 5.0 "hidden" won't be an existing component. *

[T5] Get Response data

2009-10-14 Thread iapilgrim
Hi all, I'm using T5.1.0.5. My goal is to get page response data and cache it for future use. One way to achieve that is in after render phase or clean up render phase. My questions are + Are data at after render phase final? I mean does T5 inject more data after that? + If I want to get response

Re: Tapestry 5 Submit Form from Javascript

2009-10-14 Thread Geoff Callender
To clarify further... You have to use a Tapestry Form component, not a regular HTML form. Otherwise there are important things you can't do: - you can't use the Errors component to display the errors (eg. ). Tapestry depends on it being within a T5 Form. - you can't refer to the Form in the p

"component must be enclosed by a Form component" error

2009-10-14 Thread Lindsay Ridgeway
I have the following t:grid defined in the file "AccountLog.tml": . . . ${createdOn} ${stateDescription} ${updatedOn} Action

Re: [T5] Get Response data

2009-10-14 Thread Martin Strand
Not really answering your question but if you want to cache entire pages I would recommend using a caching proxy such as squid or varnish. Of course it depends on your specific use case... On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim wrote: Hi all, I'm using T5.1.0.5. My goal is to get pag

Tapestry5 - Can not create skeleton Tapestry project

2009-10-14 Thread vhtien
Hello everybody! I'm a newbie for Tapestry5 and i want to try it. But i have some problems. I hope everyone can help me. My OS is Fedora 10 and this is my doing list: 1./ Download and install JDK1.6 update 16 from http://java.sun.com http://java.sun.com and set the enviroment variable JAVA_HOM

Re: Tapestry5 - Can not create skeleton Tapestry project

2009-10-14 Thread Gunnar Eketrapp
Hi ! Try ... mvn archetype:generate -DarchetypeCatalog=http://tapestry.formos.com/maven-repository ... instead. Also see http://tapestry.formos.com/nightly/tapestry5/ Good luck and have fun! /Gunnar Eketrapp 2009/10/15 vhtien > > Hello everybody! > > I'm a newbie for Tapestry5 and i want

Re: Page methods guidelines ...

2009-10-14 Thread Gunnar Eketrapp
Yea thanks! I discovered the jumpstart app after this quuestion was raised and it's a great source for T5 newbies. It ought to be linked from the T5 site! 2009/10/14 Sergey Didenko > May be this will help you: > > http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whati

Re: Page methods guidelines ...

2009-10-14 Thread Kalle Korhonen
On Wed, Oct 14, 2009 at 10:23 PM, Gunnar Eketrapp wrote: > It ought to be linked from the T5 site! Right there on the home page... http://tapestry.apache.org/ Kalle > 2009/10/14 Sergey Didenko > >> May be this will help you: >> >> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples

Tapestry5 - Helloworld

2009-10-14 Thread vhtien
Hi everyone! I'm very tired! I'm exhauted! I've try many solution but i do not write and deploy a simple Tapestry5 project HelloWorld. I never pass the maven task, just ERROR or FAILURE. I want to cry. Someone show me how to do it step by step ?? My OSs is Fedora 10, my IDE is Eclipse 3.5. Th

Re: Tapestry5 - Helloworld

2009-10-14 Thread Robin Komiwes
Hi, Please copy/paste your maven error stack trace. Add the "-e" parameter before running the command to enable debug mode. Thanx! On Thu, Oct 15, 2009 at 7:59 AM, vhtien wrote: > > Hi everyone! > > I'm very tired! I'm exhauted! I've try many solution but i do not write and > deploy a simple T

T5 / Include file ordering

2009-10-14 Thread Gunnar Eketrapp
Hi! I am porting an app that have some page specific CSS files. I added these in the page class files as @IncludeStylesheet ... annotations. I also have a border component that includes the main CSS file. My question now is how do I get the main CSS to be loaded before the page specific