Re: a trouble problem
try this: JAVA_OPTS='-Xms256m -Xmx1024m' -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-trouble-problem-tp5047877p5047892.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
a trouble problem
there is a trouble problem with a long time. when I modfiy some Pages or components and not restart the server, it where spend a long time to show the Page in browser, sometime it will occur a Exception such as Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to create class org.apache.tapestry5.corelib.components.ExceptionDisplay$postRenderCleanup$invocation_133fc8423b2: Failure defining new class org.apache.tapestry5.corelib.components.ExceptionDisplay$postRenderCleanup$invocation_133fc8423b2: PermGen space at org.apache.tapestry5.internal.services.ComponentMethodInvocationBuilder.commit(ComponentMethodInvocationBuilder.java:114) at org.apache.tapestry5.internal.services.InternalClassTransformationImpl$TransformMethodImpl.doFinish(InternalClassTransformationImpl.java:422) at org.apache.tapestry5.internal.services.InternalClassTransformationImpl.finish(InternalClassTransformationImpl.java:1820) at org.apache.tapestry5.internal.services.ComponentClassTransformerImpl$1.run(ComponentClassTransformerImpl.java:214) ... 105 more 2011-12-02 10:15:45.062::WARN: EXCEPTION java.lang.OutOfMemoryError: PermGen space at java.lang.Throwable.getStackTraceElement(Native Method) at java.lang.Throwable.getOurStackTrace(Throwable.java:591) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:481) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:497) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:497) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:497) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:497) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:497) at java.lang.Throwable.printStackTrace(Throwable.java:468) at java.lang.Throwable.printStackTrace(Throwable.java:451) at org.mortbay.log.StdErrLog.warn(StdErrLog.java:106) at org.mortbay.log.Log.warn(Log.java:181) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:423) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) Is the "PermGen space" Exception normal, And How can I solve it . Thanks a lot. -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-trouble-problem-tp5047877p5047877.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.3 upgrade exception problem
this works: configuration.add(SymbolConstants.UNKNOWN_COMPONENT_ID_CHECK_ENABLED, "false"); -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-upgrade-exception-problem-tp5047703p5047842.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5.3 upgrade exception problem
Hi, notice this when trying to upgrade, say your have this in the page/component: onActionFromValidate then you need to have an action link in the tml: validate if you don't have an action link, then you got an exception: ...references component id 'validate' which does not exist. is there a way to turn this checking off? it is very often you define a onActionFromID, then for some reason you comment out actionLink in the tml, probably for testing or temporarily making it invisible. Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-upgrade-exception-problem-tp5047703p5047703.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 Javascript API - docs?
thank you bob! Bob Harner schrieb: Andreas, My impression is that there has never been an actual "stable, documented, set of APIs". That phrase reflects near-term plans rather than present reality. The common advice has always been to just read tapestry.js to see what functionality is available -- but there doesn't appear to be any distinction between public and internal functionality in there. In the last year or two there may have been some reluctance to further document the JavaScript API because it has been planned for some time that the API would change to make it not based on Prototype. That work has begun, so hopefully we'll see the T5 object documentation fleshed out more pretty soon. On Fri, Dec 2, 2011 at 3:50 AM, Andreas Bohnert wrote: I was hoping for more than this :) "The T5 object represents a stable, documented, set of APIs ." sounds like a nice page with an api overwiew and examples. andreas Steve Eynon schrieb: I just read the source (and it has the bonus of never being out of date!) Steve. On 2 December 2011 16:36, Andreas Bohnertwrote: Hi, I'm sure it is somewhere but I can not find any documentation for the T5 Javascript Framework. There is no link at http://tapestry.apache.org/javascript.html and no link at http://tapestry.apache.org/javascript-faq.html. please, can someone help me out? Thanks, Andreas - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.3: unable to change color of beaneditor border
Hi You can google "CSS Overriding" http://www.google.co.in/search?q=css+overriding regards Taha On Dec 5, 2011, at 6:32 AM, George Ludwig wrote: > Thanks, that did the trick! > > I'm not an expert on CSS...I'm curious by what mechanism were those > attributes protected? > > On Sun, Dec 4, 2011 at 4:48 PM, Dusko Jovanovski wrote: > >> Try replacing your entry in your layout.css with this snippet: >> >> DIV.t-beaneditor { >> border: 2px outset blue !important; >> } >> >> On Mon, Dec 5, 2011 at 12:53 AM, George Ludwig >> wrote: >> >>> I'm want to change the border color of all the beaneditors to blue, so I >>> added this to my layout.css: >>> >>> DIV.t-beaneditor { >>> background: none repeat scroll 0 0 #CC; >>> border: 2px outset blue; >>> display: block; >>> font-family: "Trebuchet MS",Arial,sans-serif; >>> padding: 2px; >>> } >>> >>> However, it remains brown. When I inspect the page using FireBug, I see >>> this from default.css line 159: >>> DIV.t-beaneditor { >>> background: none repeat scroll 0 0 #CC; >>> border: 2px outset brown; >>> display: block; >>> font-family: "Trebuchet MS",Arial,sans-serif; >>> padding: 2px; >>> } >>> >>> Just after that is my entry from layout.css, however all the entries are >>> lined out. >>> >>> Is there something obvious that I'm missing? >>> >>> -George >>> >>
Re: T5.3: unable to change color of beaneditor border
Thanks, that did the trick! I'm not an expert on CSS...I'm curious by what mechanism were those attributes protected? On Sun, Dec 4, 2011 at 4:48 PM, Dusko Jovanovski wrote: > Try replacing your entry in your layout.css with this snippet: > > DIV.t-beaneditor { > border: 2px outset blue !important; > } > > On Mon, Dec 5, 2011 at 12:53 AM, George Ludwig >wrote: > > > I'm want to change the border color of all the beaneditors to blue, so I > > added this to my layout.css: > > > > DIV.t-beaneditor { > >background: none repeat scroll 0 0 #CC; > >border: 2px outset blue; > >display: block; > >font-family: "Trebuchet MS",Arial,sans-serif; > >padding: 2px; > > } > > > > However, it remains brown. When I inspect the page using FireBug, I see > > this from default.css line 159: > > DIV.t-beaneditor { > >background: none repeat scroll 0 0 #CC; > >border: 2px outset brown; > >display: block; > >font-family: "Trebuchet MS",Arial,sans-serif; > >padding: 2px; > > } > > > > Just after that is my entry from layout.css, however all the entries are > > lined out. > > > > Is there something obvious that I'm missing? > > > > -George > > >
Re: T5.3: unable to change color of beaneditor border
Try replacing your entry in your layout.css with this snippet: DIV.t-beaneditor { border: 2px outset blue !important; } On Mon, Dec 5, 2011 at 12:53 AM, George Ludwig wrote: > I'm want to change the border color of all the beaneditors to blue, so I > added this to my layout.css: > > DIV.t-beaneditor { >background: none repeat scroll 0 0 #CC; >border: 2px outset blue; >display: block; >font-family: "Trebuchet MS",Arial,sans-serif; >padding: 2px; > } > > However, it remains brown. When I inspect the page using FireBug, I see > this from default.css line 159: > DIV.t-beaneditor { >background: none repeat scroll 0 0 #CC; >border: 2px outset brown; >display: block; >font-family: "Trebuchet MS",Arial,sans-serif; >padding: 2px; > } > > Just after that is my entry from layout.css, however all the entries are > lined out. > > Is there something obvious that I'm missing? > > -George >
Re: urlrewriter and T5.3
On Sun, 04 Dec 2011 15:05:44 -0200, Kalle Korhonen wrote: Since URLrewriter is a separate service, couldn't you just lift the code from 5.2 and put it in your application so you can go on with your business? I guess this should work. The old URL rewriter was an ordinary RequestFilter (URLRewriterRequestFilter) contributed before:StaticFiles (for incoming URLs) and one advice, ComponentEventLinkEncoderMethodAdvice, for ComponentEventLinkEncoder (for outgoing URLs). Just asking - I don't know if there were some drastic internal changes that would make it impossible to implement URLrewriter in 5.3. It was implemented without any internal changes, so it can be easily turned into a separate package. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5.3: unable to change color of beaneditor border
I'm want to change the border color of all the beaneditors to blue, so I added this to my layout.css: DIV.t-beaneditor { background: none repeat scroll 0 0 #CC; border: 2px outset blue; display: block; font-family: "Trebuchet MS",Arial,sans-serif; padding: 2px; } However, it remains brown. When I inspect the page using FireBug, I see this from default.css line 159: DIV.t-beaneditor { background: none repeat scroll 0 0 #CC; border: 2px outset brown; display: block; font-family: "Trebuchet MS",Arial,sans-serif; padding: 2px; } Just after that is my entry from layout.css, however all the entries are lined out. Is there something obvious that I'm missing? -George
Re: Slow rendering of pagelinks !?
Howord I found this issue and it was my LinkTransformer that made a db lookup! Very embarrasing. Now I am stuck with this when my login form submits ... Caused by: java.lang.RuntimeException: A JSONArray text must start with '[' at character 0 of at org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384) ~[tapestry-json-5.3.jar:na] at org.apache.tapestry5.json.JSONArray.parse(JSONArray.java:126) ~[tapestry-json-5.3.jar:na] at org.apache.tapestry5.json.JSONArray.(JSONArray.java:95) ~[tapestry-json-5.3.jar:na] at org.apache.tapestry5.corelib.components.Form.isFormCancelled(Form.java:590) ~[tapestry-core-5.3.jar:na] at org.apache.tapestry5.corelib.components.Form.advised$onAction_2bbba79dd4fd(Form.java:511) ~[tapestry-core-5.3.jar:na] 2011/12/4 Howard Lewis Ship > That seems awfully high ... I suspect the problem is elsewhere, such > as how your entity objects are retrieved from the database; I would > suspect the classic N+1 selects issue > http://stackoverflow.com/questions/97197/what-is-the-n1-selects-problem > > Definitely enable logging of your SQL operations to track down the > problem. Tapestry is pretty lightning quick, especially considering > all that it does. > > On Sun, Dec 4, 2011 at 8:42 AM, Thiago H. de Paula Figueiredo > wrote: > > On Sun, 04 Dec 2011 09:20:31 -0200, Gunnar Eketrapp > > wrote: > > > >> Hi! > > > > > > Hi! > > > >> I have an page which I would like to speed up and when looking into it I > >> found out the the tml section below adds ca 3000 msecs to request the > page > >> for a page with 18 grid lines and an avarage of 3 bookings per line. > > > > > > Have you checked with just the Pagelinks commented out? If not, please do > > it, as the surrounding template may be the problem. > > > > -- > > Thiago H. de Paula Figueiredo > > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and > > instructor > > Owner, Ars Machina Tecnologia da Informação Ltda. > > http://www.arsmachina.com.br > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- [Hem: 08-715 59 57, Mobil: 070-991 86 42] Allévägen 2A, 132 42 Saltsjö-Boo
Re: urlrewriter and T5.3
Thanks Thiago, here is the JIRA: https://issues.apache.org/jira/browse/TAP5-1767 Thiago H de Paula Figueiredo wrote > > On Sat, 03 Dec 2011 10:57:07 -0200, angelochen > > > File a JIRA for that. ;) I'll do that when I have time. > > -- View this message in context: http://tapestry.1045711.n5.nabble.com/urlrewriter-and-T5-3-tp5043678p5047276.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Slow rendering of pagelinks !?
That seems awfully high ... I suspect the problem is elsewhere, such as how your entity objects are retrieved from the database; I would suspect the classic N+1 selects issue http://stackoverflow.com/questions/97197/what-is-the-n1-selects-problem Definitely enable logging of your SQL operations to track down the problem. Tapestry is pretty lightning quick, especially considering all that it does. On Sun, Dec 4, 2011 at 8:42 AM, Thiago H. de Paula Figueiredo wrote: > On Sun, 04 Dec 2011 09:20:31 -0200, Gunnar Eketrapp > wrote: > >> Hi! > > > Hi! > >> I have an page which I would like to speed up and when looking into it I >> found out the the tml section below adds ca 3000 msecs to request the page >> for a page with 18 grid lines and an avarage of 3 bookings per line. > > > Have you checked with just the Pagelinks commented out? If not, please do > it, as the surrounding template may be the problem. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: urlrewriter and T5.3
I did, but not able to make it work:( Kalle Korhonen-2 wrote > > Since URLrewriter is a separate service, couldn't you just lift the > code from 5.2 and put it in your application so you can go on with > your business? Just asking - I don't know if there were some drastic > internal changes that would make it impossible to implement > URLrewriter in 5.3. > > Kalle > > -- View this message in context: http://tapestry.1045711.n5.nabble.com/urlrewriter-and-T5-3-tp5043678p5047274.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Crop after upload
Hi, I'm using Tapestry 5.3 with tapestry-jquery. I have a page that is responsible for uploading an image via AJAX and then allowing the user to crop the image. The problem is I can't get the Crop image component to come up properly. I've tried returning the Zone in the AjaxUpload handler but that just returns the Ajax Upload component. I've tried tried returning the UploadPage.class but that causes the AjaxUpload to fail (with no stack trace given). I've also tried returning void and then calling the ajaxReponseRenderer.addRender method. This almost works but the Javascript for the crop component is not included and the Tapestry init for the crop component is not called. Any suggestions please as to what is going on? Regards, Greg. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: security
On 12/4/2011 3:01 AM, csckid wrote: Can I use spring security in my tapestry project? though there is Tynamo tapestry security What do you hope to accomplish? I'm using Spring Security to do protect URL paths with CAS. That was fairly easy to setup, my biggest problem is any documentation discussing CAS and Spring Security was quite old. If you're looking to simply protect paths, I could help. If you're looking for something more complex, I probably won't be of assistance. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [5.3] JSONArray Error while submitting forms
For some reason my form submission crashes in the the method isFormCancelled in Form.java. The call to JSONArray(raw) crashes since raw is an empty string which is not allowed. I must have missed something with 5.3 and form handling that is incompatible with 5.2.6. Does anyone have a clue what has to be done ? Thanks in advance, Gunnar Eketrapp request.getParameter(SUBMITTING_ELEMENT_ID); private boolean isFormCancelled() { // The "cancel" query parameter is reserved for this purpose; if it is present then the form was canceled on the // client side. For image submits, there will be two parameters: "cancel.x" and "cancel.y". if (request.getParameter(InternalConstants.CANCEL_NAME) != null || request.getParameter(InternalConstants.CANCEL_NAME + ".x") != null) { return true; } // When JavaScript is involved, it's more complicated. In fact, this is part of HLS's desire // to have all forms submit via XHR when JavaScript is present, since it would provide // an opportunity to get the submitting element's value into the request properly. String raw = request.getParameter(SUBMITTING_ELEMENT_ID); if (raw != null && new *JSONArray(raw)* .getString(1).equals(InternalConstants.CANCEL_NAME)) { return true; } return false; } 2011/12/4 Gunnar Eketrapp > Did you solve this? I am getting the same right now. > > I just started my second attempt with 5.3 after Taha pointed out a > solution for my user type translators. > > But now I am looking at these JSONArray stack traces ... > > Perhaps there is a snapshot release of 5.3 that I can try with !? > > 2011/11/21 Serge Eby > >> Hi, >> >> I am using T 5.3-rc-3 and I am getting the following error message while >> submitting any forms in my app: >> >> --- >> A JSONArray text must start with '[' at character 1 of "[\"save\", >> \"save\"]" >> -- >> >> Stack trace: >> -- >> org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384) >> org.apache.tapestry5.json.JSONArray.parse(JSONArray.java:126) >> org.apache.tapestry5.json.JSONArray.(JSONArray.java:95) >> >> org.apache.tapestry5.corelib.components.Form.isFormCancelled(Form.java:590) >> >> org.apache.tapestry5.corelib.components.Form.advised$onAction_12585e84eba88bfd(Form.java:511) >> >> org.apache.tapestry5.corelib.components.Form$Invocation_onAction_12585e84eba88bfc.proceedToAdvisedMethod(Unknown >> Source) >> >> org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java: >> ... >> --- >> What's puzzling is that the form works in a dummy app but fails in the >> core >> (complex) app. This makes me believe that there is something else that is >> interfering with tapestry. I've also noticed that if I disable Javascript >> in >> the browser, the submission is successful. >> >> It looks as if: >> String raw = request.getParameter(SUBMITTING_ELEMENT_ID); >> >> in Form.isCancelled() is returning a String in double quotes (in my case) >> but I can't figure out where this is created. >> >> Has anybody else seen this? >> >> >> Below is an excerpt: >> >> java class: >> >> >> void onSuccess() { >> >> String uploadDir = context.getRealFile("/").getAbsolutePath() + >> "/resources"; >>File dirPath = new File(uploadDir); >> >>if (!dirPath.exists()) { >>dirPath.mkdirs(); >>} >> >>File copied = new File(uploadDir , file.getFileName()); >>file.write(copied); >> >> } >> >> tml: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ... >> >> >> -- >> Thanks, >> >> /Serge >> >> >> -- >> View this message in context: >> http://tapestry-users.832.n2.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp7018161p7018161.html >> Sent from the Tapestry Users mailing list archive at Nabble.com. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > -- > [Hem: 08-715 59 57, Mobil: 070-991 86 42] > Allévägen 2A, 132 42 Saltsjö-Boo > -- [Hem: 08-715 59 57, Mobil: 070-991 86 42] Allévägen 2A, 132 42 Saltsjö-Boo
Re: [5.3] JSONArray Error while submitting forms
Did you solve this? I am getting the same right now. I just started my second attempt with 5.3 after Taha pointed out a solution for my user type translators. But now I am looking at these JSONArray stack traces ... Perhaps there is a snapshot release of 5.3 that I can try with !? 2011/11/21 Serge Eby > Hi, > > I am using T 5.3-rc-3 and I am getting the following error message while > submitting any forms in my app: > > --- > A JSONArray text must start with '[' at character 1 of "[\"save\", > \"save\"]" > -- > > Stack trace: > -- > org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384) > org.apache.tapestry5.json.JSONArray.parse(JSONArray.java:126) > org.apache.tapestry5.json.JSONArray.(JSONArray.java:95) > org.apache.tapestry5.corelib.components.Form.isFormCancelled(Form.java:590) > > org.apache.tapestry5.corelib.components.Form.advised$onAction_12585e84eba88bfd(Form.java:511) > > org.apache.tapestry5.corelib.components.Form$Invocation_onAction_12585e84eba88bfc.proceedToAdvisedMethod(Unknown > Source) > > org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java: > ... > --- > What's puzzling is that the form works in a dummy app but fails in the core > (complex) app. This makes me believe that there is something else that is > interfering with tapestry. I've also noticed that if I disable Javascript > in > the browser, the submission is successful. > > It looks as if: > String raw = request.getParameter(SUBMITTING_ELEMENT_ID); > > in Form.isCancelled() is returning a String in double quotes (in my case) > but I can't figure out where this is created. > > Has anybody else seen this? > > > Below is an excerpt: > > java class: > > > void onSuccess() { > > String uploadDir = context.getRealFile("/").getAbsolutePath() + > "/resources"; >File dirPath = new File(uploadDir); > >if (!dirPath.exists()) { >dirPath.mkdirs(); >} > >File copied = new File(uploadDir , file.getFileName()); >file.write(copied); > > } > > tml: > > > > > > > > > > > > > > > > > > > > > ... > > > -- > Thanks, > > /Serge > > > -- > View this message in context: > http://tapestry-users.832.n2.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp7018161p7018161.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- [Hem: 08-715 59 57, Mobil: 070-991 86 42] Allévägen 2A, 132 42 Saltsjö-Boo
Re: urlrewriter and T5.3
Since URLrewriter is a separate service, couldn't you just lift the code from 5.2 and put it in your application so you can go on with your business? Just asking - I don't know if there were some drastic internal changes that would make it impossible to implement URLrewriter in 5.3. Kalle On Sat, Dec 3, 2011 at 4:57 AM, angelochen wrote: > got quite a big application and would like to upgrade to 5.3. > > struggling whole day to convert my rewriting rules from URLrewriter to > LinkTransformer, seems not getting expected behavior, is there a way to have > urlrewriter in as an extra package for 5.3? this will make upgrading easier. > > Thanks, > > Angelo > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/urlrewriter-and-T5-3-tp5043678p5044490.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Slow rendering of pagelinks !?
On Sun, 04 Dec 2011 09:20:31 -0200, Gunnar Eketrapp wrote: Hi! Hi! I have an page which I would like to speed up and when looking into it I found out the the tml section below adds ca 3000 msecs to request the page for a page with 18 grid lines and an avarage of 3 bookings per line. Have you checked with just the Pagelinks commented out? If not, please do it, as the surrounding template may be the problem. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Code Coverage link on Tap homepage doesn't work anymore
On Sat, 03 Dec 2011 08:53:14 -0200, derkoe wrote: Is this some build glitch with the switch to Gradle? Or is this the problem with meta-programming and measuring coverage? I'd guess it's caused by the switch. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: urlrewriter and T5.3
On Sat, 03 Dec 2011 10:57:07 -0200, angelochen wrote: got quite a big application and would like to upgrade to 5.3. struggling whole day to convert my rewriting rules from URLrewriter to LinkTransformer, seems not getting expected behavior, is there a way to have urlrewriter in as an extra package for 5.3? this will make upgrading easier. File a JIRA for that. ;) I'll do that when I have time. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: security
Sorry I was on my phone when I wrote the earlier message and didnt have the complete URL handy. http://www.localhost.nu/java/tapestry-spring-security/ is the URL of that library I mentioned. Looking at it I dont think I would recommend it. I used it back when I was on Tapestry 5.1.0.5 which appears to be the last time they updated it. -Seamus From: Seamus Minogue To: Tapestry users Cc: Tapestry users Sent: Sunday, December 4, 2011 9:06 AM Subject: Re: security But in answer to your question... Yes you could use spring security if you were so inclined. Localhost.nu has a library I have used. Although I am with Dragan on using Tynamo it's the route I would recommend. -Seamus On Dec 4, 2011, at 5:06 AM, Dragan Sahpaski wrote: > Hi, > I've been using tapestry-security (from the tynamo team) for quite some > time now and I highly recommend it. > It's based on apache shiro which is very mature. > > Cheers, > Dragan Sahpaski > > > > On Sun, Dec 4, 2011 at 10:01 AM, csckid wrote: > >> Can I use spring security in my tapestry project? though there is Tynamo >> tapestry security >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/security-tp5045892p5045892.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: security
But in answer to your question... Yes you could use spring security if you were so inclined. Localhost.nu has a library I have used. Although I am with Dragan on using Tynamo it's the route I would recommend. -Seamus On Dec 4, 2011, at 5:06 AM, Dragan Sahpaski wrote: > Hi, > I've been using tapestry-security (from the tynamo team) for quite some > time now and I highly recommend it. > It's based on apache shiro which is very mature. > > Cheers, > Dragan Sahpaski > > > > On Sun, Dec 4, 2011 at 10:01 AM, csckid wrote: > >> Can I use spring security in my tapestry project? though there is Tynamo >> tapestry security >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/security-tp5045892p5045892.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Show your Tapestry support!
I would love to upgrade to 5.3 and show my support but since user types stopped working I am not able to do so. But as soon as https://issues.apache.org/jira/browse/TAP5-1763 is resolved I will of course praise this excellent release. (Yesterday I added a minimal project that highlights the error ...) Also great thanks to Howard for harassing me (with the condolence statement to Maven users) into the direction of Gradle. By by Maven ... Tapestry made web hacking fun and Gradle made building and testing fun! Gunnar Eketrapp 2011/12/4 Christian Riedel > congratulations... seems the announcement made it to #1 in dzone's top > links! > hope you're satisfied with that result ;-) > > > Am 02.12.2011 um 01:16 schrieb Howard Lewis Ship: > > > On additional note ... there's several links along the left edge of > > the page for voting up the announcement. Please do that as well! > > > > On Thu, Dec 1, 2011 at 2:21 PM, robert baker > wrote: > >> For what it's worth, I registered and put in my $(1/50). Thanks > >> Howard for letting us know about the announcement. > >> > >> Les Baker > >> > >> On Thu, Dec 1, 2011 at 4:21 PM, Howard Lewis Ship > wrote: > >>> Ok folks, time to strike while the iron's hot. Major release > >>> announcements are a great way to get people interested in Tapestry. I > >>> can't tell you how many times I've met with people who have "heard > >>> good things about Tapestry" but "don't know what it's all about". > >>> Seeing an outpouring of support on a release announcement is one way > >>> to tip the balance towards more people looking at Tapestry ... and > >>> that's good for *everyone*. The more people using Tapestry, the easier > >>> it is for me, and the other Tapestry committers, to continue extending > >>> and improving the project. > >>> > >>> So, if all you've ever done with Tapestry is take it, and not give > >>> back, then now's a very good time to start making a small > >>> contribution: a one line posting about Tapestry to the JavaLobby > >>> announcement! > >>> > >>> On Wed, Nov 30, 2011 at 5:13 PM, Howard Lewis Ship > wrote: > First five comments are nice, but I'd like to see 50, or 500, > comments! > > On Wed, Nov 30, 2011 at 8:30 AM, Howard Lewis Ship > wrote: > > The Tapestry 5.3 announcement has hit JavaLobby: > > > > http://java.dzone.com/announcements/announcing-apache-tapestry-53 > > > > Now is an excellent time to post a short comment showing your support > > for Tapestry. It's a small thing you can do that can make a big, big > > difference in the long term. > > > > Please don't start any flamewars, or bash other frameworks, just say > > (in your own words) "Tapestry lets me get great results". > > > > Thanks! > > > > -- > > Howard M. Lewis Ship > > > > Creator of Apache Tapestry > > > > The source for Tapestry training, mentoring and support. Contact me > to > > learn how I can get you up and productive in Tapestry fast! > > > > (971) 678-5210 > > http://howardlewisship.com > > > > > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > > >>> > >>> > >>> > >>> -- > >>> Howard M. Lewis Ship > >>> > >>> Creator of Apache Tapestry > >>> > >>> The source for Tapestry training, mentoring and support. Contact me to > >>> learn how I can get you up and productive in Tapestry fast! > >>> > >>> (971) 678-5210 > >>> http://howardlewisship.com > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >>> For additional commands, e-mail: users-h...@tapestry.apache.org > >>> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > > > > > > > > -- > > Howard M. Lewis Ship > > > > Creator of Apache Tapestry > > > > The source for Tapestry training, mentoring and support. Contact me to > > learn how I can get you up and productive in Tapestry fast! > > > > (971) 678-5210 > > http://howardlewisship.com > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- [Hem: 08-715 59 57, Mobil: 070-991 86 42] Allévägen 2A, 132 42 Saltsjö-Boo
Slow rendering of pagelinks !?
Hi! I have an page which I would like to speed up and when looking into it I found out the the tml section below adds ca 3000 msecs to request the page for a page with 18 grid lines and an avarage of 3 bookings per line. That gives ca 55 msecs per rendered page link. Is this normal considered my specs. Se attached image. If so I must redesign my page ... since 3 secs / 18 lines is not feasible. Note: I am using T5.2.6 ... Thanks in advance, Gunnar Eketrapp ... ${booking.account.code} ... - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: URL Rewrite
Hi Angelo The only documentation about LinkTransformer available is on the Igor's blog : http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/ Manu 2011/12/4 angelochen > Hi Thiago, > > Your API has been working well up to this day, for the sake of upgrading to > 5.3, now I need to convert it to LinkTransformer, now I can't find a way to > do the part for outgoing rewrite, can you point me to some directions? > THanks, > > Angelo > > > Thiago H de Paula Figueiredo wrote > > > > > > We can keep the current API for incoming URLs and create another for > > outgoing ones. Or create an ImprovedURLRewriteRule, extending > > URLRewriteRule, that adds a Link rewrite(Link link) method. My original > > plan was to provide the user the same way of dealing with incoming and > > outgoing URLs, making it easier,, but now I see it wasn't a good idea. It > > would even be simpler to implement the URL rewrite support with different > > approaches for incoming and outgoing requests. :( My apologies. > > > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/URL-Rewrite-tp2437039p5045956.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.emman...@gmail.com http://emmanueldemey.fr Twitter : @gillespie59
Re: Show your Tapestry support!
congratulations... seems the announcement made it to #1 in dzone's top links! hope you're satisfied with that result ;-) Am 02.12.2011 um 01:16 schrieb Howard Lewis Ship: > On additional note ... there's several links along the left edge of > the page for voting up the announcement. Please do that as well! > > On Thu, Dec 1, 2011 at 2:21 PM, robert baker wrote: >> For what it's worth, I registered and put in my $(1/50). Thanks >> Howard for letting us know about the announcement. >> >> Les Baker >> >> On Thu, Dec 1, 2011 at 4:21 PM, Howard Lewis Ship wrote: >>> Ok folks, time to strike while the iron's hot. Major release >>> announcements are a great way to get people interested in Tapestry. I >>> can't tell you how many times I've met with people who have "heard >>> good things about Tapestry" but "don't know what it's all about". >>> Seeing an outpouring of support on a release announcement is one way >>> to tip the balance towards more people looking at Tapestry ... and >>> that's good for *everyone*. The more people using Tapestry, the easier >>> it is for me, and the other Tapestry committers, to continue extending >>> and improving the project. >>> >>> So, if all you've ever done with Tapestry is take it, and not give >>> back, then now's a very good time to start making a small >>> contribution: a one line posting about Tapestry to the JavaLobby >>> announcement! >>> >>> On Wed, Nov 30, 2011 at 5:13 PM, Howard Lewis Ship wrote: First five comments are nice, but I'd like to see 50, or 500, comments! On Wed, Nov 30, 2011 at 8:30 AM, Howard Lewis Ship wrote: > The Tapestry 5.3 announcement has hit JavaLobby: > > http://java.dzone.com/announcements/announcing-apache-tapestry-53 > > Now is an excellent time to post a short comment showing your support > for Tapestry. It's a small thing you can do that can make a big, big > difference in the long term. > > Please don't start any flamewars, or bash other frameworks, just say > (in your own words) "Tapestry lets me get great results". > > Thanks! > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com >>> >>> >>> >>> -- >>> Howard M. Lewis Ship >>> >>> Creator of Apache Tapestry >>> >>> The source for Tapestry training, mentoring and support. Contact me to >>> learn how I can get you up and productive in Tapestry fast! >>> >>> (971) 678-5210 >>> http://howardlewisship.com >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: URL Rewrite
Hi Thiago, Your API has been working well up to this day, for the sake of upgrading to 5.3, now I need to convert it to LinkTransformer, now I can't find a way to do the part for outgoing rewrite, can you point me to some directions? THanks, Angelo Thiago H de Paula Figueiredo wrote > > > We can keep the current API for incoming URLs and create another for > outgoing ones. Or create an ImprovedURLRewriteRule, extending > URLRewriteRule, that adds a Link rewrite(Link link) method. My original > plan was to provide the user the same way of dealing with incoming and > outgoing URLs, making it easier,, but now I see it wasn't a good idea. It > would even be simpler to implement the URL rewrite support with different > approaches for incoming and outgoing requests. :( My apologies. > > -- View this message in context: http://tapestry.1045711.n5.nabble.com/URL-Rewrite-tp2437039p5045956.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: security
Hi, I've been using tapestry-security (from the tynamo team) for quite some time now and I highly recommend it. It's based on apache shiro which is very mature. Cheers, Dragan Sahpaski On Sun, Dec 4, 2011 at 10:01 AM, csckid wrote: > Can I use spring security in my tapestry project? though there is Tynamo > tapestry security > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/security-tp5045892p5045892.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
security
Can I use spring security in my tapestry project? though there is Tynamo tapestry security -- View this message in context: http://tapestry.1045711.n5.nabble.com/security-tp5045892p5045892.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org