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 sho
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 othe
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
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 f
On Thu, 03 Feb 2011 15:34:23 -0200, 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 bean?
--
Thiago H. d
On Thu, 03 Feb 2011 14:22:45 -0200, Werner Keil
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. CDI is another beast .
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,
classpath:/
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
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.
>
>
> http://source.appfuse.org/
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 pro
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 abou
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:
http://tapestry.1045711.n5
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:
h
On Thu, 03 Feb 2011 09:10:11 -0200, Angelo C.
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 RequestFilter and use the
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
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.com
> wrote:
> Hi Erwan,
>
> I'm confused here a bit. From your previous post you seem to in
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 b
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; whe
18 matches
Mail list logo