jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven Doxia
  • Maven Doxia
  • DOXIA-395

Add sink.script

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Sink API
  • Labels:
    None
  • Number of attachments :
    0

Description

For some particular use, would be nice to insert javascript, in the <head> part for example :
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
A sink.script(String text) is enough

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lukas Theussl added a comment - 07/Jun/10 4:06 AM

This should be achieved with the unknown sink even, available since Doxia 1.1. The XhtmlSink should understand something like

Object[] required = new Object[] { new Integer( HtmlMarkup.TAG_TYPE_SIMPLE ) };
SinkEventAttributeSet attribs = new SinkEventAttributeSet(new String[] {"type", "text/javascript","src", "http://www.google.com/jsapi"});
sink.unknown( HtmlMarkup.SCRIPT.toString(), required, attribs );
Show
Lukas Theussl added a comment - 07/Jun/10 4:06 AM This should be achieved with the unknown sink even, available since Doxia 1.1. The XhtmlSink should understand something like Object [] required = new Object [] { new Integer ( HtmlMarkup.TAG_TYPE_SIMPLE ) }; SinkEventAttributeSet attribs = new SinkEventAttributeSet( new String [] { "type" , "text/javascript" , "src" , "http: //www.google.com/jsapi" }); sink.unknown( HtmlMarkup.SCRIPT.toString(), required, attribs );

People

  • Assignee:
    Lukas Theussl
    Reporter:
    QualiteSys QualiteSys
Vote (0)
Watch (0)

Dates

  • Created:
    05/Jun/10 3:33 PM
    Updated:
    07/Jun/10 4:06 AM
    Resolved:
    07/Jun/10 4:06 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.