[Building Sakai] Debugging Javascript & Velocity

Daniel Merino daniel.merino at unavarra.es
Wed Apr 24 04:02:49 PDT 2013


Hi everybody.

I'm trying to fix a local patch that does not work, but I'm not able to 
find the error. Is Javascript code running inside a Velocity template, 
two technologies that I don't know very well. I hope some experienced 
developer can help me.

In a vm file inside content tool, I have this code:

<input type="button" class="active" name="savechanges" id="savechanges" 
onclick="javascript:showNotif('submitnotifxxx','savechanges','addContentForm');document.getElementById('addContentForm').action='#toolLink("ResourcesAction" 
"doMultipleFoldersUpload")';submitform('addContentForm');" 
value="$tlang.getString("label.continue")" accesskey="s" />

that renders a Continue button. This button should call 
doMultipleFoldersUpload method in ResourcesAction.java class, but I have 
checked that this method is not called and no error is shown inside 
Tomcat's logs.

I don't know how to continue in order to detect this error. Could 
somebody give me any hint or idea?

If you need more information, just tell me.

Thanks in advance.
Best regards,
-- 
Daniel Merino Echeverría
daniel.merino at unavarra.es
Gestor de teleformación - Centro Superior de Innovación Educativa.
Tfno: 948-168489 - Universidad Pública de Navarra.


More information about the sakai-dev mailing list