Re: Does T5.0.3 support chinese??
Thank you Nick! and I set in the *.html file。 2007/4/16, Nick Westgate <[EMAIL PROTECTED]>: > /*contributing a HttpServletRequestFilter */ ... > doesn't work! > Maybe something wrong! I didn't check to see why it doesn't work, but I've been looking into this issue too - for displaying Japanese. The HttpServletRequestFilter approach is not the best way to go about this, because it handles _all_ requests given to Tapestry - we want to only alter page rendering ... > Can anyone tell me a complete solution? Yes! :-) Or at least, I think so. This solution was in a Japanese Tapestry forum, and digging through the Tapestry source code I think it's the best way - at least for now. Just add this to your AppModule: public static PageResponseRenderer decoratePageResponseRenderer( @InjectService("PageMarkupRenderer") final PageMarkupRenderer markupRenderer, @InjectService("MarkupWriterFactory") final MarkupWriterFactory markupWriterFactory, final Object delegate) { return new PageResponseRenderer() { public void renderPageResponse(Page page, Response response) throws IOException { MarkupWriter writer = markupWriterFactory.newMarkupWriter(); markupRenderer.renderPageMarkup(page, writer); PrintWriter pw = response.getPrintWriter("text/html; charset=UTF-8"); writer.toMarkup(pw); pw.flush(); } }; } Cheers, Nick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Chinese name:徐 依伟 English name: will
Re: [OT] mailing-list problems with GMail
I got one lastnight! 2007/4/15, Jesse Kuhnert <[EMAIL PROTECTED]>: Not sure, but if I were a spam blocking program I'd view your all numeric email address as highly suspect. On 4/15/07, Koka Kiknadze <[EMAIL PROTECTED]> wrote: > > Occasionally when trying to post reply I recieve > > Delivery to the following recipient failed permanently: > > users@tapestry.apache.org > > Technical details of permanent failure: > PERM_FAILURE: SMTP Error (state 12): 552 spam score (5.1) exceeded > threshold > > > Does anyone have similar problem? In other words, WTF? :) > > TYA > -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- Chinese name:徐 依伟 English name: will
RE: Tap 4.1.1: Unable to add clientId() method
Figured out why it's happening. Any page that has a form on it and a method called getOrg() will crash. Details in JIRA: https://issues.apache.org/jira/browse/TAPESTRY-1415. Robert J. Walker -Original Message- From: Robert J. Walker [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 1:33 PM To: Tapestry users Subject: Tap 4.1.1: Unable to add clientId() method I've just created a new page and was trying it out and I got a bizarre error when calling cycle.getPage() to get a reference to the new page: org.apache.hivemind.ApplicationRuntimeException: Error at context:/WEB-INF/PasswordUpdate.page, line 3, column 69: Error adding property clientId to class mshare.web.tapestry.page.PasswordUpdate: Unable to add method java.lang.String getClientId() to class $PasswordUpdate_34: [source error] no such field: apache [context:/WEB-INF/PasswordUpdate.page, line 3, column 69] at org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39) at org.apache.hivemind.impl.ErrorLogImpl.error(ErrorLogImpl.java:40) at org.apache.tapestry.enhance.ClientIdPropertyWorker.performEnhancement(ClientIdPropertyWorker.java:54) at $EnhancementWorker_111fbcab83a.performEnhancement($EnhancementWorker_111fbcab83a.java) at $EnhancementWorker_111fbcab84e.performEnhancement($EnhancementWorker_111fbcab84e.java) at $EnhancementWorker_111fbcab822.performEnhancement($EnhancementWorker_111fbcab822.java) at org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl.getComponentConstructor(ComponentConstructorFactoryImpl.java:103) at $ComponentConstructorFactory_111fbcab80f.getComponentConstructor($ComponentConstructorFactory_111fbcab80f.java) at org.apache.tapestry.pageload.PageLoader.instantiatePage(PageLoader.java:564) at org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:591) at $IPageLoader_111fbcab7ff.loadPage($IPageLoader_111fbcab7ff.java) at $IPageLoader_111fbcab800.loadPage($IPageLoader_111fbcab800.java) at org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119) at $IPageSource_111fbcab75f.getPage($IPageSource_111fbcab75f.java) at org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:248) at org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:235) ... Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to add method java.lang.String getClientId() to class $PasswordUpdate_34: [source error] no such field: apache at org.apache.hivemind.service.impl.ClassFabImpl.addMethod(ClassFabImpl.java:295) at org.apache.tapestry.enhance.EnhancementOperationImpl.addMethod(EnhancementOperationImpl.java:397) at org.apache.tapestry.enhance.ClientIdPropertyWorker.createProperty(ClientIdPropertyWorker.java:99) at org.apache.tapestry.enhance.ClientIdPropertyWorker.performEnhancement(ClientIdPropertyWorker.java:50) ... 69 more Caused by: javassist.CannotCompileException: [source error] no such field: apache at javassist.CtBehavior.setBody(CtBehavior.java:347) at javassist.CtBehavior.setBody(CtBehavior.java:316) at org.apache.hivemind.service.impl.ClassFabImpl.addMethod(ClassFabImpl.java:288) ... 72 more Caused by: compile error: no such field: apache at javassist.compiler.MemberResolver.lookupField(MemberResolver.java:302) at javassist.compiler.MemberResolver.lookupFieldByJvmName(MemberResolver.java:288) at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:829) at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:770) at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:571) at javassist.compiler.ast.Expr.accept(Expr.java:67) at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:827) at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:770) at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:571) at javassist.compiler.ast.Expr.accept(Expr.java:67) at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:827) at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:770) at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:571) at javassist.compiler.ast.Expr.accept(Expr.java:67) at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:653) at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45) at javassist.compiler.JvstTypeChecker.atMethodArgs(JvstTypeChecker.java:220) at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:702) at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:681) at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156) at javassist.compiler.ast.CallE
Re: Home page of application
In T4: Get the "home" engine service, and have it provide you with the ILink. In t5: the URL is just the context path. On 4/15/07, soir <[EMAIL PROTECTED]> wrote: Hello, Could you tell me please, how do I make a link to home page of application, I mean the page assigned to "org.apache.tapestry.home-page" variable. Thank you in advice, Igor -- View this message in context: http://www.nabble.com/Home-page-of-application-tf3582700.html#a10011122 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: T5 block rendering
Not quite following you there. I may have created a component as part of the test suite, kind of like T4's RenderBlock. On 4/16/07, Bill Holloway <[EMAIL PROTECTED]> wrote: I know that Foo! will work (and so will If...etc.). Am I just imagining or did I see somewhat a component? Bill -- "The future is here. It's just not evenly distributed yet." -- Traditional - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: "Could not find a strategy instance for class RubricSelectionModel" when working with PropertySelection component
#mypost3265 pre { font-size: 140%; border-style: outset; border-color: red; } I'm sure this post is useless for you, but I figured I should correct this anyway for others' reference. To be serializable, you should implement these 2 methods: private void writeObject(java.io.ObjectOutputStream out) throws IOException private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException; It is explained in the JavaDoc for j2se: http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html With what you had, my guess was that rubricList would just be null after deserialization, not the exception you got, but this is what you should do anyway. Here is the class with those methods implemented: import java.io.*; public class RubricSelectionModel implements Serializable{ private static final long serialVersionUID = 1L; private List rubricList; public RubricSelectionModel(List itemList) { this.rubricList = itemList; } public int getOptionCount() { return rubricList.size(); } public Object getOption(int index) { return rubricList.get(index); } public String getLabel(int index) { return ((Rubric) rubricList.get(index)).getName(); } public String getValue(int index) { return ((Rubric) rubricList.get(index)).getId().toString(); } public Object translateValue(String value) { Iterator e = rubricList.iterator(); while(e.hasNext()){ Rubric rubric = (Rubric)e.next(); if(rubric.getId().toString() == value){ return rubric; } } return null; } private void writeObject(java.io.ObjectOutputStream out) throws IOException { out.writeObject( rubricList ); } private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { rubricList = (List)in.readObject(); } } -- View this message in context: http://www.nabble.com/%22Could-not-find-a-strategy-instance-for-class-RubricSelectionModel%22-when-working-with-PropertySelection-component-tf2046393.html#a10025753 Sent from the Tapestry - User mailing list archive at Nabble.com.
Tap 4.1.1: Unable to add clientId() method
I've just created a new page and was trying it out and I got a bizarre error when calling cycle.getPage() to get a reference to the new page: org.apache.hivemind.ApplicationRuntimeException: Error at context:/WEB-INF/PasswordUpdate.page, line 3, column 69: Error adding property clientId to class mshare.web.tapestry.page.PasswordUpdate: Unable to add method java.lang.String getClientId() to class $PasswordUpdate_34: [source error] no such field: apache [context:/WEB-INF/PasswordUpdate.page, line 3, column 69] at org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39) at org.apache.hivemind.impl.ErrorLogImpl.error(ErrorLogImpl.java:40) at org.apache.tapestry.enhance.ClientIdPropertyWorker.performEnhancement(ClientIdPropertyWorker.java:54) at $EnhancementWorker_111fbcab83a.performEnhancement($EnhancementWorker_111fbcab83a.java) at $EnhancementWorker_111fbcab84e.performEnhancement($EnhancementWorker_111fbcab84e.java) at $EnhancementWorker_111fbcab822.performEnhancement($EnhancementWorker_111fbcab822.java) at org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl.getComponentConstructor(ComponentConstructorFactoryImpl.java:103) at $ComponentConstructorFactory_111fbcab80f.getComponentConstructor($ComponentConstructorFactory_111fbcab80f.java) at org.apache.tapestry.pageload.PageLoader.instantiatePage(PageLoader.java:564) at org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:591) at $IPageLoader_111fbcab7ff.loadPage($IPageLoader_111fbcab7ff.java) at $IPageLoader_111fbcab800.loadPage($IPageLoader_111fbcab800.java) at org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119) at $IPageSource_111fbcab75f.getPage($IPageSource_111fbcab75f.java) at org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:248) at org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:235) ... Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to add method java.lang.String getClientId() to class $PasswordUpdate_34: [source error] no such field: apache at org.apache.hivemind.service.impl.ClassFabImpl.addMethod(ClassFabImpl.java:295) at org.apache.tapestry.enhance.EnhancementOperationImpl.addMethod(EnhancementOperationImpl.java:397) at org.apache.tapestry.enhance.ClientIdPropertyWorker.createProperty(ClientIdPropertyWorker.java:99) at org.apache.tapestry.enhance.ClientIdPropertyWorker.performEnhancement(ClientIdPropertyWorker.java:50) ... 69 more Caused by: javassist.CannotCompileException: [source error] no such field: apache at javassist.CtBehavior.setBody(CtBehavior.java:347) at javassist.CtBehavior.setBody(CtBehavior.java:316) at org.apache.hivemind.service.impl.ClassFabImpl.addMethod(ClassFabImpl.java:288) ... 72 more Caused by: compile error: no such field: apache at javassist.compiler.MemberResolver.lookupField(MemberResolver.java:302) at javassist.compiler.MemberResolver.lookupFieldByJvmName(MemberResolver.java:288) at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:829) at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:770) at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:571) at javassist.compiler.ast.Expr.accept(Expr.java:67) at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:827) at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:770) at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:571) at javassist.compiler.ast.Expr.accept(Expr.java:67) at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:827) at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:770) at javassist.compiler.TypeChecker.atExpr(TypeChecker.java:571) at javassist.compiler.ast.Expr.accept(Expr.java:67) at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:653) at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45) at javassist.compiler.JvstTypeChecker.atMethodArgs(JvstTypeChecker.java:220) at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:702) at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:681) at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156) at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45) at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235) at javassist.compiler.CodeGen.compileExpr(CodeGen.java:222) at javassist.compiler.CodeGen.atReturnStmnt2(CodeGen.java:591) at javassist.compiler.JvstCodeGen.atReturnStmnt(JvstCodeGen.java:424) at javassist.compiler.CodeGen.atStmnt(CodeGen.java:356)
RE: Accessing the text input of an AutoCompleter with forceValidOption=false
Well we don't use the actual Tacos library right now. I just pulled enough of the Autocompleter out of Tacos to make it work on its own as a workaround for all these problems but I still can't get it to work in a loop. I don't think it would be worth posting the code and modifications to hivemodule.xml; there were a lot of dependencies that had to be pulled in and it's quite a frankenstein effort at the moment unfortunately. -Original Message- From: Chris Chiappone [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 1:37 PM To: Tapestry users Subject: Re: Accessing the text input of an AutoCompleter with forceValidOption=false I didn't see the tacos autocompeleter as a component in the Tacos 4.1.0 SNAPSHOT. Is it included? On 4/16/07, Ben Dotte <[EMAIL PROTECTED]> wrote: > We too have had a lot of problems with the dojo-based Autocompleter that > have led us to use the one from Tacos whenever possible. > > http://article.gmane.org/gmane.comp.java.tapestry.user/45240/ > > http://issues.apache.org/jira/browse/TAPESTRY-1244 > > Ben > > -Original Message- > From: Chris Chiappone [mailto:[EMAIL PROTECTED] > Sent: Monday, April 16, 2007 12:31 PM > To: Tapestry users > Subject: Re: Accessing the text input of an AutoCompleter with > forceValidOption=false > > I wouldn't mind finding out myself how to submit the value if its not > highlighted, that used to be possible with the tacos:Autocompleter. > > On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > > Unfortunately for me, sounds like that won't work for me. There are > multiple > > items on the form and focus won't be on the AutoCompleter at the time > of > > submit. > > > > On 4/16/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: > > > > > > I've done something similiar here. In my autoCompleteModel I > > > basically return the search result in the getValues() method if no > > > matches get returned. Seems to work the only problem is that if the > > > user doesn't have the option highlighted it ends up being null, > which > > > happens if they use the mouse to submit instead of just hitting > > > return. > > > > > > On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > > > > Sorry for what is likely an easy question. > > > > > > > > I'm having users use an AutoCompleter to select something (in this > case > > > > wine). I've turned off the forceValid option with the intent of > adding > > > the > > > > input as a new value if it doesn't match the list. > > > > > > > > How do I access the value that a user input when it doesn't match > > > something > > > > on the list. Currently, if I try to access the value, it's null > and > > > throws a > > > > null pointer exception. > > > > > > > > > > > value="ognl:wineType" model="ognl:wineAutoComleteModel" > > > > maxListLength="ognl:7" forceValidOption="ognl:false"/> > > > > > > > > -- > > > > -- > > > > Daniel Leffel > > > > [EMAIL PROTECTED] > > > > www.rexee.com > > > > > > > > > > > > > -- > > > ~chris > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > -- > > Daniel Leffel > > [EMAIL PROTECTED] > > www.rexee.com > > > > > -- > ~chris > > - > 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] > > -- ~chris - 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: Autocompleter -- javascript syntax error
Just to add some closure to this thread, I read in EWDT 2.1 that this is a bug in the dojo library. (Page 315) It can be disabled from printing on your page by using in the parent page. This is probably one of those things that are fixed in 4.1.2, or an updated dojo. I am using 4.1.1, because I am not using maven. (Or rather, I am not confident about integrating maven with my existing project.) On 3/31/07, Yiannis Mavroukakis <[EMAIL PROTECTED]> wrote: No,you get the same message when there's a problem. I had similar issues which arose from lack of use of persistence.. -Original Message- From: mxc [mailto:[EMAIL PROTECTED] Sent: Sat 31/03/2007 17:40 To: users@tapestry.apache.org Cc: Subject:RE: Autocompleter -- javascript syntax error ok -- I have other autocompleters working it is just this one that doesnt work. I have had a look at firebug console output and notice that the response to the servsie query says "loading..." Other serverside request show a response with data. Is it possible that the query takes to long to run and the ajax request times out or something like that? It should be an async call so cant see why this would be a problem. -- View this message in context: http://www.nabble.com/Autocompleterjavascript-syntax-error-tf3496156.html#a9768993 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all known viruses. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all known viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing the text input of an AutoCompleter with forceValidOption=false
I didn't see the tacos autocompeleter as a component in the Tacos 4.1.0 SNAPSHOT. Is it included? On 4/16/07, Ben Dotte <[EMAIL PROTECTED]> wrote: We too have had a lot of problems with the dojo-based Autocompleter that have led us to use the one from Tacos whenever possible. http://article.gmane.org/gmane.comp.java.tapestry.user/45240/ http://issues.apache.org/jira/browse/TAPESTRY-1244 Ben -Original Message- From: Chris Chiappone [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 12:31 PM To: Tapestry users Subject: Re: Accessing the text input of an AutoCompleter with forceValidOption=false I wouldn't mind finding out myself how to submit the value if its not highlighted, that used to be possible with the tacos:Autocompleter. On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > Unfortunately for me, sounds like that won't work for me. There are multiple > items on the form and focus won't be on the AutoCompleter at the time of > submit. > > On 4/16/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: > > > > I've done something similiar here. In my autoCompleteModel I > > basically return the search result in the getValues() method if no > > matches get returned. Seems to work the only problem is that if the > > user doesn't have the option highlighted it ends up being null, which > > happens if they use the mouse to submit instead of just hitting > > return. > > > > On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > > > Sorry for what is likely an easy question. > > > > > > I'm having users use an AutoCompleter to select something (in this case > > > wine). I've turned off the forceValid option with the intent of adding > > the > > > input as a new value if it doesn't match the list. > > > > > > How do I access the value that a user input when it doesn't match > > something > > > on the list. Currently, if I try to access the value, it's null and > > throws a > > > null pointer exception. > > > > > > > > value="ognl:wineType" model="ognl:wineAutoComleteModel" > > > maxListLength="ognl:7" forceValidOption="ognl:false"/> > > > > > > -- > > > -- > > > Daniel Leffel > > > [EMAIL PROTECTED] > > > www.rexee.com > > > > > > > > > -- > > ~chris > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > -- > Daniel Leffel > [EMAIL PROTECTED] > www.rexee.com > -- ~chris - 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] -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accessing the text input of an AutoCompleter with forceValidOption=false
We too have had a lot of problems with the dojo-based Autocompleter that have led us to use the one from Tacos whenever possible. http://article.gmane.org/gmane.comp.java.tapestry.user/45240/ http://issues.apache.org/jira/browse/TAPESTRY-1244 Ben -Original Message- From: Chris Chiappone [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 12:31 PM To: Tapestry users Subject: Re: Accessing the text input of an AutoCompleter with forceValidOption=false I wouldn't mind finding out myself how to submit the value if its not highlighted, that used to be possible with the tacos:Autocompleter. On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > Unfortunately for me, sounds like that won't work for me. There are multiple > items on the form and focus won't be on the AutoCompleter at the time of > submit. > > On 4/16/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: > > > > I've done something similiar here. In my autoCompleteModel I > > basically return the search result in the getValues() method if no > > matches get returned. Seems to work the only problem is that if the > > user doesn't have the option highlighted it ends up being null, which > > happens if they use the mouse to submit instead of just hitting > > return. > > > > On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > > > Sorry for what is likely an easy question. > > > > > > I'm having users use an AutoCompleter to select something (in this case > > > wine). I've turned off the forceValid option with the intent of adding > > the > > > input as a new value if it doesn't match the list. > > > > > > How do I access the value that a user input when it doesn't match > > something > > > on the list. Currently, if I try to access the value, it's null and > > throws a > > > null pointer exception. > > > > > > > > value="ognl:wineType" model="ognl:wineAutoComleteModel" > > > maxListLength="ognl:7" forceValidOption="ognl:false"/> > > > > > > -- > > > -- > > > Daniel Leffel > > > [EMAIL PROTECTED] > > > www.rexee.com > > > > > > > > > -- > > ~chris > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > -- > Daniel Leffel > [EMAIL PROTECTED] > www.rexee.com > -- ~chris - 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: Accessing the text input of an AutoCompleter with forceValidOption=false
I wouldn't mind finding out myself how to submit the value if its not highlighted, that used to be possible with the tacos:Autocompleter. On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: Unfortunately for me, sounds like that won't work for me. There are multiple items on the form and focus won't be on the AutoCompleter at the time of submit. On 4/16/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: > > I've done something similiar here. In my autoCompleteModel I > basically return the search result in the getValues() method if no > matches get returned. Seems to work the only problem is that if the > user doesn't have the option highlighted it ends up being null, which > happens if they use the mouse to submit instead of just hitting > return. > > On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > > Sorry for what is likely an easy question. > > > > I'm having users use an AutoCompleter to select something (in this case > > wine). I've turned off the forceValid option with the intent of adding > the > > input as a new value if it doesn't match the list. > > > > How do I access the value that a user input when it doesn't match > something > > on the list. Currently, if I try to access the value, it's null and > throws a > > null pointer exception. > > > > > value="ognl:wineType" model="ognl:wineAutoComleteModel" > > maxListLength="ognl:7" forceValidOption="ognl:false"/> > > > > -- > > -- > > Daniel Leffel > > [EMAIL PROTECTED] > > www.rexee.com > > > > > -- > ~chris > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Daniel Leffel [EMAIL PROTECTED] www.rexee.com -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing the text input of an AutoCompleter with forceValidOption=false
Unfortunately for me, sounds like that won't work for me. There are multiple items on the form and focus won't be on the AutoCompleter at the time of submit. On 4/16/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: I've done something similiar here. In my autoCompleteModel I basically return the search result in the getValues() method if no matches get returned. Seems to work the only problem is that if the user doesn't have the option highlighted it ends up being null, which happens if they use the mouse to submit instead of just hitting return. On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: > Sorry for what is likely an easy question. > > I'm having users use an AutoCompleter to select something (in this case > wine). I've turned off the forceValid option with the intent of adding the > input as a new value if it doesn't match the list. > > How do I access the value that a user input when it doesn't match something > on the list. Currently, if I try to access the value, it's null and throws a > null pointer exception. > > value="ognl:wineType" model="ognl:wineAutoComleteModel" > maxListLength="ognl:7" forceValidOption="ognl:false"/> > > -- > -- > Daniel Leffel > [EMAIL PROTECTED] > www.rexee.com > -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Daniel Leffel [EMAIL PROTECTED] www.rexee.com
Re: Accessing the text input of an AutoCompleter with forceValidOption=false
I've done something similiar here. In my autoCompleteModel I basically return the search result in the getValues() method if no matches get returned. Seems to work the only problem is that if the user doesn't have the option highlighted it ends up being null, which happens if they use the mouse to submit instead of just hitting return. On 4/16/07, Daniel Leffel <[EMAIL PROTECTED]> wrote: Sorry for what is likely an easy question. I'm having users use an AutoCompleter to select something (in this case wine). I've turned off the forceValid option with the intent of adding the input as a new value if it doesn't match the list. How do I access the value that a user input when it doesn't match something on the list. Currently, if I try to access the value, it's null and throws a null pointer exception. -- -- Daniel Leffel [EMAIL PROTECTED] www.rexee.com -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing the text input of an AutoCompleter with forceValidOption=false
Sorry for what is likely an easy question. I'm having users use an AutoCompleter to select something (in this case wine). I've turned off the forceValid option with the intent of adding the input as a new value if it doesn't match the list. How do I access the value that a user input when it doesn't match something on the list. Currently, if I try to access the value, it's null and throws a null pointer exception. -- -- Daniel Leffel [EMAIL PROTECTED] www.rexee.com
T5 block rendering
I know that Foo! will work (and so will If...etc.). Am I just imagining or did I see somewhat a component? Bill -- "The future is here. It's just not evenly distributed yet." -- Traditional - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry jobs in the NYC area
Hi, Let me start saying I am not a recruiter, but a developer. My current company is interested in hiring developers with solid Tapestry experience (consulting or full-time). The positions are on site here in New York City and applicants must be U.S. citizens (sorry, I wish this wasn't the case). We're looking for specific types of developers that are very well rounded. Along with being an experienced Java developer, you must have proven front-end skills with a solid understanding of css, javascript, and html. Flash experience is a plus. This is an opportunity to work on the one of the larger (possibly largest?) Tapestry based sites in production today. If you are interested, feel free to email me directly. Thanks, Eric Schneider [EMAIL PROTECTED]
Re: Trouble reading a file with relative paths
Upgrade to 4.1.2 where asset path resolutions are more deterministic. On 4/16/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote: Hi Everyone, In my application (Tap 4.1.1) I am trying to implement a parser to parse an xml file, which works well enough with an absolute path, but when I retrieve the file using a relative path Tapestry returns an empty java.io.ByteArrayInputStream. If the path is specified incorrectly an exception is thrown, so I am pretty confident that the path is okay. This is what I tried: @Asset("context:/XML/irmsitemap.xml") public abstract IAsset getNavigationMap(); InputStream stream = getNavigationMap().getResourceAsStream(); I also tried: InputStream stream = getServletContext().getResourceAsStream("/XML/irmsitemap.xml"); My folder structure looks like this: +context -CSS ... - XML irmsitemap.xml - WEB-INF classes lib etc... any ideas? Thanks Peter - 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: Does T5.0.3 support chinese??
> /*contributing a HttpServletRequestFilter */ ... > doesn't work! > Maybe something wrong! I didn't check to see why it doesn't work, but I've been looking into this issue too - for displaying Japanese. The HttpServletRequestFilter approach is not the best way to go about this, because it handles _all_ requests given to Tapestry - we want to only alter page rendering ... > Can anyone tell me a complete solution? Yes! :-) Or at least, I think so. This solution was in a Japanese Tapestry forum, and digging through the Tapestry source code I think it's the best way - at least for now. Just add this to your AppModule: public static PageResponseRenderer decoratePageResponseRenderer( @InjectService("PageMarkupRenderer") final PageMarkupRenderer markupRenderer, @InjectService("MarkupWriterFactory") final MarkupWriterFactory markupWriterFactory, final Object delegate) { return new PageResponseRenderer() { public void renderPageResponse(Page page, Response response) throws IOException { MarkupWriter writer = markupWriterFactory.newMarkupWriter(); markupRenderer.renderPageMarkup(page, writer); PrintWriter pw = response.getPrintWriter("text/html; charset=UTF-8"); writer.toMarkup(pw); pw.flush(); } }; } Cheers, Nick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry 4.0.2: How do I get a new page object?
Quoting Karthik N <[EMAIL PROTECTED]>: I have a requirement however where I want newPage to be a different instance than this In that case you should probably rethink the requirement. Why do you want to have a different instance? The concept of the page is that you have an instance to render for the user and then it is returned to the page pool. Any ideas how this can be achieved? You could turn off the cache, but this is most certainly not what you want. Regards, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tapestry 4.0.2: How do I get a new page object?
Hi, While I am in a page "Page1" listener method and when I execute the following code: newPage = currentPage.getRequestCycle().getPage("Page1" ); I find that newPage and this page are both the same object i.e. System.out.println( newPage == this ); evals to true I have a requirement however where I want newPage to be a different instance than this Any ideas how this can be achieved? I looked up the documentation for this and found IPage getPage(java.lang.String name) Returns the page with the given name. If the page has been previously loaded in the current request cycle, that page is returned. Otherwise, the engine's page loader is used to load the page. Thanks, Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
http://wiki.apache.org/tapestry/Tapestry4Spring - JarekWoloszyn's solution for tapestry 4 on version 4.1.1
Hi, Following instructions on the Wiki seemed a good way to get my GUI interfacing onto hibernate instead of "inMemory" collections that I have been using to build it so far, but I've run into a problem with I believe hivemind with which I'd be grateful of a little help. Many Thanks. The solution to which I refer seemed very clear so I opted to follow the instructions given, however I get a NullPointerException when I try to display the homepage of my application. I have investigated and this is because the BeanFactory returned by this code is null. /** For injection. */ public final void setBeanFactoryHolder(SpringBeanFactoryHolder beanFactoryHolder) { _beanFactoryHolder = beanFactoryHolder; } protected SessionFactory lookupSessionFactory(WebRequest request) { if (logger.isDebugEnabled()) { logger.debug("Using SessionFactory '" + getSessionFactoryBeanName() + "' for OpenSessionInViewFilter"); } return (SessionFactory) _beanFactoryHolder.getBeanFactory().getBean( getSessionFactoryBeanName(), SessionFactory.class); } I have followed the simple steps that he provided to the letter, but maybe I needed to be a little more thoughtful... I initialize this bean factory as per his instructions - Should I be substituting in something else in its place? I have the following section, but I'm not sure what to use from it (if anything)... thanks Create WebApplicatonContext for Spring ___ Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
Re: Event bubbling in IE doesn't work
On 4/13/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: ... maybe ff and ie handle this scenario differently... i'll test it and report my results on monday :) another solution would be to have a small script in place (onclick) that checks the incoming events on the div node and triggers the eventlistener (script) method only if it could determine it really originates from the checkbox... thats what i do for my bubbling events :) g, kris That last tip was very usefull, got it to now to work. On 4/14/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:I'm shocked to hear that ie isn't behaving as expected! ;) http://www.quirksmode.org/js /introevents.html Don't worry they brought us IE7 now, so 'all' our problems are fixed now ...
Trouble reading a file with relative paths
Hi Everyone, In my application (Tap 4.1.1) I am trying to implement a parser to parse an xml file, which works well enough with an absolute path, but when I retrieve the file using a relative path Tapestry returns an empty java.io.ByteArrayInputStream. If the path is specified incorrectly an exception is thrown, so I am pretty confident that the path is okay. This is what I tried: @Asset("context:/XML/irmsitemap.xml") public abstract IAsset getNavigationMap(); InputStream stream = getNavigationMap().getResourceAsStream(); I also tried: InputStream stream = getServletContext().getResourceAsStream("/XML/irmsitemap.xml"); My folder structure looks like this: +context -CSS ... - XML irmsitemap.xml - WEB-INF classes lib etc... any ideas? Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Question for ApplicationState.
Ups, already found the answer in another thread. Next time i use the search :) Sabine K. wrote: > > In the core is written: "Any other component or page that declares a field > of the same type, regardless of name, and marks it with the > ApplicationState annotation will share the same value. It's that simple." > > Does that means that these both: > > @ApplicationState > private String currentPage; > > @ApplicationState > private String lastPage; > > will share the same value? How can i set some different Strings with > ApplicationState? > > Best regards Sabine > > (iam sorry for bad english...) > > > > > -- View this message in context: http://www.nabble.com/T5%3A-Question-for-ApplicationState.-tf3583129.html#a10013087 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: Question for ApplicationState.
In the core is written: "Any other component or page that declares a field of the same type, regardless of name, and marks it with the ApplicationState annotation will share the same value. It's that simple." Does that means that these both: @ApplicationState private String currentPage; @ApplicationState private String lastPage; will share the same value? How can i set some different Strings with ApplicationState? Best regards Sabine (iam sorry for bad english...) -- View this message in context: http://www.nabble.com/T5%3A-Question-for-ApplicationState.-tf3583129.html#a10012342 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: Tapestry 5 Redirects
On 4/15/07, kranga <[EMAIL PROTECTED]> wrote: Why do you need numbers to understand that an extra redirect adds to rendering delay? I can understand that but i would like to have an evidence that that is causing performance problems. On storing values in session, why should I be forced to use a "flash" technology to handle session. A framework that attempts to be non-intrusive shouldn't force a session storage strategy because of the way it handles links! Doing a redirect on every link request is a very intrusive idea. I hope the Tap developers will re-evaluate this decision in light of the intrusiveness. As an example, lets say someone wanted to build ajax functionality on top of this link request. Every ajax request would be returned as a redirect response. Doesn't sound good. That's not true, you can already return from an event listener method and have the framework respond directly with data without a redirect first. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Home page of application
Hello, Could you tell me please, how do I make a link to home page of application, I mean the page assigned to "org.apache.tapestry.home-page" variable. Thank you in advice, Igor -- View this message in context: http://www.nabble.com/Home-page-of-application-tf3582700.html#a10011122 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]