Re: EO Model Doc – Build Product

2010-08-24 Thread Mike Schrag
updated

On Aug 24, 2010, at 5:06 PM, Mike Schrag wrote:

> nope -- i haven't built the new one yet ...
> 
> ms
> 
> On Aug 24, 2010, at 4:54 PM, Andrew Lindesay wrote:
> 
>> Hello (Mike)
>> 
>> Thanks for applying that patch for the 

Re: EO Model Doc – Build Product

2010-08-24 Thread Mike Schrag
nope -- i haven't built the new one yet ...

ms

On Aug 24, 2010, at 4:54 PM, Andrew Lindesay wrote:

> Hello (Mike)
> 
> Thanks for applying that patch for the 

EO Model Doc – Build Product

2010-08-24 Thread Andrew Lindesay
Hello (Mike)

Thanks for applying that patch for the 

pageWithName crashes

2010-08-24 Thread Louis Demers
Hi,
Finally got things somewhat running on the new macbook (running eclipse 
3.6 et woplips 3.6.6135 as well as the latest Wonder). The code that sued to 
work and is deployed did not compile. The most major thing was the refusal by 
the displaygroup editor to refuse the editingcontext to be specified as 
session.defaultEditingContext. Had to create a local variable ec (public for 
now) and use that instead. Now it compiles and runs with a crash at runtime 
(stack trace below).
Here are the tidbits of importance

PageMenu.java includes the following code
// 
__
public ProjectList goCoreProjectSearch() {
ProjectList aPage;
aPage = (ProjectList) pageWithName(ProjectList.class);
<-crashes in there
aPage.goCoreProjectSearch();
return aPage;
}
// 
__

