• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Style Sheets in WebObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Style Sheets in WebObjects


  • Subject: Re: Style Sheets in WebObjects
  • From: "Clive Roberts" <email@hidden>
  • Date: Fri, 13 May 2005 13:27:24 +0100

That's better - thanks
 
Clive
----- Original Message -----
From: Mike Schrag
To: Clive Roberts
Cc: Colin Shreffler ; WebObjects (Group)
Sent: Friday, May 13, 2005 12:52 PM
Subject: Re: Style Sheets in WebObjects

Wonder has ERXStyleSheet, but it isn't a stateless component ... It's pretty simple to make your own if you want though.  Here's the one I use:

import com.webobjects.appserver.WOElement;
import com.webobjects.appserver._private.WOConstantValueAssociation;
import com.webobjects.appserver._private.WOHTMLURLValuedElement;
import com.webobjects.foundation.NSDictionary;

public class MDTStyleSheet extends WOHTMLURLValuedElement {
  public MDTStyleSheet(String _name, NSDictionary _assocationsDictionary, WOElement _template) {
    super("link", _assocationsDictionary, _template);
    if (_associations.objectForKey("rel") == null) {
      _associations.setObjectForKey(new WOConstantValueAssociation("stylesheet"), "rel");
    }
    if (_associations.objectForKey("type") == null) {
      _associations.setObjectForKey(new WOConstantValueAssociation("text/css"), "type");
    }
  }

  protected String urlAttributeName() {
    return "href";
  }
}

 



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Style Sheets in WebObjects (From: Colin Shreffler <email@hidden>)
 >Re: Style Sheets in WebObjects (From: "Clive Roberts" <email@hidden>)
 >Re: Style Sheets in WebObjects (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Style Sheets in WebObjects
  • Next by Date: Re: Style Sheets in WebObjects
  • Previous by thread: Re: Style Sheets in WebObjects
  • Next by thread: Re : Style Sheets in WebObjects
  • Index(es):
    • Date
    • Thread