Thank you for your reply :) "diondodgen" wrote : Hi Hannes, | | Well looking at this I would check to see what the application context name of my portlet is. This should provide a bit of information of your path to your war file resources. hmm, what do you exactly mean? I can retrieve only the 'portlet context name' [doView] PortletContext context = getPortletContext(); | System.out.println(context.getPortletContextName()); But the value is null. "diondodgen" wrote : | Then make sure the <script src= "" /> matches the path of your portlet war. | | Your current path says that the grid.js is in the root folder of the core-war and I don't think you have it here. yes it is located there. Otherwise it can't be found (no syntax error in the js-console)."diondodgen" wrote : | I would pop the .js file under my /WEB-INF directory in another folder of your portlets war so | /WEB-INF/javascript/grid.js then reference it in the jsp script tags <script src="WEB-INF/javascript/grid.js" /> I've tried that, but I can only access the (and other) file(s) in the root folder of the war where the jsp is located. Should I define the *.js and *.css as a resource?
But I think, the main problem still stays: the js-console delivers the syntax error: anonymous wrote : Error: syntax error | Source File: http://localhost:8081/portal/grid.js | Line: 8 | Source Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">and this causes the other error 'Active is not defined'. Unfortunately the source of the js-file is totally illegible. I cant locate the error. Maybe someone want to try out the table (licenced under the GPL): http://www.activewidgets.com/download/activewidgets-grid-1.0-gpl.zip Regards, Hannes View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893159#3893159 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893159 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user