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 At this time, if you have : {quote} <form target="uploadXXXContent" type="upload"> <field name="uploadedFile" title="${uiLabelMap.CommonUpload}"><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 |
[ https://issues.apache.org/jira/browse/OFBIZ-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Malin updated OFBIZ-4483: --------------------------------- Attachment: OFBIZ-4483.png OFBIZ-4483.patch > 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" title="${uiLabelMap.CommonUpload}"><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 |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Malin updated OFBIZ-4483: --------------------------------- Description: 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 was: At this time, if you have : {quote} <form target="uploadXXXContent" type="upload"> <field name="uploadedFile" title="${uiLabelMap.CommonUpload}"><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 > 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 |
In reply to this post by Nicolas Malin (Jira)
[ 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 |
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/ |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Malin updated OFBIZ-4483: --------------------------------- Attachment: OFBIZ-4483.patch Hi Erwan, I update the patch with trunk. This work's fine for me > 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.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 |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erwan de FERRIERES updated OFBIZ-4483: -------------------------------------- Assignee: Erwan de FERRIERES > 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 > Assignee: Erwan de FERRIERES > Priority: Minor > Attachments: OFBIZ-4483.patch, 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 |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221037#comment-13221037 ] Erwan de FERRIERES commented on OFBIZ-4483: ------------------------------------------- Hi Nicolas, I tested your patch, it's working well. But before integration, I need it to autodetect the MIME type, and not let the user choose the type. Regards, > 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 > Assignee: Erwan de FERRIERES > Priority: Minor > Attachments: OFBIZ-4483.patch, 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 |
Free forum by Nabble | Edit this page |