fixed some file gui stuff
This commit is contained in:
parent
1f89d4fc46
commit
600e9e8a72
@ -16,6 +16,7 @@ import org.apache.wicket.markup.html.form.upload.FileUpload;
|
||||
import org.apache.wicket.markup.html.form.upload.FileUploadField;
|
||||
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
|
||||
import org.apache.wicket.markup.html.link.ResourceLink;
|
||||
import org.apache.wicket.markup.html.panel.EmptyPanel;
|
||||
import org.apache.wicket.markup.html.panel.FeedbackPanel;
|
||||
import org.apache.wicket.markup.html.panel.Panel;
|
||||
import org.apache.wicket.markup.repeater.RepeatingView;
|
||||
@ -306,9 +307,18 @@ public abstract class AbstractFilePanel extends Panel {
|
||||
inner.add(new Label("mimeType", desc.getMimeType()));
|
||||
|
||||
Boolean bool = new Boolean(desc.isThesisFile());
|
||||
Label boolLabel = new Label("isThesisFile", bool.toString());
|
||||
|
||||
Label boolLabel;
|
||||
if (bool){
|
||||
boolLabel = new Label("isThesisFile", "Yes");
|
||||
|
||||
}
|
||||
else {
|
||||
boolLabel = new Label("isThesisFile", "");
|
||||
}
|
||||
inner.add(boolLabel);
|
||||
|
||||
|
||||
Label uuid = new Label("uuid", desc.getIdentifier());
|
||||
uuid.setVisible(false);
|
||||
inner.add(uuid);
|
||||
@ -408,6 +418,7 @@ public abstract class AbstractFilePanel extends Panel {
|
||||
add(fileUploadField = new FileUploadField("fileInput"));
|
||||
|
||||
checkbox = new CheckBox("checkbox", new Model<Boolean>(isThesisFile));
|
||||
checkbox.setModelObject(true);
|
||||
add(checkbox);
|
||||
|
||||
setMaxSize(maxFileSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user