Skip to content
Snippets Groups Projects
Commit cac40b0f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

allow upload of sbgn files

parent 2c326fc1
No related branches found
No related tags found
1 merge request!53Resolve "SBGN import doesn't work"
......@@ -105,7 +105,7 @@
<p:dialog header="Add project" widgetVar="addProjectDialog" resizable="false" id="addProjectDlg" showEffect="fade" modal="true" height="500px">
<h:panelGrid id="addPanelGrid" columns="3" cellpadding="1">
<h:outputText value="File: " />
<p:fileUpload fileUploadListener="#{projectMB.handleFileUpload}" mode="advanced" auto="true" allowTypes="/(\.|\/)(xml|zip)$/" onstart="document.getElementById('addProjectForm:addProjectDlg').style.maxWidth=document.getElementById('addProjectForm:addProjectDlg').style.width;document.getElementById('addProjectForm:addProjectDlg').style.height= document.getElementById('addProjectForm:addProjectDlg').style.clientWidth;"
<p:fileUpload fileUploadListener="#{projectMB.handleFileUpload}" mode="advanced" auto="true" allowTypes="/(\.|\/)(sbgn|xml|zip)$/" onstart="document.getElementById('addProjectForm:addProjectDlg').style.maxWidth=document.getElementById('addProjectForm:addProjectDlg').style.width;document.getElementById('addProjectForm:addProjectDlg').style.height= document.getElementById('addProjectForm:addProjectDlg').style.clientWidth;"
update=" submodels,layouts,dataMining,images,projectId, projectName, addPanelGrid"/>
<cc:helpButton helpText='File with the map. For a quick start, CellDesigner files are accepted directly. Available options and
configurations of the source file are discussed in &lt;a href="#{request.contextPath}/javax.faces.resource/admin_guide.pdf.xhtml?ln=other" target="_admin_manual_" &gt;manual&lt;/a&gt;.'/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment