pagecatalog still visible in production mode
hi, setting production mode to true in 5.3, servicestatus not show details, but pagecatalog still shows everything. what's the easy way to turn this off? Thanks, angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/pagecatalog-still-visible-in-production-mode-tp5058173p5058173.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: smarter css
On Wed, 07 Dec 2011 23:08:28 -0200, Lenny Primak lpri...@hope.nyc.ny.us wrote: but doesn't it kinda have to be in the core so the core CSS can use it? I don't think so. :) It could be implemented as a separate package. It could be implemented by adding another dispatcher that picks requests to .less or .sass files. Or better yet, by decorating or overriding ResourceCache. This last option is actually used in a company package to implement CSS and JavaScript minification before Tapestry 5.3 provided it out-of-the-box. -- 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: Skinning Theming Axes + Asset
On Wed, 07 Dec 2011 16:27:19 -0200, Dimitris Zenios dimitris.zen...@gmail.com wrote: What would be ideal for me is to be able to add virtual packages to the hostname like locale and depending on the virtual package change tml,css,assets,locals Use the LinkTransformer API for that: http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/. -- 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: smarter css
Sorry for my hasty and not well formulated rant. I was just thinking about the announcment of the Rails-team to switch to Coffeescript and what an impact that has on developers and existing apps. There is always that compromise between flexibility and high-level tools but as the server side of Tapestry focusses so much on flexibilty/modularity i think it would make sense to follow that route also for the browser side. All this highly sofisticated tools (eg: sass, activerecord, hibernate, ...) cover maybe 90% of the use cases but become a major road block if they cannot easily be circumvented for the other 10%. Cheers, Andi. On Dec 8, 2011, at 2:13 , Chris Collins wrote: Is prototype a good comparison here? It seems that both the tools mentions here somewhat become an extension to the template engine server side part of the T5 equation. After quickly playing with Tapestry-jquery it wasn't a case of getting rid of prototype, but adding safely jquery. I certainly want to use javascript libraries that use both prototype and jquery. I can imagine that one day there maybe extensions for tapestry that incorporate not only these competing js libraries but potentially leverage competing css macro languages like less and sass. I guess I personally wouldn't care too much if it was one or the other but it certainly would be nice if as a component of tapestry you could perhaps have them as components that can co-exist in their own namespace. 1 1/2 cents worth. C On Dec 7, 2011, at 4:57 PM, Andreas Fink wrote: Please do not include this kind of technologies in the core. It took us long enough to get rid of prototype.js. Sure, it can be overridden but why not just offer it as part of an external CoolKidsJavascriptStack. Just my 2c. Andi. On Dec 8, 2011, at 1:15 , Howard Lewis Ship wrote: Less or SCSS are both promising, but I'd love to see it integrated into tapestry-core so that it could be used for Tapestry's default stylesheet. On Wed, Dec 7, 2011 at 3:32 PM, Greg Pagendam-Turner g...@liftyourgame.com wrote: Hey Howard what about less? On 08/12/11 04:49, Howard Lewis Ship wrote: One thing we need to do is support SASS (http://sass-lang.com/) so that we can code concise configurable SASS stylesheets and let Tapestry expand them into ugly, redundant CSS for the client web browser. On Tue, Dec 6, 2011 at 6:59 PM, Chris Collinschris...@me.com wrote: Makes sense. Working in Java for too long has made me soft. I need to read some c code to repent for my sins ;-} Thanks Bob. C On Dec 6, 2011, at 6:41 PM, Bob Harner wrote: Rather than having separate IE-only style sheets, a technique I prefer is to use IE conditional comments to add an additional div around the body in my layout.tml, like this: body !--[if lt IE 9] div class=ie-old ![endif]-- !--[if lt IE 9] /div ![endif]-- /body Once that's done, then it becomes trivially easy to add all sorts of IE-specific CSS rules in your app's main (or only) style sheet file: DIV.menu { /* CSS rules for most browsers go here */ } DIV.ie-old DIV.menu { /* some IE-specific rules go here */ } Hope this helps... On Tue, Dec 6, 2011 at 12:10 PM, Chris Collinschris...@me.com wrote: Thanks Peter, makes total sense. I am so happy that css3 helped standardize cross browser support :-} So I probably would want to detect a non HTML5 browser such as earlier IE's with something that would throw in to the css another technique such as using a gradient filled image file (in this example)? I don't think I would want to throw in the technique of last resort because in the gradient image case it would compete with the html5 technique right? For the conditional method there is a technique proposed in: http://tapestry.apache.org/css.html Of course I am actually not literally talking about gradient fills I am talking about the general new vs old vs cross browser css challenge. This client side commenting conditional logic seems to be only for IE. Would that be correct? I am guessing from a browser laggard perspective the only older browsers people would care about would be IE in general? Sorry for all the novice questions, by day I normally do non ui data crunching like engineering :-} Best C On Dec 5, 2011, at 11:23 PM, Peter Stavrinides wrote: Hi Chris, So when it comes to css3 is it really so ugly? If you really want an answer to that, unfortunately yes... and no its not just gradients. So say I was trying to add browser specific css to my layout component what would people suggest as the best strategy? Browser detection is pretty awful, as its a moving target and not perfectly accurate, but granted in some cases a necessary evil... avoid it if you can. Its not uncommon to simply specify all the styles for the various browsers because those that are not understood will simply be
Re: [t5.1] ajaxFormLoop disabled once page reloaded and returning a PDFStreamResponse
Does anyone have an idea on this? Is my presentation of the issue missing clarity/details ? Regards, Jeremie 2011/12/6 Jérémie Charlet charlet.jere...@gmail.com Hello everyone, I am facing an issue while using ajaxFormLoop: On my page, I fill a form that includes among others a list of phoneNumbers to be set in an ajaxFormLoop. Once I submit the form, it generates a PDF (containing data from my form) and makes the user download it in his web browser. The user is not redirected to another page, the page is simply reloaded so that the user can fill once again the form and generate a new PDF. Problem is that once the page is reloaded (and my PDF file asked to be download), I cannot use the ajaxFormLoop anymore: if I click on addRow, nothing happens on the GUI. However if I reload manually the page, the ajaxFormLoop works back again and displays moreothers as many rows as I clicked previously on the addRow button. It seems that once I click on addRow, requests are indeed done server side, but the javaScript doesn't work anymore and and does not refresh the GUI and show the added rows. The problem might occur because in the function handling the submit event, I return a PDFStreamResponse instead of the tapestry page but I don't see how to solve it.. Return the PDFStreamResponse and somehow reload immediately after the page, but how? Is there a better way to make the user download the generated PDF? the ajaxFormLoop from the tml div t:type=ajaxformloop t:id=phoneNumberLoop t:value=phoneNumberRow t:source=phoneNumberList t:encoder=phoneNumberRowEncoder t:unless t:test=phoneNumberRow.toDelete t:submitnotifier t:layout.twocolumn padding=0 rightColumnWidth=20 p:leftColumn p t:label for=phoneNumber ${sharedcatalog:phoneNumber} /t:label t:textfield t:id=phoneNumber t:value=phoneNumber t:validate=required / /p /p:leftColumn p:rightColumn p t:removerowlink ${sharedcatalog:deletephoneNumber} /t:removerowlink /p /p:rightColumn /t:layout.twocolumn /t:submitnotifier /t:unless p:addRow div style=clear: both; p t:addrowlink ${sharedcatalog:addphoneNumber} /t:addrowlink /p /div /p:addRow /div the submit event handled in the java class @OnEvent(component = myForm, value = EventConstants.SUBMIT) public Object generatePDF() { InputStream pdfStream = null; try { pdfStream = pdfGeneratorService.generateMandatePDF(); } catch (PDFGeneratorServiceException e) { e.printStackTrace(); } // return the PDF as a PDFStreamResponse return new PDFStreamResponse(pdfStream, Addresses_ + System.currentTimeMillis() + .pdf); } Thanks in advance for the help :), Jérémie
Re: [t5.1] ajaxFormLoop disabled once page reloaded and returning a PDFStreamResponse
Have a look at https://issues.apache.org/jira/browse/TAP5-1533 An upgrade to 5.2 will fix your problem. Cheers, Joost On Dec 8, 2011, at 4:00 PM, Jérémie Charlet wrote: Does anyone have an idea on this? Is my presentation of the issue missing clarity/details ? Regards, Jeremie 2011/12/6 Jérémie Charlet charlet.jere...@gmail.com Hello everyone, I am facing an issue while using ajaxFormLoop: On my page, I fill a form that includes among others a list of phoneNumbers to be set in an ajaxFormLoop. Once I submit the form, it generates a PDF (containing data from my form) and makes the user download it in his web browser. The user is not redirected to another page, the page is simply reloaded so that the user can fill once again the form and generate a new PDF. Problem is that once the page is reloaded (and my PDF file asked to be download), I cannot use the ajaxFormLoop anymore: if I click on addRow, nothing happens on the GUI. However if I reload manually the page, the ajaxFormLoop works back again and displays moreothers as many rows as I clicked previously on the addRow button. It seems that once I click on addRow, requests are indeed done server side, but the javaScript doesn't work anymore and and does not refresh the GUI and show the added rows. The problem might occur because in the function handling the submit event, I return a PDFStreamResponse instead of the tapestry page but I don't see how to solve it.. Return the PDFStreamResponse and somehow reload immediately after the page, but how? Is there a better way to make the user download the generated PDF? the ajaxFormLoop from the tml div t:type=ajaxformloop t:id=phoneNumberLoop t:value=phoneNumberRow t:source=phoneNumberList t:encoder=phoneNumberRowEncoder t:unless t:test=phoneNumberRow.toDelete t:submitnotifier t:layout.twocolumn padding=0 rightColumnWidth=20 p:leftColumn p t:label for=phoneNumber ${sharedcatalog:phoneNumber} /t:label t:textfield t:id=phoneNumber t:value=phoneNumber t:validate=required / /p /p:leftColumn p:rightColumn p t:removerowlink ${sharedcatalog:deletephoneNumber} /t:removerowlink /p /p:rightColumn /t:layout.twocolumn /t:submitnotifier /t:unless p:addRow div style=clear: both; p t:addrowlink ${sharedcatalog:addphoneNumber} /t:addrowlink /p /div /p:addRow /div the submit event handled in the java class @OnEvent(component = myForm, value = EventConstants.SUBMIT) public Object generatePDF() { InputStream pdfStream = null; try { pdfStream = pdfGeneratorService.generateMandatePDF(); } catch (PDFGeneratorServiceException e) { e.printStackTrace(); } // return the PDF as a PDFStreamResponse return new PDFStreamResponse(pdfStream, Addresses_ + System.currentTimeMillis() + .pdf); } Thanks in advance for the help :), Jérémie
Re: [t5.1] ajaxFormLoop disabled once page reloaded and returning a PDFStreamResponse
oops, I meant upgrade to 5.3 obviously. cheers, Joost On Dec 8, 2011, at 4:00 PM, Jérémie Charlet wrote: Does anyone have an idea on this? Is my presentation of the issue missing clarity/details ? Regards, Jeremie 2011/12/6 Jérémie Charlet charlet.jere...@gmail.com Hello everyone, I am facing an issue while using ajaxFormLoop: On my page, I fill a form that includes among others a list of phoneNumbers to be set in an ajaxFormLoop. Once I submit the form, it generates a PDF (containing data from my form) and makes the user download it in his web browser. The user is not redirected to another page, the page is simply reloaded so that the user can fill once again the form and generate a new PDF. Problem is that once the page is reloaded (and my PDF file asked to be download), I cannot use the ajaxFormLoop anymore: if I click on addRow, nothing happens on the GUI. However if I reload manually the page, the ajaxFormLoop works back again and displays moreothers as many rows as I clicked previously on the addRow button. It seems that once I click on addRow, requests are indeed done server side, but the javaScript doesn't work anymore and and does not refresh the GUI and show the added rows. The problem might occur because in the function handling the submit event, I return a PDFStreamResponse instead of the tapestry page but I don't see how to solve it.. Return the PDFStreamResponse and somehow reload immediately after the page, but how? Is there a better way to make the user download the generated PDF? the ajaxFormLoop from the tml div t:type=ajaxformloop t:id=phoneNumberLoop t:value=phoneNumberRow t:source=phoneNumberList t:encoder=phoneNumberRowEncoder t:unless t:test=phoneNumberRow.toDelete t:submitnotifier t:layout.twocolumn padding=0 rightColumnWidth=20 p:leftColumn p t:label for=phoneNumber ${sharedcatalog:phoneNumber} /t:label t:textfield t:id=phoneNumber t:value=phoneNumber t:validate=required / /p /p:leftColumn p:rightColumn p t:removerowlink ${sharedcatalog:deletephoneNumber} /t:removerowlink /p /p:rightColumn /t:layout.twocolumn /t:submitnotifier /t:unless p:addRow div style=clear: both; p t:addrowlink ${sharedcatalog:addphoneNumber} /t:addrowlink /p /div /p:addRow /div the submit event handled in the java class @OnEvent(component = myForm, value = EventConstants.SUBMIT) public Object generatePDF() { InputStream pdfStream = null; try { pdfStream = pdfGeneratorService.generateMandatePDF(); } catch (PDFGeneratorServiceException e) { e.printStackTrace(); } // return the PDF as a PDFStreamResponse return new PDFStreamResponse(pdfStream, Addresses_ + System.currentTimeMillis() + .pdf); } Thanks in advance for the help :), Jérémie - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: pagecatalog still visible in production mode
Try accessing PageCatalog from beyond your localhost ... localhost is white listed, other IP addresses are not on the white list unless you make a specific contribution. See: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/WhitelistAccessOnly.html http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/security/ClientWhitelist.html On Thu, Dec 8, 2011 at 1:24 AM, angelochen angelochen...@yahoo.com.hk wrote: hi, setting production mode to true in 5.3, servicestatus not show details, but pagecatalog still shows everything. what's the easy way to turn this off? Thanks, angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/pagecatalog-still-visible-in-production-mode-tp5058173p5058173.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 -- 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: smarter css
That's a debate; for instance, tapestry-core could use SCSS and CoffeeScript, but use build-time tools to convert those into standard CSS and JS. Less convenient for use T5 developers though. On Wed, Dec 7, 2011 at 5:08 PM, Lenny Primak lpri...@hope.nyc.ny.us wrote: but doesn't it kinda have to be in the core so the core CSS can use it? On Dec 7, 2011, at 7:57 PM, Andreas Fink wrote: Please do not include this kind of technologies in the core. It took us long enough to get rid of prototype.js. Sure, it can be overridden but why not just offer it as part of an external CoolKidsJavascriptStack. Just my 2c. Andi. - 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: [t5.1] ajaxFormLoop disabled once page reloaded and returning a PDFStreamResponse
I've 'fixed' a similair issue by using an eventlink where the user can download the document, but set the target attribute of the link to target=_blank. The download page will open in a new window, but you dont have to refresh the form. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-1-ajaxFormLoop-disabled-once-page-reloaded-and-returning-a-PDFStreamResponse-tp5053108p5059217.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: [ANN] AjaxUpload : An ajax based upload component
Is there is a way it can work on T5.1.0.8 ? i'm getting errors during gradle build and i'm wondering is it possible to adopt to 5.1.0.8 or i should stop it now :) Thanks.
Re: [ANN] AjaxUpload : An ajax based upload component
Hi Dmitriy That depends on the error :) Can you share it ? regards Taha On Dec 8, 2011, at 9:26 PM, Dmitriy Vsekhvalnov wrote: Is there is a way it can work on T5.1.0.8 ? i'm getting errors during gradle build and i'm wondering is it possible to adopt to 5.1.0.8 or i should stop it now :) Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: smarter css
On Thu, 08 Dec 2011 12:31:35 -0200, Andreas Fink fink.a...@googlemail.com wrote: Sorry for my hasty and not well formulated rant. I was just thinking about the announcment of the Rails-team to switch to Coffeescript and what an impact that has on developers and existing apps. There is always that compromise between flexibility and high-level tools but as the server side of Tapestry focusses so much on flexibilty/modularity i think it would make sense to follow that route also for the browser side. In this case, it would be just an out-of-the-box support for a given package that wouldn't prevent support for other similar packages. In addition, it's quite probable that it would make it easier to add support for other similar packages. ;) -- 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: [ANN] AjaxUpload : An ajax based upload component
yep. Here is quite long stack trace: [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:23: cannot find symbol [ant:javac] symbol : class Import [ant:javac] location: package org.apache.tapestry5.annotations [ant:javac] import org.apache.tapestry5.annotations.Import; [ant:javac]^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:26: cannot find symbol [ant:javac] symbol : class RequestParameter [ant:javac] location: package org.apache.tapestry5.annotations [ant:javac] import org.apache.tapestry5.annotations.RequestParameter; [ant:javac]^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:41: package org.apache.tapestry5.services.javascript does not exist [ant:javac] import org.apache.tapestry5.services.javascript.JavaScriptSupport; [ant:javac]^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:55: cannot find symbol [ant:javac] symbol: class Import [ant:javac] @Import(library = ajaxupload.js, stylesheet = ajaxupload.css) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:64: cannot find symbol [ant:javac] symbol : class JavaScriptSupport [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac]private JavaScriptSupport javaScriptSupport; [ant:javac]^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:135: cannot find symbol [ant:javac] symbol : class JavaScriptSupport [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac] FieldValidationSupport fieldValidationSupport, JavaScriptSupport javaScriptSupport) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/services/AjaxUploadModule.java:12: cannot find symbol [ant:javac] symbol : class Contribute [ant:javac] location: package org.apache.tapestry5.ioc.annotations [ant:javac] import org.apache.tapestry5.ioc.annotations.Contribute; [ant:javac]^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:382: cannot find symbol [ant:javac] symbol : class RequestParameter [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac]void onRemoveUpload(@RequestParameter(serverIndex) int serverIndex) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/services/AjaxUploadModule.java:36: cannot find symbol [ant:javac] symbol : class Contribute [ant:javac] location: class com.googlecode.tawus.ajaxupload.services.AjaxUploadModule [ant:javac]@Contribute(ComponentClassResolver.class) [ant:javac] ^ [ant:javac] 9 errors FAILURE: Build failed with an exception. On Thu, Dec 8, 2011 at 6:59 PM, Taha Hafeez Siddiqi tawus.tapes...@gmail.com wrote: Hi Dmitriy That depends on the error :) Can you share it ? regards Taha On Dec 8, 2011, at 9:26 PM, Dmitriy Vsekhvalnov wrote: Is there is a way it can work on T5.1.0.8 ? i'm getting errors during gradle build and i'm wondering is it possible to adopt to 5.1.0.8 or i should stop it now :) Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
FileSystem asset source
Any example of an asset source that loads assets from filesystem? Dimitris - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [5.3] JPA Maven Dependency not found
I've already done it. This is not case - problem is it still not corrected in repository. Developers (users) waste their time to fix problem, which shouldn't happen in STABLE version. -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-3-JPA-Maven-Dependency-not-found-tp4974063p5059481.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: smarter css
Most of the support needed for Less and CoffeeScript is already present; the trick is finding a reliable Java-compatible library that can execute the necessary code transformations (which are generally written in Ruby or JavaScript). http://code.google.com/p/wro4j/wiki/Features looks promising, but is geared more for build-time conversions, rather than runtime. I just haven't had spare cycles to spare on this. On Thu, Dec 8, 2011 at 8:13 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 08 Dec 2011 12:31:35 -0200, Andreas Fink fink.a...@googlemail.com wrote: Sorry for my hasty and not well formulated rant. I was just thinking about the announcment of the Rails-team to switch to Coffeescript and what an impact that has on developers and existing apps. There is always that compromise between flexibility and high-level tools but as the server side of Tapestry focusses so much on flexibilty/modularity i think it would make sense to follow that route also for the browser side. In this case, it would be just an out-of-the-box support for a given package that wouldn't prevent support for other similar packages. In addition, it's quite probable that it would make it easier to add support for other similar packages. ;) -- 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: Artifacts in T5.3 tree component
Got no response so I filed TAP5-1782. Also there doesn't seem to be a version 5.3 available in jira. C On Dec 7, 2011, at 11:48 AM, Chris Collins wrote: I was playing with the tree component and had a background color set in my css as a gradient. When I draw the tree I am seeing an interesting artifact. The last node within each sub branch has a white background. I guess its related to the css associated with class t-last defined for that element. Should I file a bug or is it something I am doing wrong? Defining in my layout.css didn't help: DIV.t-tree-container LI.t-last { background-color: transparent; } Actually trying different colors defined in my layout.css didn't work at all. Playing with the inspector in firefox disabling parts of the css made me realize that perhaps the white is there to cover up part of the vertical bar of the three layout. Seems that currently this tree only works well with a white background. C
Re: smarter css
You can use both Less and CoffeeScript with Tapestry even today with my t5conduit https://github.com/cezary-biernacki/t5conduitlibrary. It works directly with Tapestry 5.3.0, and with help of t52transformershttps://github.com/cezary-biernacki/t52transformers also with 5.2.6. Best regards, Cezary On Thu, Dec 8, 2011 at 6:57 PM, Howard Lewis Ship hls...@gmail.com wrote: Most of the support needed for Less and CoffeeScript is already present; the trick is finding a reliable Java-compatible library that can execute the necessary code transformations (which are generally written in Ruby or JavaScript). http://code.google.com/p/wro4j/wiki/Features looks promising, but is geared more for build-time conversions, rather than runtime. I just haven't had spare cycles to spare on this. On Thu, Dec 8, 2011 at 8:13 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 08 Dec 2011 12:31:35 -0200, Andreas Fink fink.a...@googlemail.com wrote: Sorry for my hasty and not well formulated rant. I was just thinking about the announcment of the Rails-team to switch to Coffeescript and what an impact that has on developers and existing apps. There is always that compromise between flexibility and high-level tools but as the server side of Tapestry focusses so much on flexibilty/modularity i think it would make sense to follow that route also for the browser side. In this case, it would be just an out-of-the-box support for a given package that wouldn't prevent support for other similar packages. In addition, it's quite probable that it would make it easier to add support for other similar packages. ;) -- 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: smarter css
Awesome. Thank you!! On Dec 8, 2011, at 21:47 , Cezary Biernacki wrote: You can use both Less and CoffeeScript with Tapestry even today with my t5conduit https://github.com/cezary-biernacki/t5conduitlibrary. It works directly with Tapestry 5.3.0, and with help of t52transformershttps://github.com/cezary-biernacki/t52transformers also with 5.2.6. Best regards, Cezary On Thu, Dec 8, 2011 at 6:57 PM, Howard Lewis Ship hls...@gmail.com wrote: Most of the support needed for Less and CoffeeScript is already present; the trick is finding a reliable Java-compatible library that can execute the necessary code transformations (which are generally written in Ruby or JavaScript). http://code.google.com/p/wro4j/wiki/Features looks promising, but is geared more for build-time conversions, rather than runtime. I just haven't had spare cycles to spare on this. On Thu, Dec 8, 2011 at 8:13 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 08 Dec 2011 12:31:35 -0200, Andreas Fink fink.a...@googlemail.com wrote: Sorry for my hasty and not well formulated rant. I was just thinking about the announcment of the Rails-team to switch to Coffeescript and what an impact that has on developers and existing apps. There is always that compromise between flexibility and high-level tools but as the server side of Tapestry focusses so much on flexibilty/modularity i think it would make sense to follow that route also for the browser side. In this case, it would be just an out-of-the-box support for a given package that wouldn't prevent support for other similar packages. In addition, it's quite probable that it would make it easier to add support for other similar packages. ;) -- 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: smarter css
Cool! :) Why Just add uk.org.cezary.t52transformers.T52TransformersModule as a submodule to your AppModule (or equivalent) using @SubModule annotation. Haven't you tried to make your JAR so it adds the T52TransformersModule into the registry automatically (i.e. without using @SubModule)? http://tapestry.apache.org/autoloading-modules.html shows you how. ;) On Thu, 08 Dec 2011 18:47:16 -0200, Cezary Biernacki cezary...@gmail.com wrote: You can use both Less and CoffeeScript with Tapestry even today with my t5conduit https://github.com/cezary-biernacki/t5conduitlibrary. It works directly with Tapestry 5.3.0, and with help of t52transformershttps://github.com/cezary-biernacki/t52transformers also with 5.2.6. Best regards, Cezary On Thu, Dec 8, 2011 at 6:57 PM, Howard Lewis Ship hls...@gmail.com wrote: Most of the support needed for Less and CoffeeScript is already present; the trick is finding a reliable Java-compatible library that can execute the necessary code transformations (which are generally written in Ruby or JavaScript). http://code.google.com/p/wro4j/wiki/Features looks promising, but is geared more for build-time conversions, rather than runtime. I just haven't had spare cycles to spare on this. On Thu, Dec 8, 2011 at 8:13 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 08 Dec 2011 12:31:35 -0200, Andreas Fink fink.a...@googlemail.com wrote: Sorry for my hasty and not well formulated rant. I was just thinking about the announcment of the Rails-team to switch to Coffeescript and what an impact that has on developers and existing apps. There is always that compromise between flexibility and high-level tools but as the server side of Tapestry focusses so much on flexibilty/modularity i think it would make sense to follow that route also for the browser side. In this case, it would be just an out-of-the-box support for a given package that wouldn't prevent support for other similar packages. In addition, it's quite probable that it would make it easier to add support for other similar packages. ;) -- 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 -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate 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: smarter css
Actually it is geared for runtime solution as well. There is no difference in using less or coffeeScript (or sass, or any other available processors) for a runtime or build time solution. Cheers, Alex -- View this message in context: http://tapestry.1045711.n5.nabble.com/smarter-css-tp5051068p5060273.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: smarter css
Didn't describe things quite right; wro4j works as a filter at runtime, but still assumes a static description of what needs combining/transforming/compiling/etc. In a Tapestry application, that all needs to be figured out dynamically, on the fly, based on the what's in the framework, application, and 3rd party libraries. On Thu, Dec 8, 2011 at 2:33 PM, Alex Objelean alex.objel...@gmail.com wrote: Actually it is geared for runtime solution as well. There is no difference in using less or coffeeScript (or sass, or any other available processors) for a runtime or build time solution. Cheers, Alex -- View this message in context: http://tapestry.1045711.n5.nabble.com/smarter-css-tp5051068p5060273.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 -- 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
T5.3: form/submit stop working
Hi, just upgraded an app to T5.3, after a few hours of running it, every form/submit in all the pages triggers following error, looks like due to a file uploading problem, I use tapestry-upload, any hints on the problem? Thanks, [ERROR] RequestExceptionHandler Unexpected runtime exception: Unable to decode multipart encoded request. java.lang.RuntimeException: Unable to decode multipart encoded request. at org.apache.tapestry5.upload.internal.services.UploadExceptionFilter.handle(UploadExceptionFilter.java:71) at $ComponentEventRequestHandler_3aad16de80726.handle(Unknown Source) at org.apache.tapestry5.services.TapestryModule$40.handle(TapestryModule.java:2454) at $ComponentEventRequestHandler_3aad16de80726.handle(Unknown Source) at $ComponentEventRequestHandler_3aad16de804ba.handle(Unknown Source) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43) at org.apache.tapestry5.services.InitializeActivePageName.handleComponentEvent(InitializeActivePageName.java:39) at $ComponentRequestHandler_3aad16de804bc.handleComponentEvent(Unknown Source) at $ComponentRequestHandler_3aad16de8045f.handleComponentEvent(Unknown Source) at org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:46) at $Dispatcher_3aad16de80465.dispatch(Unknown Source) at $Dispatcher_3aad16de8045c.dispatch(Unknown Source) at org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302) at org.com.venust5.services.AppModule$2.service(AppModule.java:374) at $RequestFilter_3aad16de8045b.service(Unknown Source) at $RequestHandler_3aad16de8045d.service(Unknown Source) at org.com.venust5.services.AppModule$1.service(AppModule.java:333) at $RequestFilter_3aad16de8045a.service(Unknown Source) at $RequestHandler_3aad16de8045d.service(Unknown Source) at org.com.venust5.services.AppModule$8.service(AppModule.java:602) at $RequestHandler_3aad16de8045d.service(Unknown Source) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) at $RequestHandler_3aad16de8045d.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902) at $RequestHandler_3aad16de8045d.service(Unknown Source) at org.com.venust5.others.urlLinkTransformers.BasicPathRequestFilter.service(SimplePathRequestFilter.java:35) at $RequestHandler_3aad16de8045d.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892) at $RequestHandler_3aad16de8045d.service(Unknown Source) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90) at $RequestHandler_3aad16de8045d.service(Unknown Source) at $RequestHandler_3aad16de80450.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253) at org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53) at $HttpServletRequestHandler_3aad16de80452.service(Unknown Source) at org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44) at $HttpServletRequestHandler_3aad16de80452.service(Unknown Source) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) at $HttpServletRequestFilter_3aad16de8044f.service(Unknown Source) at $HttpServletRequestHandler_3aad16de80452.service(Unknown Source) at org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852) at $HttpServletRequestHandler_3aad16de80452.service(Unknown Source) at $HttpServletRequestHandler_3aad16de8044c.service(Unknown Source) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.com.venusFilter.doFilter(Filter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at
Re: FileSystem asset source
On Thu, 08 Dec 2011 18:10:26 +0100, Dimitris Zenios dimitris.zen...@gmail.com wrote: Any example of an asset source that loads assets from filesystem? There is an old Jira issue for this, perhaps you could look at the patch provided and see if that helps? https://issues.apache.org/jira/browse/TAP5-423 The issue is closed as a duplicate of TAP5-1515 though, not sure if that really makes sense - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: pagecatalog still visible in production mode
If I'm not mistaken there is no way to remove a contribution. So if a proxy or load balancer were to mess up Request.getRemoteAddr(), you would have to decorate ClientWhitelist to remove the localhost whitelisting, right? On Thu, 08 Dec 2011 16:29:43 +0100, Howard Lewis Ship hls...@gmail.com wrote: Try accessing PageCatalog from beyond your localhost ... localhost is white listed, other IP addresses are not on the white list unless you make a specific contribution. See: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/WhitelistAccessOnly.html http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/security/ClientWhitelist.html On Thu, Dec 8, 2011 at 1:24 AM, angelochen angelochen...@yahoo.com.hk wrote: hi, setting production mode to true in 5.3, servicestatus not show details, but pagecatalog still shows everything. what's the easy way to turn this off? Thanks, angelo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [ANN] AjaxUpload : An ajax based upload component
On Dec 8, 2011, at 9:46 PM, Dmitriy Vsekhvalnov wrote: yep. Here is quite long stack trace: [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:23: cannot find symbol [ant:javac] symbol : class Import [ant:javac] location: package org.apache.tapestry5.annotations [ant:javac] import org.apache.tapestry5.annotations.Import; [ant:javac]^ [ant:javac] You can use @IncludeJavaScriptLibrary /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:26: cannot find symbol [ant:javac] symbol : class RequestParameter [ant:javac] location: package org.apache.tapestry5.annotations [ant:javac] import org.apache.tapestry5.annotations.RequestParameter; [ant:javac]^ [ant:javac] You can use @Inject private Request request; request.getParameter(...); /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:41: package org.apache.tapestry5.services.javascript does not exist [ant:javac] import org.apache.tapestry5.services.javascript.JavaScriptSupport; [ant:javac]^ [ant:javac] replace by RenderSupport /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:55: cannot find symbol [ant:javac] symbol: class Import [ant:javac] @Import(library = ajaxupload.js, stylesheet = ajaxupload.css) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:64: cannot find symbol [ant:javac] symbol : class JavaScriptSupport [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac]private JavaScriptSupport javaScriptSupport; [ant:javac]^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:135: cannot find symbol [ant:javac] symbol : class JavaScriptSupport [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac] FieldValidationSupport fieldValidationSupport, JavaScriptSupport javaScriptSupport) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/services/AjaxUploadModule.java:12: cannot find symbol [ant:javac] symbol : class Contribute [ant:javac] location: package org.apache.tapestry5.ioc.annotations [ant:javac] import org.apache.tapestry5.ioc.annotations.Contribute; [ant:javac]^ [ant:javac] Use contributeServiceName() instead /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:382: cannot find symbol [ant:javac] symbol : class RequestParameter [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac]void onRemoveUpload(@RequestParameter(serverIndex) int serverIndex) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/services/AjaxUploadModule.java:36: cannot find symbol [ant:javac] symbol : class Contribute [ant:javac] location: class com.googlecode.tawus.ajaxupload.services.AjaxUploadModule [ant:javac]@Contribute(ComponentClassResolver.class) [ant:javac] ^ [ant:javac] 9 errors FAILURE: Build failed with an exception. On Thu, Dec 8, 2011 at 6:59 PM, Taha Hafeez Siddiqi tawus.tapes...@gmail.com wrote: Hi Dmitriy That depends on the error :) Can you share it ? regards Taha On Dec 8, 2011, at 9:26 PM, Dmitriy Vsekhvalnov wrote: Is there is a way it can work on T5.1.0.8 ? i'm getting errors during gradle build and i'm wondering is it possible to adopt to 5.1.0.8 or i should stop it now :) Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org regards Taha - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: pagecatalog still visible in production mode
I'd prefer this to have the same behavior as servicestatus, I discovered this when I rolled out a production version: example.com:8080/pagecatalog this works example.com/pagecatalog this shows everything because in the server, apache server is used to proxy to tomcat, and t5 sees it as localhost, that's whitelisted. Howard Lewis Ship wrote Try accessing PageCatalog from beyond your localhost ... localhost is white listed, other IP addresses are not on the white list unless you make a specific contribution. See: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/WhitelistAccessOnly.html http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/security/ClientWhitelist.html On Thu, Dec 8, 2011 at 1:24 AM, angelochen lt;angelochen960@.comgt; wrote: hi, setting production mode to true in 5.3, servicestatus not show details, but pagecatalog still shows everything. what's the easy way to turn this off? Thanks, angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/pagecatalog-still-visible-in-production-mode-tp5058173p5058173.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- 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-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://tapestry.1045711.n5.nabble.com/pagecatalog-still-visible-in-production-mode-tp5058173p5060616.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: pagecatalog still visible in production mode
You could configure your servlet container so that it doesn't return the proxy IP as request.remoteAddr, but instead uses the X-Forwarded-For header and returns the real client IP. For Jetty, this is just a matter of setting forwarded=true on the connector http://wiki.eclipse.org/Jetty/Howto/Configure_mod_proxy#Configuring_mod_proxy_as_a_Reverse_Proxy.5D: On Fri, 09 Dec 2011 03:59:13 +0100, angelochen angelochen...@yahoo.com.hk wrote: I'd prefer this to have the same behavior as servicestatus, I discovered this when I rolled out a production version: example.com:8080/pagecatalog this works example.com/pagecatalog this shows everything because in the server, apache server is used to proxy to tomcat, and t5 sees it as localhost, that's whitelisted. Howard Lewis Ship wrote Try accessing PageCatalog from beyond your localhost ... localhost is white listed, other IP addresses are not on the white list unless you make a specific contribution. See: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/WhitelistAccessOnly.html http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/security/ClientWhitelist.html On Thu, Dec 8, 2011 at 1:24 AM, angelochen lt;angelochen960@.comgt; wrote: hi, setting production mode to true in 5.3, servicestatus not show details, but pagecatalog still shows everything. what's the easy way to turn this off? Thanks, angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/pagecatalog-still-visible-in-production-mode-tp5058173p5058173.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- 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-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://tapestry.1045711.n5.nabble.com/pagecatalog-still-visible-in-production-mode-tp5058173p5060616.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
miss key
When I move the project from windows to linux,there are some strange problem happened. One of them is not find the App.properties's key. If I should do some config when I from windows to linux. -- View this message in context: http://tapestry.1045711.n5.nabble.com/miss-key-tp5060635p5060635.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: miss key
On Fri, 09 Dec 2011 04:15:04 +0100, dick_hu dickan...@gmail.com wrote: When I move the project from windows to linux,there are some strange problem happened. One of them is not find the App.properties's key. If I should do some config when I from windows to linux. Rename the file to app.properties (lower case) Windows filenames are case insensitive so it doesn't matter there, but that's not the case on Linux. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
tapestry-security shiro
I am trying to configure my tapestry project with tapestry-security, but couldn't connect them. Right now I just want try it out with simple login page. Roles user name and password will come from the database. Is there any simple tutorial just for this? This is what I have done so far: *SignIn.tml* html t:type=layout title=Login xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; xmlns:p=tapestry:parameter t:security.loginform / /html SignIn.java public class Signin { @Inject private SecurityService securityService; @Inject private ApplicationStateManager applicationStateManager; void onActivate() { if (securityService.getSubject().isAuthenticated() ) { //CurrentUser currentUser = applicationStateManager.get(CurrentUser.class); //currentUser.merge(securityService.getSubject().getPrincipal()); } } } AppModule.java public static void contributeWebSecurityManager(ConfigurationRealm configuration) { ExtendedPropertiesRealm realm = new ExtendedPropertiesRealm(classpath:shiro-users.properties); configuration.add(realm); } public static void contributeFactoryDefaults(MappedConfigurationString, String configuration) { configuration.override(SecuritySymbols.LOGIN_URL, /signin); } public static void contributeWebSecurityManager(ConfigurationRealm configuration, @Inject AuthorizingRealm realm) { configuration.add(realm); } public static void contributeSecurityRequestFilter( OrderedConfigurationFilterChainDefinition configuration) { configuration.add(index-anon, new FilterChainDefinition(/index, anon)); configuration.add(signup-anon, new FilterChainDefinition(/signup, anon)); configuration.add(signin-anon, new FilterChainDefinition(/signin, anon)); } * shiro-users.properties* //I really don't know what to write here user.localuser = local, admin role.admin = user:view -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-security-shiro-tp5060704p5060704.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: [ANN] AjaxUpload : An ajax based upload component
ok. cool, i got it compiled. let me see whether it's working on 5.1.0.8. On Thu, Dec 8, 2011 at 8:39 PM, Taha Hafeez Siddiqi tawus.tapes...@gmail.com wrote: On Dec 8, 2011, at 9:46 PM, Dmitriy Vsekhvalnov wrote: yep. Here is quite long stack trace: [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:23: cannot find symbol [ant:javac] symbol : class Import [ant:javac] location: package org.apache.tapestry5.annotations [ant:javac] import org.apache.tapestry5.annotations.Import; [ant:javac]^ [ant:javac] You can use @IncludeJavaScriptLibrary /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:26: cannot find symbol [ant:javac] symbol : class RequestParameter [ant:javac] location: package org.apache.tapestry5.annotations [ant:javac] import org.apache.tapestry5.annotations.RequestParameter; [ant:javac]^ [ant:javac] You can use @Inject private Request request; request.getParameter(...); /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:41: package org.apache.tapestry5.services.javascript does not exist [ant:javac] import org.apache.tapestry5.services.javascript.JavaScriptSupport; [ant:javac]^ [ant:javac] replace by RenderSupport /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:55: cannot find symbol [ant:javac] symbol: class Import [ant:javac] @Import(library = ajaxupload.js, stylesheet = ajaxupload.css) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:64: cannot find symbol [ant:javac] symbol : class JavaScriptSupport [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac]private JavaScriptSupport javaScriptSupport; [ant:javac]^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:135: cannot find symbol [ant:javac] symbol : class JavaScriptSupport [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac] FieldValidationSupport fieldValidationSupport, JavaScriptSupport javaScriptSupport) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/services/AjaxUploadModule.java:12: cannot find symbol [ant:javac] symbol : class Contribute [ant:javac] location: package org.apache.tapestry5.ioc.annotations [ant:javac] import org.apache.tapestry5.ioc.annotations.Contribute; [ant:javac]^ [ant:javac] Use contributeServiceName() instead /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/components/AjaxUpload.java:382: cannot find symbol [ant:javac] symbol : class RequestParameter [ant:javac] location: class com.googlecode.tawus.ajaxupload.components.AjaxUpload [ant:javac]void onRemoveUpload(@RequestParameter(serverIndex) int serverIndex) [ant:javac] ^ [ant:javac] /Users/dvsekhvalnov/Downloads/tawus-tawus-974196a/tawus-ajaxupload/src/main/java/com/googlecode/tawus/ajaxupload/services/AjaxUploadModule.java:36: cannot find symbol [ant:javac] symbol : class Contribute [ant:javac] location: class com.googlecode.tawus.ajaxupload.services.AjaxUploadModule [ant:javac]@Contribute(ComponentClassResolver.class) [ant:javac] ^ [ant:javac] 9 errors FAILURE: Build failed with an exception. On Thu, Dec 8, 2011 at 6:59 PM, Taha Hafeez Siddiqi tawus.tapes...@gmail.com wrote: Hi Dmitriy That depends on the error :) Can you share it ? regards Taha On Dec 8, 2011, at 9:26 PM, Dmitriy Vsekhvalnov wrote: Is there is a way it can work on T5.1.0.8 ? i'm getting errors during gradle build and i'm wondering is it possible to adopt to 5.1.0.8 or i should stop it now :) Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org regards Taha - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For
Re: tapestry-security shiro
On Thu, Dec 8, 2011 at 8:05 PM, csckid testnowsh...@gmail.com wrote: I am trying to configure my tapestry project with tapestry-security, but couldn't connect them. Right now I just want try it out with simple login page. Roles user name and password will come from the database. Is there any simple tutorial just for this? shiro-users.properties is for a properties realm (i.e. that's your simple user database). You want a custom realm for your database model, something like: http://svn.codehaus.org/tynamo/trunk/tynamo-federatedaccounts/tynamo-federatedaccounts-core/src/test/java/org/tynamo/security/federatedaccounts/testapp/services/UserRealm.java (you can safely ignore all the federated stuff in your use case). There are several links to this example from the main documentation page at http://tynamo.org/tapestry-security+guide. Kalle This is what I have done so far: *SignIn.tml* html t:type=layout title=Login xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; xmlns:p=tapestry:parameter t:security.loginform / /html SignIn.java public class Signin { @Inject private SecurityService securityService; @Inject private ApplicationStateManager applicationStateManager; void onActivate() { if (securityService.getSubject().isAuthenticated() ) { //CurrentUser currentUser = applicationStateManager.get(CurrentUser.class); //currentUser.merge(securityService.getSubject().getPrincipal()); } } } AppModule.java public static void contributeWebSecurityManager(ConfigurationRealm configuration) { ExtendedPropertiesRealm realm = new ExtendedPropertiesRealm(classpath:shiro-users.properties); configuration.add(realm); } public static void contributeFactoryDefaults(MappedConfigurationString, String configuration) { configuration.override(SecuritySymbols.LOGIN_URL, /signin); } public static void contributeWebSecurityManager(ConfigurationRealm configuration, @Inject AuthorizingRealm realm) { configuration.add(realm); } public static void contributeSecurityRequestFilter( OrderedConfigurationFilterChainDefinition configuration) { configuration.add(index-anon, new FilterChainDefinition(/index, anon)); configuration.add(signup-anon, new FilterChainDefinition(/signup, anon)); configuration.add(signin-anon, new FilterChainDefinition(/signin, anon)); } * shiro-users.properties* //I really don't know what to write here user.localuser = local, admin role.admin = user:view -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-security-shiro-tp5060704p5060704.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
Accessing the problem on T5.1 regarding Locale switching
hi all, i facing a very difficult situation where my application needs to switch between locale of english and chinese. my page has a tile like border component and a body. I implemented an actionlink on the border component which can switch language. i successfully switch the language from english to chinese, but the real problem is when i navigate to other pages, it swithed back to english. i override configuration under AppModule the method contributeApplicationDefaults and provide this:- configuration.add(SymbolConstants.SUPPORTED_LOCALES, en,zh); i code every properties file in UTF-8 file format(app.properties,app_zh.properties), still it behave the same. is this Tapestry 5.1's known bugs? i tried to upgrade to T5.2 with spring 2.5 but it didn't even start correctly on my app server tomcat 6 eventhough i follow the documentation guide step by step. please please advice, i'm running out of time and idea, please help me wesley -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5060950.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: Accessing the problem on T5.1 regarding Locale switching
if you put the locale in url: http://sample.com/zh then all the links in the page has 'zh' as part of the url? example: http://sample.com/zh/page2 -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5060961.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