T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread angelochen
Hi, Have been using Robert's AssetProtectionDispatcher to protect assets in the versions prior to 5.3, do we still need that for 5.3? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-do-we-still-need-AssetProtectionDispatcher-tp5055048p5055048.html Sen

How to return raw page render result on event link

2011-12-07 Thread Guillaume Bodet
Hi, I'm using a nice js component called DHTMLX Grid in my T5 application. DhtmlxGrid fetched its data in an ajax request. Data is formatted as XML : … … It is very convenient to use a tapestry page to dynamically create this f

Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-07 Thread Hugi Thordarson
Thanks for the listing Robert, looking forward to being able to use it :). One quick question: Does tapestry5-cayenne provide me with a way to use Cayenne Objects in bindings to my components? I implemented a simple ValueEncoder and thought that would be enough, but it doesn't seem to work very

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Thiago H. de Paula Figueiredo
On Wed, 07 Dec 2011 02:10:58 -0200, Robert Coie wrote: So do I. The file is UTF-8, and when the application is run under the local appengine simulator, the Charset.defaultCharset() check mentioned above indicates UTF-8. I just think it would be preferable if Tapestry could eliminate all behavi

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread Robert Zeigler
I don't think so. Tapestry's default mechanisms are better now. I think my Dispatcher is still a bit more stringent and a bit more configurable/flexible, but you shouldn't need it. That said, I will still go ahead and migrate the service to 5.3 for those who wish to continue using it. Robert

Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Muhammad Gelbana
Facing the same issue !! I didn't expect that to happen and it will take sometime to revert back to 5.2.6 :( I cleared my browser's cache and made sure I'm using tapestry's latest css\js...still having the same problem with a form that has nothing to do ajax ! On Wed, Dec 7, 2011 at 8:36 AM, Gunn

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread angelochen
Hi Robert, Thanks for the confirmation, it has been so useful in securing my apps, would like to try that again when 5.3 is available. Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-do-we-still-need-AssetProtectionDispatcher-tp5055048p5055819.html Sent from

Skinning Theming Axes + Asset

2011-12-07 Thread Dimitris Zenios
Is there a way to have a different asset loaded when we are browsing from a mobile client for example? Like the axes does to the templates and locales. Dimitris Zenios

Re: Skinning Theming Axes + Asset

2011-12-07 Thread François Facon
Hi Dimitris, The easiest way would be to define different layout with specific assets and to change the layout according to the terminal. see template skinning feature avalaible with 5.3. http://blog.tapestry5.de/index.php/2011/06/24/template-skinning/ François 2011/12/7 Dimitris Zenios : > Is

Re: Skinning Theming Axes + Asset

2011-12-07 Thread Dimitris Zenios
The problem is that i just want to change a logo and the css.I don't want to change the layout or anything else. What you are suggesting will do the job but its an overkilling solution for what i want to do. In the end i want to have the same tml but with different asses and css on some situation

Re: Skinning Theming Axes + Asset

2011-12-07 Thread François Facon
peut être ceci. http://www.stefanie-duprey.fr/blog-logiciels-libres/6-general/34-selectionner-une-css-a-chaud-ou-comment-utiliser-des-assets-dynamiquement-avec-tapestry5 2011/12/7 Dimitris Zenios : > The problem is that i just want to change a logo and the css.I don't want > to change the layou

Re: Skinning Theming Axes + Asset

2011-12-07 Thread Thiago H. de Paula Figueiredo
On Wed, 07 Dec 2011 14:01:46 -0200, Dimitris Zenios wrote: Is there a way to have a different asset loaded when we are browsing from a mobile client for example? Have you tried CSS media queries? Or having a test in your Layout component and return different assets? -- Thiago H. de Pau

Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-07 Thread Seamus Minogue
Cool thanks for the detailed Explanation. 

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Kalle Korhonen
2011/12/6 Robert Coie : > On Tue, Dec 06, 2011 at 04:49:42PM -0800, Kalle Korhonen wrote: >> What's your JVM's file.encoding set to? (e.g. -Dfile.encoding=UTF-8). >> The default for most JVMs is *not* UTF-8. Tapestry assumes UTF-8 >> throughout. > I believe it's US-ASCII, as checked by Charset.defa

Re: Skinning Theming Axes + Asset

2011-12-07 Thread Dimitris Zenios
Having a test in my layout is a good idea.But imagine a case that i have to change more than one asset in different pages.Or you want to have themes in your application that dont change the layout but change the css,color and the assets. What would be perfect is something like axis for assets.For

Re: Skinning Theming Axes + Asset

2011-12-07 Thread Dimitris Zenios
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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For add

Tapestry 5.2.6 combine javascript

2011-12-07 Thread Seamus Minogue
Having a problem with a Tapestry 5.2.6 project. We are using JavaScriptStack: public JQueryBTStack(SymbolSource symbolSource, AssetSource assetSource) { this.js = new Asset[] { assetSource.getContextAsset("/js/excanvas.compiled.js", null), assetSource.getContextAsset("/js/jquery.bgiframe.min.js",

Re: smarter css

2011-12-07 Thread Howard Lewis Ship
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 Collins wrote: > Makes sense.  Working in Java for to

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread Lenny Primak
You can still get a directory listing of assets, but you can't access them directly. I have a fix in the flowlogix library for this, but perhaps I should file a JIRA... On Dec 7, 2011, at 8:08 AM, Robert Zeigler wrote: > I don't think so. Tapestry's default mechanisms are better now. I think

Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Gunnar Eketrapp
I just created an issue for this https://issues.apache.org/jira/browse/TAP5-1777 I would love to see a fix for this otherwise I must go into production with my own brewed 5.3.1 or revert to 5.2.6. Thanks in advance, Gunnar Eketrapp 2011/12/7 Muhammad Gelbana > Facing the same issue !! I didn't

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread David Rees
On Wed, Dec 7, 2011 at 10:53 AM, Lenny Primak wrote: > You can still get a directory listing of assets, but you can't access them > directly. > I have a fix in the flowlogix library for this, but perhaps I should file a > JIRA... Yeah, you should. That's an information disclosure security bug.

AjaxFormLoop not populating values for the newly created form elements after submission

2011-12-07 Thread shaan
Can someone please point out when/where in the code during the form submission, ajaxformloop copies the newly added row results I'm referring to the following example code - http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 I've a similar code, following is my ValueEncoder

Re: Tapestry 5.2.6 combine javascript

2011-12-07 Thread Seamus Minogue
I should also mention that no core.js file is being created either. Scriptaculous and Prototype are both seperate js files. I took a look at this: http://tapestry.1045711.n5.nabble.com/Combine-scripts-doesn-t-work-in-5-2-4-td3343378.html and from there went and looked into the hotel-booking appl

Artifacts in T5.3 tree component

2011-12-07 Thread Chris Collins
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 e

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Martin Strand
On Wed, 07 Dec 2011 19:08:19 +0100, Kalle Korhonen wrote: 2011/12/6 Robert Coie : On Tue, Dec 06, 2011 at 04:49:42PM -0800, Kalle Korhonen wrote: What's your JVM's file.encoding set to? (e.g. -Dfile.encoding=UTF-8). The default for most JVMs is *not* UTF-8. Tapestry assumes UTF-8 throughout.

Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Muhammad Gelbana
But how come this issue isn't causing enough noise !!! We must have something common in our code that is very unique !!! I can't figure out what could be unique in my login page !!..2 fields form...1 submit button...1 event handling method ! On Wed, Dec 7, 2011 at 9:24 PM, Gunnar Eketrapp wrote:

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Robert Coie
On Wed, Dec 07, 2011 at 09:29:35AM -0200, Thiago H. de Paula Figueiredo wrote: > Agreed! Could you post a JIRA please? I hope I did it right. -- Robert Coie Implementor, Apropos K.K. -

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread Lenny Primak
Jira created: https://issues.apache.org/jira/browse/TAP5-1779 On Dec 7, 2011, at 2:25 PM, David Rees wrote: > On Wed, Dec 7, 2011 at 10:53 AM, Lenny Primak wrote: >> You can still get a directory listing of assets, but you can't access them >> directly. >> I have a fix in the flowlogix library

Re: [5.3] JPA Maven Dependency not found

2011-12-07 Thread jeczmien
5.3 is out, but dependency persist... -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-3-JPA-Maven-Dependency-not-found-tp4974063p5057050.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Thiago H. de Paula Figueiredo
On Wed, 07 Dec 2011 19:32:40 -0200, Robert Coie wrote: On Wed, Dec 07, 2011 at 09:29:35AM -0200, Thiago H. de Paula Figueiredo wrote: Agreed! Could you post a JIRA please? I hope I did it right. You did! Thanks! -- Thiago H. de Paula Fi

Re: [5.3] JPA Maven Dependency not found

2011-12-07 Thread Lenny Primak
Use this: org.apache.tapestry tapestry-jpa ${tap.version} jar compile javax.persistence org.eclipse.persistence More exa

Re: [5.3] JPA Maven Dependency not found

2011-12-07 Thread Igor Drobiazko
You can also add the following repository to get the dependencies: http://download.eclipse.org/rt/eclipselink/maven.repo/ This is how we fixed the issue in trunk and 5.3 branch. On Wed, Dec 7, 2011 at 10:36 PM, Lenny Primak wrote: > Use this: > >org.apache.tapestry >

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Kalle Korhonen
On Wed, Dec 7, 2011 at 1:09 PM, Martin Strand wrote: > On Wed, 07 Dec 2011 19:08:19 +0100, Kalle Korhonen > wrote: >> 2011/12/6 Robert Coie : >>> On Tue, Dec 06, 2011 at 04:49:42PM -0800, Kalle Korhonen wrote: What's your JVM's file.encoding set to? (e.g. -Dfile.encoding=UTF-8). The def

Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Gunnar Eketrapp
I have no idea! For sure there must be something special with your case, my case and Seamus case. Or perhaps we are the only one using form's :-) My browser is Chrome ... I have coded around the problem for now by using my own 5.3.1 as reported above. 2011/12/7 Muhammad Gelbana > But how com

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Robert Coie
On Wed, Dec 07, 2011 at 01:47:04PM -0800, Kalle Korhonen wrote: > There are plenty of other read operations and they should all > then explicitly specify UTF-8, otherwise you get mixed results. I got the impression from reading that this was i

Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Seamus Minogue
I too am using chrome... My form is simple, 5 radio buttons and a submit button. - 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

2011-12-07 Thread Josh Canfield
A copy of the request would be helpful. It seems like in the first report the "t:submit" parameter was coming back as a quoted string, but later reports seem to have it fixed by checking if it's empty. On Wed, Dec 7, 2011 at 1:58 PM, Gunnar Eketrapp wrote: > I have no idea! For sure there must be

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread Martin Strand
What if there is no trailing slash, won't that give you a directory listing anyway? On Wed, 07 Dec 2011 22:29:45 +0100, Lenny Primak wrote: Jira created: https://issues.apache.org/jira/browse/TAP5-1779 On Dec 7, 2011, at 2:25 PM, David Rees wrote: On Wed, Dec 7, 2011 at 10:53 AM, Lenny Pr

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread Lenny Primak
Nope. It will not. On Dec 7, 2011, at 5:37 PM, "Martin Strand" wrote: > What if there is no trailing slash, won't that give you a directory listing > anyway? > > > On Wed, 07 Dec 2011 22:29:45 +0100, Lenny Primak > wrote: > >> Jira created: https://issues.apache.org/jira/browse/TAP5-17

Re: smarter css

2011-12-07 Thread Greg Pagendam-Turner
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, 20

Re: smarter css

2011-12-07 Thread Howard Lewis Ship
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 wrote: > Hey Howard what about less? > > > On 08/12/11 04:49, Howard Lewis Ship wrote: >> >> One t

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread angelochen
Hi, tried that and duplicated the issue, this is the same issue as in 5.2.6, that's the reason I use Robert's AssetProtectionDispatcher, looks like 5.3 and 5.2.6 handle this same way, have tried your code and it works. hope Robert will have his AssetProtectionDispatcher ready for 5.3 as well. Tha

Re: smarter css

2011-12-07 Thread Andreas Fink
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 SCS

Re: smarter css

2011-12-07 Thread Lenny Primak
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 par

Re: smarter css

2011-12-07 Thread Chris Collins
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 c