t:if test considers Float 1.0 as false?
It seems that t:if considers 0.1, 0.99 as false, but 1.0 as true. Should I file a bug? This is 5.0.18 -james -- James A. Hillyerd ja...@hillyerd.com
Re: T5: T5 and EJB3
Hi Kalle, I can't recommend for, or against, jSecurity because back in April it didn't quite fit my needs (http://www.jsecurity.org/node/1031). However, I do think they're on the right track. Since then (April) they've gone into the Apache incubator. I intend to review it again soon. Cheers, Geoff On 18/01/2009, at 5:59 PM, Kalle Korhonen wrote: Hey Geoff, did anything come out of your jSecurity investigations? Did you run into any issues with it and do you have any other comments for/against using it with T5? Kalle On Thu, Apr 24, 2008 at 6:37 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: CG, Sorry, no max version for T5 yet. At the moment min is gradually mutating toward max with each release, but a full max version won't exist for quite a while yet. Regarding authentication and authorisation, I'm investigating jSecurity and when I'm happy with it I'll release a min version that includes roles and user-roles done properly, but I think that's at least a few weeks away. Cheers, Geoff On 24/04/2008, at 10:06 PM, CG wrote: Hi Geoff, Thanks for your link. It could serve as a good start for me. I just wonder , is there a max-package for T5 ? I only saw min package for T5, and I am very interested in the max package feature like authorization, role-user etc. thx On Wed, Apr 23, 2008 at 6:36 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: Have a look at JumpStart. http://files.doublenegative.com.au/jumpstart/ It injects a business services locator rather than the proxies, but it's pretty resilient. If you develop improvements then please contribute them back for everyone. Cheers, Geoff On 22/04/2008, at 12:48 AM, CG wrote: Hi all, I am a newbie in Java Web Application programming. I am now plan to use Tapestry 5 + EJB3 to write a web application. After googling , I found that T4 does not support EJB3 due to Hivemind's EJBProxyFactory service does not support EJB3 . Therefore, I try to search again in Google for EJB3 support in T5. I found an old mail(2006) in this mailing list which stated that T5 may wrap the EJBProxyFactory as a workaround. I do try to find whether the new Hivemind already supported EJB3 or not but no luck , I can't find any useful info. I am totally new to Hivemind or Tapestry, I would like to know whether T5 already support EJB3 or not , if yes, is there any example that can I refer , to learn how to get my stateless bean and stateful bean work in Tapestry UI. Any guidance is appreciated. Thanks. CG - 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 - 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: Anyone got Jetty-T5-OpenEJB-Hibernate working?
For the record, I've succeeded in getting Jetty-T5-OpenEJB-Hibernate working. It's a great combination for development and it has resulted in JumpStart 4.0. I'll post the announcement tomorrow if there are no glitches reported in the next 24 hours. On 22/11/2008, at 10:35 AM, Geoff Callender wrote: Has anyone got Jetty-T5-OpenEJB-Hibernate working? I'd like to use this combo for a 2nd implementation of JumpStart so if anyone can help me that would be great. Thanks, Geoff - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Strange ClassNotFoundException: org.slf4j.Logger
On Fri, Jan 16, 2009 at 6:36 PM, Martijn Brinkers martijn.l...@gmail.com wrote: But I'm using run-jetty-run successfully for a long time already. I only had to add -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true to the VM-arguments box in the run-jetty-run debug configuration (in Eclipse) It still doesn't work for me. :-( -- Thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] improve documentation
I would prefer a prototypical community application to start the usual webapp. So user management, registration with email validation and capchas, profiles, user groups, fine grained security, optionally simplistic blogs, forums, pm's and a bit of content management etc. I tend to copy that stuff over from older applications everytime, since it is standard in almost all webapps. Having an archetype for that would definitely also give Tap5 a boost in the hobby programmers section. Sure, this overlaps a bit with appfuse, but appfuse tends to be a bit bloated for smaller projects by virtue of the generalizations made. With the community/user base in place it would be possible to go for full featured community apps and portals or for example to an online shop, stock monitors or whatever. If it would be possible to make it easily skinnable I would think it wouldn't take long before the community provides with interesting designs and eyecandy. But maybe this is all a bit far fetched ;) Regards, Otho 2009/1/17 James Hillyerd yimmy...@gmail.com I quite like the existing tutorial, I was just disappointed it ended so abruptly. :) I think whatever docs come around in the future, they need to cover more on Encoders/Translators/Coercers - as that was one of the most difficult things for me to learn. Honestly, I still barely understand when to use which. -james On Tue, Jan 13, 2009 at 10:15 AM, Howard Lewis Ship hls...@gmail.com wrote: I've been coming to the same conclusion. I'm clearing time with my boss to pursue this, along with several online articles. I have an idea for an application that can demonstrate every bit of Tapestry and be useful to boot. So the guide is the reference, what I have planned is the tour. It would replace the tutorial. -- James A. Hillyerd ja...@hillyerd.com
Re: [T5] improve documentation
I completely agree too. A search facility of the existing site would be a huge leap forward. On 16/01/2009, at 9:23 AM, Szemere Szemere wrote: Completely agree with the sentiments expressed. Too often I've had to use Google or similar to find what I'm looking for in the Tapestry documentation. Having it split across at least 4 different places and in some places confused with Tapestry4 is awkward. Szemere - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t:if test considers Float 1.0 as false?
Hi James, I don't think it is an issue with the if-component. If-component just calls a method that is given in the test-attribute and evaluates whether it returns true or false. Could it be that in this method you accidencially do an Integer comparison instead of a Float comparison? Greetz nillehammer James Hillyerd schrieb: It seems that t:if considers 0.1, 0.99 as false, but 1.0 as true. Should I file a bug? This is 5.0.18 -james - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: [T5] loading tapestry configuration from properties file?
I had some problems with deploying my project and reading properties with this example (developed on Jetty - OK!, but deployed on Tomcat, and reading properties failed). Solution was in Tapestry source code: InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(resourceName); reads resource from classpath :) -- View this message in context: http://n2.nabble.com/-T5--loading-tapestry-configuration-from-properties-file--tp1097577p2177581.html Sent from the Tapestry Users 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: [T4.1] OGNL performance problem (serialization)
Aaron, I was able to reproduce your fast/slow problem using every Tap version from 4.1.1 up to 4.1.6 (and relevent ognl versions) but only when org.apache.tapestry.disable-caching was set to TRUE Perhaps you forgot to set this property back to false ? On Fri, Jan 16, 2009 at 7:46 PM, Aaron Kaminsky aar...@adaptiveplanning.com wrote: I found tapestry-prop-1.0.0 at http://howardlewisship.com/tapestry-javaforge/tapestry-prop/. I cannot seem to get it to work in 4.1.3 or 4.1.6. In both cases when I use it on a simple expression I get the exception below. I assumed that this was expected and that tapestry-prop was not supposed to work in 4.1.3+. Did I just do something wrong, and can I get it to work somehow? I would really prefer this if I can get it working. The alternative seems to be to re-structure my entire application to put ALL potentially slow computation in pageBeginRender, resulting in all ognl expressions being simple getters/setters. That would be a lot of work and I think it would not be a very clean solution. Does anyone have another approach? -- exception follows -- javassist.NotFoundException Stack Trace: javassist.ClassPool.get(ClassPool.java:436) org.apache.tapestry.enhance.CtClassSource.getCtClass(CtClassSource.java:50) org.apache.tapestry.enhance.AbstractFab.convertClass(AbstractFab.java:82) org.apache.tapestry.enhance.ClassFabImpl.addField(ClassFabImpl.java:238) com.javaforge.tapestry.prop.PropertyAccessorClassFactoryImpl.constructClass(PropertyAccessorClassFactoryImpl.java:74) $PropertyAccessorClassFactory_11ee0816124.constructClass($PropertyAccessorClassFactory_11ee0816124.java) $PropertyAccessorClassFactory_11ee0816123.constructClass($PropertyAccessorClassFactory_11ee0816123.java) com.javaforge.tapestry.prop.PropertyAccessorSourceImpl.createNewAccessorClass(PropertyAccessorSourceImpl.java:139) com.javaforge.tapestry.prop.PropertyAccessorSourceImpl.getCachedPropertyAccessorClass(PropertyAccessorSourceImpl.java:87) com.javaforge.tapestry.prop.PropertyAccessorSourceImpl.getAccessor(PropertyAccessorSourceImpl.java:55) $PropertyAccessorSource_11ee0816122.getAccessor($PropertyAccessorSource_11ee0816122.java) $PropertyAccessorSource_11ee0816121.getAccessor($PropertyAccessorSource_11ee0816121.java) com.javaforge.tapestry.prop.PropertyAccessorBindingFactory.createBinding(PropertyAccessorBindingFactory.java:36) $BindingFactory_11ee08160db.createBinding($BindingFactory_11ee08160db.java) $BindingFactory_11ee08160da.createBinding($BindingFactory_11ee08160da.java) org.apache.tapestry.services.impl.BindingSourceImpl.createBinding(BindingSourceImpl.java:99) $BindingSource_11ee0815f8d.createBinding($BindingSource_11ee0815f8d.java) org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.addTemplateBindings(ComponentTemplateLoaderLogic.java:277) org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:182) org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98) org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75) org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60) $ComponentTemplateLoader_11ee0816051.loadTemplate($ComponentTemplateLoader_11ee0816051.java) org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:673) org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:92) org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:122) $Announcement_14.finishLoad($Announcement_14.java) org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:408) org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:639) $IPageLoader_11ee0816045.loadPage($IPageLoader_11ee0816045.java) $IPageLoader_11ee0816046.loadPage($IPageLoader_11ee0816046.java) org.apache.tapestry.pageload.PageSource.makeObject(PageSource.java:152) org.apache.commons.pool.impl.TapestryKeyedObjectPool.borrowObject(TapestryKeyedObjectPool.java:971) org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:176) $IPageSource_11ee0815fbf.getPage($IPageSource_11ee0815fbf.java) org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:241) org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:228) com.adaptiveplanning.ui.page.Login.attemptLogin(Login.java:399) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMethod(ListenerMethodInvokerImpl.java:276) org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:221)
Discard persistent field changes for one strategy only?
I would like to discard all changes for one strategy only. PersistentFieldManager always iterates over all strategies when calling discardChanges() and I don't see any (easy) way to decorate the PersistentFieldManager to allow it to discard selectively for some strategies only. Would it be possible to add a discardChanges(String strategyName, String pageName) operation to PersistentFieldManager or to make the getStrategy(String strategyName) public? Or is there any other way to get a hold of a strategy in a service that the strategies haven't been contributed for if I know the type? This functionality would be needed for conversational scope implementation. At least in my mind it makes perfect sense to allow this, I'll open an issue if somebody agrees. For now, I can make it work by contributing the same ConversationPersistentFieldStrategy to another service in addition to PersistentFieldManager in my AppModule, but I can't make it plugn'n'play without the selective discard functionality. Kalle
Re: [T5] creating event links without the page activat ion context being encoded into the URLLink to this mes sage
Hello Thiago, sorry, the weekend happened to come in between. ;-) What value are you passing to the context field of LinkFactory.createComponentEventLink()? AFAIK, Tapestry always adds the current activation context to any links, unless you specify an activation context yourself. Try createComponentEventLink(Page page, String nestedId, String eventType, boolean forForm, new Object[0]). I wasn't using that method after all. I injected ComponentResources into the component and used its .createEventLink(String eventType, Object... context) method. But I guess, this one would only call the one you mentioned anyway. I also pass a String value as context and this one gets encoded as a path of the REST-like URI as expected. But still the ?t:ac=${original_page_activation_context} appears at its end. The only way to work around it seems to be using the ComponentResources.createFormEventLink(String eventType, Object... context), which I reckon to call the method you mentioned with the forForm parameter being set to true. But to me, this doesn't seem like the way it is meant to be done (maybe due to the form in the method's name. Thanks for your help, Jochen Pt! Schon vom neuen WEB.DE MultiMessenger gehört? Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org