I am using Nuxeo 5.3.2
I have a gadget in src/main/resources/gadget/usersections/usersections.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="User Sections"
category="business"
render_inline="required"
scrolling="false"
author="Daniel Tellez"
directory_title="User Sections"
author_aboutme="danieltellez"
singleton="false">
<Require feature="opensocial-0.8" />
<Require feature="dynamic-height" />
<Require feature="setprefs" />
<Require feature="settitle" />
</ModulePrefs>
<UserPref name="title" display_name="Title" required="false"
default_value="My Sections"/>
<Content type="html">
<![CDATA[
<script>
var QM_Name="USER_SECTIONS";
var testMode=false;
</script>
<script type="text/javascript" language="javascript"
src="documentlists.js"></script>
<link rel="stylesheet" type="text/css" href="documentlists.css"/>
<div id="nxDocumentList">
<div class="pageNavigationControls">
<input type="image"
src="${org.nuxeo.ecm.contextPath}/icons/action_page_rewind.gif"
onclick="firstPage()"/>
<input type="image"
src="${org.nuxeo.ecm.contextPath}/icons/action_page_previous.gif"
onclick="prevPage()"/>
<span class="currentPageStatus" id="nxDocumentListPage"></span>
<input type="image"
src="${org.nuxeo.ecm.contextPath}/icons/action_page_next.gif"
onclick="nextPage()"/>
<input type="image"
src="${org.nuxeo.ecm.contextPath}/icons/action_page_fastforward.gif"onclick="lastPage()"/>
</div>
<div id="nxDocumentListData">
<img src="${org.nuxeo.ecm.contextPath}/img/standart_waiter.gif">
</div>
</div>
]]>
</Content>
</Module>
and this extension in OSGI-INF/gadget-contrib.xml:
[...]
<extension target="org.nuxeo.opensocial.gadgets.service" point="gadget">
<internalGadget name="usersections">
<mountPoint>/usersections</mountPoint>
<entryPoint>usersections.xml</entryPoint>
<directory>usersections</directory>
<category>Nuxeo</category>
<icon>workspace_64.png</icon>
</internalGadget>
</extension>
[...]
I always get a javascript error saying this, when I go into dashboard:
Error, no result from server : 500 Failed to parse JSON
And in my widget only appears the spin rolling all the time :-)
There is no error on console.
I have tried with other options, like removing entryPoint definition or change
mountPoint one, but I get other kind of errors even more sleazy.
Any idea of what is what I am doing wrong ?
--
Posted by "danieltellez" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread:
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3989#12250>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm