Re: T5: PageLink on img tag

2009-06-02 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > Em Mon, 01 Jun 2009 12:04:48 -0300, Andy Buckley > escreveu: > >> Hi, > > Hi! > >> (only without the "literal:" bits in practice: these contexts will be >> generated dynamically). The result isn't quite right, though: the >> link to the full-size image fu

Re: T5: PageLink on img tag

2009-06-01 Thread Kalle Korhonen
Incidentally, I'm doing exactly the same. Rather than trying to use a a page link, I'm just creating an action link then sticking the value to img tag's src attribute (as described at http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage). This works fine for me. Kalle On Mon, Jun

Re: T5: PageLink on img tag

2009-06-01 Thread Thiago H. de Paula Figueiredo
Em Mon, 01 Jun 2009 12:04:48 -0300, Andy Buckley escreveu: Hi, Hi! (only without the "literal:" bits in practice: these contexts will be generated dynamically). The result isn't quite right, though: the link to the full-size image functions just fine, but the pagelinked renders the page

Re: T5: PageLink on img tag

2009-06-01 Thread Daniel Jones
Hi Andy, Have a look at this thread, I posted a solution that is similar to your requirements. http://www.nabble.com/T5:-How-to-load-image-Asset-from-filesystem--td22433419i20.html http://www.nabble.com/T5:-How-to-load-image-Asset-from-filesystem--td22433419i20.html Hope this helps, Daniel --

T5: PageLink on img tag

2009-06-01 Thread Andy Buckley
Hi, I'm doing some data rendering using JFreeChart, for which I've created a Tapestry page "PlotImage" which renders images and returns them as StreamResponses of type PNG or PDF. I'd like to use this to render inline tags, e.g.: (only without the "literal:" bits in practice: these context

Re: [T5] Pagelink bug in Tapestry 5.0.16?

2008-11-19 Thread Lutz Hühnken
Hi, that is really quite the bug. I see you opened a jira ticket for it: https://issues.apache.org/jira/browse/TAP5-362 I hope a lot of people vote for it so it gets resolved quickly. Does anyone know of a good workaround? Lutz --

Re: [T5] Pagelink bug in Tapestry 5.0.16?

2008-11-17 Thread Yunhua Sang
I can see this issue, when the context root is "/". Yunhua On Mon, Nov 17, 2008 at 1:23 PM, Michael Dukaczewski <[EMAIL PROTECTED]> wrote: > I think I found a bug in the new Tapestry Release Candidate. > I have a page (Foo.tml) with following code: > > http://tapestry.apache.org/schema/tapestry_5

[T5] Pagelink bug in Tapestry 5.0.16?

2008-11-17 Thread Michael Dukaczewski
I think I found a bug in the new Tapestry Release Candidate. I have a page (Foo.tml) with following code: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Foo Home And of course an Index page. In Tapestry 5.0.15 it worked fine, but now the link does not work anymore. That

Re: T5 pagelink and http - >https redirect

2008-08-08 Thread Howard Lewis Ship
= new BaseURLSource() >>>{ >>> public String getBaseURL(boolean secure) >>> { >>> String protocol = secure ? "https" : "http"; >>> >>> int port = secure ? 8

Re: T5 pagelink and http - >https redirect

2008-08-08 Thread Lutz Hühnken
return String.format("%s://localhost:%d", >> protocol, >> port); >> } >> }; >> >> configuration.add(AliasContribution.create(BaseURLSource.class,source)); >> >>} >> >> >> in

Re: T5 pagelink and http - >https redirect

2008-08-07 Thread tapestry5
} > }; > > configuration.add(AliasContribution.create(BaseURLSource.class,source)); > >} > > > in AppModule.java > > But this does not help. > > Any ideas? > &g

T5 pagelink and http - >https redirect

2008-08-07 Thread Argo Vilberg
hi, I have one page with http protocol and pagelink in it. Pagelink points https @secure page. But problem is that pagelink generate https://localhost/digi/newpage link, and not with alias localhost:8443. http page is in port 8080, but pagelink do not understand that https port is 8443. I also

Re: T5: pagelink

2008-08-06 Thread tapestry5
It seams that my production application server is running in behind Http server. Daniel Jue wrote: > > You could also change the default HTTPS port in your app server > configuration, and then your don't have to worry about modifying the > URIs. The default is of course 443. > > "The http

Re: T5: pagelink

