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:
Ariel Backenroth
2006-12-12 03:13:23 +00:00
parent 66ca97a16a
commit cb80c75014
12 changed files with 559 additions and 176 deletions

View File

@@ -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));
}