AW: instantiate abstract asset class
hi paul, is there no way of delegating to your asset-class? or using a wrapper or adpter? something about writing an abstract asset class that works with injection and then passing stuff to your asset? you may also use the hivemind registry to directly call services at runntime. Registry.constructDefaultRegistry.getService(), something like that. -Ursprüngliche Nachricht- Von: Paul Stanton [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. Mai 2007 04:16 An: Tapestry users Betreff: Re: instantiate abstract asset class maybe my problem is more to do with hivemind: basically i have an asset class (developed by someone else) which is non abstract, but still needs to reference a hivemind service. How can I have the service injected? I've tried using setter method injection, but since the asset class is not registered with hivemind injection never occurs. help appreciated. thanks. - 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]
Re: Non trivial example application?
Hello Juan, thank you very much. This is exactly what i was looking for. Seeing things in context makes all the difference. Regards, Otho 2007/5/11, Juan Maya [EMAIL PROTECTED]: Otto, i just send u an application that contains mostly all of what i have experienced with tapestry 5. It's not complex but u could see a Template strategy, Custom components and a basic integration with Acegi. Don;t doubt to contact me if u have any questions.
about dojo
Hey! For people who think that dojo in T4 is slow, I've just had a look at dojo-9.0M1, wow!!! now it seems to be fast! http://download.dojotoolkit.org/experimental/dojo-core-0.9M1/dojo/tests/runner.html We will see! Cheers, kiuma
Tapestry 4.1.1: Palette Selection
Hello, I have a problem at the contrib Palette component. When I submit my form only the highlighted/slected values but not all values in the right box (selected box) are sumitted. My .page file looks like: component id=selectionForm type=Form binding name=clientValidationEnabled value=true/ /component component id=employeeSelectionBox type=contrib:Palette binding name=model value=employeeSelectionModel/ binding name=selected value=selectedList/ binding name=sort value=@[EMAIL PROTECTED]/ binding name=validators value=validators:required/ /component component id=submitSelection type=LinkSubmit binding name=action value=listener:submitSelection/ /component In the generated source file is a JavaScript function like: tapestry.onsubmit_employeeSelectionBox=function(event){ tapestry.palette.clearSelections(dojo.byId(employeeSelectionBox_avail)); tapestry.palette.selectAll(dojo.byId('employeeSelectionBox')); } but this function is never called. Does anyone have an idea what's wrong on this? Thanks Christine -- View this message in context: http://www.nabble.com/Tapestry-4.1.1%3A-Palette-Selection-tf3726079.html#a10427771 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Non trivial example application?
hi there, wouldnt it be nice to have that up for public? (isnt that beach-boys-style?) kind regards, peter -Ursprüngliche Nachricht- Von: Otho [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. Mai 2007 08:55 An: Tapestry users Betreff: Re: Non trivial example application? Hello Juan, thank you very much. This is exactly what i was looking for. Seeing things in context makes all the difference. Regards, Otho 2007/5/11, Juan Maya [EMAIL PROTECTED]: Otto, i just send u an application that contains mostly all of what i have experienced with tapestry 5. It's not complex but u could see a Template strategy, Custom components and a basic integration with Acegi. Don;t doubt to contact me if u have any questions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I change the links for table columns and pages?
Hi. I need to change the links that are rendered by TableColumns and TablePages components. I don't want to change behaviour of these links, I simply want to send it with the help of AJAX request in an asynchronous way. How can I do it? Thanks a lot.
T5 - Authentication filter
hi everyone I'm starting using Tapestry 5.0.4 and i'm tying to implement an authentication filter. In some tapestry 4 samples, code was : public abstract class AuthenticatedPage implements PageValidateListener { public void pageValidate(PageEvent event) { if (!isSessionBeanExist() || getSessionBean().getUid()==-1) { Login loginPage = (Login)getRequestCycle() .getPage(Login); loginPage.setCallback(new PageCallback(this)); throw new PageRedirectException(loginPage); } } } public class ProjectList extends AuthenticatedPage { [...] } but i can't find the way to do it in tapestry 5. thanks in advance for help, and sorry for my bad english ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Non trivial example application?
Hi Peter, I would sincerely hope that this one or something similar would appear on the tapestry homepage. I'll put something basic together later this day and post it as attachment. Regards, Otho 2007/5/11, Peter Schröder [EMAIL PROTECTED]: hi there, wouldnt it be nice to have that up for public? (isnt that beach-boys-style?) kind regards, peter -Ursprüngliche Nachricht- Von: Otho [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. Mai 2007 08:55 An: Tapestry users Betreff: Re: Non trivial example application? Hello Juan, thank you very much. This is exactly what i was looking for. Seeing things in context makes all the difference. Regards, Otho 2007/5/11, Juan Maya [EMAIL PROTECTED]: Otto, i just send u an application that contains mostly all of what i have experienced with tapestry 5. It's not complex but u could see a Template strategy, Custom components and a basic integration with Acegi. Don;t doubt to contact me if u have any questions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 and authentication filter
hi everyone I'm starting using Tapestry 5.0.4 and i'm tying to implement an authentication filter. In some tapestry 4 samples, code was : public abstract class AuthenticatedPage implements PageValidateListener { public void pageValidate(PageEvent event) { if (!isSessionBeanExist() || getSessionBean().getUid()==-1) { Login loginPage = (Login)getRequestCycle() .getPage(Login); loginPage.setCallback(new PageCallback(this)); throw new PageRedirectException(loginPage); } } } public class ProjectList extends AuthenticatedPage { [...] } but i can't find the way to do it in tapestry 5. thanks in advance for help, and sorry for my bad english ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I'm missing something obvious
This is a regression, the JIRA issue is https://issues.apache.org/jira/browse/TAPESTRY-1071 -Original Message- From: Tony Nelson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 6:57 PM To: Tapestry users Subject: I'm missing something obvious I have a simple form that includes this: input jwcid=[EMAIL PROTECTED] value=ognl:tradeId validators=validators:required,min=0,max=100 translator=translator:number,pattern=0 displayName=Trade ID / And no matter what legal numeric value I enter, I always get a validation error. Where is my typo? Because I certainly can't find it. I'm using yesterdays 4.1.2 snapshot. dependency groupIdtapestry/groupId artifactIdtapestry-annotations/artifactId version4.1.2-20070509.030104-65/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdtapestry/groupId artifactIdtapestry-contrib/artifactId version4.1.2-20070509.030104-68/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdtapestry/groupId artifactIdtapestry-framework/artifactId version4.1.2-20070509.030104-76/version properties war.bundletrue/war.bundle /properties /dependency Thanks in advance for any help. Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry sub-projects / related projects
Hi Andy, Any progress on this? Regards, Jérôme. On 3/31/07, andyhot [EMAIL PROTECTED] wrote: Did you guys get in touch? I'm going to start reorganizing tacos this weekend (mainly introducing a tap-5 section) so, the jini integration could be the first module of that section. Jesse Kuhnert wrote: Will do.. Hopefully it is happening monday according to what Viktor told me. On 3/18/07, Jérôme BERNARD [EMAIL PROTECTED] wrote: Let me know how this process evolves/resolves so that I can contribute the tapestry-jini integration into a T5 zone. Thanks, Jérôme. On 3/16/07, Andreas Andreou [EMAIL PROTECTED] wrote: Yep, that's what'll happen if viktor doesn't comment / agree on the idea. On 3/16/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: I like the idea, but only if someone active on the project has admin rights...Which no one does right now. So it could be that we need to move Tacos somewhere else. On 3/16/07, Andreas Andreou [EMAIL PROTECTED] wrote: +1 from me On 3/16/07, Hugo Palma [EMAIL PROTECTED] wrote: I have no problem with Tacos for this, as long as the current developers of Tacos are ok with opening the doors of svn to many more developers. I think a restructure of file structure would be needed and some stronger guidelines would have to be written, but i think it could work. Jesse Kuhnert wrote: I mostly just wanted to edit the subject line so we don't keep treading all over Jeromes announcement. I agree...The current site + demo do tend to be ajax driven, but there was a glimmer of hope that we'd be able to support more services and other things as well...Don't let my opinion sway anyone from starting whichever projects they like of course, I'll support all of them either way. ;) Speaking of Tacos, I think it'd be nice if at a minimum Andreas had admin support on it finally. What do you say Viktor? On 3/15/07, Andreas Andreou [EMAIL PROTECTED] wrote: I wouldn't tie tacos to ajax that closely... Renaming tacos-core to tacos-ajax and adding a whole bunch of new modules + a few more devs is certainly a way forward. I guess Viktor can help with the accounts, or perhaps give us access to do that. Tacos already has 4 and 4.1 specific sections. So, why not join? On 3/16/07, Hugo Palma [EMAIL PROTECTED] wrote: Jérôme BERNARD wrote: On 3/16/07, Hugo Palma [EMAIL PROTECTED] wrote: I've been thinking a little about the fact that Tapestry doesn't really have a place for the general community to use as a home for components, services and Tapestry related stuff that may be useful to others. I think this is why tapestry-contrib was created, but it being under Apache it doesn't really provide the freedom for the general community to join as developers and really get theirs hands dirty. So, i'm thinking something like a new project hosted in sourceforge or javaforge or something like that. The project should be managed by a Tapestry developer. Still, everyone that wanted to contribute, like Jerome, would be made a developer and would access to svn. I have some ideas on this but before i share them, does this sound stupid ? No. Sounds fine. Maybe create a specific T4, T4.1 and T5 sections though so that users can figure out which components they can use. That's the idea. Special conventions and infrastructure would have to be built to allow this to work correctly. PS - Sorry for stealing the thread No problem, after all, even though I can host my work on my own servers, an official home for this puppy would probably be better :-) Jérôme - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / JEE Consulting -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / JEE Consulting -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
OGNL expertise please... complicated question
Hi, I have a situation on my hands where I am trying to complete the round-trip leg of rigging up two objects in a bidirectional association. Here is the UML... Owner---Association This is a mutual OneToOne setup. There are getter/setter on each side. Having created an Owner, I successfully created an Association... That completes the first leg. The last leg follows is this... On the way out of the round trip, I have to set the association in the owner manually in order to persist it. This has to be done in OGNL. So this is whats on the table... HashMap context = new HashMap(); Owner Association Can someone tell me what OGNL api would be appropriate ? setValue or getValue? Ognl.getValue(owner.add(#association), context, owner); ??? Thanks... Best regards Ken in nashua _ Like the way Microsoft Office Outlook works? Youll love Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_outlook_0507 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JumpStart v1.2 - instructions fixed
The JBoss site has been rearranged, which was not reflected in the JumpStart installation instructions. As a result, it was not clear how to get the EJB3 version of JBoss that JumpStart relies on. The installation instructions have now been fixed. My apologies for any confusion and inconvenience. Regards, Geoff Begin forwarded message: From: Geoff Callender [EMAIL PROTECTED] Date: 8 May 2007 11:35:13 PM To: Tapestry users users@tapestry.apache.org Subject: JumpStart v1.2 is now available Reply-To: Tapestry users users@tapestry.apache.org Tapestry JumpStart v1.2 is now available. New in this version: * Tapestry 4.0.2 and 4.1.1 are both supported. * The age-old web problem of duplicate submissions is addressed in two ways, with examples: 1. Do It Once components prevent re-submission caused by multiple clicks. The components are - SubmitOnce - DirectLinkOnce - ImageSubmitOnce - LinkSubmitOnce They are adapted from the tapestry-bayeux project and upgraded to Tapestry 4. 2. Redirect-After-Post prevents re-submission caused by the user choosing Reload/Refresh in the browser. * The old Synchronizer Token pattern is no longer used, but examples let you compare it to the new solutions. * client:form and client persistence are used wherever possible, and comments explain each choice. * Code improvements throughout, especially in simplifying the business services. You'll find JumpStart here: http://files.doublenegative.com.au/jumpstart As always, suggestions for improvement are gladly received. Cheers, Geoff Callender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry 5 and Template Reloading
Hi Andreas, Thanks for this. It's still not working. Still getting: [ main] INFO 2007-05-11 09:40:12,460 http.SocketListener - Started SocketListener on 0.0.0.0:8080 org.mortbay.util.MultiException[java.lang.RuntimeException: Error building service proxy for service 'Alias' (at org.apache.tapestry.services.TapestryModule.build(Log, AliasManager, Collection) (at TapestryModule.java:244)): Unable to create class $Alias_1127b5e3b21: org.apache.tapestry.ioc.internal.services.ClassFactoryClassPool.toClass(Ljavassist/CtClass;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;] at org.mortbay.http.HttpServer.doStart(HttpServer.java:686) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) java.lang.RuntimeException: Error building service proxy for service 'Alias' (at org.apache.tapestry.services.TapestryModule.build(Log, AliasManager, Collection) (at TapestryModule.java:244)): Unable to create class $Alias_1127b5e3b21: org.apache.tapestry.ioc.internal.services.ClassFactoryClassPool.toClass(Ljavassist/CtClass;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class; at org.apache.tapestry.ioc.internal.ModuleImpl.create(ModuleImpl.java:265) at org.apache.tapestry.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java:175) at org.apache.tapestry.ioc.internal.ModuleImpl.getService(ModuleImpl.java:101) at org.apache.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:244) at org.apache.tapestry.ioc.internal.RegistryWrapper.getService(RegistryWrapper.java:53) at org.apache.tapestry.internal.TapestryAppInitializer.setupServices(TapestryAppInitializer.java:119) at org.apache.tapestry.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:72) at org.apache.tapestry.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:55) at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71) at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71) at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) at org.mortbay.util.Container.start(Container.java:72) at org.mortbay.http.HttpServer.doStart(HttpServer.java:708) at org.mortbay.util.Container.start(Container.java:72) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282) at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104) at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) Caused by: java.lang.RuntimeException: Unable to create class $Alias_1127b5e3b21: org.apache.tapestry.ioc.internal.services.ClassFactoryClassPool.toClass(Ljavassist/CtClass;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class; at org.apache.tapestry.ioc.internal.services.CtClassSource.createClass(CtClassSource.java:96) at org.apache.tapestry.ioc.internal.services.AbstractFab.createClass(AbstractFab.java:108) at org.apache.tapestry.ioc.internal.ModuleImpl.createProxyClass(ModuleImpl.java:391) at org.apache.tapestry.ioc.internal.ModuleImpl.createProxyInstance(ModuleImpl.java:364) at org.apache.tapestry.ioc.internal.ModuleImpl.createProxy(ModuleImpl.java:358) at org.apache.tapestry.ioc.internal.ModuleImpl.create(ModuleImpl.java:249) ... 17 more Caused by: java.lang.NoSuchMethodError: org.apache.tapestry.ioc.internal.services.ClassFactoryClassPool.toClass(Ljavassist/CtClass;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class; at org.apache.tapestry.ioc.internal.services.CtClassSource.createClass(CtClassSource.java:88) ... 22 more java.lang.RuntimeException: Error building service proxy for service 'Alias' (at org.apache.tapestry.services.TapestryModule.build(Log, AliasManager, Collection) (at TapestryModule.java:244)): Unable to create class $Alias_1127b5e3b21: org.apache.tapestry.ioc.internal.services.ClassFactoryClassPool.toClass(Ljavassist/CtClass;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class; at org.apache.tapestry.ioc.internal.ModuleImpl.create(ModuleImpl.java:265) at org.apache.tapestry.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java:175) at org.apache.tapestry.ioc.internal.ModuleImpl.getService(ModuleImpl.java:101) at org.apache.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:244) at org.apache.tapestry.ioc.internal.RegistryWrapper.getService(RegistryWrapper.java:53) at
Re: OGNL expertise please... complicated question
FYI, Yes this has to do with completing the development of a tapestry widget. The OGNL docs are trim... and no forum for OGNL. I thought this might be the bastian for OGNL folk. _ More photos, more messages, more storageget 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_2G_0507 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OGNL expertise please... complicated question
The user interface works and the back end works... The only thing that fails is that once the association is saved... it does not stick to the owner. This is due in part to the way trails saves it's models under the hood. To solve this I need to operate special rigging that sets/saves the association to the owner on the way out of the editor. inverse for both sides of the association is established at bootstrap time... pretty arcane... eh? We massage/alter the ejb3/hibernate annotations with a bootstrap interceptor and rig up our property descriptors. Guess I am definitely trails certified when I finish this one... - cheers Ken _ Like the way Microsoft Office Outlook works? Youll love Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_outlook_0507 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OGNL expertise please... complicated question
Thanks Kiuma ... I will post but it may complicate since knowledge of the trails framework is essential. I am at the door of completing this and just trying to get past the OGNL. Incomplete and currently messy (not cleaned up) Here is the sources... Editors.page component id=associationMgt type=AssociationMgt binding name=modelmodel/binding binding name=valuemodel[descriptor.name]/binding binding name=ownermodel/binding binding name=associationmodel[descriptor.name]/binding binding name=descriptordescriptor/binding /component component id=associationSelect type=AssociationSelect binding name=modelmodel/binding binding name=valuemodel[descriptor.name]/binding binding name=ownermodel/binding binding name=associationmodel[descriptor.name]/binding binding name=propertyDescriptordescriptor/binding /component AssociationMgt.jwc !DOCTYPE component-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 4.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd; component-specification class=org.trails.component.AssociationMgt allow-body=yes allow-informal-parameters=yes property name=nextPage / property name=delegator/ bean name=numberValidator class=org.apache.tapestry.valid.NumberValidator lifecycle=page set name=valueTypeint/set /bean component id=addButton type=Submit binding name=listenerlistener:addNew/binding binding name=defertrue/binding binding name=disabledpage.isModelNew()/binding /component component id=removeButton type=Submit binding name=listenerlistener:remove/binding binding name=deferfalse/binding binding name=disabledpage.isModelNew()/binding /component component id=editLink type=EditLink binding name=modelvalue/binding /component component id=linkInsert type=Insert binding name=valuevalue/binding /component parameter name=createExpression required=no descriptionOgnl expression to invoke on the model to create a new association instance/description /parameter /component-specification AssociationSelect.jwc !DOCTYPE component-specification PUBLIC -//Apache Software Foundation//Tapestry Specification 4.0//EN http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd; component-specification class=org.trails.component.AssociationSelect allow-body=yes allow-informal-parameters=yes descriptionproduces a select list for an association property/description parameter name=criteria required=no/ parameter name=allowNone required=no default-value=not(propertyDescriptor.required) / !-- inline parameter name=model default-value=page.model required=no/ -- !-- inline parameter name=propertyDescriptor required=yes/ -- !-- inline parameter name=owner required=yes / -- !-- inline parameter name=association required=yes / -- property name=propertySelectionModel/ component id=select type=PropertySelection inherit-informal-parameters=yes !-- binding name=modelpropertySelectionModel/binding -- !-- binding name=valuevalue/binding -- /component /component-specification AssociationMgt.html span jwcid=$content$ tr td span jwcid=@If condition=ognl:not(page.isModelNew()) span jwcid=@If condition=ognl:association a href=# jwcid=editLink model=association span jwcid=linkInsert //a /span /span /td /tr tr tdbr div jwcid=@If condition=ognl:association input jwcid=removeButton type=button value=ognl:getMessage(@[EMAIL PROTECTED]) / /div div jwcid=@If condition=ognl:not(page.isModelNew()) input jwcid=addButton type=button value=ognl:getMessage(@[EMAIL PROTECTED]) / /div /td /tr /span AssociationSelect.html span jwcid=$content$ span jwcid=select value = ognl:model[propertyDescriptor.name] model = ognl:propertySelectionModel / /span AssociationSelect.JAVA package org.trails.component; import ognl.Ognl; import ognl.OgnlException; import org.apache.tapestry.BaseComponent; import org.apache.tapestry.IRequestCycle; import org.apache.tapestry.annotations.InjectObject; import org.apache.tapestry.annotations.Parameter; import org.apache.tapestry.annotations.Persist; import org.apache.tapestry.form.IPropertySelectionModel; import org.hibernate.criterion.DetachedCriteria; import org.hibernate.criterion.Restrictions; import org.trails.descriptor.DescriptorService; import org.trails.descriptor.IClassDescriptor; import org.trails.descriptor.IPropertyDescriptor; import org.trails.page.EditPage; import org.trails.page.PageResolver; import org.trails.persistence.PersistenceService; /** * @author Chris Nelson * * This guy interacts with persistence service to produce a
Re: OGNL expertise please... complicated question
Ok, here is a more actual runtime model... OrganizationDirector a hard OneToOne Each is named in OGNL space as organization and director Furthermore, each actual object has getter/setter Organization.getDirector() Director.getOrganization() This is what I am receiving so far... //Ognl.setValue(organization.director(#director), model, newAssociation) //nosuchproperty //Ognl.setValue(organization(#director), model, newAssociation) //InnappropriateExpressionException //Ognl.setValue(organization.director, model, newAssociation) //nosuchproperty //Ognl.setValue(organization, model, newAssociation) //nosuchproperty ? Any help is appreciated. _ More photos, more messages, more storageget 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_2G_0507 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OGNL expertise please... complicated question
if you post your widget It would be simpler to see the problem, ciao, kiuma On 5/11/07, Ken nashua [EMAIL PROTECTED] wrote: FYI, Yes this has to do with completing the development of a tapestry widget. The OGNL docs are trim... and no forum for OGNL. I thought this might be the bastian for OGNL folk. _ More photos, more messages, more storage—get 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_2G_0507 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OGNL expertise please... complicated question
private Owner owner; private void executeOgnlExpression(String ognlExpression, Object newAssociation) { HashMap context = new HashMap(); context.put(member, newAssociation); Ognl.setValue(owner.association + (#member), context, owner) Will this do it? I am receiving invalidognlexpresssionexception _ Catch suspicious messages before you open themwith Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_protection_0507 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OGNL expertise please... complicated question
Correction... We massage/alter the ejb3/hibernate annotations with a bootstrap interceptor and rig up our property descriptors. We interrogate/supplement the ejb3/hibernate annotations with more capable property descriptors. _ Make every IM count. Download Messenger and join the im Initiative now. Its free. http://im.live.com/messenger/im/home/?source=TAGHM_MAY07 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 - Authentication filter
Hi Eric, i think the best way to do it is to contrib to the Request handler pipilene (http://tapestry.apache.org/tapestry5/tapestry-core/guide/request.html) To contrib to a pipeline do it your AppModule: public RequestFilter buildTimingFilter(final Log log) { return new RequestFilter() { public boolean service(Request request, Response response, RequestHandler handler) throws IOException { long startTime = System.currentTimeMillis(); try { // The reponsibility of a filter is to invoke the // corresponding method // in the handler. When you chain multiple filters // together, each filter // received a handler that is a bridge to the next // filter. return handler.service(request, response); } finally { long elapsed = System.currentTimeMillis() - startTime; log.info(String.format(Request time: %d ms, Long.valueOf (elapsed))); } } }; } /** * This is a contribution to the RequestHandler service configuration. * This is how we extend Tapestry using the timing filter. A common use * for this kind of filter is transaction management or security. */ public void contributeRequestHandler(OrderedConfigurationRequestFilter configuration, @InjectService(TimingFilter) RequestFilter filter) { // Each contribution to an ordered configuration has a name, When // necessary, you may // set constraints to precisely control the invocation order of the // contributed filter // within the pipeline. configuration.add(Timing, filter); } On 5/11/07, Eric Chatellier [EMAIL PROTECTED] wrote: hi everyone I'm starting using Tapestry 5.0.4 and i'm tying to implement an authentication filter. In some tapestry 4 samples, code was : public abstract class AuthenticatedPage implements PageValidateListener { public void pageValidate(PageEvent event) { if (!isSessionBeanExist() || getSessionBean().getUid()==-1) { Login loginPage = (Login)getRequestCycle() .getPage(Login); loginPage.setCallback(new PageCallback(this)); throw new PageRedirectException(loginPage); } } } public class ProjectList extends AuthenticatedPage { [...] } but i can't find the way to do it in tapestry 5. thanks in advance for help, and sorry for my bad english ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 - Authentication filter
thanks, it' works I check if user is authenticated and if not redirect to loginForm but now I got a strange error using @ApplicationState @ApplicationState private SessionBean sessionBean; In this form, when I try to log the user sessionBean.setLogged(true), this excepion is thrown : org.package.test.web.tapestry.base.SessionBean cannot be cast to org.package.test.web.tapestry.base.SessionBean The cast done by tapestry seams good, so how this exception can be throw ? 2007/5/11, Juan Maya [EMAIL PROTECTED]: Hi Eric, i think the best way to do it is to contrib to the Request handler pipilene (http://tapestry.apache.org/tapestry5/tapestry-core/guide/request.html) To contrib to a pipeline do it your AppModule: public RequestFilter buildTimingFilter(final Log log) { return new RequestFilter() { public boolean service(Request request, Response response, RequestHandler handler) throws IOException { long startTime = System.currentTimeMillis(); try { // The reponsibility of a filter is to invoke the // corresponding method // in the handler. When you chain multiple filters // together, each filter // received a handler that is a bridge to the next // filter. return handler.service(request, response); } finally { long elapsed = System.currentTimeMillis() - startTime; log.info(String.format(Request time: %d ms, Long.valueOf (elapsed))); } } }; } /** * This is a contribution to the RequestHandler service configuration. * This is how we extend Tapestry using the timing filter. A common use * for this kind of filter is transaction management or security. */ public void contributeRequestHandler(OrderedConfigurationRequestFilter configuration, @InjectService(TimingFilter) RequestFilter filter) { // Each contribution to an ordered configuration has a name, When // necessary, you may // set constraints to precisely control the invocation order of the // contributed filter // within the pipeline. configuration.add(Timing, filter); } On 5/11/07, Eric Chatellier [EMAIL PROTECTED] wrote: hi everyone I'm starting using Tapestry 5.0.4 and i'm tying to implement an authentication filter. In some tapestry 4 samples, code was : public abstract class AuthenticatedPage implements PageValidateListener { public void pageValidate(PageEvent event) { if (!isSessionBeanExist() || getSessionBean().getUid()==-1) { Login loginPage = (Login)getRequestCycle() .getPage(Login); loginPage.setCallback(new PageCallback(this)); throw new PageRedirectException(loginPage); } } } public class ProjectList extends AuthenticatedPage { [...] } but i can't find the way to do it in tapestry 5. thanks in advance for help, and sorry for my bad english ;) - 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]
Re: T5 - Adding modify/delete actions to a Grid
Hello, i think i have a solution for Option 2 (extend the default BeanModel) 1.) in your ControllerClass add this code: @Inject private BeanModelSource _modelSource; @Inject private ComponentResources _resources; public BeanModel getModelForGrid() { PropertyConduit pc = new ActionPC(); BeanModel result = _modelSource.create(User.class, false, _resources); result.add(Action, pc); result.get(Action).order(result.getPropertyNames().size()-1); return result; } 2.) create a class that implements the PropertyConduit Interface class ActionPC implements PropertyConduit { public Object get(Object arg0) {return ;} public Class getPropertyType() {return String.class;} public void set(Object arg0, Object arg1) {} public T extends Annotation T getAnnotation(ClassT arg0) {return null;} } 3.) in your template reference the Model to your Function table t:type=grid rowsPerPage=10 source=users row=currentUser model=ModelForGrid i dont know, if this all correct, but it's the solution for my problem. have a nice Weekend Patrick Hesse Bogdan Calmac-4 wrote: -- snip -- Option 2: Create an implementation of BeanModel that includes the two extra columns for modify and delete and pass it to the Grid. The question here is how to programmatically create the default BeanModel for my POJO (as the Grid does internally) so that I only add the 2 new properties instead of listing all the properties of the POJO? -- snap -- -- View this message in context: http://www.nabble.com/T5---Adding-modify-delete-actions-to-a-Grid-tf3370935.html#a10434372 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: AW: AW: T5: Generate pdfs.
Hi Sabine, Do you know how to open it in another window? Thank's Marcus
Re: I'm missing something obvious
Does that mean there is a fix floating around somewhere? Thanks Tony [EMAIL PROTECTED] wrote: This is a regression, the JIRA issue is https://issues.apache.org/jira/browse/TAPESTRY-1071 -Original Message- From: Tony Nelson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 6:57 PM To: Tapestry users Subject: I'm missing something obvious I have a simple form that includes this: input jwcid=[EMAIL PROTECTED] value=ognl:tradeId validators=validators:required,min=0,max=100 translator=translator:number,pattern=0 displayName=Trade ID / And no matter what legal numeric value I enter, I always get a validation error. Where is my typo? Because I certainly can't find it. I'm using yesterdays 4.1.2 snapshot. dependency groupIdtapestry/groupId artifactIdtapestry-annotations/artifactId version4.1.2-20070509.030104-65/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdtapestry/groupId artifactIdtapestry-contrib/artifactId version4.1.2-20070509.030104-68/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdtapestry/groupId artifactIdtapestry-framework/artifactId version4.1.2-20070509.030104-76/version properties war.bundletrue/war.bundle /properties /dependency Thanks in advance for any help. Tony - 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]
Problem on Unit Testing Page containing SpringBean
Hi All, I've got problem on unit testing Tapestry Page using PageTester on T5. If the page contain SpringBean, it cause Error : getAttribute() is not supported (more or less like that) Is unit testing a page containing SpringBeans required different method? Thanks in advance... -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/
Re: T5 - Authentication filter
i think u can only access ur ASOs in pages or components. I am not sure about it :S On 5/11/07, Eric Chatellier [EMAIL PROTECTED] wrote: thanks, it' works I check if user is authenticated and if not redirect to loginForm but now I got a strange error using @ApplicationState @ApplicationState private SessionBean sessionBean; In this form, when I try to log the user sessionBean.setLogged(true), this excepion is thrown : org.package.test.web.tapestry.base.SessionBean cannot be cast to org.package.test.web.tapestry.base.SessionBean The cast done by tapestry seams good, so how this exception can be throw ? 2007/5/11, Juan Maya [EMAIL PROTECTED]: Hi Eric, i think the best way to do it is to contrib to the Request handler pipilene (http://tapestry.apache.org/tapestry5/tapestry-core/guide/request.html) To contrib to a pipeline do it your AppModule: public RequestFilter buildTimingFilter(final Log log) { return new RequestFilter() { public boolean service(Request request, Response response, RequestHandler handler) throws IOException { long startTime = System.currentTimeMillis(); try { // The reponsibility of a filter is to invoke the // corresponding method // in the handler. When you chain multiple filters // together, each filter // received a handler that is a bridge to the next // filter. return handler.service(request, response); } finally { long elapsed = System.currentTimeMillis() - startTime; log.info(String.format(Request time: %d ms, Long.valueOf (elapsed))); } } }; } /** * This is a contribution to the RequestHandler service configuration. * This is how we extend Tapestry using the timing filter. A common use * for this kind of filter is transaction management or security. */ public void contributeRequestHandler(OrderedConfigurationRequestFilter configuration, @InjectService(TimingFilter) RequestFilter filter) { // Each contribution to an ordered configuration has a name, When // necessary, you may // set constraints to precisely control the invocation order of the // contributed filter // within the pipeline. configuration.add(Timing, filter); } On 5/11/07, Eric Chatellier [EMAIL PROTECTED] wrote: hi everyone I'm starting using Tapestry 5.0.4 and i'm tying to implement an authentication filter. In some tapestry 4 samples, code was : public abstract class AuthenticatedPage implements PageValidateListener { public void pageValidate(PageEvent event) { if (!isSessionBeanExist() || getSessionBean().getUid()==-1) { Login loginPage = (Login)getRequestCycle() .getPage(Login); loginPage.setCallback(new PageCallback(this)); throw new PageRedirectException(loginPage); } } } public class ProjectList extends AuthenticatedPage { [...] } but i can't find the way to do it in tapestry 5. thanks in advance for help, and sorry for my bad english ;) - 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]
Re: T5 - Authentication filter
yes , this is in LoginForm page after redirect by the filter 2007/5/11, Juan Maya [EMAIL PROTECTED]: i think u can only access ur ASOs in pages or components. I am not sure about it :S On 5/11/07, Eric Chatellier [EMAIL PROTECTED] wrote: thanks, it' works I check if user is authenticated and if not redirect to loginForm but now I got a strange error using @ApplicationState @ApplicationState private SessionBean sessionBean; In this form, when I try to log the user sessionBean.setLogged(true), this excepion is thrown : org.package.test.web.tapestry.base.SessionBean cannot be cast to org.package.test.web.tapestry.base.SessionBean The cast done by tapestry seams good, so how this exception can be throw ? 2007/5/11, Juan Maya [EMAIL PROTECTED]: Hi Eric, i think the best way to do it is to contrib to the Request handler pipilene (http://tapestry.apache.org/tapestry5/tapestry-core/guide/request.html) To contrib to a pipeline do it your AppModule: public RequestFilter buildTimingFilter(final Log log) { return new RequestFilter() { public boolean service(Request request, Response response, RequestHandler handler) throws IOException { long startTime = System.currentTimeMillis(); try { // The reponsibility of a filter is to invoke the // corresponding method // in the handler. When you chain multiple filters // together, each filter // received a handler that is a bridge to the next // filter. return handler.service(request, response); } finally { long elapsed = System.currentTimeMillis() - startTime; log.info(String.format(Request time: %d ms, Long.valueOf (elapsed))); } } }; } /** * This is a contribution to the RequestHandler service configuration. * This is how we extend Tapestry using the timing filter. A common use * for this kind of filter is transaction management or security. */ public void contributeRequestHandler(OrderedConfigurationRequestFilter configuration, @InjectService(TimingFilter) RequestFilter filter) { // Each contribution to an ordered configuration has a name, When // necessary, you may // set constraints to precisely control the invocation order of the // contributed filter // within the pipeline. configuration.add(Timing, filter); } On 5/11/07, Eric Chatellier [EMAIL PROTECTED] wrote: hi everyone I'm starting using Tapestry 5.0.4 and i'm tying to implement an authentication filter. In some tapestry 4 samples, code was : public abstract class AuthenticatedPage implements PageValidateListener { public void pageValidate(PageEvent event) { if (!isSessionBeanExist() || getSessionBean().getUid()==-1) { Login loginPage = (Login)getRequestCycle() .getPage(Login); loginPage.setCallback(new PageCallback(this)); throw new PageRedirectException(loginPage); } } } public class ProjectList extends AuthenticatedPage { [...] } but i can't find the way to do it in tapestry 5. thanks in advance for help, and sorry for my bad english ;) - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4.1.2] Biting the maven bullet
Well it turns out I need things are fixed in the 4.1.2 snapshots. So, diving head first into the world of maven: I read the Better Builds with Maven book, except for the plugin writing parts. I've read the mailing list posts about starting with maven. I've noticed that there are at least 3 repositories people are quoting, besides the one that comes with maven. Which one is valid for what? http://codecafe.dev-hda.com/repository http://opencomponentry.com/repository/m2-snapshot-repo/ http://people.apache.org/repo/m2-snapshot-repository Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Biting the maven bullet
Don't know about codecafe but opencomponentry has only the OGNL libraries. . howardlewisship.com has many things, most of them revolve around one of the projects here: http://howardlewisship.com/tapestry-javaforge/ . On 5/11/07, Daniel Jue [EMAIL PROTECTED] wrote: Well it turns out I need things are fixed in the 4.1.2 snapshots. So, diving head first into the world of maven: I read the Better Builds with Maven book, except for the plugin writing parts. I've read the mailing list posts about starting with maven. I've noticed that there are at least 3 repositories people are quoting, besides the one that comes with maven. Which one is valid for what? http://codecafe.dev-hda.com/repository http://opencomponentry.com/repository/m2-snapshot-repo/ http://people.apache.org/repo/m2-snapshot-repository Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: [T4.1.2] Biting the maven bullet
Thanks for the input Jesse. I hope to create a really good Tapestry centered Maven FAQ of this stuff, so the maven related queries can go there for answers. On one attempt at using maven through eclipse, it was complaining about not finding lib\tools.jar . I was sure the JDK was chosen for the installed JREs. It turned out that the vm used by eclipse was some other plan JRE (not a jdk). So I had to specify this in the eclipse.ini and in my shortcuts to eclipse: -vm C:\Java\jdk1.5.0_06\bin\java.exe So my full eclipse shortcut looked like: C:\eclipse\WTP1.5.3\eclipse\eclipse.exe -vm C:\Java\jdk1.5.0_06\bin\java.exe -vmargs -Xverify:none -Xms90m -Xmx512m -XX:MaxPermSize=90m -XX:MaxNewSize=40m Some notes on the older post by Borut, which is here: http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/[EMAIL PROTECTED] In step 5, of the steps above, src/main/webapp/WEB-INF/lib did not exist. Create webapp/WEB-INF/lib under src/main/ After selecting the tapestry library in the Add Dependency section of the maven plugin in Eclipse, I got a notice like this in the Console window: 5/11/07 2:04:57 PM EDT: [INFO] NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. So I made sure the POM was saved and manually did a mvn install from the project's directory. This downloaded the dependencies with no problem. Not sure why it wouldn't download within eclipse, as you would expect. In my case, I am using Eclipse 3.2.2 (WTP1.5.3) and Java 5 (1.5) For some reason I was getting this error: Java compiler level does not match the version of the installed Java project facet. The project settings were being set to Java 1.4 compliance, and would not stay at Java 5 compliance. So I added this to my POM: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.0/version configuration source1.5/source target1.5/target /configuration /plugin /plugins /build After doing Maven2-Update Source Folders, that problem went away. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Biting the maven bullet
Regarding Borut's starting point: http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/[EMAIL PROTECTED] One more little thing I did that made these instructions work for me: besides creating webapp/WEB-INF/lib under src/main, I had to copy the web.xml from MyProject/WebContent/WEB-INF/ to MyProject/src/main/webapp/WEB-INF/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Tapdoc 0.7.0
Dear Tapestry users! I would like to announce the first really :) public release of Tapdoc. Tapdoc is a component reference generator for Tapestry 4. The main project's website is at http://www.erinors.com/developer/project/tapdoc-project/ Take a look at a sample generated document: http://www.erinors.com/developer/project/tapdoc-tapestrydoc/tapdocs/ The current version is 0.7.0-snapshot, it is a partial rewrite of the previous 0.6.0 version. New features are: - documentation - demo projects - Maven and Ant integration As you can see it is still just a snapshot version, there is still lot to do, but the projects are now well structured and ready for further improvements. With best regards: Norbert Sándor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Tapdoc 0.7.0
Great - i've already got code that extended 0.6.0 to handle annotation only components... (i had named this 0.6.5 and had left it in tacos maven-repo) i guess I'll dig through the (now) public svn and send you some patches ;) On 5/12/07, Norbert Sándor [EMAIL PROTECTED] wrote: Dear Tapestry users! I would like to announce the first really :) public release of Tapdoc. Tapdoc is a component reference generator for Tapestry 4. The main project's website is at http://www.erinors.com/developer/project/tapdoc-project/ Take a look at a sample generated document: http://www.erinors.com/developer/project/tapdoc-tapestrydoc/tapdocs/ http://www.erinors.com/developer/project/tapdoc-tapestrydoc/tapdocs/index.html The current version is 0.7.0-snapshot, it is a partial rewrite of the previous 0.6.0 version. New features are: - documentation - demo projects - Maven and Ant integration As you can see it is still just a snapshot version, there is still lot to do, but the projects are now well structured and ready for further improvements. With best regards: Norbert Sándor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / JEE Consulting
Re: Dojo dialog is left aligned
It's all purely css driven. I'm guessing that something else on your page (or in other css) is messing things up. That's what I've found in the past. I would start with the css rules most directly relevant to your dialog and slowly work your way outward. Firebug is perfect for things like this. It shows you all the inherited attributes and you are able to determine pretty quickly what the problem is. (as well as play with the values right there on the page) On 5/10/07, Hugo Palma [EMAIL PROTECTED] wrote: I know, i'm using that to provide a custom look for the dialog. But i can't use the css to correct the placement of the dialog. I've tried using the position css attribute with no luck. Julian Wood wrote: You can style that dialog to your preference. I use: /* style the dojo dialog used for validation errors */ .alertDialog { border: 1px dashed #191919; padding: 5px; background: #ffcc66; } .alertContent { background: #ffcc66; text-align: right; } .missingList { text-align: left; } .alertButton { } J On 10-May-07, at 11:37 AM, Hugo Palma wrote: It seems that the dojo dialog that shows up when i use clientValidation is aligned to the left instead of being in the middle. I can see that the generated div with id validationbDialog has the correct placement(it's right in the middle of the page) but the inner div that has the contents of the dialog shows up left aligned. This happens in both FF and IE. I'm using 4.1.2 SNASHOT. Is this a bug or am i missing something ? Thanks -- Julian Wood [EMAIL PROTECTED] Software Engineer Teaching Learning Centre University of Calgary http://tlc.ucalgary.ca -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: [T4] Must/should close output stream in engine services?
It should. Anything that opens an IO stream in any java application should always try to close it as soon as possible unless you are using it as some kind of continuous stream of communication. (on unix based systems it will steal file handles ) On 5/10/07, Dan Adams [EMAIL PROTECTED] wrote: When you have an engine service that serves up binary files, for instance, and calls WebResponse.getOutputStream() should it or should it not close the output stream when it's done with it? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: about dojo
Yes,.Dojo is now as fast (if not faster in some instances) as jquery / prototype / others. . It's also broken up into three distinct modules with their own core committer base. core / dojox (UI things for people who don't like widgets - like me) / dijit (for people who do like widgets, but even this group has changed their tune about designing with performance / clarity in mind ...mostly) I don't have time to focus on it now or really can't even do it now for backwards compatibility's sake but I plan on starting a new 4.2 version to do it in as well as some of the other libraries people might like. On 5/11/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: Hey! For people who think that dojo in T4 is slow, I've just had a look at dojo-9.0M1, wow!!! now it seems to be fast! http://download.dojotoolkit.org/experimental/dojo-core-0.9M1/dojo/tests/runner.html We will see! Cheers, kiuma -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Tapestry 4.1.1: Palette Selection
I remember some kind of problem related to this. It's been fixed in 4.1.2. On 5/11/07, Tine [EMAIL PROTECTED] wrote: Hello, I have a problem at the contrib Palette component. When I submit my form only the highlighted/slected values but not all values in the right box (selected box) are sumitted. My .page file looks like: component id=selectionForm type=Form binding name=clientValidationEnabled value=true/ /component component id=employeeSelectionBox type=contrib:Palette binding name=model value=employeeSelectionModel/ binding name=selected value=selectedList/ binding name=sort value=@[EMAIL PROTECTED]/ binding name=validators value=validators:required/ /component component id=submitSelection type=LinkSubmit binding name=action value=listener:submitSelection/ /component In the generated source file is a JavaScript function like: tapestry.onsubmit_employeeSelectionBox=function(event){ tapestry.palette.clearSelections(dojo.byId (employeeSelectionBox_avail)); tapestry.palette.selectAll(dojo.byId('employeeSelectionBox')); } but this function is never called. Does anyone have an idea what's wrong on this? Thanks Christine -- View this message in context: http://www.nabble.com/Tapestry-4.1.1%3A-Palette-Selection-tf3726079.html#a10427771 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Tapestry sub-projects / related projects
Yes definitely Jerome. If you ping me off list with your sourceforge username I'll give you commit privs. On 5/11/07, Jérôme BERNARD [EMAIL PROTECTED] wrote: Hi Andy, Any progress on this? Regards, Jérôme. On 3/31/07, andyhot [EMAIL PROTECTED] wrote: Did you guys get in touch? I'm going to start reorganizing tacos this weekend (mainly introducing a tap-5 section) so, the jini integration could be the first module of that section. Jesse Kuhnert wrote: Will do.. Hopefully it is happening monday according to what Viktor told me. On 3/18/07, Jérôme BERNARD [EMAIL PROTECTED] wrote: Let me know how this process evolves/resolves so that I can contribute the tapestry-jini integration into a T5 zone. Thanks, Jérôme. On 3/16/07, Andreas Andreou [EMAIL PROTECTED] wrote: Yep, that's what'll happen if viktor doesn't comment / agree on the idea. On 3/16/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: I like the idea, but only if someone active on the project has admin rights...Which no one does right now. So it could be that we need to move Tacos somewhere else. On 3/16/07, Andreas Andreou [EMAIL PROTECTED] wrote: +1 from me On 3/16/07, Hugo Palma [EMAIL PROTECTED] wrote: I have no problem with Tacos for this, as long as the current developers of Tacos are ok with opening the doors of svn to many more developers. I think a restructure of file structure would be needed and some stronger guidelines would have to be written, but i think it could work. Jesse Kuhnert wrote: I mostly just wanted to edit the subject line so we don't keep treading all over Jeromes announcement. I agree...The current site + demo do tend to be ajax driven, but there was a glimmer of hope that we'd be able to support more services and other things as well...Don't let my opinion sway anyone from starting whichever projects they like of course, I'll support all of them either way. ;) Speaking of Tacos, I think it'd be nice if at a minimum Andreas had admin support on it finally. What do you say Viktor? On 3/15/07, Andreas Andreou [EMAIL PROTECTED] wrote: I wouldn't tie tacos to ajax that closely... Renaming tacos-core to tacos-ajax and adding a whole bunch of new modules + a few more devs is certainly a way forward. I guess Viktor can help with the accounts, or perhaps give us access to do that. Tacos already has 4 and 4.1 specific sections. So, why not join? On 3/16/07, Hugo Palma [EMAIL PROTECTED] wrote: Jérôme BERNARD wrote: On 3/16/07, Hugo Palma [EMAIL PROTECTED] wrote: I've been thinking a little about the fact that Tapestry doesn't really have a place for the general community to use as a home for components, services and Tapestry related stuff that may be useful to others. I think this is why tapestry-contrib was created, but it being under Apache it doesn't really provide the freedom for the general community to join as developers and really get theirs hands dirty. So, i'm thinking something like a new project hosted in sourceforge or javaforge or something like that. The project should be managed by a Tapestry developer. Still, everyone that wanted to contribute, like Jerome, would be made a developer and would access to svn. I have some ideas on this but before i share them, does this sound stupid ? No. Sounds fine. Maybe create a specific T4, T4.1 and T5 sections though so that users can figure out which components they can use. That's the idea. Special conventions and infrastructure would have to be built to allow this to work correctly. PS - Sorry for stealing the thread No problem, after all, even though I can host my work on my own servers, an official home for this puppy would probably be better :-) Jérôme - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / JEE Consulting -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / JEE Consulting --
Re: OGNL expertise please... complicated question
I'm not able to follow any of this. If you can give one small / clear example of what you are trying to do it would help me help you. On 5/11/07, Ken nashua [EMAIL PROTECTED] wrote: Correction... We massage/alter the ejb3/hibernate annotations with a bootstrap interceptor and rig up our property descriptors. We interrogate/supplement the ejb3/hibernate annotations with more capable property descriptors. _ Make every IM count. Download Messenger and join the i'm Initiative now. It's free. http://im.live.com/messenger/im/home/?source=TAGHM_MAY07 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: I'm missing something obvious
I hadn't noticed this before. Yes a fix will go out tonight. On 5/11/07, Tony Nelson [EMAIL PROTECTED] wrote: Does that mean there is a fix floating around somewhere? Thanks Tony [EMAIL PROTECTED] wrote: This is a regression, the JIRA issue is https://issues.apache.org/jira/browse/TAPESTRY-1071 -Original Message- From: Tony Nelson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 6:57 PM To: Tapestry users Subject: I'm missing something obvious I have a simple form that includes this: input jwcid=[EMAIL PROTECTED] value=ognl:tradeId validators=validators:required,min=0,max=100 translator=translator:number,pattern=0 displayName=Trade ID / And no matter what legal numeric value I enter, I always get a validation error. Where is my typo? Because I certainly can't find it. I'm using yesterdays 4.1.2 snapshot. dependency groupIdtapestry/groupId artifactIdtapestry-annotations/artifactId version4.1.2-20070509.030104-65/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdtapestry/groupId artifactIdtapestry-contrib/artifactId version4.1.2-20070509.030104-68/version properties war.bundletrue/war.bundle /properties /dependency dependency groupIdtapestry/groupId artifactIdtapestry-framework/artifactId version4.1.2-20070509.030104-76/version properties war.bundletrue/war.bundle /properties /dependency Thanks in advance for any help. Tony - 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] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
tapestry links too long for ie? [t4]
Hi, Had a question, my web page works fine in Firefox, though when viewed in Internet Explorer, none of my links workhas anyone experienced this before? Basically, the links are non clickable, so strange... Thanks, Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]