Re: [T4] Has anybody use Tapestry4 + HTTPS on apache tomcat with JK?

2008-11-25 Thread Peter Stavrinides
On a side note, mod_jk is built on the the JServe Protocol (AJP), which is now supported natively in Apache... I recommend using the latest version of Apache (2.2 onward) because it has a native AJP connector, which is also supported directly in Tomcat Jetty, so configuration is literally

Path to files in WEB-INF?

2008-11-25 Thread shymon
I have a file placed in WEB-INF folder - file which I want to be deployed with application. I also want to load that file in page code. How can I obtain path to that file? -- View this message in context: http://www.nabble.com/Path-to-files-in-WEB-INF--tp20679893p20679893.html Sent from the

Re: Authentication

2008-11-25 Thread Borut Bolčina
Hi, only now have I returned to this task. I get http error 500: Exception constructing service 'RememberMeServices': Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at SecurityModule.java:303) (for service

Re: (newbie) Tapestry generated b/

2008-11-25 Thread Nicolas Charles
You could override the MarkupWriterFactory to prevent the abreviation of the b/ tag It should look like this public class XhtmlMarkupWriterFactoryImpl implements MarkupWriterFactory { private final String applicationCharset; private final MarkupModel xmlModel = new

RE: Authentication

2008-11-25 Thread Jonathan Barker
It's ugly, but you could build one of the two UserDetailServices in the contributeProviderManager method, so only one UserDetailsService is visible to the RememberMe service. -Original Message- From: Borut Bolčina [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 07:29 To:

Re: Authentication

2008-11-25 Thread Borut Bolčina
Hi, this uglyness looks like this now (I am including three more methods): /* USERNAME, PASSWORD */ public static UserDetailsService buildUserDetailsWithUsernameAndPasswordService(@Inject PasswordEncoder encoder, @Inject SaltSource salt) { return new

[T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Ovidiu Hurducas
Hi! I have a T5 webapp that has to provide a template page for a payment system, a page that contains assets like images, css, js files in the layout component. The template page is just a plain T5 page with a placeholder like $inject_here$. The payment system (another website) is taking the

Re: (newbie) Tapestry generated b/

2008-11-25 Thread akira
HI, thanks for the reply, i voted for the bug to be fixed and i'm using the span/ temporarily and i'm going to try Nicolas override method (didn't test on IE yet). On Nov 25, 2008, at 11:33 PM, [EMAIL PROTECTED] wrote: From: Peter Stavrinides [EMAIL PROTECTED] Date: November 25, 2008

Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Toby Hobson
In your AppModule.java you need to tell T5 to use absolute uris e.g. public static void contributeApplicationDefaults(MappedConfigurationString, String configuration) { ... configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, true); } Toby 2008/11/25 Ovidiu Hurducas [EMAIL PROTECTED]

Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Toby Hobson
That's a little strange .. can you send an example of the urls T5 is generating? 2008/11/25 Ovidiu Hurducas [EMAIL PROTECTED] Thanks, I already tried that. However this seems to be ignored and all the assets are inserted with relative URIs. Any other options? On Tue, Nov 25, 2008 at 6:10

Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Ovidiu Hurducas
Thanks, I already tried that. However this seems to be ignored and all the assets are inserted with relative URIs. Any other options? On Tue, Nov 25, 2008 at 6:10 PM, Toby Hobson [EMAIL PROTECTED]wrote: In your AppModule.java you need to tell T5 to use absolute uris e.g. public static void

Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Ovidiu Hurducas
I've put configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, true); and I have tags like img src=${asset:context:/images/logo_flat.gif} / a t:type=actionlink t:id=releaseResSessionRelease RES Session/a and what is rendering: img src=/images/logo_flat.gif/ a

Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Toby Hobson
ok try img src=${asset:context:images/logo_flat.gif} / i.e. remove the leading / Toby 2008/11/25 Ovidiu Hurducas [EMAIL PROTECTED] I've put configuration.add(SymbolConstants.FORCE_ABSOLUTE_URIS, true); and I have tags like img src=${asset:context:/images/logo_flat.gif} / a

Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Ovidiu Hurducas
no effect: the tag was rendered exactly the same. Thanks anyway! -- Ovidiu On Tue, Nov 25, 2008 at 6:45 PM, Toby Hobson [EMAIL PROTECTED]wrote: ok try img src=${asset:context:images/logo_flat.gif} / i.e. remove the leading / Toby 2008/11/25 Ovidiu Hurducas [EMAIL PROTECTED] I've put

Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Sven Homburg
its sounds like that you want the complete url, incl. the protocol, server, port etc ? 2008/11/25 Ovidiu Hurducas [EMAIL PROTECTED] no effect: the tag was rendered exactly the same. Thanks anyway! -- Ovidiu On Tue, Nov 25, 2008 at 6:45 PM, Toby Hobson [EMAIL PROTECTED] wrote: ok try

T5: t5components Tab Set on a onActivated Page

2008-11-25 Thread Charles Mason
Hi all, I am having a few problems with the TabSet component from the T5Components collection. For those that don't know its a fairly simple CSS Tab set which uses Java Script to show and hide various Div tags to give the effect of dynamic tabs. It uses Ajax to silently inform Tapestry of the

Re: Path to files in WEB-INF?

2008-11-25 Thread Howard Lewis Ship
Well, inside a component you can inject the file as an Asset: @Inject @Path(context:WEB-INF/myfile.xml) private Asset myFile; From the asset you can get the Resource and from that, an input stream or URL. You can also inject (into a component or service) the Context. On Tue, Nov 25, 2008 at

RE: Authentication

2008-11-25 Thread Jonathan Barker
Normally, authentication providers are called in order (as in: OrderedConfigurationAuthenticationProvider). I've never tried using OpenID, though. -Original Message- From: Borut Bolčina [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 10:32 To: Tapestry users Subject:

[T4.0] Portlets and ActionResponse objects when rendering the page for the first time

2008-11-25 Thread Robert Zinger
Hello, I am using Tapestry 4.0.2 and Vignette Portal with JSR-168 implementation. I am trying to generate a link that will automatically Maximize the Portlet window when clicked while switching to a new tapestry page. I injected ActionResponse into the target page and implemented beginRender

Re: (newbie) Tapestry generated b/

2008-11-25 Thread Howard Lewis Ship
I'm thinking that the current fix is broken, and the right solution may be that for HTML markup, always use EndTagStyle.REQUIRE. That means a br/ in a template will render a br/br, but other than than those minor quibbles, it will work more in line with how SGML/HTML treats empty elements. On

Zone update steals input element focus in 5.0.17

2008-11-25 Thread nerdlinger
I just upgraded from 5.0.13 to 5.0.17 and fixed all of my issues ;) except for this one. This is my first tapestry app (and first post) so hopefully I can explain this sufficiently... I've got a form within a zone which is working fine. There are action links within this form which are tied to

Re: Zone update steals input element focus in 5.0.17

2008-11-25 Thread Howard Lewis Ship
The containing Form's autofocus parameter should be bound to false. On Tue, Nov 25, 2008 at 1:51 PM, nerdlinger [EMAIL PROTECTED] wrote: I just upgraded from 5.0.13 to 5.0.17 and fixed all of my issues ;) except for this one. This is my first tapestry app (and first post) so hopefully I can

[T5] LinkSumit no event captured

2008-11-25 Thread Henry Chen
Hi, I tried the following without any luck. In my .tml: t:linksubmit t:event=update class=saveUpdate/t:linksubmit In java: public void onUpdate() { actionType = SubmitAction.ADD; } Didn't work. Then I tried below: @OnEvent(value=addField) public void

Re: [T5] LinkSumit no event captured

2008-11-25 Thread Howard Lewis Ship
That should work; what release are you on? On Tue, Nov 25, 2008 at 3:52 PM, Henry Chen [EMAIL PROTECTED] wrote: Hi, I tried the following without any luck. In my .tml: t:linksubmit t:event=update class=saveUpdate/t:linksubmit In java: public void onUpdate() {

Re: [T5] - How to generate pages with absolute URIs?

2008-11-25 Thread Howard Lewis Ship
I think there's an outstanding issue about that, something I should bang out for 5.1. On Tue, Nov 25, 2008 at 9:09 AM, Sven Homburg [EMAIL PROTECTED] wrote: its sounds like that you want the complete url, incl. the protocol, server, port etc ? 2008/11/25 Ovidiu Hurducas [EMAIL PROTECTED] no

Apache Tapestry - News need to change title to Tapestry 5.0.17

2008-11-25 Thread Mohammad Shamsi
Hi, in Apache Tapestry - News the title for new Release Candidate news is still Tapestry 5.0.16 it need to change to Tapestry 5.0.17 -- sincerely yours M. H. Shamsi