RE: anybody using tapestry-security ?
configuration.add(factory.createChain("/roles/anonymous/**").add(factory.roles(), "anonymous").build()); configuration.add(factory.createChain("/roles/administrator/**").add(factory.roles(), "administrator").build()); configuration.add(factory.createChain("/perms/create/**").add(factory.perms(), "*:create").build()); configuration.add(factory.createChain("/perms/read/**").add(factory.perms(), "*:read").build()); configuration.add(factory.createChain("/perms/update/**").add(factory.perms(), "*:update").build()); configuration.add(factory.createChain("/perms/delete/**").add(factory.perms(), "*:delete").build()); I hope this will lead me on the right track. and the annotations will lead me out of the woods
Re: Read only bindings - How do I set their value from a mixin?
I ran into this problem also. I think you might be able to create a different binding prefix like default: that is writable and change the default to use that prefix. This is still on my todo list because I'd like to do the same thing. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Read-only-bindings-How-do-I-set-their-value-from-a-mixin-tp5720446p5720486.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: Tapestry use both Jquery and Prototype
Like I mention some other pages are throwing other errors. TypeError: Cannot call method 'configure' of undefined [http://localhost:8080/assets/3e94218d4f262b02/core/scriptaculous_1_9_0/prototype.js:828] This one comes from the cometd plugin as it uses jquery I would expect. TypeError: Cannot call method 'getStorage' of undefined [http://localhost:8080/assets/3e94218d4f262b02/core/scriptaculous_1_9_0/prototype.js:828] This one comes from the tree plugin. So is it possible that somehow jquery is not using the alias where it should? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-use-both-Jquery-and-Prototype-tp5720478p5720485.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: Tapestry use both Jquery and Prototype
My desire is to include prototype since I want to use cheditor mixin and it relays on prototype. For everything else I want to use jquery. I have only added 2 lines as per instructions and for some reason something is breaking. Versions are 5.3.6 and jquery 3.3.5 -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-use-both-Jquery-and-Prototype-tp5720478p5720483.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: Now hotness at SX vs 5.4
I like that the compressed version is larger than the uncompressed version and the documentation is just a link to the Javascript manual. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Now-hotness-at-SX-vs-5-4-tp5720473p5720482.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: Tapestry use both Jquery and Prototype
The error is TypeError: Cannot call method 'bind' of null [http://localhost:8080:72] I just explained instead of also writing the error in question, my bad. The last lines are part of what ever tapestry has initialized and it looks like it didnt use the alias. Also on other pages I am getting strange behaviour. TypeError: Cannot call method 'configure' of undefined [http://localhost:8080/assets/3e94218d4f262b02/core/scriptaculous_1_9_0/prototype.js:828] TypeError: Cannot call method 'getStorage' of undefined [http://localhost:8080/assets/3e94218d4f262b02/core/scriptaculous_1_9_0/prototype.js:828] I suspect that all of this should be handled by the jquery but since it is still using $ instead of the alias it is now handled by protoype. Is there a way to force jquery to handle stuff like zone updates? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-use-both-Jquery-and-Prototype-tp5720478p5720481.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: Now hotness at SX vs 5.4
On 03/15/2013 08:20 AM, Thiago H de Paula Figueiredo wrote: On Fri, 15 Mar 2013 09:45:11 -0300, Joachim Van der Auwera wrote: On 03/15/2013 01:26 PM, trsvax wrote: Monitoring is something Tapestry lacks, Etsy's StatsD seems to be popular. Something quite similar (though not distributed) is easy using geomajas-project-profiling, see http://blog.progs.be/453/profiling-live-application. What about https://github.com/joshcanfield/tapestry-monitoring, from Josh Canfield? StatsD is nice and easy to work with. We're using it at work. I even have it running at home. From StatsD we dump into Graphite. There is no reason why a developer couldn't easily implement their own little chunks of code to send metrics to a service that would push them out to StatsD. You could easily rewrite the timing filter from the demo to write to StatsD instead of a logger. We also use collectd to perform JMX monitoring, and from there into Graphite. There are several other tools to pull from JMX and push to Graphite or elsewhere. Josh's monitoring module looks interesting. Since it's JMX, you can use any of the tools used to extract JMX, including collectd. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry use both Jquery and Prototype
As per instructions on the tapestry-jquery plugin I have tried to add configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false"); after this application would throw an error sayting that I need to setup jquery alias (the instruction say it will be use some default value). So I added configuration.add(JQuerySymbolConstants.JQUERY_ALIAS, "$j"); The application now starts up and when I go to the first page I get the javascript error var jQuery = jQuery; Tapestry.DEBUG_ENABLED = true; var selector = new Array(); Tapestry.JQUERY=false; Tapestry.onDOMLoaded(function() { Tapestry.init({ "linkSubmit" : [ { "form" : "formUserLogin", "clientId" : "linksubmit", "mode" : "normal" }, { "form" : "formForgottenPassword", "clientId" : "linksubmit_0", "mode" : "normal" }, { "form" : "formRequestUserAccess", "clientId" : "linksubmit_0_0", "mode" : "normal" } ], "formEventManager" : [ { "formId" : "formUserLogin", "validate" : { "submit" : true, "blur" : true } }, { "formId" : "formForgottenPassword", "validate" : { "submit" : true, "blur" : true } }, { "formId" : "formRequestUserAccess", "validate" : { "submit" : true, "blur" : true } } ] }); $('#slider').bind('slide', function(event, ui) {$('#sliderValue').text(ui.value);}); // on this line $('#slider').bind('slide', function(event, ui) {$('#sliderValue').text(ui.value);}); The error due to the fact that this is now threated as prototype instead of jquery. So my question is do I need to configure something else? How can I force alias to work? Also when I use the alias does that mean that all of the scripts that come from tapestry-jquery world will now use the alias? I would expect that to be the case. Cheers all -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-use-both-Jquery-and-Prototype-tp5720478.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: Now hotness at SX vs 5.4
On Fri, Mar 15, 2013 at 5:26 AM, trsvax wrote: > As always there is a buzz at SX about the latest and greatest. Some have > staying power like Twitter some do not. This year the three hot topics > seemed to be mobile, medical and scalability. Medical does not have much to > do with 5.4 but the others do. First is mobile. > > If your website does not work on mobile you are a loser! Mobile really > means > works on phones/tablets and is most likely responsive, lightweight and > AJAXy. > > Vanilla.js seems to be the hot Javascript framework for mobile. JQuery is > old and bloated. http://http://vanilla-js.com Vanilla is a kind of joke; basically a way of saying that the baseline of JavaScript and DOM in modern browsers is enough. Which I don't think is the case at all, there are so many subtle differences between browser implementations. VanillaJS means either recreating the wheel, or turning your back on IE and perhaps one of WebKit or Firefox. > > > Javascript build tools like http://yeoman.io/index.html > > Javascript MVC is hot but no clear frontrunner. > http://addyosmani.github.com/todomvc/ I'm very, very interested in AngularJS. It looks like Tapestry completely on the client, and I suspect Tapestry on the server would be an ideal complement to it. > > > There was talk about Bootstrap but designers don't really like it. That > said > it seems a lot of people are using it. > I think they are missing the point; Bootstrap is usable, but it can also be considered scaffolding; the CSS class names are quite reasonable, so you can either take bootstrap.css and customize it, or replace it with something that uses the same class names (and implied DOM structures). In some ways, Bootstrap is like the Gang-of-Four design patterns; it creates a common lingua franca for discussing layout and presentation issues. Unlike GoF, its also a kind of definitive base implementation. > > On the scalability side Java did not seem to be a four letter word because > of the JVM. Scala was a hot topic as was monitoring. > > I'd say Tapestry 5.4 is going to do pretty well on the hotness scale with > Bootstrap, RequireJS and Scala support. Vanilla.js (I'd never heard the > term) is interesting and might be something to keep in mind when creating > Javascript components. Monitoring is something Tapestry lacks, Etsy's > StatsD > seems to be popular. > I've long had a dream of a more sophisticated built-in dashboard for Tapestry that could show requests on pages, error rates, details about clients, etc. Haven't had the time to implement it and I don't think it will make it into 5.4; maybe its time for a Kickstarter :-) > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Now-hotness-at-SX-vs-5-4-tp5720473.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
Re: Now hotness at SX vs 5.4
On Fri, 15 Mar 2013 09:45:11 -0300, Joachim Van der Auwera wrote: On 03/15/2013 01:26 PM, trsvax wrote: Monitoring is something Tapestry lacks, Etsy's StatsD seems to be popular. Something quite similar (though not distributed) is easy using geomajas-project-profiling, see http://blog.progs.be/453/profiling-live-application. What about https://github.com/joshcanfield/tapestry-monitoring, from Josh Canfield? -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Now hotness at SX vs 5.4
On Fri, 15 Mar 2013 09:26:56 -0300, trsvax wrote: Vanilla.js seems to be the hot Javascript framework for mobile. JQuery is old and bloated. http://http://vanilla-js.com I guess you noticed that the Vanilla JS site is a parody, not a real framework, just plain old JavaScript (hence the 'Vanilla' name, right? :) -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Now hotness at SX vs 5.4
On 03/15/2013 01:26 PM, trsvax wrote: Monitoring is something Tapestry lacks, Etsy's StatsD seems to be popular. Something quite similar (though not distributed) is easy using geomajas-project-profiling, see http://blog.progs.be/453/profiling-live-application. Kind regards, Joachim - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [5.3.6] Apache CXF and Apache Tomcat 7
On Fri, 15 Mar 2013 07:02:47 -0300, Muhammad Gelbana wrote: I'm having trouble *understanding and knowing* what needs to be done. I've seen deroke's metro web-services integration but it seems to be designed for filters and not servlets. I understand that should not be a huge difference since you define the url pattern for either the patter\servlet. But I have some questions like, if it's all about the url pattern specification, why should i direct tapestry to contribute a http request filter ? is it only to be able to access tapestry's registry through the servlet context ? (i.e. What I very much need to do) Exactly. Anything you do inside the Tapestry framework has the advantage of using it. If you write a servlet filter or a servlet, the most you can do is to get the Registry from the ServletContext and use it. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: TapestryIoC: Is it possible to receive an OrderedConfiguration's ID?
No, but if your contribution is a service then you can inject the ServiceId using the @Symbol annotation: http://tapestry.apache.org/symbols.html#Symbols-InjectingValuesfromSymbols Steve. On 15 March 2013 11:26, Eli Doran wrote: > When using OrderedConfiguration the add method's first argument is an ID. > Is it possible to inject that ID into the corresponding instance's > constructor? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[5.3.6] Apache CXF and Apache Tomcat 7
I'm having trouble *understanding and knowing* what needs to be done. I've seen deroke's metro web-services integration but it seems to be designed for filters and not servlets. I understand that should not be a huge difference since you define the url pattern for either the patter\servlet. But I have some questions like, if it's all about the url pattern specification, why should i direct tapestry to contribute a http request filter ? is it only to be able to access tapestry's registry through the servlet context ? (i.e. What I very much need to do) I know there are some threads already in the list on that matter but It's either outdated, or I don't know enough to identify how should the answers on these threads work ! I have many newbie questions related to the subject so instead of rewriting the whole thing, I've already detailed my current progress and asked many questions on stackoverflow, I would appreciate if someone tries to help: http://stackoverflow.com/questions/15423896/apache-cxf-web-service-as-a-tapestry5-module-for-integration-with-a-net-client
Re: Read only bindings - How do I set their value from a mixin?
That would apply to all grids. I want a DisablePaging mixin that I can use on a case by case basis -- View this message in context: http://tapestry.1045711.n5.nabble.com/Read-only-bindings-How-do-I-set-their-value-from-a-mixin-tp5720446p5720469.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