Missing output with global layouts (T5)
I'm posting this for future searches on similiar problems: After renaming the package of my app I had strage effects in the output: Part of the pages where missing, depending on the follow-up tags, e.g., in the tml pPrintOrNorp t:form /t:form the PrintOrNot paragraph only got printed, when the form was deleted from the tml. Similiar effect occurred with elements in or below the form. When only an expansion like ${message:searchButton} was on the page, the system printed an expection saying that This markup writer did not have a current element, but I didn't use any markup writer myself. Finally I found that I did not rename the directory of the .tml file which was used as a global layout around the page. The component tmls had to be placed under WEB-INF/classes for jetty to find them when run under eclipse, so I simply forget them. Nevertheless I think that those issues are a big downside of convention over configuration and the general design of tapestry: since almost all hooks and other things, like tmls, are not required, and pages are not derived from a base page, the system cannot tell you that they are missing / not found. Hooks like @SetupRender can be verified by logs, but a missing tml will not show up anywhere. Regards, Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BeanInfo FAIL onLoad
Hi, since I've renamed my application package I get error messages for all BeanInfo classes, e.g.: FAIL onLoad org.apache.tapestry5.corelib.components.FormBeanInfo I've recompiled all sources and cannot see where there should be a problem. Its the same with both, jetty 6.1.11 and tomcat 5.5.26. Tapestry 5.0.13 Does anyone has any idea why all BeanInfo classes could be gone? Thanks. Udo. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: server hangs with parallel requests
This problem still persists with jetty 6.1.11. I have noticed that there is a FAIL onLoad postcon.erp.modules.pages.AddressDetail1BeanInfo Message from org.apache.tapestry5.internal.services.InternalModule.ComponentInstantiatorSource in the log, which refers to a Tapestry-derived class of my app. Any ideas on how to circumvent this loading problem? Thanks, Udo. Original-Nachricht Datum: Fri, 4 Jul 2008 11:22:11 +0200 Von: Sven Homburg [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: server hangs with parallel requests i had a similar problem after updating my environment to linux/java-1.6.0_6/jetty-6.1.11 it works for me 2008/7/4 Udo Abel [EMAIL PROTECTED]: Hi, I have a page with 4 iframes loading 4 different pages from a tapestry 5 application. In 2 of 3 cases, th server hangs and does not return any page. When I first load 1 page, subsequent loading of the 4-page frame succeeds. Is there a possible synchronization problem? The stacks of the for page load tasks btpool0-1 to -4 and the system tasks in eclipse is appended here. Im using eclipse 3.3.2 woth java 1.6.0_6and jetty 6.1.6. Thread [btpool0-0 - Acceptor0 [EMAIL PROTECTED]:8080] (Suspended) EPollArrayWrapper.epollWait(long, int, long, int) line: not available [native method] EPollArrayWrapper.poll(long) line: 215 EPollSelectorImpl.doSelect(long) line: 65 EPollSelectorImpl(SelectorImpl).lockAndDoSelect(long) line: 69 EPollSelectorImpl(SelectorImpl).select(long) line: 80 SelectorManager$SelectSet.doSelect() line: 406 SelectChannelConnector$1(SelectorManager).doSelect(int) line: 166 SelectChannelConnector.accept(int) line: 124 AbstractConnector$Acceptor.run() line: 515 BoundedThreadPool$PoolThread.run() line: 450 Daemon Thread [Timer-0] (Suspended) Object.wait(long) line: not available [native method] TimerThread.mainLoop() line: 509 [local variables unavailable] TimerThread.run() line: 462 [local variables unavailable] Thread [btpool0-1] (Suspended) ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).checkCerts(String, CodeSource) line: 751 ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).preDefineClass(String, ProtectionDomain) line: 487 ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).defineClass(String, byte[], int, int, ProtectionDomain) line: 614 GeneratedMethodAccessor3.invoke(Object, Object[]) line: not available DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 ClassPool.toClass2(Method, ClassLoader, Object[]) line: 965 ClassFactoryClassPool(ClassPool).toClass(CtClass, ClassLoader, ProtectionDomain) line: 947 CtClassSourceImpl.createClass(CtClass) line: 92 ClassFabImpl(AbstractFab).createClass() line: 89 InternalClassTransformationImpl.createInstantiator() line: 1448 ComponentClassTransformerImpl.createInstantiator(String) line: 181 $ComponentClassTransformer_11aed3dc4bb.createInstantiator(String) line: not available ComponentInstantiatorSourceImpl.findInstantiator(String) line: 240 $ComponentInstantiatorSource_11aed3dc4ae.findInstantiator(String) line: not available PageElementFactoryImpl.newComponentElement(Page, ComponentPageElement, String, String, String, String, Location) line: 211 $PageElementFactory_11aed3dc4e5.newComponentElement(Page, ComponentPageElement, String, String, String, String, Location) line: not available PageLoaderProcessor.startComponent(StartComponentToken) line: 656 PageLoaderProcessor.loadTemplateForComponent(ComponentPageElement) line: 501 PageLoaderProcessor.workComponentQueue() line: 808 PageLoaderProcessor.loadPage(String, String, Locale) line: 393 PageLoaderImpl.loadPage(String, Locale) line: 59 $PageLoader_11aed3dc4e3.loadPage(String, Locale) line: not available PagePoolCache.checkout() line: 210 PagePoolImpl.checkout(String) line: 107 $PagePool_11aed3dc4e2.checkout(String) line: not available RequestPageCacheImpl.get(String) line: 43 $RequestPageCache_11aed3dc4e1.get(String) line: not available $RequestPageCache_11aed3dc4d9.get(String) line: not available RequestSecurityManagerImpl.checkForInsecureRequest(String) line: 59 $RequestSecurityManager_11aed3dc4d8.checkForInsecureRequest(String) line: not available TapestryModule$28.handle(PageRenderRequestParameters, PageRenderRequestHandler) line: 1670 $PageRenderRequestHandler_11aed3dc4dc.handle(PageRenderRequestParameters) line: not available $PageRenderRequestHandler_11aed3dc4d0.handle(PageRenderRequestParameters
Re: TapestryFilter subclassing problem
Hi Kris, yes, moving the class to the service package below the one pointed to by tapestry.app-package solved the problem! Thanks very much! Regards. Udo. Original-Nachricht Datum: Tue, 15 Jul 2008 09:16:50 +0200 Von: Kristian Marinkovic [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: Antwort: Re: TapestryFilter subclassing problem hi udo, i dont see what the problem is. it seems like the ioc container has problems to build the ServletApplicationInitializer service. i just extended my own TapestryFilter with an empty init method and everything works as expected. if you look at the stacktrace you'll see that the tapestryFilter tries to obtain the above mentioned service from the registry. ServletApplicationInitializer ai = registry.getService(ServletApplicationInitializer ,ServletApplicationInitializer.class); may be you have a classloading problem here. where (package) did you put your implementation of your filter? where does the tapestry.app-package parameter point to? i put my filter into my.package.structure.services whereas web.xml points to my.package.structure g, kris Udo Abel [EMAIL PROTECTED] 14.07.2008 16:05 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: Antwort: Re: TapestryFilter subclassing problem Hi Kris, thanks for your help. The stack trace is quite long, I hope this part conatins more clues: ERROR main org.mortbay.log - failed PostConERP java.lang.RuntimeException: Error building service proxy for service 'ServletApplicationInitializer' (at org.apache.tapestry5.services.TapestryModule.buildServletApplicationInitializer(Logger, List, ApplicationInitializer) (at TapestryModule.java:951)): argument type mismatch at org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:245) at org.apache.tapestry5.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java:163) at org.apache.tapestry5.ioc.internal.ModuleImpl.getService(ModuleImpl.java:91) at org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImpl.java:299) at org.apache.tapestry5.ioc.internal.RegistryWrapper.getService(RegistryWrapper.java:53) at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:82) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at runjettyrun.Bootstrap.main(Bootstrap.java:76) Caused by: java.lang.RuntimeException: argument type mismatch at org.apache.tapestry5.ioc.internal.ModuleImpl.createProxyInstance(ModuleImpl.java:382) at org.apache.tapestry5.ioc.internal.ModuleImpl.createProxy(ModuleImpl.java:335) at org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:227) ... 17 more Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.tapestry5.ioc.internal.ModuleImpl.createProxyInstance(ModuleImpl.java:376) ... 19 more ERROR main org.mortbay.log - Failed startup of context [EMAIL PROTECTED]/PostConERP,webapp/PostConERP} java.lang.RuntimeException: Error building service proxy for service 'ServletApplicationInitializer' (at org.apache.tapestry5.services.TapestryModule.buildServletApplicationInitializer(Logger, List, ApplicationInitializer) (at TapestryModule.java:951)): argument type mismatch
TapestryFilter subclassing problem
Hi, when I try to subclass TapestryFilter to do some initialization in the overridden init(), I get a runtime exception during filter start: ERROR main org.mortbay.log - failed TapTest java.lang.RuntimeException: Error building service proxy for service 'ServletApplicationInitializer' (at org.apache.tapestry5.services.TapestryModule.buildServletApplicationInitializer(Logger, List, ApplicationInitializer) (at TapestryModule.java:951)): argument type mismatch at org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:245) even though the overridden method is yet empty. Using Tapestry 5.0.13. Is there anything else to do than subclassing the TapestryFilter and using it in the web.xml? Thanks, Udo. -- Pt! Schon das coole Video vom GMX MultiMessenger gesehen? Der Eine für Alle: http://www.gmx.net/de/go/messenger03 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TapestryFilter subclassing problem
Hi Kris, maybe my understanding is wrong. To be clear: what I've tried is to implement this class: public class ErpTapestryFilter extends TapestryFilter { protected void init(Registry registry) { // .. do some initialization } } and replaced the TapestryFilter with my ErpTapestryFilter in the web.xml. The result should be that the following method from TapestryFiler should be overriden: /** * Invoked from [EMAIL PROTECTED] #init(FilterConfig)} after the Registry has been created, to allow any additional * initialization to occur. This implementation does nothing, and my be overriden in subclasses. * * @param registry from which services may be extracted * @throws ServletException */ protected void init(Registry registry) throws ServletException { } What's wrong with that? Does ...maybe overriden in subclasses mean: ...in tapestry-internal subclasses ? Thanks, Udo. Original-Nachricht Datum: Mon, 14 Jul 2008 13:40:42 +0200 Von: Kristian Marinkovic [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: TapestryFilter subclassing problem Hi Udo, take a closer look at your code. the init() method you override is not the one from the Filter!! it is a method to add additional inits AFTER the Registry has been started. take a look at org.apache.tapestry5.TapestryFilter.java btw. you cannot override init() because it is marked final. g, kris Udo Abel [EMAIL PROTECTED] 14.07.2008 08:55 Bitte antworten an Tapestry users users@tapestry.apache.org An users@tapestry.apache.org Kopie Thema TapestryFilter subclassing problem Hi, when I try to subclass TapestryFilter to do some initialization in the overridden init(), I get a runtime exception during filter start: ERROR main org.mortbay.log - failed TapTest java.lang.RuntimeException: Error building service proxy for service 'ServletApplicationInitializer' (at org.apache.tapestry5.services.TapestryModule.buildServletApplicationInitializer(Logger, List, ApplicationInitializer) (at TapestryModule.java:951)): argument type mismatch at org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:245) even though the overridden method is yet empty. Using Tapestry 5.0.13. Is there anything else to do than subclassing the TapestryFilter and using it in the web.xml? Thanks, Udo. -- Pt! Schon das coole Video vom GMX MultiMessenger gesehen? Der Eine für Alle: http://www.gmx.net/de/go/messenger03 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Antwort: Re: TapestryFilter subclassing problem
) at org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:227) ... 17 more Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.tapestry5.ioc.internal.ModuleImpl.createProxyInstance(ModuleImpl.java:376) ... 19 more Original-Nachricht Datum: Mon, 14 Jul 2008 14:51:42 +0200 Von: Kristian Marinkovic [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Antwort: Re: TapestryFilter subclassing problem hi, Udo, seems to be correct. i created an own filter for my testcases exactly as you described it. and everything works fine for me. can you post more of your stackstrace? g, kris Udo Abel [EMAIL PROTECTED] 14.07.2008 13:59 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: TapestryFilter subclassing problem Hi Kris, maybe my understanding is wrong. To be clear: what I've tried is to implement this class: public class ErpTapestryFilter extends TapestryFilter { protected void init(Registry registry) { // .. do some initialization } } and replaced the TapestryFilter with my ErpTapestryFilter in the web.xml. The result should be that the following method from TapestryFiler should be overriden: /** * Invoked from [EMAIL PROTECTED] #init(FilterConfig)} after the Registry has been created, to allow any additional * initialization to occur. This implementation does nothing, and my be overriden in subclasses. * * @param registry from which services may be extracted * @throws ServletException */ protected void init(Registry registry) throws ServletException { } What's wrong with that? Does ...maybe overriden in subclasses mean: ...in tapestry-internal subclasses ? Thanks, Udo. Original-Nachricht Datum: Mon, 14 Jul 2008 13:40:42 +0200 Von: Kristian Marinkovic [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: TapestryFilter subclassing problem Hi Udo, take a closer look at your code. the init() method you override is not the one from the Filter!! it is a method to add additional inits AFTER the Registry has been started. take a look at org.apache.tapestry5.TapestryFilter.java btw. you cannot override init() because it is marked final. g, kris Udo Abel [EMAIL PROTECTED] 14.07.2008 08:55 Bitte antworten an Tapestry users users@tapestry.apache.org An users@tapestry.apache.org Kopie Thema TapestryFilter subclassing problem Hi, when I try to subclass TapestryFilter to do some initialization in the overridden init(), I get a runtime exception during filter start: ERROR main org.mortbay.log - failed TapTest java.lang.RuntimeException: Error building service proxy for service 'ServletApplicationInitializer' (at org.apache.tapestry5.services.TapestryModule.buildServletApplicationInitializer(Logger, List, ApplicationInitializer) (at TapestryModule.java:951)): argument type mismatch at org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:245) even though the overridden method is yet empty. Using Tapestry 5.0.13. Is there anything else to do than subclassing the TapestryFilter and using it in the web.xml? Thanks, Udo. -- Pt! Schon das coole Video vom GMX MultiMessenger gesehen? Der Eine für Alle: http://www.gmx.net/de/go/messenger03 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Localization in business objects
Hi, is it possible to use the Tapestry Localization (message catalog) outside of pages and components, e.g. in business objects creating reports? A simple @Inject private Messages messages; doesn't work. Of course Tapestry could supply messages from the main application catalog only, but since pages-specific catalogs are usually override existing application messages, that would be sufficient. If thats not possible we must minic the name-decoration used by tapestry to load the best matching properties file, or is there another approach? Thanks, Udo. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form event order issues
Thanks Geoff, yes, that approach certainly solves most situations. Nevertheless there may be situations, in which more than one submit button is necessary. E.G., an universal search-form where the user can enter some search strings and then press Search Customers, Search Suppliers or so. Of course, that can be solved with a select-box Search In - but even if my client would accept that, I still think that the button events should be known before validation takes place... Regards, Udo. Original-Nachricht Datum: Sat, 5 Jul 2008 11:19:06 +1000 Von: Geoff Callender [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: Form event order issues Sorry but the technique I posted for an Abort button doesn't work in IE7. However, the Buttons component from t5components does work. button t:type=t5components/Button type=button t:event=abortAbort/button See http://87.193.218.134:8080/t5c-demo/buttonpage . Get t5c-commons and t5c-contrib jars from http://code.google.com/p/tapestry5-components/ . To work, the jars must be deployed in WEB-INF/lib . Cheers, Geoff On 04/07/2008, at 9:53 PM, Geoff Callender wrote: I'm assuming Abort can ignore what you've typed into the form, in which case the more common technique is to use a link component instead of a submit. That way you bypass the validators. You can style a link to look like the submit button easily enough if that's what you'd like, eg. input type=submit value=Save/ a t:type=pagelink t:page=thePreviousPage style=text- decoration: none input type=button value=Abort/ /a Or use t5components/Submit from http://87.193.218.134:8080/t5c-demo/buttonpage . By the way, onSuccess() is a dangerous place to put validation. See https://issues.apache.org/jira/browse/TAPESTRY-1972 . Cheers, Geoff On 04/07/2008, at 8:40 PM, Udo Abel wrote: Hi, I think the order of events during form submission should be described in a state diagram or so, otherwise you cannot know when to do what. I found out that the onValidate event is fired before any button select event. That means, in onValidateForm you don't know whether the user pressed save or abort - which should be known for validation. That's probably the reason why I found so many people using onSuccess for validation, what I find not very beautiful. Since form submission is very essential, I think the system (and the documentation) should be very clear at that point, which is not yet the case. Regards, Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
server hangs with parallel requests
Hi, I have a page with 4 iframes loading 4 different pages from a tapestry 5 application. In 2 of 3 cases, th server hangs and does not return any page. When I first load 1 page, subsequent loading of the 4-page frame succeeds. Is there a possible synchronization problem? The stacks of the for page load tasks btpool0-1 to -4 and the system tasks in eclipse is appended here. Im using eclipse 3.3.2 woth java 1.6.0_6and jetty 6.1.6. Thread [btpool0-0 - Acceptor0 [EMAIL PROTECTED]:8080] (Suspended) EPollArrayWrapper.epollWait(long, int, long, int) line: not available [native method] EPollArrayWrapper.poll(long) line: 215 EPollSelectorImpl.doSelect(long) line: 65 EPollSelectorImpl(SelectorImpl).lockAndDoSelect(long) line: 69 EPollSelectorImpl(SelectorImpl).select(long) line: 80 SelectorManager$SelectSet.doSelect() line: 406 SelectChannelConnector$1(SelectorManager).doSelect(int) line: 166 SelectChannelConnector.accept(int) line: 124 AbstractConnector$Acceptor.run() line: 515 BoundedThreadPool$PoolThread.run() line: 450 Daemon Thread [Timer-0] (Suspended) Object.wait(long) line: not available [native method] TimerThread.mainLoop() line: 509 [local variables unavailable] TimerThread.run() line: 462 [local variables unavailable] Thread [btpool0-1] (Suspended) ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).checkCerts(String, CodeSource) line: 751 ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).preDefineClass(String, ProtectionDomain) line: 487 ComponentInstantiatorSourceImpl$PackageAwareLoader(ClassLoader).defineClass(String, byte[], int, int, ProtectionDomain) line: 614 GeneratedMethodAccessor3.invoke(Object, Object[]) line: not available DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 ClassPool.toClass2(Method, ClassLoader, Object[]) line: 965 ClassFactoryClassPool(ClassPool).toClass(CtClass, ClassLoader, ProtectionDomain) line: 947 CtClassSourceImpl.createClass(CtClass) line: 92 ClassFabImpl(AbstractFab).createClass() line: 89 InternalClassTransformationImpl.createInstantiator() line: 1448 ComponentClassTransformerImpl.createInstantiator(String) line: 181 $ComponentClassTransformer_11aed3dc4bb.createInstantiator(String) line: not available ComponentInstantiatorSourceImpl.findInstantiator(String) line: 240 $ComponentInstantiatorSource_11aed3dc4ae.findInstantiator(String) line: not available PageElementFactoryImpl.newComponentElement(Page, ComponentPageElement, String, String, String, String, Location) line: 211 $PageElementFactory_11aed3dc4e5.newComponentElement(Page, ComponentPageElement, String, String, String, String, Location) line: not available PageLoaderProcessor.startComponent(StartComponentToken) line: 656 PageLoaderProcessor.loadTemplateForComponent(ComponentPageElement) line: 501 PageLoaderProcessor.workComponentQueue() line: 808 PageLoaderProcessor.loadPage(String, String, Locale) line: 393 PageLoaderImpl.loadPage(String, Locale) line: 59 $PageLoader_11aed3dc4e3.loadPage(String, Locale) line: not available PagePoolCache.checkout() line: 210 PagePoolImpl.checkout(String) line: 107 $PagePool_11aed3dc4e2.checkout(String) line: not available RequestPageCacheImpl.get(String) line: 43 $RequestPageCache_11aed3dc4e1.get(String) line: not available $RequestPageCache_11aed3dc4d9.get(String) line: not available RequestSecurityManagerImpl.checkForInsecureRequest(String) line: 59 $RequestSecurityManager_11aed3dc4d8.checkForInsecureRequest(String) line: not available TapestryModule$28.handle(PageRenderRequestParameters, PageRenderRequestHandler) line: 1670 $PageRenderRequestHandler_11aed3dc4dc.handle(PageRenderRequestParameters) line: not available $PageRenderRequestHandler_11aed3dc4d0.handle(PageRenderRequestParameters) line: not available PageRenderDispatcher.process(String, String) line: 97 PageRenderDispatcher.dispatch(Request, Response) line: 73 $Dispatcher_11aed3dc4d7.dispatch(Request, Response) line: not available $Dispatcher_11aed3dc4c9.dispatch(Request, Response) line: not available TapestryModule$12.service(Request, Response) line: 938 LocalizationFilter.service(Request, Response, RequestHandler) line: 42 $RequestHandler_11aed3dc4ca.service(Request, Response) line: not available TapestryModule$2.service(Request,
form validation recorderror problem
Hi, when I call the method form.recordError(field, message) in onValidateForm(), the field is highlighted but the message is not displayed (and not in the html anywhere). Anything else that need to be done here? Thanks, Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form event order issues
Hi, I think the order of events during form submission should be described in a state diagram or so, otherwise you cannot know when to do what. I found out that the onValidate event is fired before any button select event. That means, in onValidateForm you don't know whether the user pressed save or abort - which should be known for validation. That's probably the reason why I found so many people using onSuccess for validation, what I find not very beautiful. Since form submission is very essential, I think the system (and the documentation) should be very clear at that point, which is not yet the case. Regards, Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 service injection outside pages
Hi, in my app, I have a service which works OK in pages and component classes, but of course a lot of business logic is outside of those classes in separate packages, where I need that service, too. But if I simple @Inject it as in page classes, it does not work (i.e. is null). Is the injection limited to pages (maybe because they get transformed on startup)? Or do I need to do something else for injection outside of pages? Thanks, Udo. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 actionlink id uniqueness
Hi, there are often situations where you may want to put the same actionlink (same event handler) on several places of a page (e.g. navigation buttons on top and bottom of a page). Yet T5 does not allow two actionlinks to have the same id so they target the same event handler. How can that be done without duplicating event handlers? Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 date localization
Hi - thanks for your inputs, yet here's another question: the localization in T5 is very nice - but it does not apply to dates (and numbers?). When I change the Locale, I expected that date formatting will also change, but it does not. The DateField component also ingores Locale (and t.format, btw) and does not change the language of the date-picker.. I've found that I can use the Output component, but that would result in part of I18n to be done by T5 and another part by the application. Any other way? Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 method naming problems
Hi, I want to report that you might get an javassist.bytecode.DuplicateMemberException during page load if you happen to name a getter method for injected ComponentResources variable on your page getComponentResources. I think thats because the eclipse IDE does not know about additional member functions your class has after being transformed by T5 and therefore cannot see any compile errors. Thats probably true for other names, too. Regards, Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 howto manually add a service module?
Thanks. I was not precise enough: the application module DOES load when I put it in a jar with a manifest containing the Tapestry-Module-Classes key, but it does not load just by the default name derived in the way described in the documentation. But now i think that may be due to the developement environment. I'm running jetty 6.1.6 with the the run-jetty plugin under eclipse 3.3, so maybe T5 has some problems finding the package at load time (all other packages in the tree are found, though). Regards, Udo. Original-Nachricht Datum: Wed, 2 Jul 2008 07:39:47 -0700 Von: Howard Lewis Ship [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: T5 howto manually add a service module? Yes, by subclassing the TapestryFilter class; there's a method to override that allows you to have greater control over what modules are loaded. However, the easier way is to figure out why your AppModule is not being loaded; once that is loaded, you can place a @SubModule annotation on it to expressly load whatever modules you want. On Wed, Jul 2, 2008 at 5:41 AM, Udo Abel [EMAIL PROTECTED] wrote: Hi, I want to add some services to the T5 IoC resgistry and have read a number of pages on how to write such a service, but I havn't found instructions on how to add the module class with service definitions to the registry, besides the hint that T5 autoloads module classes found in the manifest of jars. I have also tried the default app module name constructed from the filter name, but that seems not to work. Is there a way tp explicitly add a module class to tzhe registry? Thanls, Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
grid pager replacement
Hi, I want to replace them pager of the grid component with some individual design. On nabblem I found the hint You could use pagerposition=none and supply your own component to perform the paging. from Howard. I tried that by copying the GridPager into an own modified component and place that on the page below the grid. (I can't place it in the grid unless I also use an own implementation of Grid, right?) But then: how can the pager communicate with the grid? I'm wondering btw. how the pager insde the grid does this trick because its onAction handler just updates its own currentPage property... I can mimic the action links of my pager to target the grid, and in fact the grid updates its contents then, but my pager does not, of course. Tanks for any hints. Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BeanModel and complex types?
Hi, in many situations I have objects containing other objects as fields, resulting from a 1:1 reference in a database. E.g., an employee has a refrence to the subsidiary where he is working. In those cases I want to display the name of the subsidiary in a Grid component. The property can be accessed by something like employee.getSubsidiary().getName(); Is there a way to extend the BeanModel to access those properties? Or do I have to duplicate all fields from complex types in simple fields at the top level object, like employee.getSubsidiaryName(); ? Thanks, Udo. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BeanModel and complex types?
Hi Kris, thank you for the quick response! Thats what I was looking for. Udo. Original-Nachricht Datum: Wed, 25 Jun 2008 10:18:33 +0200 Von: Kristian Marinkovic [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: BeanModel and complex types? hi udo, you have to contribute the child property type to the DefaultDataTypeAnaylzer so the BeanModelSource will not ignore it public static void contributeDefaultDataTypeAnalyzer...{ configuration.add(MyType.class,myType); take a look https://issues.apache.org/jira/browse/TAPESTRY-2460 it has two examples how to display a complex child property with another block (containing another BeanEditor) g, kris Udo Abel [EMAIL PROTECTED] 25.06.2008 10:05 Bitte antworten an Tapestry users users@tapestry.apache.org An users@tapestry.apache.org Kopie Thema BeanModel and complex types? Hi, in many situations I have objects containing other objects as fields, resulting from a 1:1 reference in a database. E.g., an employee has a refrence to the subsidiary where he is working. In those cases I want to display the name of the subsidiary in a Grid component. The property can be accessed by something like employee.getSubsidiary().getName(); Is there a way to extend the BeanModel to access those properties? Or do I have to duplicate all fields from complex types in simple fields at the top level object, like employee.getSubsidiaryName(); ? Thanks, Udo. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
empty block in grid - how?
Hi, I wanted to define a message as a replacement of the default empty-message in the Grid component, but I could not find any hint on how to define such a block. Casting the parameter to message or literal does not work. Btw., I think the documentations lacks some essential information. E.g., I searched the internet quite a while in order to find out how an onclick handler can be called from a Link. Just by chance I came across an example from which I concluded that any parameter of a PageLink not interpreted by Tapestry, is literally taken into the a tag. Another example is the context parameter, for which the documentations says that it can be an array - but there's no explanation whatsoever on how one can define it as an array. Again, only after long searches I found that there is a list: prefix, that regrettably isn't part of tapestry yet. I'm sure, the authors of the documentation are just too familiar with tapestry to recognize that a new user just don't know HOW to do it, when they say e.g. define a block. Regards, Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
grid component exclude/inlcude has no effect (t5.0.10)
Hi I have a grid component like this: t:grid source=addrList row=addrRow reorder=kurzname, adressnr, ort, strasse /t:grid The reorder parameter works, but neither include nor exclude seem to do anything, as in: t:grid source=addrList row=addrRow include=kurzname, adressnr, ort, strasse /t:grid which should have the same output as reorder but omit any further columns. I'm currently using t5.0.10 (due to tomcat startup problems with t5.0.13). Is that a known problem or am I doing something wrong? Thanks, Udo. -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
programmatic component rendering
Hi, we're planning a highly dynamic web app, where it is necessary to display certain components depending of the application state. E.g., in an address detail view there should be a paragraph which contains different details for a customer and a supplier. Or if the balance of an account is greater than a certain amnout, another component should be redered on the current page (or within the current component, respectively). Since there are many such situations and combinations, we can't build static tml files for all of them. So, is it possible to render an arbitrary component based on a programmatic choice from within the rendering of a component? Thanks, Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
t5.0.13 with tomcat again
Hi, meanwhile I have tested a completely new installtion with the latest tomcat 6.0.16 and Java 1.6.0_06 on a windows machine (instead of ubuntu linux) as a plain tomcat installtion without any connection to eclipse. Tomcat is startet from the command line with all standard parameters. But still tomcat cannot start the TapestryFilter: 22.06.2008 11:37:25 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error filterStart 22.06.2008 11:37:25 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/TapTest] startup failed due to previous errors Since 5.0.10 could be startet I think that's a tapestry issue - at least I don't know what I can do about it. Is there anyone who has a running tomcat 6 + t5.0.13 installtion and if so, what is the environment? Thanks, Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
t5.0.13 with tomcat start problem
Hi, I hope someone has expierience with Tapestry 5.0.13 and tomcat. Version 5.0.10 worked fine, since 5.0.11 I got an error during tomcat startup: 20.06.2008 08:36:32 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error filterStart 20.06.2008 08:36:32 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/MyApp] startup failed due to previous errors I tested tomcat 5.5 and 6.0 with Java 1.6.0 on Ubuntu Linux. I have set the new path name with tapestry5 in web.xml: filter filter-nameapp/filter-name filter-classorg.apache.tapestry5.TapestryFilter/filter-class /filter and jar'ed the class files since tapestry cannot read WEB-INF/classes as described in the tomcat deploy page. I hope someone can give me a hint, since I think its a configuration issue. Thanks! Regards, Udo. -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: t5.0.13 with tomcat start problem
Hi Sven, I've not yet tried to use Java 1.5, but javassist worked in Tapestry 5.0.10... I've tried both versions (3.6 which came with 5.0.10 and 3.7 which came with 5.0.13). I keep on searching. Original-Nachricht Datum: Fri, 20 Jun 2008 10:10:12 +0200 Von: Sven Homburg [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: t5.0.13 with tomcat start problem i am not sure, but i readed sometimes about problems between javassist and java 1.6. have you tried java 1.5? 2008/6/20 Udo Abel [EMAIL PROTECTED]: Hi, I hope someone has expierience with Tapestry 5.0.13 and tomcat. Version 5.0.10 worked fine, since 5.0.11 I got an error during tomcat startup: 20.06.2008 08:36:32 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error filterStart 20.06.2008 08:36:32 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/MyApp] startup failed due to previous errors I tested tomcat 5.5 and 6.0 with Java 1.6.0 on Ubuntu Linux. I have set the new path name with tapestry5 in web.xml: filter filter-nameapp/filter-name filter-classorg.apache.tapestry5.TapestryFilter/filter-class /filter and jar'ed the class files since tapestry cannot read WEB-INF/classes as described in the tomcat deploy page. I hope someone can give me a hint, since I think its a configuration issue. Thanks! Regards, Udo. -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]