Re: API for obtaining absolute URL of the page?

2009-12-13 Thread Kristian Marinkovic
hi

just inject the LinkSource service and create a Link 
object which can generate the absolute URL of a page:

@Inject
private LinkSource linkSource;

@Inject 
private ComponentResources resources;

public void create() {
String absolute = 
linkSource.createPageRenderLink(resources.getPageName(), 
false).toAbsoluteURI();
}


g,
kris



Ilya Obshadko  
12.12.2009 13:52
Bitte antworten an
"Tapestry users" 


An
Tapestry users 
Kopie

Thema
API for obtaining absolute URL of the page?






Just curious, if there is an API that could create absolute URL of the 
given
page?

Looking at Link interface, there IS a method createAbsoluteURI(), but it
creates only URI, not URL meaningful for outside world. Still this kind of
API would be very useful, for example for RSS feeds, mail notifications 
and
any other sort of content that is not viewed on the website itself.

I know that it's possible to @Inject HttpServletRequest and obtain all
necessary data from it, but maybe I'm missing some easier way to do that?

-- 
Ilya Obshadko



Tapestry 5 and Selenium

2009-12-13 Thread Ville Virtanen

Hi,

I've googled around but couldn't find solution for this one. The problem is
that we have to test a form that is loaded using progressive display which
makes all the ids to be generated for each request.

Now, how can I use selenium.type to locate the correct input, when the input
name changes like this:

request one: mpo-1258bc89493_0
request two: mpo-1258bcae418_0
request three: mpo-1258dfea345_0

Has anyone solved this?

 - Ville
-- 
View this message in context: 
http://old.nabble.com/Tapestry-5-and-Selenium-tp26773754p26773754.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.1.0.5 Return Page with many blocks in a zone?

2009-12-13 Thread alanearl

I dont think iframes will work,
In iframes you need a src but the problem
is i cannot return the src.

Yes, i think component will do...

Thanks man you gave me an idea!
have a nice day...


Ashwanth Kumar wrote:
> 
> Well, I dont think you can return Page A, into Page B. If u want so,
> instead
> of Blocks, why not use iframes?
> 
> If you cant use iframes then, try converting you Page A, into a component
> and add it to page B, onDemand! After all, Tapestry is all about that r8?
> 
> HTH
>  - Ashwanth Kumar
> 
> On Mon, Dec 14, 2009 at 6:22 AM, alanearl  wrote:
> 
>>
>> Im making a page zone in Tapestry 5.1.0.5.
>> I know how to use page links.
>>
>> PageLink
>> EventLink
>> ActionLink
>>
>> But my problem is how will i return a pages into it specific block?
>>
>> I can directly return page a into page b.
>> But i cannot return from page a into page b.1 or page b.2 or page b.3.
>>
>> Any ideas?
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/T5.1.0.5-Return-Page-with-many-blocks-in-a-zone--tp26771630p26771630.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/T5.1.0.5-Return-Page-with-many-blocks-in-a-zone--tp26771630p26773266.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.1.0.5 Return Page with many blocks in a zone?

2009-12-13 Thread Ashwanth Kumar
Well, I dont think you can return Page A, into Page B. If u want so, instead
of Blocks, why not use iframes?

If you cant use iframes then, try converting you Page A, into a component
and add it to page B, onDemand! After all, Tapestry is all about that r8?

HTH
 - Ashwanth Kumar

On Mon, Dec 14, 2009 at 6:22 AM, alanearl  wrote:

>
> Im making a page zone in Tapestry 5.1.0.5.
> I know how to use page links.
>
> PageLink
> EventLink
> ActionLink
>
> But my problem is how will i return a pages into it specific block?
>
> I can directly return page a into page b.
> But i cannot return from page a into page b.1 or page b.2 or page b.3.
>
> Any ideas?
>
>
> --
> View this message in context:
> http://old.nabble.com/T5.1.0.5-Return-Page-with-many-blocks-in-a-zone--tp26771630p26771630.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


T5.1.0.5 Return Page with many blocks in a zone?

2009-12-13 Thread alanearl

Im making a page zone in Tapestry 5.1.0.5.
I know how to use page links.

PageLink
EventLink
ActionLink

But my problem is how will i return a pages into it specific block?

I can directly return page a into page b.
But i cannot return from page a into page b.1 or page b.2 or page b.3.

Any ideas?


-- 
View this message in context: 
http://old.nabble.com/T5.1.0.5-Return-Page-with-many-blocks-in-a-zone--tp26771630p26771630.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org