ProjectList.java includes the following code
// 
__
public class ProjectList extends ERXComponent {
// variables deleted...
public ProjectList(WOContext context) {
super(context);   <-crashes in there
ec = session().defaultEditingContext();
dg = new WODisplayGroup();

dg.setNumberOfObjectsPerBatch(ERXProperties.intForKeyWithDefault("com.obzerv.objectsPerBatch",
 25));

fs = 
EOFetchSpecification.fetchSpecificationNamed("projectsSearch", "Project");
log.debug("ProjectList EOFetchSpecification " + fs);

ds = new 
EODatabaseDataSource(session().defaultEditingContext(), "Project");
log.debug("ProjectList EODatabaseDataSource " + ds);

ds.setFetchSpecification(fs);
dg.setDataSource(ds);

editable = false;
projectStatusList = ProjectStatus.fetchAllProjectStatuses(ec, 
ERXS.ascs("sortOrder"));

}
// 
__
Tried using fully qualified package names and a few other things without 
success ...


Thanks in advance.


Louis Demers eng.
Vice-President
Obzerv Technologies Inc.
400 Jean Lesage, suite 201
Quebec, QC, Canada
G1K 8W1
T418.524.3522
F418.524.6745
www.obzerv.com


__ Stack trace_
[2010-8-24 15:5:1 EDT]  Initialized : er.extensions.ERXExtensions
[2010-8-24 15:5:2 EDT]  Couldn't load properties file: 
/Users/admin/WebObjects.properties at path: /Users/admin
Aug 24 15:05:02 WARN  NSLog  - Couldn't load properties file: 
/Users/admin/WebObjects.properties at path: /Users/admin
Aug 24 15:05:02 DEBUG NSLog  - WOMaxIOBufferSize=8196
Aug 24 15:05:02 DEBUG NSLog  - WOWorkerThreadCountMin=16
Aug 24 15:05:02 DEBUG NSLog  - WOSocketMonitorSleepTime=50
Aug 24 15:05:02 DEBUG NSLog  - WOStatisticsPassword=2dark2c
Aug 24 15:05:02 DEBUG NSLog  - WODirectConnectEnabled=true
Aug 24 15:05:02 DEBUG NSLog  - WOIncludeCommentsInResponse=false
Aug 24 15:05:02 DEBUG NSLog  - WOWorkerThreadCount=8
Aug 24 15:05:02 DEBUG NSLog  - WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
Aug 24 15:05:02 DEBUG NSLog  - WOLaunchdEnabled=false
Aug 24 15:05:02 DEBUG NSLog  - WOIDE=WOLips
Aug 24 15:05:02 DEBUG NSLog  - WODebuggingEnabled=true
Aug 24 15:05:02 DEBUG NSLog  - WOListenQueueSize=128
Aug 24 15:05:02 DEBUG NSLog  - WOMissingResourceSearchEnabled=true
Aug 24 15:05:02 DEBUG NSLog  - WOApplicationClassName=com.obzerv.Application
Aug 24 15:05:02 DEBUG NSLog  - WOSessionStoreClassName=WOServerSessionStore
Aug 24 15:05:02 DEBUG NSLog  - WOContextClassName=WOContext
Aug 24 15:05:02 DEBUG NSLog  - WOCachingEnabled=false
Aug 24 15:05:02 DEBUG NSLog  - WOAcceptMalformedCookies=false
Aug 24 15:05:02 DEBUG NSLog  - NSProjectSearchPath=("..")
Aug 24 15:05:02 DEBUG NSLog  - WOMonitorEnabled=false
Aug 24 15:05:02 DEBUG NSLog  - WOAllowRapidTurnaround=true
Aug 24 15:05:02 DEBUG NSLog  - WOGenerateWSDL=true
Aug 24 15:05:02 DEBUG NSLog  - WOWorkerThreadCountMax=256
Aug 24 15:05:02 DEBUG NSLog  - WOAllowsConcurrentRequestHandling=false
Aug 24 15:05:02 DEBUG NSLog  - WOAdaptor=WODefaultAdaptor
Aug 24 15:05:02 DEBUG NSLog  - WOSessionTimeOut=3600
Aug 24 15:05:02 DEBUG NSLog  - WOMaxSocketIdleTime=18
Aug 24 15:05:02 DEBUG NSLog  - WODefaultUndoStackLimit=10
Aug 24 15:05:02 DEBUG NSLog  - WOAutoOpenClientApplication=true
Aug 24 15:05:02 DEBUG NSLog  - WOAutoOpenInBrowser=true
Aug 24 15:05:02 DEBUG NSLog  - WOApplicationBaseURL=/WebObjects
Aug 24 15:05:02 DEBUG NSLog  - WOMaxHeaders=200
Aug 24 15:05:02 DEBUG NSLog  - WOLifebeatEnabled=true
Aug 24 15:05:02 DEBUG NSLog  - WOAllowsCacheCont

Re: WO and Hadoop

2010-08-24 Thread Giles Palmer

Hi

I'm sorry but we have really hacked at ERAttachments in our subclasses  
and I doubt that we could easily share the code.  I will take look  
though and if I think it would be of use then I have no problem with  
sharing.


Regards

Giles


Any plans to release your ERAttachment extension to the outside  
world? :-)



Hi

We have an application in development that will use Hadoop HDFS and  
HBase for storing binary data that is not suitable for our postgres  
db.  We have extended the ERAttachments framework to use HDFS or  
HBase depending upon the size of the attachment data being  
persisted.  At the moment we have found the integration with the  
hadoop api to be simple and straightforward.  However as yet there  
has been minimal testing as the application is still in  
development.  Eventually this will all be deployed to EC2.


Regards

Giles



Is anyone using WO with Hadoop on the backend?  Any experiences  
good or bad?


Thanks.
-Mike

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lists%40cedarstone.co.uk

This email sent to li...@cedarstone.co.uk


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca

This email sent to prob...@macti.ca




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

This email sent to arch...@mail-archive.com


Re: Framework Does Not Exist

2010-08-24 Thread David Avendasora
Hi all (mostly Mike, Anjo, other WOProject gurus)

I've tried looking at the source of woproject to figure out why it wouldn't be 
recognizing the Ajax framework when it seems to fine ERExtensions and ERJars, 
etc just fine.

Does anyone have any ideas??

Dave


On Aug 23, 2010, at 3:36 PM, David Avendasora wrote:

