Skip to content

Commit

Permalink
multipart is set to true for details form
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Sep 20, 2021
1 parent 6ee53bd commit 5f368c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ protected DetailsFragment createDetailsFragment() {
protected void initFragmentLayout() {
add(initSummaryPanel());
MidpointForm form = new MidpointForm(ID_MAIN_FORM);
form.setMultiPart(true);
add(form);

initButtons(form);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,20 @@ public class UploadDownloadPanel extends InputPanel {
private static final String DOWNLOAD_CONTENT_TYPE = "text/plain";

private final String downloadFileName = null;
private boolean isReadOnly;

public UploadDownloadPanel(String id, boolean isReadOnly) {
super(id);
initLayout(isReadOnly);
this.isReadOnly = isReadOnly;
}

private void initLayout(final boolean isReadOnly) {
@Override
protected void onInitialize() {
super.onInitialize();
initLayout();
}

private void initLayout() {
final FileUploadField fileUpload = new FileUploadField(ID_INPUT_FILE) {
private static final long serialVersionUID = 1L;

Expand Down

0 comments on commit 5f368c8

Please sign in to comment.