Re: [ANNOUNCEMENT] Project Arras

2014-11-13 Thread Felix Scheffer
Hi Nathan, there is an online demo for arras-components: https://arras-components.herokuapp.com/ I am still trying to get the demo for arras-cms up and running, but you can also download the war file from https://oss.sonatype.org/content/groups/public/com/github/fscheffer/arras-cms-demo/1.1.1/a

Re: [5.4] javascript - simplify the new paradigm please

2014-11-13 Thread Geoff Callender
I don't think so. I believe the rule of thumb is to use JavaScriptSupport during render, and use an AJAX callback during partial page render. IIRC, the JavaScriptSupport environmental is not available when you're handling an AJAX component event request. On 13 Nov 2014, at 6:08 pm, Chris Poul

Re: [5.4] javascript - simplify the new paradigm please

2014-11-13 Thread Geoff Callender
I accidentally left out the object's state vars. Added below. On 14 Nov 2014, at 10:00 am, Geoff Callender wrote: > Yep, that's a valid case, and it's one I have to put into JumpStart. > > Here's the way I handle it. I'd like to see what others do. > > Have the module keep an array of objects

Re: [ANNOUNCEMENT] Project Arras

2014-11-13 Thread Chris Mylonas
This is great!! I just cloned the github repo, went into the arras-cms-demo directory and changed pom.xml values from 1.1.2-SNAPSHOT to 1.1.0 mvn jetty:run in place editing is sweet On Fri, 14 Nov 2014 00:48:18 +1100, Nathan Quirynen wrote: Looks nice (looking at the code)! Are ther

Re: [5.4] javascript - simplify the new paradigm please

2014-11-13 Thread Geoff Callender
A better example would be where the client-side objects have considerable state, eg. a Graph object or, more complex still, a Graph editor. Of course, client-side objects may be avoided having your javascript save/retrieve all state to/from hidden fields in the relevant part of the DOM, but th

Re: [5.4] javascript - simplify the new paradigm please

2014-11-13 Thread Geoff Callender
Yep, that's a valid case, and it's one I have to put into JumpStart. Here's the way I handle it. I'd like to see what others do. Have the module keep an array of objects, identified by a key. The server-side can provide the key when initialising and later whenever invoking a function. The compo

Re: Tapestry-Hibernate unable to convert to client value

2014-11-13 Thread George Christman
Nah it was on my local machine. Strangly the page loads without issue too. On Thursday, November 13, 2014, Lance Java wrote: > Is 115185 an id that used to exist in the database? Perhaps it's a bot > that's hitting an old id that was deleted? > > Or maybe a bot trying to just hit a random id? >

Re: [5.4] javascript - simplify the new paradigm please

2014-11-13 Thread Paul Stanton
Oh, so calling require("modal").invoke("activate") and then later require("modal").invoke("deactivate") .. both re-construct a seperate "modal" js object and then call one of the two published functions... what if you have two different modals? what if they are init-ed differently: java:aft

Re: [5.4] JavascriptStack with module and css.

2014-11-13 Thread Paul Stanton
great, and it works. thanks. is this documented? On 13/11/2014 10:31 PM, Thiago H de Paula Figueiredo wrote: On Thu, 13 Nov 2014 04:05:11 -0200, Paul Stanton wrote: oh ok, so hard code the meta-inf/assets part -- but this won't use the checksum cache key - which i suppose is ok since it isn

Re: Minify JS / CSS in production

2014-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Nov 2014 17:28:10 -0200, Kalle Korhonen wrote: It's tapestry-webresources ( http://repo1.maven.org/maven2/org/apache/tapestry/tapestry-webresources/). Ouch, I copied that from http://tapestry.apache.org/assets.html. Gotta fix that. Good catch, Kalle! -- Thiago H. de Paula Fig

Re: Tapestry-Hibernate unable to convert to client value

2014-11-13 Thread Lance Java
Is 115185 an id that used to exist in the database? Perhaps it's a bot that's hitting an old id that was deleted? Or maybe a bot trying to just hit a random id? On 13 Nov 2014 20:44, "George Christman" wrote: > Hi guys, I'm seeing this error in my logs, but everything appears to be > working fi

Tapestry-Hibernate unable to convert to client value

2014-11-13 Thread George Christman
Hi guys, I'm seeing this error in my logs, but everything appears to be working fine. Does anybody know what the cause might be? (HibernateEntityValueEncoder.java:99) - Unable to convert client value '115185' into an entity instance. I seen something here where they talk about the result being nu

Re: Minify JS / CSS in production

2014-11-13 Thread Kalle Korhonen
It's tapestry-webresources ( http://repo1.maven.org/maven2/org/apache/tapestry/tapestry-webresources/). Kalle On Thu, Nov 13, 2014 at 10:42 AM, George Christman wrote: > Thanks Thiago. > > On Thu, Nov 13, 2014 at 1:37 PM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Thu,

Re: Minify JS / CSS in production

2014-11-13 Thread George Christman
Thanks Thiago. On Thu, Nov 13, 2014 at 1:37 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 13 Nov 2014 16:28:01 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > How do I minify tapestry's JS and CSS? Google is complaining saying that >> 62.3kib 50% could b

Re: Minify JS / CSS in production

2014-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Nov 2014 16:28:01 -0200, George Christman wrote: How do I minify tapestry's JS and CSS? Google is complaining saying that 62.3kib 50% could be saved with the core js alone. It also says something about optimizing css delivery and points to all the tapestry's css. Check the Minimi

Minify JS / CSS in production

2014-11-13 Thread George Christman
How do I minify tapestry's JS and CSS? Google is complaining saying that 62.3kib 50% could be saved with the core js alone. It also says something about optimizing css delivery and points to all the tapestry's css. Thanks, George -- George Christman CEO www.CarDaddy.com P.O. Box 735 Johnstown, N

Re: [5.4] javascript - simplify the new paradigm please

2014-11-13 Thread Howard Lewis Ship
The change in JavaScript is to support several goals: - A good transition from Prototype.js to jQuery (or perhaps something else in the future) - Reduce the total amount of JavaScript sent to the client - Allow more of the JavaScript to transfer in parallel - Make it easier to override Tapestry's b

Re: Remove Tapestry Meta Tag

2014-11-13 Thread George Christman
I'm only using that as an example. Yes he fixed it, but unfortunately I don't know how to use the fix with ajax. Another topic though. On Thu, Nov 13, 2014 at 9:15 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 13 Nov 2014 12:11:09 -0200, George Christman < > gchrist...@c

Re: session invalidate in tapestry

2014-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Nov 2014 12:16:03 -0200, Ivano Luberti wrote: Hi all, I have a question about session handling in Tapestry5. I have a @SessionState protected User user; Shouldn't it be @SessionState(create = false) so user isn't instantiated automatically and is null until you set the fie

session invalidate in tapestry

2014-11-13 Thread Ivano Luberti
Hi all, I have a question about session handling in Tapestry5. I have a @SessionState protected User user; that works as expected I wanted to perform some cleanup when calling a logout link: the action link listener is made as this: public Object onActionFromLink() { r

Re: Remove Tapestry Meta Tag

2014-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Nov 2014 12:11:09 -0200, George Christman wrote: I know your probably right, but I don't want to do all the work for them lol, I just worry about things that may come up like the select menu vulnerability Howard discovered. Anyhow Thanks guys :) Isn't that fixed already? -- Thia

Re: Remove Tapestry Meta Tag

2014-11-13 Thread George Christman
On Thu, Nov 13, 2014 at 9:04 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 13 Nov 2014 11:55:11 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > Hi guys, is there away to remove the "Apache Tapestry Framework (version >> 5.4-beta-22)" meta tag from my src?

Re: Remove Tapestry Meta Tag

2014-11-13 Thread Thilo Tanner
Hi George, Of course, you can do that. Contribute the following to the application defaults (in your main module class): public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add(SymbolConstants.OMIT_GENERATOR_META, true); } Best, Thilo

Re: Remove Tapestry Meta Tag

2014-11-13 Thread Dusko Jovanovski
Sure, you just need to override this symbol: SymbolConstants.OMIT_GENERATOR_META. Here's a sample of overriding it in a module: @Contribute(SymbolProvider.class) @ApplicationDefaults public static void provideSymbols(MappedConfiguration configuration) { // ... configuration.

Re: Remove Tapestry Meta Tag

2014-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Nov 2014 11:55:11 -0200, George Christman wrote: Hi guys, is there away to remove the "Apache Tapestry Framework (version 5.4-beta-22)" meta tag from my src? SymbolConstants.OMIT_GENERATOR_META, "tapestry.omit-generator-meta". As you all know I love this framework, however I'd l

Remove Tapestry Meta Tag

2014-11-13 Thread George Christman
Hi guys, is there away to remove the "Apache Tapestry Framework (version 5.4-beta-22)" meta tag from my src? As you all know I love this framework, however I'd like to try and limit my exposure to hackers looking for a vulnerability -- George Christman CEO www.CarDaddy.com P.O. Box 735 Johnstown,

Re: [ANNOUNCEMENT] Project Arras

2014-11-13 Thread Nathan Quirynen
Looks nice (looking at the code)! Are there online demos running to show everything? Congratz on the work ;) Nathan On 13/11/14 14:43, George Christman wrote: > Excellent, congrats! > > On Wed, Nov 12, 2014 at 1:44 PM, Kalle Korhonen > wrote: > >> Looks nice, congrats! >> >> Kalle >> >> On Wed

Re: [ANNOUNCEMENT] Project Arras

2014-11-13 Thread George Christman
Excellent, congrats! On Wed, Nov 12, 2014 at 1:44 PM, Kalle Korhonen wrote: > Looks nice, congrats! > > Kalle > > On Wed, Nov 12, 2014 at 9:27 AM, Felix Scheffer > wrote: > > > Hi all, > > > > I'm pleased to announce the release of arras-components and arras-cms. > > > > https://github.com/fsch

Re: tynamo-federatedaccounts 0.5.0 released!

2014-11-13 Thread George Christman
I can't think of any one who would have been pestering you about this ;) lol Thanks Kalle for all the hard work, I look forward to finally setting this up. On Thu, Nov 13, 2014 at 3:50 AM, Charlouze wrote: > Thanks Kalle. I'm not using this one yet but I will very soon :D > > 2014-11-12 20:13 G

Re: [5.4] JavascriptStack with module and css.

2014-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Nov 2014 04:05:11 -0200, Paul Stanton wrote: oh ok, so hard code the meta-inf/assets part -- but this won't use the checksum cache key - which i suppose is ok since it isn't updated often. If you're using AssetSource, and Geoff's suggest code does, all the caching and checksum

Re: tynamo-federatedaccounts 0.5.0 released!

2014-11-13 Thread Charlouze
Thanks Kalle. I'm not using this one yet but I will very soon :D 2014-11-12 20:13 GMT+01:00 Kalle Korhonen : > Thanks to the enthusiastic, borderline pestering community :), yet another > tynamo module, this time tynamo-federatedaccounts 0.5.0, gets an upgrade to > T5.4! Use it before the code ex