You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Martin Papy (JIRA)" <ji...@apache.org> on 2008/10/15 12:31:44 UTC

[jira] Created: (TAP5-286) Add the possibility (as an option) for all generated URL to include the domain and context

Add the possibility (as an option) for all generated URL to include the domain and context
------------------------------------------------------------------------------------------

                 Key: TAP5-286
                 URL: https://issues.apache.org/jira/browse/TAP5-286
             Project: Tapestry 5
          Issue Type: New Feature
    Affects Versions: 5.0.16
            Reporter: Martin Papy


Now that we have the possibility to access the Dom and manipulate it easily, we can use Tapestry to generate email based on Page Rendering... But Tapestry generate only absolute URL ( without http://mydomain.com/context/ ).

For the moment I do this in the cleanupRender phase :

String mailBody  = writer.getDocument().getRootElement.toString();

And I send the result by mail.

It would be very useful if we could tell Tapestry -maybe with a special Annotation- that we want for a particular Page/Component all URL / Link to pages / Link to Assets (and so on) to be fully qualified ( ie not /assets/xxxx/yyy.jpg but http(s)://domain.com/context/assets/xxxx/yyy.jpg )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAP5-286) Add the possibility (as an option) for all generated URL to include the domain and context

Posted by "Martin Papy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639825#action_12639825 ] 

Martin Papy commented on TAP5-286:
----------------------------------

Well... I noticed that at this point the toString() method does not include the css assets in the <head> section of the html...

So may be this is useless... 

What I tried to do is to send the Exception Report result by mail

> Add the possibility (as an option) for all generated URL to include the domain and context
> ------------------------------------------------------------------------------------------
>
>                 Key: TAP5-286
>                 URL: https://issues.apache.org/jira/browse/TAP5-286
>             Project: Tapestry 5
>          Issue Type: New Feature
>    Affects Versions: 5.0.16
>            Reporter: Martin Papy
>
> Now that we have the possibility to access the Dom and manipulate it easily, we can use Tapestry to generate email based on Page Rendering... But Tapestry generate only absolute URL ( without http://mydomain.com/context/ ).
> For the moment I do this in the cleanupRender phase :
> String mailBody  = writer.getDocument().getRootElement.toString();
> And I send the result by mail.
> It would be very useful if we could tell Tapestry -maybe with a special Annotation- that we want for a particular Page/Component all URL / Link to pages / Link to Assets (and so on) to be fully qualified ( ie not /assets/xxxx/yyy.jpg but http(s)://domain.com/context/assets/xxxx/yyy.jpg )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org