getCurrentUserId() fixed (it called the getGroupId liferay's field) and removed a useless gwt.xml file(ClientContext.gwt.xml)
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/client-context-library@133920 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3502a20fe8
commit
3708911e98
|
@ -25,7 +25,7 @@ public class GCubeClientContext implements EntryPoint {
|
|||
public static native String getCurrentUserId() /*-{
|
||||
var userId;
|
||||
if ($wnd.Liferay != null) {
|
||||
userId = $wnd.Liferay.ThemeDisplay.getScopeGroupId();
|
||||
userId = $wnd.Liferay.ThemeDisplay.getUserId();
|
||||
console.log("current userid is = " + userId);
|
||||
}
|
||||
return userId;
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module rename-to='ClientContext'>
|
||||
<!-- Inherit the core Web Toolkit stuff. -->
|
||||
<inherits name='com.google.gwt.user.User' />
|
||||
|
||||
<!-- Inherit the default GWT style sheet. You can change -->
|
||||
<!-- the theme of your GWT application by uncommenting -->
|
||||
<!-- any one of the following lines. -->
|
||||
<inherits name='com.google.gwt.user.theme.standard.Standard' />
|
||||
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
||||
|
||||
<!-- Other module inherits -->
|
||||
|
||||
<!-- Specify the app entry point class. -->
|
||||
<entry-point class='org.gcube.portal.clientcontext.client.ClientContext' />
|
||||
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client' />
|
||||
<source path='shared' />
|
||||
|
||||
</module>
|
|
@ -1,2 +0,0 @@
|
|||
sendButton = Envoyer
|
||||
nameField = Entrez votre nom
|
Loading…
Reference in New Issue