Re: Tapestry 4.1 injecting the wrong application state object

2011-02-03 Thread Howard Lewis Ship
Well, the idea in Tapestry has ever been that the locale for a page is fixed, once determined, and it's hard to say what the effect of your change would be ... but good detective work getting this far. I don't currently remember where in Tapestry 4.1 the determination of client locale is made;

Re: Nothing happens when overriding default validation messages

2011-02-03 Thread Howard Lewis Ship
It was the before: vs. after: ... contributing before: means that the key/values you contributed were themselves overwritten by the default validation messages from the default contribution. I haven't checked the code, but I belive it all would have worked had you ordered it after:Default. That

Re: Who uses Tapestry ? ... eOfficeo!!!

2011-02-03 Thread bagou
Hi George Yes all pages were implemented with T5... and it works! We are lucky ;-) Erwan On Thu, Feb 3, 2011 at 7:11 AM, George Banus [via Tapestry Users] ml-node+5987708-1009986671-279...@n2.nabble.comml-node%2b5987708-1009986671-279...@n2.nabble.com wrote: Hi Erwan, I'm confused here

t5: adding http header

2011-02-03 Thread Angelo C.
Hi, I need to add some http headers into response, like Access-Control-Allow-Origin: *, how to achieve this? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-adding-http-header-tp3369097p3369097.html Sent from the Tapestry - User mailing list archive

Re: t5: adding http header

2011-02-03 Thread Thiago H. de Paula Figueiredo
On Thu, 03 Feb 2011 09:10:11 -0200, Angelo C. angelochen...@gmail.com wrote: Hi, Hi! I need to add some http headers into response, like Access-Control-Allow-Origin: *, how to achieve this? Thanks, The better way depends on which pages do you want to do this. If it's all, create a

Re: Tapestry 4.1 injecting the wrong application state object

2011-02-03 Thread Ivano Luberti
In our case we were lucky enough that we can ask user to change language only on a given page. So the solution we adopted was to duplicate that page and to have listeners for changing language that where pointing to the other page. This because the language is changed only when page is rendered:

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread m...@raibledesigns.com
I'm doing this to solve @Inject in unit tests. If there's a better way to do it, I'd love to hear about it. http://source.appfuse.org/browse/appfuse/trunk/web/tapestry/src/test/java/org/appfuse/webapp/pages/BasePageTestCase.java?r=HEAD -- View this message in context:

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread Josh Canfield
I don't use spring but pagetester has a constructor that takes extra modules. Do you have to construct the modules yourself or can you just pass SpringModule.class to the constructor? Alternatively you can add a @SubModule(SpringModule.class) annotation to your AppModule and not have to worry

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread Igor Drobiazko
So you want your Spring beans to be injectable in Tapestry pages. RIght? Instead of using @ContextConfiguration and subclassing your test from AbstractTransactionalJUnit4SpringContextTests , you can let Tapestry create the ApplicationContext. There a several posibilities to do that: 1) you can

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread Werner Keil
At least in 5.2, is @Inject already coming from the JSR/CDI? On Thu, Feb 3, 2011 at 7:34 PM, m...@raibledesigns.com m...@raibledesigns.com wrote: I'm doing this to solve @Inject in unit tests. If there's a better way to do it, I'd love to hear about it.

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread Howard Lewis Ship
A little context: In 5.2, the Spring support was reworked a little bit, based on user feedback. The primary change is that Spring beans are no longer exposed as Tapestry service BUT they are still injectable (by type). There's also a compatibility mode that continues to attempt to expose Spring

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread m...@raibledesigns.com
I tried changing my base test class to use a ServletContext instead: final MockServletContext servletContext = new MockServletContext(); servletContext.addInitParameter(ContextLoader.CONFIG_LOCATION_PARAM, classpath:/applicationContext-resources.xml,

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread Thiago H. de Paula Figueiredo
On Thu, 03 Feb 2011 14:22:45 -0200, Werner Keil werner.k...@gmail.com wrote: At least in 5.2, is @Inject already coming from the JSR/CDI? The support for the JSR 330 annotations is already in the Tapestry-IoC trunk and the latest snapshot. I guess it'll be included in the next release.

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread Thiago H. de Paula Figueiredo
On Thu, 03 Feb 2011 15:34:23 -0200, m...@raibledesigns.com m...@raibledesigns.com wrote: Caused by: java.lang.RuntimeException: No service implements the interface org.appfuse.service.UserManager. There's no configured UserManager service in your setup. Is it a Tapestry or Spring-created

Re: Compiler error when upgrading from tapestry-spring 5.0.18 to 5.2.4

2011-02-03 Thread Werner Keil
So 5.2.x or 5.3 should have JSR 330? Don't worry about CDI, getting more synergies out of that for Java EE I aim at helping some of the other frameworks (from Matt's survey[?]) first and foremost JSF, since it is official part of the JCP like those JSRs, too. Where applicable, all interested EE

RE: t5: adding http header

2011-02-03 Thread Wechsung, Wulf
Hello Angelo, best use a request Filter. For example: public class IEStandardModeHeader implements RequestFilter { private static final String HEADER_KEY = X-UA-Compatible; @Override public boolean service(Request request, Response response, RequestHandler

Fast name-value pair persistent storage?

2011-02-03 Thread Kalle Korhonen
I have yet another tapestry-security add-on module in the works, this time for remember me. For context, read http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice/ (and re-read until you agree that's the best way) for doing authenticating remember me while minimizing other

T5: getting json value in tml

2011-02-03 Thread Angelo C.
Hi, How to get the value of a json object in tml file, following does not work: in page class: public JSONObject getJS() { JSONObject js = new JSONObject(); js.put(name1,123); return js; } in the tmp, ${js} // this shows key/value pair ${js.name1} // does not show