In addition to this, I've noticed if you call multiple times appendToResponse 
for the same file, eventually it will add only one line. This helps in 
situations when you're using the component alone or inside another component.

Also, make sure that your page must always have a head section. Otherwise the 
appendToResponse won't be able to detect head section and inserts the script 
before or after the component's html.

On 2010-09-27, at 3:23 PM, Mike Schrag wrote:

> the code way lets you control whether Main.css comes at the top or the bottom 
> of the list of stylesheets. in html, it will always end up at the top, but 
> you probably actually want it to override. by putting that line above or 
> below the super.appendToResponse, you can control that.
> 
> On Sep 27, 2010, at 7:03 AM, Theodore Petrosky wrote:
> 
>> 
>> 
>> I am examining the source in the Practical Wonder session from last year and 
>> I notice in the Main.java:
>> 
>> @Override
>>   public void appendToResponse(WOResponse response, WOContext context) {
>>       super.appendToResponse(response, context);
>>       ERXResponseRewriter.addStylesheetResourceInHead(response, context, 
>> "app", "Main.css");
>>   }
>> 
>> Is there a reason the appendToResponse adds the style sheet instead of this 
>> in the Main.html head section:
>> 
>> <wo:ERXStyleSheet filename = "Main.css" framework = "app" media = "screen" />
>> 
>> Or is this just a programmers style issue.
>> 
>> Ted
>> 
>> --- On Sun, 9/26/10, Pascal Robert <[email protected]> wrote:
>> 
>> From: Pascal Robert <[email protected]>
>> Subject: Re: webex and D2W
>> To: "Theodore Petrosky" <[email protected]>
>> Cc: "David Holt" <[email protected]>, [email protected]
>> Date: Sunday, September 26, 2010, 10:10 AM
>> 
>> You can view the source of the Practical Wonder session from last year here :
>>  https://services.wocommunity.org/wowodc/Movies/
>> 
>> 
>> 2010/9/26 Theodore Petrosky <[email protected]>
>> 
>> I finally discovered what I (is) needed.
>> 
>> I fairly short tutorial on implementing ERAttachment.
>> 
>> I am struggling and I just don't get it. What do I put into the properties 
>> vs. what do I add and where to get it to work.
>> I viewed the Practical Wonder from 2009 but I just can't get it to work.
>> 
>> 
>> Ted
>> 
>> 
>> 
>> --- On Tue, 9/14/10, David Holt <[email protected]> wrote:
>> 
>> 
>> 
>>> From: David Holt <[email protected]>
>>> Subject: Re: webex and D2W
>>> To: "Theodore Petrosky" <[email protected]>
>>> Cc: [email protected]
>>> Date: Tuesday, September 14, 2010, 12:50 PM
>>> I am happy to try a beginning
>>> screencast if you like (not live). What information would
>>> you like to see covered?
>>> 
>>> d
>> 
>>> 
>>> On 2010-09-13, at 6:23 AM, Theodore Petrosky wrote:
>> 
>>>> I am waiting patiently for the videos of the WOWODC
>>> 2010 for more info and knowledge on D2W and it dawned on me
>>> that perhaps there are other people that would benefit from
>>> a little D2W help.
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com
>> 
>> This email sent to [email protected]
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to