Re: AjaxModalDialog background color
Re: AjaxModalDialog background color
- Subject: Re: AjaxModalDialog background color
- From: Amedeo Mantica <email@hidden>
- Date: Fri, 10 Aug 2012 09:33:27 +0200
U can use CSS !important too
Amed
Sent from my iPhone
On 10/ago/2012, at 03:41, Tim Worman <email@hidden> wrote:
> Thanks Ramsey. Good tip.
>
> I may have to find another way. I was hoping to maintain the flexibility to style the component on the fly even within the app. It seems like I have to clobber it to get what I want. Maybe the best move is to sub-class it.
>
> Tim
>
> On Aug 9, 2012, at 5:43 PM, Ramsey Gurley <email@hidden> wrote:
>
>> 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@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>
>
> _______________________________________________
> 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
_______________________________________________
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