From: rkv Date: Sun, 18 Nov 2012 14:59:37 +0000 (+0000) Subject: Import users action is working now. X-Git-Tag: Root_Delivery1_2012_12_06~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f73712aa80c31a7f4ff81e0fceca90f5212492f5;p=tools%2Fsiman.git Import users action is working now. --- diff --git a/Workspace/Siman/WebContent/sadmin/upload.jsp b/Workspace/Siman/WebContent/sadmin/upload.jsp index 1bbfa64..6723844 100644 --- a/Workspace/Siman/WebContent/sadmin/upload.jsp +++ b/Workspace/Siman/WebContent/sadmin/upload.jsp @@ -26,13 +26,13 @@ - + - "/> - " disabled="true"/> + + diff --git a/Workspace/Siman/src/org/splat/simer/Action.java b/Workspace/Siman/src/org/splat/simer/Action.java index 4c0a974..f2848e7 100644 --- a/Workspace/Siman/src/org/splat/simer/Action.java +++ b/Workspace/Siman/src/org/splat/simer/Action.java @@ -393,12 +393,14 @@ public class Action extends ActionSupport implements ServletRequestAware, AbstractOpenObject entity = (AbstractOpenObject) _session.get(titleProperty + ".open"); - getTitleBarSettings().setProgressState( - entity.getProgressState().toString()); - getTitleBarSettings().setSelectionState(entity.getSelection()); - getTitleBarSettings().setEntryType(entity.getType().toLowerCase()); - getTitleBarSettings().setEntryTypeTitle(entity.getType()); - getTitleBarSettings().setEntryTitle(entity.getTitle()); + if (entity != null) { + getTitleBarSettings().setProgressState( + entity.getProgressState().toString()); + getTitleBarSettings().setSelectionState(entity.getSelection()); + getTitleBarSettings().setEntryType(entity.getType().toLowerCase()); + getTitleBarSettings().setEntryTypeTitle(entity.getType()); + getTitleBarSettings().setEntryTitle(entity.getTitle()); + } getTitleBarSettings().setEditDisabledProperty(editDisabledProperty); }