Skip to content

Instantly share code, notes, and snippets.

@natecavanaugh
Forked from eduardolundgren/gist:1642112
Created January 19, 2012 19:47
Show Gist options
  • Save natecavanaugh/1642136 to your computer and use it in GitHub Desktop.
Save natecavanaugh/1642136 to your computer and use it in GitHub Desktop.
Services
Liferay.Service('user/get-user-by-id', fn);
Liferay.Service('user/get-user-by-id', {}, fn);
Liferay.Service({
'user/get-user-by-id': {}
}, fn);
Liferay.Service({
service: 'assetvocabulary/get-vocabularies',
data: { vocabularyIds: [10455,13014] },
on: {
success: function(event){
console.log(this.get('responseData');
}
}
}
});
Liferay.Service({
service: {
'user/get-user-by-id': {}
},
on: {
success: function(event){
console.log(this.get('responseData');
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment