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

2014-11-18 Thread Paul Stanton
Chris, can you point me to an example of this? thanks, p. On 18/11/2014 10:53 AM, Chris Poulsen wrote: I'm moving more of the initializer code over to get client id's etc. from data attributes - the "scanner" pattern for initialization that can be seen in some of tapestrys own components works

Re: [5.3] why is a stack being included when not referenced?

2014-11-18 Thread Paul Stanton
Further digging finds that if StackA includes ResourceA and PageB or any of its components import ResourceA then StackA will be included. org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl.importJavaScriptLibrary(String) line 240 I haven't played around with stacks to this degr

[5.3] why is a stack being included when not referenced?

2014-11-18 Thread Paul Stanton
Hi, I have PageA for which I have created StackA of all the the js it includes by the virtue of its self and its components (for production efficiency). I have PageB for which I have not created a stack, and it does not import StackA. However when I request PageB, StackA is being included

Re: tapestry-katcha Failing

2014-11-18 Thread Lance Java
When the kaptcha is generated, the generated key is stored in the session for verification. I'm guessing the session is lost between initial display and verification. From memory your jsessionid is a cookie value. Are you switching domains or something? I'd inspect the request headers and make sur

Re: Access Hibernate with out injection

2014-11-18 Thread Thiago H de Paula Figueiredo
On Tue, 18 Nov 2014 18:45:48 -0200, Harry Zhou wrote: 2. You can make RRealm a Tapestry IoC service (by creating an interface, an implementation, and bind the two in AppModule). Actually, that's recommended, but not needed. You can define a service based on a concrete class: binder.bind(

Re: Access Hibernate with out injection

2014-11-18 Thread Thiago H de Paula Figueiredo
On Tue, 18 Nov 2014 18:24:47 -0200, dragon wrote: @Contribute(WebSecurityManager.class) public static void addRealms(Configuration configuration) { CredentialsMatcher credentialsMatcher = new RCredentialsMatcher(); RRealm realm = new RRealm(); As Harry said, you're inst

Re: tapestry-katcha Failing

2014-11-18 Thread George Christman
Hmm, I don't use sticky sessions, but why do you think this would be happening all of a sudden? btw lance, how does this work, is it suppose to store some type of cookie? On Tue, Nov 18, 2014 at 1:25 PM, Lance Java wrote: > I'm guessing this is a session issue. Perhaps a session cookie issue? Or

Re: Access Hibernate with out injection

2014-11-18 Thread Harry Zhou
Hi Dragon, I believe what Kalle and Thiago are saying is that @Inject in your realm will not work unless your realm is itself a service or a component (such as a page). In your code, the "RRealm realm" is a plain old java object instantiated using "new". Tapestry IoC injection service will not b

Re: Access Hibernate with out injection

2014-11-18 Thread dragon
On 11/18/2014 02:50 PM, Kalle Korhonen wrote: > You make your AuthorizingRealm a Tapestry service or at least let the ioc > @Autobuild it for you. This is all fairly well covered at > http://tynamo.org/tapestry-security+guide but sounds like you might not be > using tapestry-security. Anyway, here

Re: Hints on javascript debugging

2014-11-18 Thread Chris Mylonas
Thanks charlie That mobile testing is quite extreme/thorough looking. I've just been resizing the browser like a caveman hehe

Re: Access Hibernate with out injection

2014-11-18 Thread Thiago H de Paula Figueiredo
On Tue, 18 Nov 2014 17:40:46 -0200, dragon wrote: Im trying to access a hibernate entity/database from a shiro AuthorizingRealm extending class. Since the tapestry IOC does not inject outside Pages / Components, I'm sorry, but this is completely wrong. Anything which is a Tapestry-IoC servi

Re: Access Hibernate with out injection

2014-11-18 Thread Kalle Korhonen
You make your AuthorizingRealm a Tapestry service or at least let the ioc @Autobuild it for you. This is all fairly well covered at http://tynamo.org/tapestry-security+guide but sounds like you might not be using tapestry-security. Anyway, here's an sample service realm (in JPA but same difference)

Access Hibernate with out injection

2014-11-18 Thread dragon
Im trying to access a hibernate entity/database from a shiro AuthorizingRealm extending class. Since the tapestry IOC does not inject outside Pages / Components, how do i access the Hibernate Session so i can access the database? Thanks for any suggestions. -

Re: tapestry-katcha Failing

2014-11-18 Thread Lance Java
I'm guessing this is a session issue. Perhaps a session cookie issue? Or clustering / session replication issue? On 18 Nov 2014 14:06, "George Christman" wrote: > Yesterday I appeared to be having a lot of failures with kaptcha. Sometimes > the image would appear and sometimes it wouldn't. When

Re: HMAC Tampered with error

2014-11-18 Thread George Christman
Hi, thanks I'll take a look at the access logs and see what I can find, but in the mean time this is nothing to be concerned about? On Tue, Nov 18, 2014 at 9:06 AM, Antal van Kalleveen wrote: > Hi, > > Someone or something (bot) posted a form with modified data, presumably to > post something th

tapestry-katcha Failing

2014-11-18 Thread George Christman
Yesterday I appeared to be having a lot of failures with kaptcha. Sometimes the image would appear and sometimes it wouldn't. When it did appear, it would always fail saying the text didn't match even though it did. I ended up just removing it until I could figure out the cause of it's failure. It

Re: HMAC Tampered with error

2014-11-18 Thread Antal van Kalleveen
Hi, Someone or something (bot) posted a form with modified data, presumably to post something that would otherwise not go through. But as Tapestry validates the posted values with a predefined HMAC and it doesnt match you get this error. Maybe look at ur access log to see who or what is doing t

HMAC Tampered with error

2014-11-18 Thread George Christman
Hi guys, I'm seeing this exception come across more often lately. I guess I don't fully understand what it means or how to produce it. Could someone tell me how to produce this exception so that I can figure out how to fix it? mozilla/5.0 (iphone; cpu iphone os 8_1 like mac os x) applewebkit/600.1

Re: Adding IOC services from pico

2014-11-18 Thread Gunnar Eketrapp
Thanks Thiago! I finally got it working so now I have access to my pico services from Tapestry code. Which is great! /Gunnar 2014-11-18 13:55 GMT+01:00 Thiago H de Paula Figueiredo : > On Tue, 18 Nov 2014 10:39:52 -0200, Lance Java > wrote: > > This might help >> >> https://github.com/apach

Re: Adding IOC services from pico

2014-11-18 Thread Thiago H de Paula Figueiredo
On Tue, 18 Nov 2014 10:39:52 -0200, Lance Java wrote: This might help https://github.com/apache/tapestry-5/search?utf8=%E2%9C%93&q=Mapmoduledef Have you tried contributing an ObjectProvider to the MasterObjectProvider service? This won't allow your Pico-provided objects to be Tapestry-Io

Re: Adding IOC services from pico

2014-11-18 Thread Lance Java
This might help https://github.com/apache/tapestry-5/search?utf8=%E2%9C%93&q=Mapmoduledef On 18 Nov 2014 11:00, "Gunnar Eketrapp" wrote: > Hi! > > > I would like to add service from our own ioc container (pico based) so > that they may used in my tapestry projects. > > I.e. I have an ioc contai

Re: Adding IOC services from pico

2014-11-18 Thread Gunnar Eketrapp
I can't see the atcachements in Nabble .. can you see them? I.e. I attached 4 source code files.

Adding IOC services from pico

2014-11-18 Thread Gunnar Eketrapp
Hi! I would like to add service from our own ioc container (pico based) so that they may used in my tapestry projects. I.e. I have an ioc container used within none Tapestry projects. Now I would like to be able to use those services from within my Tapestry pages components and services. I di

Re: Hints on javascript debugging

2014-11-18 Thread Charlouze
Hey Chris, I don't know what other people use but i found the chrome dev tool (F12 to open it) very easy to use. It can even help you debug on your mobile if you use android with chrome too. There is an integrated remote debugging that