myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Marti <bruno.ma...@evard.ch>
Subject Re: Light Weight Dialog is not rendering Select Boxes on initial rendering on IE 6 but works on IE 7
Date Fri, 12 Dec 2008 08:35:36 GMT

There is a JIRA-Issue on that, see:
https://issues.apache.org/jira/browse/TRINIDAD-1340
There is also a workaround commented.


Bruno Marti wrote:
> 
> I've detected the same dialog problem in IE6 with a tr:table with multiple
> pages (pagging). 
> The page chooser (drop-down box) isn't displayed on first load of dialog,
> but the links "prev/next" besides the drop-down box are displayed.
> The script below doesn't solve the problem neither.
> 
> (myfaces 1.1.5, trinidad 1.0.10) 
> 
> 
> 
> Richard Yee-3 wrote:
>> 
>> We created the org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
>> package directory under our project source directory and put the
>> ChooseDateRenderer.java class there. The class loader should then pick
>> up the class from the WEB-INF/classes directory before it gets to
>> search the jar. Try putting a logging statement in the code to see if
>> the patched ChooseDateRenderer class is being used.
>> 
>> Note that this patch only fixes the problem with tr:inputDate. There
>> is a general problem with selectOneChoice dropdown lists and
>> lightweight dialogs with IE6. To fix the problem on lightweight
>> dialogs that have dropdown we use the following javascript function
>> 
>> function dialogComponentRefresh() {
>>    var arg = dialogComponentRefresh.arguments;
>>    for(i=0;i<arg.length;i++) {
>>       if(document.getElementById(arg[i]) != null) {
>>         document.getElementById(arg[i]).style.cssText = 'display:
>> inline !important; visibility: visible !important;';
>>       }
>>    }
>> 
>> and run it using the onload attribute of the tr:document tag.
>> 
>> We still have the minor problem of select boxes on a page disappearing
>> when a lightweight dialog is displayed and reappearing when the dialog
>> is closed.
>> 
>> 
>> -Richard
>> 
>> On Thu, Dec 4, 2008 at 11:59 AM, Manickam <manickam@nsf.org> wrote:
>>>
>>> Sorry we were using ChooseDateRenderer.java , I mistyped it.
>>>
>>> Our problem is that we have quite a few dialog screens where there are
>>> select boxes and shuttle components. Both of these are not rendering
>>> with
>>> light weight dialog and IE 6. Works fine on iE 7 and obviously works
>>> fine on
>>> 6 & 7 with popup dialog.
>>>
>>> Can you let us know how you included this java file into your JDeveloper
>>> Project?
>>>
>>> thanks,
>>> Kannappan
>>>
>>>
>>> Richard Yee-3 wrote:
>>>>
>>>> Did you get ChooseRenderer.java or ChooseDateRenderer.java? We are
>>>> using ChooseDateRenderer and that fixed the problem with the month and
>>>> year select boxes. We are also using JDeveloper.
>>>>
>>>> -Richard
>>>>
>>>> On Thu, Dec 4, 2008 at 11:09 AM, Manickam <manickam@nsf.org> wrote:
>>>>>
>>>>> We added the ChooseRenderer.java downloaded from the JIRA site
>>>>> (https://issues.apache.org/jira/browse/TRINIDAD-1071) into our project
>>>>> code
>>>>> with package as
>>>>> "org.apache.myfaces.trinidadinternal.renderkit.core.xhtml"
>>>>> and left the trinidad jar file un touched in the WEB_INF/LIB folder.
>>>>> This
>>>>> didn't take any effect when we ran from JDEVELOPER.
>>>>>
>>>>> We then tried the second approach where we compiled this class,
>>>>> exploded
>>>>> the
>>>>> trinidad 1.0.10 jar file, took the compiled class(there were 2 because
>>>>> of
>>>>> subclass) files add included into the exploded trinidad 1.0.10 jar
>>>>> replacing
>>>>> the original one. Then we rebuilt the jar file and included into our
>>>>> project, this didn't solve the issue as well.
>>>>>
>>>>> thanks,
>>>>> Kan
>>>>>
>>>>>
>>>>> Richard Yee-3 wrote:
>>>>>>
>>>>>> Where did you download the ChooseRenderer.java class from? For the
>>>>>> ChooseDateRenderer.java patch, we added the .java file to our sources
>>>>>> and it fixed the select boxes in the tr:inputDate. We now just
>>>>>> noticed
>>>>>> that any select boxes that are on the page disappear whenever the
>>>>>> calendar lightweight dialog is displayed. I'd like to add the
>>>>>> ChooseRenderer.java to our sources to see if that fixes this new
>>>>>> problem.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>> On Thu, Dec 4, 2008 at 6:12 AM, Manickam <manickam@nsf.org>
wrote:
>>>>>>>
>>>>>>> Richard,
>>>>>>>
>>>>>>> Thanks for your response. We tried donwloading the Choose Renderer
>>>>>>> class
>>>>>>> from the patch and compiled the same and included into the Trinidad
>>>>>>> 1.10
>>>>>>> jar
>>>>>>> files but this did not resolve the issue.
>>>>>>>
>>>>>>> Please let us know how to include this ChooseRenderer.java path
into
>>>>>>> our
>>>>>>> project.
>>>>>>>
>>>>>>> thanks,
>>>>>>> Kannappan
>>>>>>>
>>>>>>>
>>>>>>> Richard Yee-3 wrote:
>>>>>>>>
>>>>>>>> Gerhard,
>>>>>>>> Are you using IE 6? What version of Trinidad are you using?
This
>>>>>>>> bug
>>>>>>>> was reported back in May, 2008. It is pretty easy to reproduce.
>>>>>>>>
>>>>>>>> -Richard
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Nov 14, 2008 at 12:29 PM, Gerhard Petracek
>>>>>>>> <gerhard.petracek@gmail.com> wrote:
>>>>>>>>> hello,
>>>>>>>>>
>>>>>>>>> it works fine in my application. so it shouldn't be a
general
>>>>>>>>> issue.
>>>>>>>>>
>>>>>>>>> regards,
>>>>>>>>> gerhard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2008/11/14 Manickam <manickam@nsf.org>
>>>>>>>>>>
>>>>>>>>>> We used to have Popup Dialog in our applications
with Trinidad
>>>>>>>>>> 1.02
>>>>>>>>>> version
>>>>>>>>>> and are in the process of upgrading to 1.0.9 verion
with light
>>>>>>>>>> weight
>>>>>>>>>> dialog. The dialog works fine but the Single and
Multiple Select
>>>>>>>>>> boxes
>>>>>>>>>> are
>>>>>>>>>> not getting rendered on the light weight dialog on
initial load.
>>>>>>>>>> Once
>>>>>>>>>> the
>>>>>>>>>> dialog is loaded and we refresh the frame and click
any button
>>>>>>>>>> the
>>>>>>>>>> frame
>>>>>>>>>> the
>>>>>>>>>> select boxes starts showing up. I'm not sure where
the issue is,
>>>>>>>>>> any
>>>>>>>>>> help
>>>>>>>>>> would be greatly appreciated.
>>>>>>>>>>
>>>>>>>>>> thanks,
>>>>>>>>>> Kan Manickam
>>>>>>>>>> NSF International
>>>>>>>>>> --
>>>>>>>>>> View this message in context:
>>>>>>>>>> http://www.nabble.com/Light-Weight-Dialog-is-not-rendering-Select-Boxes-on-initial-rendering-on-IE-6-but-works-on-IE-7-tp20507433p20507433.html
>>>>>>>>>> Sent from the MyFaces - Users mailing list archive
at Nabble.com.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> http://www.irian.at
>>>>>>>>>
>>>>>>>>> Your JSF powerhouse -
>>>>>>>>> JSF Consulting, Development and
>>>>>>>>> Courses in English and German
>>>>>>>>>
>>>>>>>>> Professional Support for Apache MyFaces
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://www.nabble.com/Re%3A-Light-Weight-Dialog-is-not-rendering-Select-Boxes-on-initial-rendering-on-IE-6-but-works-on-IE-7-tp20507796p20834148.html
>>>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Re%3A-Light-Weight-Dialog-is-not-rendering-Select-Boxes-on-initial-rendering-on-IE-6-but-works-on-IE-7-tp20507796p20840317.html
>>>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Re%3A-Light-Weight-Dialog-is-not-rendering-Select-Boxes-on-initial-rendering-on-IE-6-but-works-on-IE-7-tp20507796p20841259.html
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-Light-Weight-Dialog-is-not-rendering-Select-Boxes-on-initial-rendering-on-IE-6-but-works-on-IE-7-tp20507796p20971380.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message