it's an external url, i found out it can be done this way:
new URL("http://sample.com?type='123'")
Taha Hafeez wrote
>
> What is url ? Is it a tapestry page or event.
>
> For page you can use PageRenderLinkSource#createPageRenderLinkWithContext
> and for event you can use ComponentResources#c
What is url ? Is it a tapestry page or event.
For page you can use PageRenderLinkSource#createPageRenderLinkWithContext and
for event you can use ComponentResources#createEventLink...
On Aug 2, 2012, at 9:10 AM, Angelo C. wrote:
> thanks for the fast answer, it works, in a related question, i
thanks for the fast answer, it works, in a related question, if I have
something like this:
URL u = new URL(url);
how to add some query parameters?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/redirecting-to-a-class-with-parameter-tp5714980p5714982.html
Sent from the
Hi
You can use :-
@Inject
private PageRenderLinkSource linkSource;
@OnEvent(value = EventConstants.SUBMIT, component = "premiumForm")
public Object premiumSubmit(){
return linkSource.createPageRenderLinkWithContext(Info.class,
"whateverType");
}
or may be create a property "type" in "Info"