<tr height=10><td></td></tr>
<s:hidden name="nextAction" value="%{nextAction}" />
<s:hidden name="index" value="%{index}" />
- <s:file name="upload" key="field.upload" onChange="enableUpload()" />
+ <s:file name="upload" key="field.upload" onchange="enableUpload()" />
<tr height=10><td></td></tr>
<tr>
<td></td>
<td align=right>
- <input type="submit" name="cancel" value="<s:text name="button.cancel"/>"/>
- <input type="submit" name="doIt" value="<s:text name="button.upload"/>" disabled="true"/>
+ <s:submit theme="simple" name="cancel" key="button.cancel"/>
+ <s:submit theme="simple" name="doIt" key="button.upload" disabled="true"/>
</td>
</tr>
</table>
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);
}