Hi,
I have dependency on Restful table in atlassian-plugin.xml as follows
<dependency>com.atlassian.auiplugin:aui-restfultable</dependency>
and Restful Table instance in JavaScript file is as follows
AJS.toInit(function () {
window.restTable = new AJS.RestfulTable({
el: AJS.$("#application-config-table"),
autoFocus: true,
resources: {
all: AJS.params.baseURL+"/rest/myplugin/1.0/all",
self: AJS.params.baseURL+"/rest/myplugin/1.0/"
},
columns: [
{
id: "optionText",
header: "Options"
}
]
});
}
);
and html consists of this
$webResourceManager.requireResourcesForContext("com.ublox.jira.plugins.attributes.multiselect")
<html>
<head>
<title>Applications Admin Page</title>
<meta name="decorator" content="atl.admin"/>
<meta name="admin.active.section" content="atl.jira.proj.config"/>
</head>
<body>
<table id="application-config-table"></table>
</body>
</html>
restful table loads the data successfully but unable to post the data, inspecting the request headers i found that the restful table was posting with empty body even if there was a data to send in the input form.
When i removed the decorator
<meta name=“decorator” content=“atl.admin”/>
it started working fine. so i assume there are some problems with the events fired specially the change event is unable to work properly if the “atl.admin” decorator is present.
I am really stuck here it would really be appreciated if someone responds to this.
Thanks.