Exception in production mode & css with datatables

144 views
Skip to first unread message

gaetan

unread,
Aug 29, 2013, 11:34:46 AM8/29/13
to tapestry...@googlegroups.com
Hi,

i have some problems :
1) i have one exception when i turn PRODUCTION_MODE from "false" to "true".

[ERROR] AssetsModule.ResourceMinimizer JavaScript compression problems for resource 'core' JavaScript stack, for locale fr, resources=classpath:org/got5/tapestry5/jquery/jquery_core/jquery-1.7.2.min.js, classpath:org/got5/tapestry5/jquery/ui_1_8_24/minified/jquery.ui.core.min.js, classpath:org/got5/tapestry5/jquery/ui_1_8_24/minified/jquery.ui.position.min.js, classpath:org/got5/tapestry5/jquery/ui_1_8_24/minified/jquery.ui.widget.min.js, classpath:org/got5/tapestry5/jquery/ui_1_8_24/minified/jquery.effects.core.min.js, classpath:org/got5/tapestry5/jquery/jquery.json-2.2.js, classpath:org/got5/tapestry5/jquery/ui_1_8_24/minified/jquery.effects.highlight.min.js, classpath:org/got5/tapestry5/jquery/jquery.effects.show.js, classpath:org/got5/tapestry5/jquery/noconflict.js, classpath:org/apache/tapestry5/underscore_1_3_3.js, classpath:org/apache/tapestry5/scriptaculous_1_9_0/prototype.js, classpath:org/apache/tapestry5/scriptaculous_1_9_0/scriptaculous.js, classpath:org/apache/tapestry5/scriptaculous_1_9_0/effects.js, classpath:org/apache/tapestry5/t5-core.js, classpath:org/apache/tapestry5/t5-spi.js, classpath:org/apache/tapestry5/t5-prototype.js, classpath:org/apache/tapestry5/t5-init.js, classpath:org/apache/tapestry5/t5-pubsub.js, classpath:org/apache/tapestry5/t5-events.js, classpath:org/apache/tapestry5/t5-dom.js, classpath:org/apache/tapestry5/t5-console.js, classpath:org/apache/tapestry5/t5-ajax.js, classpath:org/apache/tapestry5/t5-formfragment.js, classpath:org/apache/tapestry5/t5-alerts.js, classpath:org/apache/tapestry5/tapestry.js, classpath:org/apache/tapestry5/tapestry-console.js, classpath:org/apache/tapestry5/tree.js, classpath:org/apache/tapestry5/tapestry-messages.js, classpath:org/got5/tapestry5/jquery/jquery-noconflict.js:
[ERROR] AssetsModule.ResourceMinimizer java.lang.RuntimeException
java.lang.RuntimeException
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceNumber(JavaScriptCompressor.java:299)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:336)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533)

and 

[ERROR] AssetsModule.ResourceMinimizer JavaScript compression problems for resource 'DataTableStack' JavaScript stack, for locale fr, resources=classpath:org/got5/tapestry5/jquery/assets/components/datatables/jquery.dataTables.min.js, classpath:org/got5/tapestry5/jquery/assets/components/datatables/dataTables.js:
[ERROR] AssetsModule.ResourceMinimizer String index out of range: 89044
java.lang.StringIndexOutOfBoundsException: String index out of range: 89044

it looks like it doesn't like my local variable 'fr' to compress.

This is my app module :

configuration.add(SymbolConstants.PRODUCTION_MODE, "true");      
configuration.add(SymbolConstants.SUPPORTED_LOCALES, "fr");
configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");
configuration.add(JQuerySymbolConstants.JQUERY_UI_DEFAULT_THEME, "context:css/themes/redmond/jquery-ui-1.9.2.custom.css");
configuration.add(JQuerySymbolConstants.JQUERY_ALIAS, "$j");

Is there a bad configuration in my app module?

2) My second problem is when i try to add some css in using datatable, i tried many ways to add css but it is not like some example i can see in web.
I try to use themeroller, i downloaded theme from jquery and used te following file \jquery-ui-1.9.2.custom\css\cupertino\ jquery-ui-1.9.2.custom.css.
Is it the good file?

i tried 2 ways to import css file as :
configuration.add(JQuerySymbolConstants.JQUERY_UI_DEFAULT_THEME, "context:css/themes/redmond/jquery-ui-1.9.2.custom.css");
or 
@ImportJQueryUI(theme = "context:css/themes/redmond/jquery-ui-1.9.2.custom.css")

i have this result :


there is others css file to import? to use themeroller?

my configuration:
i use tapestry-jquery 3.3.7 & tapestry 5.3.6

thanks you for your help.








Emmanuel DEMEY

unread,
Sep 10, 2013, 10:59:19 AM9/10/13
to tapestry...@googlegroups.com
hi, 

Sorry for replying so late. 

I have tried your first problem, and I can not reproduce it. can you send me directly a short tapestry application with the issue, than I can launch and maybe find the solution ? 


For the second problem, when you do not override the jQuery Ui CSS, do you have the same ufgly look and feel ? Normally, you did the right thing. 

maybe you should do the same . 

Manu



2013/8/29 gaetan <dufour...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.e...@gmail.com

Twitter : @EmmanuelDemey

gaetan

unread,
Sep 12, 2013, 4:51:29 AM9/12/13
to tapestry...@googlegroups.com
Hi,

I will try to send you a short application, i tried different things to solve the problem but it still there.
For second point,the problem is solved,  it was just a problem with one of my css file.

thanks you for you support.
Reply all
Reply to author
Forward
0 new messages