mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
first pass at add content from xforms ui
- added an add content panel to the file picker which enables browsing the local disk to select content to upload. the file is uploaded without requiring a browser refresh by targeting a hidden iframe. the server response includes a js call which notifies the form that the upload is complete. - added annotations to ajax methods to enable specifying the response mime type of the method. needed for uploadFile which returns html rather than xml - minor cleanup in schemaformbuilder - added mapping between xsl-fo mimetypes and those in mimetype map git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4576 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -233,7 +233,7 @@ public class AVMEditBean
|
||||
{
|
||||
private final FormsService ts = FormsService.getInstance();
|
||||
|
||||
public Document getContent()
|
||||
public Document load()
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -247,7 +247,8 @@ public class AVMEditBean
|
||||
}
|
||||
}
|
||||
|
||||
public void setContent(final Document d)
|
||||
public void save(final Document d,
|
||||
final String[] uploadedFilePaths)
|
||||
{
|
||||
AVMEditBean.this.setEditorOutput(this.ts.writeXMLToString(d));
|
||||
}
|
||||
|
Reference in New Issue
Block a user