Hi Thiago,
Thanks for your response.
I already solved the issue using PageRenderLinkSource.
Regards
Akshay
On Mon, Jan 26, 2015 at 1:26 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Sat, 24 Jan 2015 13:10:10 -0200, akshay
> wrote:
>
> Hi,
>>
>
> Hi!
>
> Can anyone pleas
On Sat, 24 Jan 2015 13:10:10 -0200, akshay
wrote:
Hi,
Hi!
Can anyone please suggest me a way of redirecting/rendering a page with
context from my current page.
I'm sorry, I'm not following you. Redirecting and rendering a page are
completely different actions with completely different
This will probably help:
T5.4:
http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/returntypes1
T5.3:
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1
Cheers,
Geoff
On 25 Jan 2015, at 4:43 am, Chris Poulsen wrote:
> return t
return the link from the handler and tapestry will redirect/render it
On Sat, Jan 24, 2015 at 5:05 PM, akshay wrote:
> Hi Chris,
>
> Well I have already tried using PageRenderLinkSource for getting the
> link"project/details/10871".
> Once I get the link I transfrom it to absolute URI and then
Hi Chris,
Well I have already tried using PageRenderLinkSource for getting the
link"project/details/10871".
Once I get the link I transfrom it to absolute URI and then java.net.URL to
render the specific page( which is not tapestry way).
The PageRenderLinkSource gives you the link, but we need
PageRenderLinkSource or @InjectPage / set fields / return page / rely on
onPassivate
On Sat, Jan 24, 2015 at 4:10 PM, akshay wrote:
> Hi,
>
> Can anyone please suggest me a way of redirecting/rendering a page with
> context from my current page.
>
> This what I have been doing:-
>
> @Inject
>
You could get rid of the unnecessary interface using @InjectService or a
marker annotation
eg:
binder.bind(MethodAdvice.class,
ExceptionDisplayMethodAdviceImpl.class).withId("foo");
...
@InjectService("foo")
private MethodAdvice advice;
More info here:
http://tapestry.apache.org/defining-tapestr
I'm not sure if the following is what the hints above meant, however it works,
in case it can be useful to others. Thanks for the help.
-
package myproject.tapestry.services;
import org.apache.tapestry5.plastic.MethodAdvice;
public interface ExceptionDisplayMethodAdv
As a simple rule, if you instantiated the object yourself, @Inject won't
work.
See here:
private final MethodAdvice advice = new MethodAdvice() ...
You've used "new" so it's not under tapestry's control.
Hello,
I have the following class to handle the execution of methods that are
annotated with
On Wed, 18 Jun 2014 12:01:16 -0300, Davide Vecchi wrote:
Hi,
Hi!
Sorry, I don't understand. Do you mean that I'm right that
PageRenderLinkSource and Response should be only injected into pages or
components ?
Nope. I said it can be injected into pages, components, mixins,
Tapestry-I
Hi,
Sorry, I don't understand. Do you mean that I'm right that PageRenderLinkSource
and Response should be only injected into pages or components ?
Could you elaborate a little bit about including Tapestry-IoC services and
objects instantiated using ObjectLocator.autobuild() ?
On Wed, 18 Jun 2014 11:47:16 -0300, Davide Vecchi wrote:
Hello,
Hi!
I have the following class to handle the execution of methods that are
annotated with a custom @ExceptionDisplay annotation. Everything works
as expected, but I would like to redirect to a page. I'm using
PageRenderLin
Why are you redirecting from the "validation" method ? Wouldn't be more
intuitive to redirect from the "success" method ?
On Wed, Jan 16, 2013 at 9:03 AM, Taha Siddiqi wrote:
> @Inject
> private PageRenderLinkSource linkSource;
>
>
> Object onMyEvent(){
>Link link = linkSource.createPageRende
@Inject
private PageRenderLinkSource linkSource;
Object onMyEvent(){
Link link = linkSource.createPageRenderLink(Index.class);
link.addParameter("xyz", "abc");
return link;
}
On Jan 16, 2013, at 12:29 PM, mateen wrote:
> Hi,
>
> In my code after i validate the username and password
14 matches
Mail list logo