> Hi Pascal,
> 
> My apologies, "hudson.build.properties" is what I used to be calling it. I 
> have changed the name to simply "build.properties" to make sure there wasn't 
> something going weird with the name.
> 
> Here's the build script that setsup the Hudson workspace and dynamically 
> creates the build.properties file for the job (look at the very end):
> http://services.wocommunity.org:8080/job/ERModernMoviesDemo/ws/HudsonBuildFiles/setupWOProjectWorkspace.sh/*view*/
> 
> Then you can compare that to the file it creates:
> http://services.wocommunity.org:8080/job/ERModernMoviesDemo/ws/Root/build.properties/*view*/
> 
> Looking at the build.xml file:
> http://services.wocommunity.org:8080/job/ERModernMoviesDemo/ws/Projects/Application/build.xml/*view*/
> 
> I can't see why what I'm doing isn't working on Linux.
> 
> Dave
> 
> 
> 
> 
> On Aug 23, 2010, at 3:23 PM, Pascal Robert wrote:
> 
>> 
>>> I have a custom hudson.build.properties file that I'm passing into Ant 
>>> using the -propertyfile argument. It defines the wo.local.root and 
>>> wo.local.frameworks variables and I've verified that the frameworks do 
>>> exist in the locations defined.
>> 
>> Shouldn't we see a hudson.build.properties line in the output? Right now, we 
>> see :
>> 
>> jar:file:/usr/local/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a 
>> zip file
>> [property] Loading 
>> /var/lib/hudson/jobs/ERModernMoviesDemo/workspace/Projects/Application/build.properties
>> [property] Loading /var/lib/hudson/Library/Application 
>> Support/WOLips/wolips.properties
>> 
>> But no mention of "hudson.build.properties". I don't know if it's normal or 
>> not :-) Does hudson.build.properties should be call on the "call ant" 
>> section of the configure page, eg :
>> 
>>  build -verbose -propertyfile ${WORKSPACE}/Root/build.properties -lib 
>> ${WORKSPACE}/Root/lib/woproject.jar
>> 
>> ?
>> 
>>> What is very odd is that if I don't pass this file in, the build fails at 
>>> the same point, but complaining about ERExtensions as opposed to Ajax, so 
>>> it seems to me that the properties are correctly defined, but there is 
>>> something wrong with the Ajax framework, but I can't see any difference 
>>> (including case-sensitivity issues).
>>> 
>>> So again, this is the same config.xml file for hudson on both Mac and 
>>> Linux, they both checkout the same revision of Wonder and the same revision 
>>> of ERModernMovies.
>>> 
>>> Any ideas as to why the build is failing on Linux?
>>> 
>>> Dave
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>>> 
>>> This email sent to prob...@macti.ca
>> 
>> 
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
> 
> This email sent to webobje...@avendasora.com
> 
> 

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

This email sent to arch...@mail-archive.com


Re: D2W/ERModernLook in non D2W app

2010-08-24 Thread Tim Worman
On Aug 24, 2010, at 5:57 AM, David LeBer wrote:

> 
> On 2010-08-24, at 3:26 AM, Tim Worman wrote:
> 
>> On Jun 10, 2010, at 7:56 AM, David Holt wrote:
>> 
>>> On 2010-06-10, at 7:44 AM, "Andrew R. Kinnie"  wrote:
>>> 
 OK . . . I started typing that in, and realized something I missed . . . I 
 copied the ERModernMoviesDemo d2w.d2wmodel file, but did not copy the 
 ERModernDefaultSkin d2w.d2wmodel file into the skin.
 
 Now it works.  Mostly.  The tab panel's tabs are not tabs, but rather 
 strings running together.
>>> 
>>> This one is easy ;-)
>>> 
>>> If you edit the localizable strings file you will see that the words needs 
>>> to be wrapped in  tags. CSS issue. See demo for examples. Also, check 
>>> the archives of this and the wonder list where David explains what is going 
>>> on here.
>>> 
>>> David
>> 
>> I'm just following up on this because now I'm having the same problem. I've 
>> edited the localizable.strings file with my two entities, Jobs and 
>> Employees, however, I'm still getting just strings where the tabs should be. 
>> I also included this in my properties file:
>> 
>> ERXNavigationManager.localizeDisplayKeys=true
>> 
>> I have the exact same configuration working in a separate app but not with 
>> the D2W functionality in my existing app. I'm probably just missing 
>> something because I've burned through the midnight oil.
> 
> You no longer need to do the localized string mambo, just set this property:
> 
> er.extensions.ERXNavigationManager.includeLabelSpanTag=true
> 
> ;david
> 

Awesome! Thanks so much.

Tim Worman
UCLA GSE&IS ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERModernDirectToWeb relationship problem

2010-08-24 Thread Tim Worman
On Aug 24, 2010, at 6:03 AM, David LeBer wrote:

> 
> On 2010-08-24, at 3:36 AM, Tim Worman wrote:
> 
>> I've set up an existing project to use ERModernDirectToWeb for some CRUD 
>> functionality. But I'm having a problem that I can't seem to solve by 
>> adjusting the rules. Wherever I view the detail on an entity (edit or 
>> inspect) all of the relationships display surrounded by a fully functioning 
>> page wrapper as defined using "
>> pageWrapperName" in user.d2wmodel. The same page wrapper also properly wraps 
>> the entire page but I end up getting a full set of menus and menu header 
>> around every relationship.
>> 
>> Thanks for any pointers.
> 
> Do you have a rule like:
> 
> 10 : pageConfiguration like '*Embedded*' => pageWrapperName = 
> "ERDEmptyPageWrapper"
> 
> ;david

No, I don't. I just have the rule declaring pageWrapperName. I'll try that. 
I'll try it when I get back later today. I really appreciate the tips. D2W and 
the rule system are really foreign to me. This stuff is really great though.


Tim Worman
UCLA GSE&IS

> 
> --
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site: http://codeferous.com
> blog: http://davidleber.net
> profile:  http://www.linkedin.com/in/davidleber
> twitter:  http://twitter.com/rebeld
> --
> Toronto Area Cocoa / WebObjects developers group:
> http://tacow.org
> 
> 
> 
> 

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

This email sent to arch...@mail-archive.com


Re: WO and Hadoop

2010-08-24 Thread Pascal Robert
Any plans to release your ERAttachment extension to the outside world? :-)

> Hi
> 
> We have an application in development that will use Hadoop HDFS and HBase for 
> storing binary data that is not suitable for our postgres db.  We have 
> extended the ERAttachments framework to use HDFS or HBase depending upon the 
> size of the attachment data being persisted.  At the moment we have found the 
> integration with the hadoop api to be simple and straightforward.  However as 
> yet there has been minimal testing as the application is still in 
> development.  Eventually this will all be deployed to EC2.
> 
> Regards
> 
> Giles
> 
> 
> 
>> Is anyone using WO with Hadoop on the backend?  Any experiences good or bad?
>> 
>> Thanks.
>> -Mike
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/lists%40cedarstone.co.uk
>> 
>> This email sent to li...@cedarstone.co.uk
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> This email sent to prob...@macti.ca

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

This email sent to arch...@mail-archive.com


Re: ERModernDirectToWeb relationship problem

2010-08-24 Thread David LeBer

On 2010-08-24, at 3:36 AM, Tim Worman wrote:

> I've set up an existing project to use ERModernDirectToWeb for some CRUD 
> functionality. But I'm having a problem that I can't seem to solve by 
> adjusting the rules. Wherever I view the detail on an entity (edit or 
> inspect) all of the relationships display surrounded by a fully functioning 
> page wrapper as defined using "
> pageWrapperName" in user.d2wmodel. The same page wrapper also properly wraps 
> the entire page but I end up getting a full set of menus and menu header 
> around every relationship.
> 
> Thanks for any pointers.

Do you have a rule like:

10 : pageConfiguration like '*Embedded*' => pageWrapperName = 
"ERDEmptyPageWrapper"

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




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

This email sent to arch...@mail-archive.com


Re: D2W/ERModernLook in non D2W app

2010-08-24 Thread David LeBer

On 2010-08-24, at 3:26 AM, Tim Worman wrote:

> On Jun 10, 2010, at 7:56 AM, David Holt wrote:
> 
>> On 2010-06-10, at 7:44 AM, "Andrew R. Kinnie"  wrote:
>> 
>>> OK . . . I started typing that in, and realized something I missed . . . I 
>>> copied the ERModernMoviesDemo d2w.d2wmodel file, but did not copy the 
>>> ERModernDefaultSkin d2w.d2wmodel file into the skin.
>>> 
>>> Now it works.  Mostly.  The tab panel's tabs are not tabs, but rather 
>>> strings running together.
>> 
>> This one is easy ;-)
>> 
>> If you edit the localizable strings file you will see that the words needs 
>> to be wrapped in  tags. CSS issue. See demo for examples. Also, check 
>> the archives of this and the wonder list where David explains what is going 
>> on here.
>> 
>> David
> 
> I'm just following up on this because now I'm having the same problem. I've 
> edited the localizable.strings file with my two entities, Jobs and Employees, 
> however, I'm still getting just strings where the tabs should be. I also 
> included this in my properties file:
> 
> ERXNavigationManager.localizeDisplayKeys=true
> 
> I have the exact same configuration working in a separate app but not with 
> the D2W functionality in my existing app. I'm probably just missing something 
> because I've burned through the midnight oil.

