Hi Tim,

You can substitute that Ajax css with a property:

er.extensions.ERXResponseRewriter.resource.Ajax.modalbox.css=framework.filename

Or block it altogether by setting the ERXResponseRewriter delegate:

ERXResponseRewriter.setDelegate(new ERXResponseRewriter.Delegate() {
        
        @Override
        public Resource responseRewriterWillAddResource(String framework, 
String fileName) {
                return new Resource(framework, fileName);
        }
        
        @Override
        public boolean responseRewriterShouldAddResource(String framework, 
String fileName) {
                return !("Ajax".equals(framework) && 
"modalbox.css".equals(fileName));
        }
});

Ramsey


On Aug 9, 2012, at 5:34 PM, Tim Worman wrote:

> All:
> 
> I've added my own css file for AjaxModalDialog to a custom framework and 
> assigned values in the wod for the modalboxCSS and modalboxCSSFramework 
> bindings for my AMD. I want the background to be white instead of grey. It 
> seems that no matter what I do, the modalbox.css in Ajax frameworks "wins" 
> and ensures that the background stays grey.
> 
> Strangely though, it does seem to find my css file in the framework I 
> specified. I know this is so  because the hard-coded "wait30trans.gif" can't 
> be found in the framework I've specified and a message appears in my console.
> 
> Am I just doing this wrong or is what I'm seeing the expected behavior at 
> this time?
> 
> Tim
> UCLA GSE&IS
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to