Re: Wicket-contrib-accordion and Wicket-datetime YUI version clash?

2008-12-30 Thread Nino Martinez

Could be cool if we got a common place like jeremys jslib for this...

Peter Neubauer wrote:

Hi there,
when using a DateTimeField together with Wicket-contrib-accordion, it
seems my DateTimeField JS gets corrupted by the followoing header
contributors:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html; charset=utf-8 
/
titleCivilOne - put it on the Map!/title
link href=styles/styles.css rel=stylesheet 
type=text/css/
link href=images/app-icon.png rel=shortcut icon/
link href=images/app-icon.png rel=icon/
script type=text/javascript
src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;/script

script type=text/javascript
src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;/script
script type=text/javascript
src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;/script
script type=text/javascript
src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;/script
script type=text/javascript
src=resources/org.wicketstuff.accordion.AccordionPanel/accordion-menu-v2.js/script
link rel=stylesheet type=text/css
href=resources/se.waylabs.locus.LocusBasePage/accordion-menu-v2.css
/
script type=text/javascript
src=resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader-beta-min.js/script
script type=text/javascript
src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script
script type=text/javascript !--/*--![CDATA[/*!--*/
Wicket.Event.add(window, domready, function() {
if (typeof wicketCalendarInits == 'undefined') {
wicketCalendarInits = new Array();
wicketCalendarInitFinished = false;
}

Question here is - might it be that the yui-loader-beta-min.js is
loading a different version from the more explicit loader in
AccordionPanel.class, something along the lines

public void renderHead(IHeaderResponse response) {

response

.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;);
response

.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;);
response

.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;);
response

.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;);
response.renderJavascriptReference(JAVASCRIPT);
response.renderCSSReference(STYLE);
};


? I that case, how would one avoid this?

Cheers

/peter

Open Hearts, Open Minds, OpenCauses.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket-contrib-accordion and Wicket-datetime YUI version clash?

2008-12-30 Thread Peter Neubauer
Hi there,
now, updating the wicket-contrib-accordion YUI version to 2.4.1, the
one used in wicket-datetime, is solving the problem, here is the
patch!

Index: src/main/java/org/wicketstuff/accordion/AccordionPanel.java
===
--- src/main/java/org/wicketstuff/accordion/AccordionPanel.java (revision 4542)
+++ src/main/java/org/wicketstuff/accordion/AccordionPanel.java (working copy)
@@ -60,13 +60,13 @@
public void renderHead(IHeaderResponse response) {

response
-
.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;);
+
.renderJavascriptReference(http://yui.yahooapis.com/2.4.1/build/yahoo/yahoo.js;);
response
-
.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;);
+
.renderJavascriptReference(http://yui.yahooapis.com/2.4.1/build/event/event.js;);
response
-
.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;);
+
.renderJavascriptReference(http://yui.yahooapis.com/2.4.1/build/dom/dom.js;);
response
-
.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;);
+
.renderJavascriptReference(http://yui.yahooapis.com/2.4.1/build/animation/animation.js;);
response.renderJavascriptReference(JAVASCRIPT);
response.renderCSSReference(STYLE);
};


/peter

Open Hearts, Open Minds, OpenCauses.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.




On Mon, Dec 29, 2008 at 10:13 PM, Peter Neubauer
peter.neuba...@jayway.se wrote:
 Hi there,
 when using a DateTimeField together with Wicket-contrib-accordion, it
 seems my DateTimeField JS gets corrupted by the followoing header
 contributors:

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html; 
 charset=utf-8 /
titleCivilOne - put it on the Map!/title
link href=styles/styles.css rel=stylesheet 
 type=text/css/
link href=images/app-icon.png rel=shortcut icon/
link href=images/app-icon.png rel=icon/
script type=text/javascript
 src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;/script

 script type=text/javascript
 src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;/script
 script type=text/javascript
 src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;/script
 script type=text/javascript
 src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;/script
 script type=text/javascript
 src=resources/org.wicketstuff.accordion.AccordionPanel/accordion-menu-v2.js/script
 link rel=stylesheet type=text/css
 href=resources/se.waylabs.locus.LocusBasePage/accordion-menu-v2.css
 /
 script type=text/javascript
 src=resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader-beta-min.js/script
 script type=text/javascript
 src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script
 script type=text/javascript !--/*--![CDATA[/*!--*/
 Wicket.Event.add(window, domready, function() {
 if (typeof wicketCalendarInits == 'undefined') {
 wicketCalendarInits = new Array();
 wicketCalendarInitFinished = false;
 }

 Question here is - might it be that the yui-loader-beta-min.js is
 loading a different version from the more explicit loader in
 AccordionPanel.class, something along the lines

 public void renderHead(IHeaderResponse response) {

response

 .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;);
response

 .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;);
response

 .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;);
response

 .renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;);
response.renderJavascriptReference(JAVASCRIPT);
response.renderCSSReference(STYLE);
};


 ? I that case, how would one avoid this?

 Cheers

 /peter

 Open Hearts, Open Minds, 

Wicket-contrib-accordion and Wicket-datetime YUI version clash?

2008-12-29 Thread Peter Neubauer
Hi there,
when using a DateTimeField together with Wicket-contrib-accordion, it
seems my DateTimeField JS gets corrupted by the followoing header
contributors:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html; 
charset=utf-8 /
titleCivilOne - put it on the Map!/title
link href=styles/styles.css rel=stylesheet 
type=text/css/
link href=images/app-icon.png rel=shortcut icon/
link href=images/app-icon.png rel=icon/
script type=text/javascript
src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;/script

script type=text/javascript
src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;/script
script type=text/javascript
src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;/script
script type=text/javascript
src=http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;/script
script type=text/javascript
src=resources/org.wicketstuff.accordion.AccordionPanel/accordion-menu-v2.js/script
link rel=stylesheet type=text/css
href=resources/se.waylabs.locus.LocusBasePage/accordion-menu-v2.css
/
script type=text/javascript
src=resources/org.apache.wicket.extensions.yui.YuiLib/yuiloader-beta-min.js/script
script type=text/javascript
src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script
script type=text/javascript !--/*--![CDATA[/*!--*/
Wicket.Event.add(window, domready, function() {
if (typeof wicketCalendarInits == 'undefined') {
wicketCalendarInits = new Array();
wicketCalendarInitFinished = false;
}

Question here is - might it be that the yui-loader-beta-min.js is
loading a different version from the more explicit loader in
AccordionPanel.class, something along the lines

public void renderHead(IHeaderResponse response) {

response

.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js;);
response

.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js;);
response

.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js;);
response

.renderJavascriptReference(http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js;);
response.renderJavascriptReference(JAVASCRIPT);
response.renderCSSReference(STYLE);
};


? I that case, how would one avoid this?

Cheers

/peter

Open Hearts, Open Minds, OpenCauses.

GTalk:  neubauer.peter
Skype   peter.neubauer
Phone   +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter  http://twitter.com/peterneubauer

http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org- New Energy for Java - Domain Driven Development.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org