refs 6548: TDM - Migrate TabMan to new PortalContext
Task-Url: https://support.d4science.org/issues/6548 Updated to new PortalContext git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-codelistmapping-import-widget@142126 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c937d56635
commit
03d7ae1885
|
@ -77,19 +77,18 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
|
|||
doLayout();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
StringBuilder actionUrl = new StringBuilder();
|
||||
actionUrl.append(GWT.getModuleBaseURL());
|
||||
actionUrl.append(Constants.CODELIST_MAPPING_UPLOAD_SERVLET);
|
||||
actionUrl.append(Constants.CODELIST_MAPPING_UPLOAD_SERVLET + "?"
|
||||
+ Constants.CURR_GROUP_ID + "="
|
||||
+ GCubeClientContext.getCurrentContextId());
|
||||
setAction(actionUrl.toString());
|
||||
|
||||
|
||||
Log.info("Start Upload action Url " + actionUrl.toString());
|
||||
|
||||
|
||||
|
||||
setWidth("100%");
|
||||
|
||||
|
||||
|
||||
|
||||
setEncoding(Encoding.MULTIPART);
|
||||
setMethod(Method.POST);
|
||||
}
|
||||
|
@ -98,13 +97,13 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
|
|||
final CodelistMappingSession codelistMappingSession) {
|
||||
VerticalLayoutContainer content = new VerticalLayoutContainer();
|
||||
content.setWidth("100%");
|
||||
|
||||
|
||||
Hidden currGroupID = new Hidden();
|
||||
currGroupID.setName(Constants.CURR_GROUP_ID);
|
||||
currGroupID.setValue(GCubeClientContext.getCurrentContextId());
|
||||
|
||||
|
||||
content.add(currGroupID);
|
||||
|
||||
|
||||
fileUploadField = new FileUploadField();
|
||||
fileUploadField.setName("uploadFormElement");
|
||||
fileUploadField.setWidth("100%");
|
||||
|
@ -151,10 +150,9 @@ public class CodelistMappingFileUploadPanel extends FormPanel {
|
|||
btnCancel = new TextButton(msgs.btnCancelText());
|
||||
btnCancel.hide();
|
||||
content.add(btnCancel, new VerticalLayoutData(-1, -1));
|
||||
|
||||
|
||||
add(content);
|
||||
|
||||
|
||||
btnUpload.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
|
Loading…
Reference in New Issue