Hi, 

just duplicate the package structure for this particular class within your 
src-folder.
i.e. 
/src/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/ChooseDateRenderer.java

Then you can copy content of the original source file into this file.
Additionally you add your extensions/patches.

This source file is then compiled to WEB-INF/classes, as all your other classes.
During runtime the classloader looks in WEB-INF/classes first, then in 
trinidad-impl.jar.
Therefore your patched version of this class is loaded.

Kind regards

  Harald
  

**************************************
Harald Kuhn
AirPlus International
Business Information Services
Phone:   +49 (0) 61 02 204-821
Fax:     +49 (0) 61 02 204-139
E-Mail:   [EMAIL PROTECTED]
Internet:  www.airplus.com
**************************************

AirPlus International - Winner of the Buying Business Travel Diamond Award 2008 
for Best Corporate Card Provider

Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 
Neu-Isenburg · Deutschland · Geschäftsführer: Patrick W. Diemer (Vorsitz), 
Klaus Busch · Vorsitzender des Aufsichtsrates: Stephan Gemkow · 
Handelsregister: Amtsgericht Offenbach/Main, HRB 8119  


-----Original Message-----
From: Hardik Shah [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 2:59 PM
To: [email protected]
Subject: RE: [trinidad]bug calendar


hi
thanks for showing interest

i am not good in ant or maven 

i can use eclipse easily,i can found particular function of class of package 

but how can i replace it for pre-compiled class files jar

simply want to ask how to achieve it




Kuhn, Harald wrote:
> 
> Hi, 
> 
> this is true for all comboboxes shown within a dialog in IE6.
> Trinidad is hiding input components while launching a lightweight dialog
> in IE6. 
> Therefore these components are not visible until the first refresh/reload
> of the dialog content.
> 
> For custom dialogs dialogs it is possible to "reshow" these components
> with a JS onLoad-function with the following content:
>       document.getElementById(<id of element>).style.cssText = 'display: 
> inline
> !important; visibility: visible !important;
> 
> To achieve the same for <tr:inputDate> we had to patch the Renderer
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ChooseDateRenderer
> Invoke the following method at the very end of encodeAll():
> 
>   private void _renderShowComboBoxScriptForIE6(FacesContext       
> context,
>                                                RenderingContext    arc,    
>                                                FacesBean           bean,
>                                                String              baseId)
> throws IOException {
>     if ("ie".equals(arc.getAgent().getAgentName()) && 
>         arc.getAgent().getAgentVersion().startsWith("6")) {
>       // IE6 only
>       final ResponseWriter writer = context.getResponseWriter();
>       final String monthId = (baseId != null) ? baseId +
> ChooseDateRenderer.MONTH_PARAM : ChooseDateRenderer.MONTH_PARAM;
>       final String yearId = (baseId != null) ? baseId +
> ChooseDateRenderer.YEAR_PARAM : ChooseDateRenderer.YEAR_PARAM;
>       
>       writer.startElement("script", null);
>       writer.writeAttribute("type", "text/javascript", null);
>       writer.writeText("window.onload=showCombo; \n", null);
>       writer.writeText("function showCombo() { \n", null);
>       // Normal Trinidad onLoad;
>       writer.writeText("_checkLoad(); \n", null);      
>       writer.writeText("document.getElementById('" + monthId +
> "').style.cssText = 'display: inline !important; visibility: visible
> !important;'; \n", null);
>       writer.writeText("document.getElementById('" + yearId + 
> "').style.cssText = 'display: inline !important; visibility: visible
> !important;'; \n", null);
>       // ToDo: Resize iframe to remove scrollbars:
>       writer.writeText("return true; \n", null);
>       writer.writeText("} \n", null);
>       
>       writer.endElement("script");
>     }
> 
> Kind regards
> 
>   Harald Kuhn
> 
> 
> **************************************
> Harald Kuhn
> AirPlus International
> Business Information Services
> Phone:         +49 (0) 61 02 204-821
> Fax:   +49 (0) 61 02 204-139
> E-Mail:         [EMAIL PROTECTED]
> Internet:  www.airplus.com
> **************************************
> 
> AirPlus International - Winner of the Buying Business Travel Diamond Award
> 2008 for Best Corporate Card Provider
> 
> Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263
> Neu-Isenburg · Deutschland · Geschäftsführer: Patrick W. Diemer (Vorsitz),
> Klaus Busch · Vorsitzender des Aufsichtsrates: Stephan Gemkow ·
> Handelsregister: Amtsgericht Offenbach/Main, HRB 8119  
> 
> 
> -----Original Message-----
> From: Hardik Shah [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 06, 2008 1:44 PM
> To: [email protected]
> Subject: [trinidad]bug calendar
> 
> 
> when i try to use in demo of trinidad also
> 
> <context-param>
>    
> <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name>
>     <param-value>true</param-value>
>   </context-param>
> 
> in web.xml
> 
> strange!
> 
> light weight box comes but combo of month and year not come 
> when i click on next or prev month link it comes
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/-trinidad-bug-calendar-tp18849459p18849459.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-trinidad-bug-calendar-tp18849459p18850677.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to