Re: T5 Running Jetty, log4j jar, FAQ
Solved! I searched my whole system for log4j*.jar and noted that the Idea 7.0.3/lib dir had a log4j.jar. I replaced this with Log4j 1.2.14 and bam it works. Yay. Kevin Kevin C. Dorff wrote: > > I've been using Netbeans but I'm now trying to run T5 out of IntelliJ IDEA > 7.0.3. I decided to try to use the Jetty, ie, jetty:run-war from mavel - > the target that Tapestry provides. When I do this I get > >java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled > > when I try to run my app. I search on this and find the FAQ: > >http://tapestry.apache.org/tapestry5/faq/general.html > > This suggests I need to add log4j 1.2.14 to Jetty/lib/ext or something > along those lines, but it seems that it is using Maven's Jetty, not the > Jetty I have installed on my system elsewhere. This appears to be an > issue, as I am a super Maven-noob. I found my Maven repository but don't > see any log4j's in there that aren't 1.2.14. I sure don't see a Maven ext > directory anywhere. I am just feeling completely lost as to where to look. > Maybe this should be an extension to the FAQ or am I just being silly > about something? > -- View this message in context: http://www.nabble.com/T5-Running-Jetty%2C-log4j-jar%2C-FAQ-tp16902110p16944614.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 Running Jetty, log4j jar, FAQ
I've been using Netbeans but I'm now trying to run T5 out of IntelliJ IDEA 7.0.3. I decided to try to use the Jetty, ie, jetty:run-war from mavel - the target that Tapestry provides. When I do this I get java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled when I try to run my app. I search on this and find the FAQ: http://tapestry.apache.org/tapestry5/faq/general.html This suggests I need to add log4j 1.2.14 to Jetty/lib/ext or something along those lines, but it seems that it is using Maven's Jetty, not the Jetty I have installed on my system elsewhere. This appears to be an issue, as I am a super Maven-noob. I found my Maven repository but don't see any log4j's in there that aren't 1.2.14. I sure don't see a Maven ext directory anywhere. I am just feeling completely lost as to where to look. Maybe this should be an extension to the FAQ or am I just being silly about something? -- View this message in context: http://www.nabble.com/T5-Running-Jetty%2C-log4j-jar%2C-FAQ-tp16902110p16902110.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: question about onValidate and form reset
Thanks for these suggestions. First Robert Zeigler, onValidateForm is exactly what I needed, also I found the null-safe comparison was important. Second, your suggest about disabling the submit javascript handler was right on. The missing piece I put together was that my onValidateForm is always going to be called but when I added the "onSelectedFromResetButton()" handler for my reset button, I just did a registrationForm.clearErrors(); to clear any errors - as after a reset there shouldn't be any errors. NOW, to help with some future questions: With T3/T4 it was pretty easy to determine what methods to use for what, just look at the objects I was extending or implementing and I could see what method to implement or override to get what functionality. But since T5 uses POJO's, I am left trying to discover methods like onSubmit onValidateForm onValidateFromPassword onSelectedFromResetButton some of these are intuitive, some are absolutely not. Is there a source that just talks about for Pages, Services, Forms, Form Buttons, etc. all the method names (format of method names) Tapestry will try to evoke, their order, when, etc? Sometimes it seem that the component reference is explicit on this, often (such as onValidate) it seems the component reference doesn't mention these at all - or maybe I just am missing something. Thanks! Loving Tapestry5 so far (when I am not stumped). Kevin -- View this message in context: http://www.nabble.com/T5%3A-question-about-onValidate-and-form-reset-tp16809659p16824702.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: question about onValidate and form reset
Sorry if these have been covered, I am somewhat new to T5, using 5.0.11. First, onValidate seems to be called once for each form variable, BEFORE the setter is called for that form variable. While I understand that logic, it SEEMS makes things a touch difficult to check the value I want to validate, especially if I want to validate several variables at once, such as if I want to validate two password variables to make sure they are equal, or to verify a login page. I can do something like onValidateFromPassword(String newPassword) and the assume username was already validated and "set" and then try "newPassword" for the user. This just seems awkward. Is it really intentional that onValidate is called once per form variable and before each setter? I would prefer that all setters are called, the onValidate is called so I can check stuff. Really not sure how this is best to be coded. SECOND: if I want a form reset as a submit button to reset the state of the form (all my fields are @Persist), if I have validation on the fields, pressing "Reset" will trigger Javascript validation and not allow the submit. I looked at the Component Reference on submit and don't see a way to short-circuit validation so I can perform the reset, and start nice and fresh. -- View this message in context: http://www.nabble.com/T5%3A-question-about-onValidate-and-form-reset-tp16809659p16809659.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Google Web Toolkit
License can be found: http://code.google.com/webtoolkit/terms.html I believe the Google guys said in the JavaOne presentation that the toolkit was Apache 2.0 license open source. Some of the supporting utilities may not be open source, but, the toolkit is and the download comes complete with source. Somebody asked about extending the toolkit to add some other component or functionality and the Google guy said: "We want YOU to write it [and contribute it back]". I believe this is pretty open stuff. I can tell you based on the JavaOne session this stuff is COOL and really needs to be integrated with Tapestry. I will definitely investigate how to use this with my existing apps and will also investigate how to develop apps using just this toolkit to see how it compares. Kevin On 5/17/06, Scott Russell <[EMAIL PROTECTED]> wrote: It looks pretty cool. I'd like to see how this could be integrated with the work being done on Tacos4 and/or Tapestry 4.1. Having said that, I think the licence is, like Java, free but not open source. -Scott On Wednesday 17 May 2006 22:37, Peter Svensson wrote: > OK, this is so sweet. Who will be the first to make this work with > Tapestry/Tacos?? > > http://code.google.com/webtoolkit/ > > Cheers, > PS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]