Hi Erwan,
I have no time this month :( , I check it asap.
Thanks.
Nicolas
Le 11/01/2012 21:14, Erwan de FERRIERES (Commented) (JIRA) a écrit :
[
https://issues.apache.org/jira/browse/OFBIZ-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184344#comment-13184344
]
Erwan de FERRIERES commented on OFBIZ-4483:
-------------------------------------------
NIcolas,
could you please review this patch, and tell me if it's still useful.
Thanks,
Upload content file with upload form and on-event-update-area element
---------------------------------------------------------------------
Key: OFBIZ-4483
URL: https://issues.apache.org/jira/browse/OFBIZ-4483
Project: OFBiz
Issue Type: Improvement
Components: framework
Affects Versions: SVN trunk
Reporter: Nicolas Malin
Priority: Minor
Attachments: OFBIZ-4483.patch, OFBIZ-4483.png
At this time, if you have :
{quote}
<form target="uploadXXXContent" type="upload">
<field name="uploadedFile"><file/></field>
<on-event-update-area area-target="XXX" event-type="submit"
area-id="XXX"/>
</form>
{quote}
The called service have an empty uploadFile.
The problem came from ajaxSubmitUpdateAreas that doesn't compliant with
"multi-part"
To solve it, I added a new jquery plugin : JQuery.upload, create a new
javascript function ajaxUploadUpdateAreas and synchronize MacroRenderer.
I also add an exemple on myportal with view profile (see image).
The upload plugin have a problem with return type : application/x-json, I
extend json controller to return a text/html
(http://lagoscript.org/jquery/upload/documentation)
I analyse sascha jira : OFBIZ-3878. I think it's possible to mixte both issue
to have a progressbar when the form is on upload type with js submit, I need
more analyse to set good id on js progressbar function.
Nicolas
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/