portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/xdocs portlet_config_WebPagePortlet.xml changes.xml
Date Tue, 05 Feb 2002 05:43:46 GMT
paulsp      02/02/04 21:43:46

  Modified:    src/java/org/apache/jetspeed/util HTMLRewriter.java
               docs/site portlet_config_WebPagePortlet.html changes.html
               xdocs    portlet_config_WebPagePortlet.xml changes.xml
  Log:
  Add - Adding to HTMLRewrite. Thanks to Ozgur Balsoy (PS)
  o Added support for HREF in AREA tag
  o Added "openInNewWindow" parameter to insert TARGET="_BLANK" attribute in AREA tag
  
  Revision  Changes    Path
  1.9       +13 -0     jakarta-jetspeed/src/java/org/apache/jetspeed/util/HTMLRewriter.java
  
  Index: HTMLRewriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/HTMLRewriter.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- HTMLRewriter.java	11 Jan 2002 23:52:31 -0000	1.8
  +++ HTMLRewriter.java	5 Feb 2002 05:43:46 -0000	1.9
  @@ -82,6 +82,10 @@
    *   o HREF attribute   - URL merged with base URL (See Note 1)
    *   o TARGET attribute - Set to "_BLANK" if it does not exist 
    *                        and openInNewWindow = TRUE
  + * <AREA>
  + *   o HREF attribute   - URL merged with base URL (See Note 1)
  + *   o TARGET attribute - Set to "_BLANK" if it does not exist 
  + *                        and openInNewWindow = TRUE
    * <APPLET>
    *   o Optionally included
    *   o CODEBASE attribute - Set to the current path if it does
  @@ -518,6 +522,15 @@
              // first we do an URL-rewrite on different tags
               
               if (tag == HTML.Tag.A) {
  +                if (attrs.getAttribute(HTML.Attribute.HREF) != null) {
  +                    // ---- CHECKING <A HREF
  +                    addConvertedAttribute( HTML.Attribute.HREF,
  +                    attrs );
  +                }
  +                if ((attrs.getAttribute(HTML.Attribute.TARGET) == null) && cb.openInNewWindow)
{
  +                    attrs.addAttribute(HTML.Attribute.TARGET, "_BLANK");
  +                }
  +            } else if (tag == HTML.Tag.AREA) {
                   if (attrs.getAttribute(HTML.Attribute.HREF) != null) {
                       // ---- CHECKING <A HREF
                       addConvertedAttribute( HTML.Attribute.HREF,
  
  
  
  1.9       +5 -1      jakarta-jetspeed/docs/site/portlet_config_WebPagePortlet.html
  
  Index: portlet_config_WebPagePortlet.html
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/docs/site/portlet_config_WebPagePortlet.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- portlet_config_WebPagePortlet.html	5 Feb 2002 05:27:26 -0000	1.8
  +++ portlet_config_WebPagePortlet.html	5 Feb 2002 05:43:46 -0000	1.9
  @@ -688,7 +688,7 @@
                                                   <table border="0" cellspacing="0" cellpadding="2"
width="100%">
         <tr><td bgcolor="#525D76">
           <font color="#ffffff" face="arial,helvetica,sanserif">
  -          <a name="Rewriting or HTML tags"><strong>Rewriting or HTML tags</strong></a>
  +          <a name="Rewriting of HTML tags"><strong>Rewriting of HTML tags</strong></a>
           </font>
         </td></tr>
         <tr><td>
  @@ -712,6 +712,10 @@
    *   o Unless otherwise mentioned, comments are striped.
    * 
    * &lt;A&gt;
  + *   o HREF attribute   - URL merged with base URL (See Note 1)
  + *   o TARGET attribute - Set to &quot;_BLANK&quot; if it does not exist 
  + *                        and openInNewWindow = TRUE
  + * &lt;AREA&gt;
    *   o HREF attribute   - URL merged with base URL (See Note 1)
    *   o TARGET attribute - Set to &quot;_BLANK&quot; if it does not exist 
    *                        and openInNewWindow = TRUE
  
  
  
  1.11      +7 -0      jakarta-jetspeed/docs/site/changes.html
  
  Index: changes.html
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/docs/site/changes.html,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- changes.html	5 Feb 2002 05:27:26 -0000	1.10
  +++ changes.html	5 Feb 2002 05:43:46 -0000	1.11
  @@ -234,6 +234,13 @@
          <li>Add parameter "open_in_popup" to enable opening links in a new bowser
window.</li>
       </ul>
   </li>
  +<li>
  +  Add - Adding to HTMLRewrite. Thanks to Ozgur Balsoy (PS)
  +  <ul>
  +    <li>Added support for HREF in AREA tag</li>
  +    <li>Added "openInNewWindow" parameter to insert TARGET="_BLANK" attribute in
AREA tag</li>
  +  </ul>
  +</li>
             </ul>
                               </blockquote>
           </p>
  
  
  
  1.5       +5 -1      jakarta-jetspeed/xdocs/portlet_config_WebPagePortlet.xml
  
  Index: portlet_config_WebPagePortlet.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/xdocs/portlet_config_WebPagePortlet.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- portlet_config_WebPagePortlet.xml	5 Feb 2002 05:27:26 -0000	1.4
  +++ portlet_config_WebPagePortlet.xml	5 Feb 2002 05:43:46 -0000	1.5
  @@ -348,7 +348,7 @@
         </p>
       </section>
     
  -    <section name="Rewriting or HTML tags">  
  +    <section name="Rewriting of HTML tags">  
         <p>
           The following is from the util/HTMLRewriter.java
         </p>
  @@ -359,6 +359,10 @@
    *   o Unless otherwise mentioned, comments are striped.
    * 
    * <A>
  + *   o HREF attribute   - URL merged with base URL (See Note 1)
  + *   o TARGET attribute - Set to "_BLANK" if it does not exist 
  + *                        and openInNewWindow = TRUE
  + * <AREA>
    *   o HREF attribute   - URL merged with base URL (See Note 1)
    *   o TARGET attribute - Set to "_BLANK" if it does not exist 
    *                        and openInNewWindow = TRUE
  
  
  
  1.19      +8 -1      jakarta-jetspeed/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/xdocs/changes.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- changes.xml	5 Feb 2002 05:27:26 -0000	1.18
  +++ changes.xml	5 Feb 2002 05:43:46 -0000	1.19
  @@ -1,6 +1,6 @@
   <?xml version="1.0" encoding="iso-8859-1"?>
   <!--
  -$Id: changes.xml,v 1.18 2002/02/05 05:27:26 paulsp Exp $
  +$Id: changes.xml,v 1.19 2002/02/05 05:43:46 paulsp Exp $
   -->
   <document>
     <properties>
  @@ -129,6 +129,13 @@
          <li>Do not cache an page the has "no-cache" set or expiration=0.</li>
          <li>Add parameter "open_in_popup" to enable opening links in a new bowser
window.</li>
       </ul>
  +</li>
  +<li>
  +  Add - Adding to HTMLRewrite. Thanks to Ozgur Balsoy (PS)
  +  <ul>
  +    <li>Added support for HREF in AREA tag</li>
  +    <li>Added "openInNewWindow" parameter to insert TARGET="_BLANK" attribute in
AREA tag</li>
  +  </ul>
   </li>
             </ul>
       </section>
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message