You no longer need to do the localized string mambo, just set this property:

er.extensions.ERXNavigationManager.includeLabelSpanTag=true

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




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

This email sent to arch...@mail-archive.com


Re: WO and Hadoop

2010-08-24 Thread Giles Palmer

Hi

We have an application in development that will use Hadoop HDFS and  
HBase for storing binary data that is not suitable for our postgres  
db.  We have extended the ERAttachments framework to use HDFS or HBase  
depending upon the size of the attachment data being persisted.  At  
the moment we have found the integration with the hadoop api to be  
simple and straightforward.  However as yet there has been minimal  
testing as the application is still in development.  Eventually this  
will all be deployed to EC2.


Regards

Giles



Is anyone using WO with Hadoop on the backend?  Any experiences good  
or bad?


Thanks.
-Mike

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lists%40cedarstone.co.uk

This email sent to li...@cedarstone.co.uk


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

This email sent to arch...@mail-archive.com


Issue with ERXResponseRewriter.addStylesheetResourceInHead()

2010-08-24 Thread Bogdan Zlatanov
Hi all,


Yesterday, I noticed a problem with 
ERXResponseRewriter.addStyleSheetResourceInHead(WOResponse response, WOContext 
context, String framework, String fileName, String media) method, while working 
a project. Details follow with some sample code for illustration:

Let's say I have two components, called Main and MyComponent with the 
following contents:

Main.html:





Main.wod:

MyComponent : MyComponent {}



MyComponent.html: 



MyComponent.wod:

MyAjaxUpdateLink : AjaxUpdateLink {
action = updateStuff;
replaceID = "contentContainer";
}

MyComponent.java:

public WOActionsResult updateStuff() {
// code that updates stuff here
return null;
}

public void appendToResponse(WOResponse aResponse, WOContext 
aContext) {
super.appendToResponse(aResponse, aContext);
AjaxUtils.addStyleSheetResourceInHead(aContext, 
aResponse, "/css/my_component.css");
}


Given the above, the first time Main page is invoked, the 
my_component.css file is loaded inline, and everything is fine. But when the 
update link is clicked, the contents of the "contentContainer" div gets 
replaced, but the inline CSS declaration is not added again, because 
ERXResponseRewriter thinks the resource is already added. Looking at the 
ERXResponseRewriter.java I could see the code commented:

// MS: It looks like all the browsers can load CSS inline, so 
we don't
// even need all this.
// String fallbackStartTag;
// String fallbackEndTag;
// if (ERXAjaxApplication.isAjaxRequest(context.request())) {
// fallbackStartTag = "AOD.loadCSS('";
// fallbackEndTag = "')";
// }
// else {
// fallbackStartTag = null;
// fallbackEndTag = null;
// }
// ERXResponseRewriter.addResourceInHead(response, context, 
framework,
// fileName, cssStartTag, cssEndTag, fallbackStartTag, 
fallbackEndTag,
// TagMissingBehavior.SkipAndWarn);


Uncommenting it solved my problem, so I modified it a bit:

String fallbackStartTag = null;
String fallbackEndTag = null;

if (ERXAjaxApplication.isAjaxRequest(context.request()) && 
ERXProperties.booleanForKeyWithDefault("er.extensions.loadOnDemand", true)) {
if 
(ERXAjaxApplication.isAjaxReplacement(context.request()) && 
ERXProperties.booleanForKeyWithDefault("er.extensions.loadOnDemandDuringReplace",
 false)) {
boolean appendTypeAttribute = 
ERXProperties.booleanForKeyWithDefault("er.extensions.ERXResponseRewriter.javascriptTypeAttribute",
 false);
fallbackStartTag = (appendTypeAttribute ? 
"AOD.loadCSS('" : "