Re: Complex Question about Templates and Inheritance

2010-06-14 Thread Josh Canfield
I wouldn't minding being able to override any module mapping. Your (Pierce's) example is very reasonable. A more general example might be a CMS module that you want to deploy for several clients. It includes a complete working site but needs to be tweaked a bit for clients. Perhaps there is a Login

Re: Problem Securing Multiple Pages

2010-06-14 Thread Josh Canfield
Ok, it looks like it's a bug that's been fixed in 5.2. In 5.1.0.5 the findMeta method used is only looking at the annotation and not the defaults... Josh On Mon, Jun 14, 2010 at 10:37 AM, Juan E. Maya wrote: > Hi Josh, > > Josh, what i am trying to do is to  secure a group of pages that exist >

Re: Complex Question about Templates and Inheritance

2010-06-14 Thread Thiago H. de Paula Figueiredo
On Mon, 14 Jun 2010 14:44:35 -0300, Pierce Wetter wrote: Since core is already "special" it seems like it makes sense to have the ability to do specific overrides. Sure its not as general as being able to say "everything in this package is also in core", but I think overly general is d

Re: Complex Question about Templates and Inheritance

2010-06-14 Thread Pierce Wetter
On Jun 12, 2010, at 9:54 PM, Josh Canfield wrote: >> But I think there should be a mechanism for overriding core components, even >> if you had to do each one explicitly. > > Thiago is right. Currently the way this works is an implementation > detail and not a documented feature so you end up s

Re: Problem Securing Multiple Pages

2010-06-14 Thread Juan E. Maya
Hi Josh, Josh, what i am trying to do is to secure a group of pages that exist under a directory. I have the following in my Module: public void contributeMetaDataLocator(MappedConfiguration configuration) { configuration.add("client:" + MetaDataConstants.SECURE_PAGE, "true"); } a test p

Re: Problem Securing Multiple Pages

2010-06-14 Thread Josh Canfield
Can you give more detail about what you are doing? What did you put in your AppModule, what are the paths that you are trying to secure? Thanks. On Mon, Jun 14, 2010 at 10:18 AM, Juan E. Maya wrote: > Hi, > i am trying to secure multiple pages by contributing to the > MetaDataLocator as explaine

Problem Securing Multiple Pages

2010-06-14 Thread Juan E. Maya
Hi, i am trying to secure multiple pages by contributing to the MetaDataLocator as explained here: http://tapestry.apache.org/tapestry5.1/guide/secure.html but the app always uses the default value. Checking the source code of MetaDataLocatorImpl it seems that the value would always use the defaul

Re: What's the right way to design a dialogue of uncertain length?

2010-06-14 Thread Thiago H. de Paula Figueiredo
On Mon, 14 Jun 2010 01:17:29 -0300, Dan Wiebe wrote: The problem, of course, is getting hold of the pages to return. I can't construct them myself: Tapestry has to construct them. I can't find a way to get copies directly from the page pool either. Use the ComponentSource service and use it

Re: Xform in Tapestry

2010-06-14 Thread Thiago H. de Paula Figueiredo
On Mon, 14 Jun 2010 08:25:55 -0300, John Aunater wrote: Hi, Hi! I would know how to include an Xform in Tapestry. I haven't found any response in the Internet.Can you help me ? Just add the XForms namespace and you can use it (and any other XML format). There are no components using XF

What's the right way to design a dialogue of uncertain length?

2010-06-14 Thread Dan Wiebe
Here's what I'd like to do. I have a Task interface whose implementations on the back end know how to call the various services that need to be called to get things done. Some of the things I need to have done, in some cases, must be confirmed. For example, if I'm adding a person to the database

Xform in Tapestry

2010-06-14 Thread John Aunater
Hi, I would know how to include an Xform in Tapestry. I haven't found any response in the Internet.Can you help me ? Thank's in advanceRegard'sJaunater

RE: Absolute links on 404 error page

2010-06-14 Thread Arming, Sebastian
-Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Monday, June 14, 2010 4:49 PM Subject: Re: Absolute links on 404 error page > This is also a Tapestry configuration symbol, so it can be set from your > AppModule class. ;) Just did that. Loosing r

Re: Absolute links on 404 error page

2010-06-14 Thread Thiago H. de Paula Figueiredo
On Mon, 14 Jun 2010 09:44:03 -0300, Christian Riedel wrote: sounds like this could be solved when you redirect to your 404 page properly ( to /error for example). then all links should be ok. another way to force tapestry to generate absolute links is adding this to the jre-args: -Dtap

Re: Absolute links on 404 error page

2010-06-14 Thread Christian Riedel
hi, sounds like this could be solved when you redirect to your 404 page properly ( to /error for example). then all links should be ok. another way to force tapestry to generate absolute links is adding this to the jre-args: -Dtapestry.force-absolute-uris=true hope that helps :) christian

Absolute links on 404 error page

2010-06-14 Thread Arming, Sebastian
Hey, I've setup a custom 404 error page in my web.xml which is generated by Tapestry. As links generated by tapestry are (normally) relative, they don't work on a 404 page for a path with several slashes. That is if I navigate to (non existing) "/a/b", the browser interprets the link "contact"

Re: cannot submit ajax form using form.submit javascript

2010-06-14 Thread Inge Solvoll
A simple and relatively clean solution: http://tinybits.blogspot.com/2009/10/missing-javascript.html On Mon, Jun 14, 2010 at 3:19 AM, Paul Stanton wrote: > I found Shawn Brownfield's post from aug 2009: > > > The short of this is that there doesn't appear to be a really clean way > > to do this