no service implements the interface java.util.Date
While I'm using BeanEditForm component from T5.0.18, it throws an error says "no servicie implements java.util.Date". My code is quite simple. and Celebrity is just a POJO which has an constructor like "public Celebrity(String firstName, String lastName,Date dateOfBirth)". I'm a newbie and can't find any clue due to the poor documentation of Tapestry. Could someone give me a hint or tell me which doc I should read. Thanks a lot. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Jetty Launcher causes problems.
Jetty Launcher Eclipse plugin causes a wiered problem while I'm trying to add contributions to ApplicationStateManager for Tapetry 5 . After a long time tracing and guessing. I found out at DefaultMuduleDef.java line 190,(ver5.0.15),the HashMap produces wrong hashcode and failed to get configuration type according to the method parameter type as key . Anyone encounter this kind of problem or get a solution? I like jetty launcher because it's fast. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
AppModule just won't work
I'm following the book "Tapestry 5: Building Web Applications" to start my first journey on Tapestrt,but it fails me. The way of inject a interface of IDataSource by adding "contributeApplicationStateManager(MappedConfiguration)" to "AppModule.java" won't work. Where am I missing here? Is there a way to diagnose this problem? I traced into TapestryAppInitializer and found that AppModule.class was added to Registry successfully,but the breakpoints I set in AppModule won't break at all. I am stucking here - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
auto tag complementation in Eclipse 3.4
I tried to add "tapestry_5_0_0.xsd" in Eclipse 3.4's XML Catalog and wish to get an auto-complete of Taepstry 5's tags, but I failed. Did anyone successfully make this work? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: More than one submit button in one form.
Yes, the onSelectedXXX works! Thank you. The annotaded way won't work. I've tried it. Maybe this is a bug. I am using Tapestry 5.0.18. 2009/2/27 nille hammer : > Hi Dante, > the convention for naming of handle methods of submit events is > "onSelectedFrom". Rewrite your code as follows and it shuld work. The > annotaded way should work too, although I have never used it myself. > > public class Start{ > void onSelectedFromBtnA(){ > // this should work > } > > void onSelectedFromBtnB(){ > //this should work > } > See documentation of the Submit component for further details: > http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Submit.html > > Kind Regards, nillehammer > > -- > http://www.winfonet.eu > > - original Nachricht > > Betreff: More than one submit button in one form. > Gesendet: Fr, 27. Feb 2009 > Von: ËïÁ¢Î° > >> While I am reading the book "Tapestry 5: Building Web Applications", >> it introduces a way to implements two submit button in one form(see >> the code below). But according to >> http://markmail.org/message/fjev6gt76fpc6akq , all buttons' events >> will be "overrided" by the form component. Is there a way to detect >> which button is clicked? >> >> For example, how to let the following code work? >> >> Start.tml: >> >> >> >> >> >> >> >> Start.java >> public class Start{ >> @OnEvent(component="btnA") >> void onBtnAClick(){ >> // this won't work >> } >> >> @OnEvent(component="btnB") >> void onBtnBClick(){ >> //this won't work >> } >> >> @OnEvent(component="mainForm") >> Object onFormSubmit(){ >> //only this works >> } >> } >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > --- original Nachricht Ende > > > - > 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
More than one submit button in one form.
While I am reading the book "Tapestry 5: Building Web Applications", it introduces a way to implements two submit button in one form(see the code below). But according to http://markmail.org/message/fjev6gt76fpc6akq , all buttons' events will be "overrided" by the form component. Is there a way to detect which button is clicked? For example, how to let the following code work? Start.tml: Start.java public class Start{ @OnEvent(component="btnA") void onBtnAClick(){ // this won't work } @OnEvent(component="btnB") void onBtnBClick(){ //this won't work } @OnEvent(component="mainForm") Object onFormSubmit(){ //only this works } } - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org