Heyvaert / wiquery

Automatically exported from code.google.com/p/wiquery
0 stars 0 forks source link

Setting merge resource to true produces a problem using certain javascript contributors #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Implement IWiQuerySettings in Application with the following settings.
    @Override
    public WiQuerySettings getWiQuerySettings()
    {
        WiQuerySettings settings = new WiQuerySettings();
        settings.setAutoImportJQueryResource(true);
        settings.setAutoImportJQueryUIResource(true);
        settings.setEnableResourcesMerging(false);
        settings.setEmbedGeneratedStatements(true);

        return settings;
    }
2. Implement IWiQueryPlugin on component with the following contributor.

    @Override
    public void contribute(WiQueryResourceManager wiQueryResourceManager) {
        wiQueryResourceManager.addJavaScriptResource(WidgetJavascriptResourceReference.get());
        wiQueryResourceManager.addJavaScriptResource(MouseJavascriptResourceReference.get());
        wiQueryResourceManager.addJavaScriptResource(SliderJavaScriptResourceReference.get());
    }

3.  Go to the page with the component.  The component will not work correctly.

What is the expected output? What do you see instead?

The expected out put in debug console (using chrome) is nothing, and the jquery 
slider/widget should draw and work correctly.

The error is the following in chrome debug console:

wiquery-merged.js_CoreJavaScriptResourceReference_jquery:jquery-1.5.1.min.jsCore
UIJavaScriptResourceReference_jquery.ui.core.min.jsCoreEffectJavaScriptResourceR
eference_jquery.effects.core.min.jsScaleEffectJavaScriptResourceReference_jquery
.effects.scale.min.jsExplodeEffectJavaScriptResourceReference_jquery.effects.exp
lode.min.jsSlideEffectJavaScriptResourceReference_jquery.effects.slide.min.js:2U
ncaught SyntaxError: Unexpected token :
Programmer:26

Uncaught ReferenceError: jQuery is not defined

No slider is drawn, and no animation will occur since jQuery is not loaded.

What version of the product are you using? On what operating system?
Using WiQuery 1.2.3 with Wicket 1.4.15.  This resulting issue has been tested 
in tomcat 6 as well as Jboss 5 on Windows 7 and Ubuntu Linux.

Original issue reported on code.google.com by joe.x.zh...@gmail.com on 12 Jun 2011 at 1:59

GoogleCodeExporter commented 9 years ago
The issue was either
-not reproducable
-there is a newer version available
-reported in a version which is no longer supported

if the issue is still present in the latest version (6.9+) then please reopen 
the issue with the required information to reproduce the issue.

Original comment by hielke.hoeve on 26 Nov 2013 at 8:37