Jason Kary <[EMAIL PROTECTED]> writes:

> Hello!
> 
> Thank you for the quick response.  Ok You right. That is fixed.  Now I was
> trying to solve a bigger problem, hence I was trying to get the template to
> print out the ContextPath.
> 
> $ui.getStylecss()  seems to be returning the absolute path to the style
> sheet?  Are you seeing this bug?

Could you provide an example?  I'm not sure what the expected behavior
is, but at a cursory glance it appears that it's operating as
advirtised...


    /**
     * Retrieve the URL for the style sheet that is part
     * of a skin. The style is stored in the
     * WEBAPP/resources/ui/skins/<SKIN> directory with the
     * filename skin.css
     */
    public String getStylecss()
    {
        StringBuffer sb = new StringBuffer();

        sb.append(Turbine.getServerScheme()).
           append("://").
           append(Turbine.getServerName()).
           append(":").
           append(Turbine.getServerPort()).
           append(Turbine.getApplicationRoot()).
           append("/").
           append(resourcesDirectory).
           append(SKINS_DIRECTORY).
           append("/").
           append(getSkin()).
           append("/").
           append(SKIN_CSS_FILE);

        return sb.toString();
    }

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

Reply via email to