[ 
http://issues.apache.org/jira/browse/TAPESTRY-897?page=comments#action_12371955 
] 

Ryan Holmes commented on TAPESTRY-897:
--------------------------------------

Absolutely, the base tag should be optional to support relative image paths. 
The simplest work-around for now is to provide a dummy BaseTagWriter:

public class NullBaseTagWriter implements IRender {

  public void render(IMarkupWriter writer, IRequestCycle cycle) {
    // Intentionally blank - supresses the BASE tag.
  }
}


The HiveMind configuration:
<implementation service-id="tapestry.url.BaseTagWriter">
        <create-instance class="NullBaseTagWriter" />
</implementation>


> Base tag with pages in subfolders
> ---------------------------------
>
>          Key: TAPESTRY-897
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-897
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Henri Dupre
>     Priority: Minor

>
> when a page is located in a subfolder, tapestry Shell component renders a 
> <base href=<site/subfolder>> tag.
> This realocates all the images on the page, but this should be optional. All 
> my components point to relative resources and with a base href=... none of my 
> images is showing.
> What about an optional base property?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to