2008-08-06 Thread tapestry5
I have my app server configured to https default. Pages without @secure annotation and contributeAlias opens but all the links are still http. (Not sure why that is happening). Pages with @Secure annotation and contributeAlias will give an exception "The page isn't redirecting properly" (Not s

Re: T5: pagelink

2008-08-06 Thread Argo Vilberg
My problem is that, my first page is http and after that are pages https. If i switch to https, then ID-Card authentication is occour in tomcat. Thatsway i must use both protocol. But how to change http,https and ports in appModule.java 2008/8/6 Daniel Jue <[EMAIL PROTECTED]> > You could al

Re: T5: pagelink

2008-08-05 Thread Daniel Jue
You could also change the default HTTPS port in your app server configuration, and then your don't have to worry about modifying the URIs. The default is of course 443. "The https:// protocol can be used in exactly the same way as the http:// protocol. The differences are that HTTPS uses a defaul

Re: T5: pagelink

2008-08-05 Thread tapestry5
I have the same issue. I tried using it. It won't open the landing page. Infact if i don't put @Secure and also donot contribute it opens the landing page as https and further the links were http. Even if i make it work but still contributeAlias is good for testing but not for production. Is th

Re: T5: pagelink

2008-08-04 Thread 9902468
Hi, Use @Secure annotation and add this to your appmodule: (Also use whatever ports you wish.) public void contributeAlias(Configuration configuration) { BaseURLSource source = new BaseURLSource() { public String getBaseURL(boolean secure) {

Re: T5: pagelink

2008-08-03 Thread Shing Hing Man
Have you tried @secure annotation ? http://tapestry.apache.org/tapestry5/tapestry-core/guide/secure.html Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 3/8/08, Argo Vilberg <[EMAIL PROTECTED]> wrote: > From: Argo Vilberg <[EMAIL PROTECTED]> > Subject:

T5: pagelink

2008-08-02 Thread Argo Vilberg
hi, I want use pagelink with port 8443 and https protocol. If i use: ${currentRole.roleName} then tapestry generate http://localhost/app/start/4 But i want https://localhost:8443/app/start4 Argo

Re: [T5] PageLink context rendering

2008-07-03 Thread Thiago H. de Paula Figueiredo
Em Thu, 03 Jul 2008 09:33:39 -0300, Harald Geritzer <[EMAIL PROTECTED]> escreveu: Try context="reportLinkContext">Bericht thanks a lot - worked, my fault Don't be so hard to yourself: it's a very common error, so much that I think the Tapestry documentation should explicitly talk about

Re: [T5] PageLink context rendering

2008-07-03 Thread Harald Geritzer
Try context="reportLinkContext">Bericht thanks a lot - worked, my fault - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [T5] PageLink context rendering

2008-07-03 Thread Thiago H. de Paula Figueiredo
Em Thu, 03 Jul 2008 09:09:26 -0300, Harald Geritzer <[EMAIL PROTECTED]> escreveu: context="${reportLinkContext}">Bericht You shouldn't use expansions when passing parameters to components, because they would be converted into a String before the actual parameter passing. Try context=

[T5] PageLink context rendering

2008-07-03 Thread Harald Geritzer
hi all, i have a pagelink im my page with two context variables. i would have expected, the link would render some sort of .../pagename/contextvar1/contextvar2 so i could user the values in my onActivate(Object[] context) but renders .../pagename/[contextvar1, contextvar2] any ideas? haral

Re: T5 pagelink problem

2008-05-01 Thread Bill Holloway
It sounds like currentPhoto.id is returning the string "images" and "classes" rather than a Long. Might want to check the return type and value of the getId() method of your Photo class. I'd be tempted to put a debug breakpoint in getId() somewhere and watch the value being returned. On Thu, May

Re: T5 pagelink problem

2008-05-01 Thread Szemere Szemere
It is generally wise to have your links in the form: ${asset:context:styles/style.css} Then the links will work even if you have parameters that change the relative depth of the URL path. Szemere

Re: T5 pagelink problem

2008-05-01 Thread Toby Hobson
It seems if i change all the hrefs to /myapp/images/... or /myapp/styles/... things work ok. Is there a tapestry version of ? Thanks Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Thursday, 1 May, 2008 1:53:11 PM Subject: T5 pa

T5 pagelink problem

2008-05-01 Thread Toby Hobson
I have a strange problem with the pagelink component. I am trying to navigate from the start page to the ViewPhoto page but I get an exception: [ERROR] RequestExceptionHandler Processing of request failed withuncaught exception: Exception in methodcom.thc.web.pages.ViewPhoto.onActivate(java.lan

Re: [T5] PageLink cannot be disabled?

2007-09-05 Thread Robin Helgelin
On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > It does render its body, not nothing, if that's what you mean. Yeah, my mistake :) > I would prefer that it output a span with any informals (class etc) > too but the purists don't - had to write my own component for that. with an optional c

Re: [T5] PageLink cannot be disabled?

2007-09-05 Thread Nick Westgate
oing in T4, wasn't it? -Original Message- From: Robin Helgelin [mailto:[EMAIL PROTECTED] Sent: 05 September 2007 10:51 To: Tapestry users Subject: Re: [T5] PageLink cannot be disabled? On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Put this in your components directory

RE: [T5] PageLink cannot be disabled?

2007-09-05 Thread Kolesnikov, Alexander GNI
Well, this is exactly what it was doing in T4, wasn't it? -Original Message- From: Robin Helgelin [mailto:[EMAIL PROTECTED] Sent: 05 September 2007 10:51 To: Tapestry users Subject: Re: [T5] PageLink cannot be disabled? On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote: &g

Re: [T5] PageLink cannot be disabled?

2007-09-05 Thread Robin Helgelin
On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > Put this in your components directory and it will override Tapestry's > PageLink component unless your classes import the corelib type. [component snipped] Semi-OT question :) Wouldn't a disable PageLink component be better of to render the li

RE: [T5] PageLink cannot be disabled?

2007-09-05 Thread Kolesnikov, Alexander GNI
Thanks a lot guys! -Original Message- From: Nick Westgate [mailto:[EMAIL PROTECTED] Sent: 05 September 2007 10:37 To: Tapestry users Subject: Re: [T5] PageLink cannot be disabled? Put this in your components directory and it will override Tapestry's PageLink component unless

Re: [T5] PageLink cannot be disabled?

2007-09-05 Thread Nick Westgate
Put this in your components directory and it will override Tapestry's PageLink component unless your classes import the corelib type. (I'll submit a JIRA.) Cheers, Nick. // Copyright 2007 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // yo

Re: [T5] PageLink cannot be disabled?

2007-09-05 Thread Kristian Marinkovic
write a mixin that is able to render a pagelink that is disabled and attach it to your pagelink component. "Robin Helgelin" <[EMAIL PROTECTED]> 05.09.2007 11:14 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: [T5] PageLink

Re: [T5] PageLink cannot be disabled?

2007-09-05 Thread Robin Helgelin
On 9/5/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: > Just discovered that PageLink doesn't have a disabled parameter. That's > a pity. Any ideas how to deal wit this? Edit the source and provide your solution to the community :) -- regards, Robin --

[T5] PageLink cannot be disabled?

2007-09-05 Thread Kolesnikov, Alexander GNI
Just discovered that PageLink doesn't have a disabled parameter. That's a pity. Any ideas how to deal wit this? Thanks, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately n

Re: T5: PageLink keeping activantion context when t:context is not set.

2007-09-01 Thread Nick Westgate (Work)
What is it that you want explained? The framework generates links consistently by always calling onPassivate (if present) to generate context for the page link unless you provide a context. You've found a way to override that ... what else is there to explain? If you want a slightly shorter synta

Re: T5: PageLink keeping activantion context when t:context is not set.

2007-09-01 Thread SergeEby
Have you thought about using a null context? /Serge Thiago H de Paula Figueiredo-2 wrote: > > Em Fri, 31 Aug 2007 21:20:00 -0300, Fidel Chavarria > <[EMAIL PROTECTED]> escreveu: > >> If you need a link that points to the same page, create a Pagelink >> pointing the same page. > > I need

Re: T5: PageLink keeping activantion context when t:context is not set.

2007-09-01 Thread Thiago H. de Paula Figueiredo
Em Fri, 31 Aug 2007 21:20:00 -0300, Fidel Chavarria <[EMAIL PROTECTED]> escreveu: If you need a link that points to the same page, create a Pagelink pointing the same page. I need a link to the same page, but without the activation context. I'm using an object edit page to both new object

Re: T5: PageLink keeping activantion context when t:context is not set.

2007-08-31 Thread Fidel Chavarria
If you need a link that points to the same page, create a Pagelink pointing the same page. Thiago H de Paula Figueiredo-3 wrote: > > Hi! > > I don't understand the rationale behind this. If I'm at a page that has an > activation context and want to link to the same page, without the conte

T5: PageLink keeping activantion context when t:context is not set.

2007-08-31 Thread Thiago H de Paula Figueiredo
Hi! I don't understand the rationale behind this. If I'm at a page that has an activation context and want to link to the same page, without the context, I need to write t:context="literal:". Could somebody explain this to me? -- Thiago H. de Paula Figueiredo Desenvolvedor, Instrutor e Cons

Re: [T5] PageLink and invisible instrumentation

2007-07-13 Thread Shing Hing Man
It works for me if I set href to some value, href="#", say. Shing --- "Kolesnikov, Alexander GNI" <[EMAIL PROTECTED]> wrote: > I was trying to use PageLink in an "invisible" way, > in T4 spirit: > > t:page="Another">refresh > > However, this didn't work, and the reaction of the >

[T5] PageLink and invisible instrumentation

2007-07-13 Thread Kolesnikov, Alexander GNI
I was trying to use PageLink in an "invisible" way, in T4 spirit: refresh However, this didn't work, and the reaction of the framework was quite strange (null response?). This worked properly: refresh But hey, this isn't an example of "invisible instrumentation" because when you preview the te