xforms:submission bug

classic Classic list List threaded Threaded
3 messages Options
hcr
Reply | Threaded
Open this post in threaded view
|

xforms:submission bug

hcr
 
 Hi, I find a bug with xforms:submission.
 
Orbeon version: Orbeon Forms 3.7 beta 1;
view.xhtml:
   <xforms:submission id="replace-all-submission" method="post"
        ref="instance('receive-all')" 
        replace="all"
        action="replace-all">
        <xforms:action ev:event="xforms-submit-done">
            <xxforms:script>alert('submit done');</xxforms:script>
        </xforms:action>
        <xforms:action ev:event="xforms-submit-error">
            <xxforms:script>alert('submit error');</xxforms:script>
        </xforms:action>
        <xforms:action ev:event="xforms-submit">
           <xxforms:script>alert('submit before');</xxforms:script>
        </xforms:action>
   </xforms:submission> 
   
It will display "submit before" --> "submit error" when trigger the "replace-all-submission".
If modify the xforms:submission:
   <xforms:submission id="replace-all-submission" method="post"
        ref="instance('receive-all')" 
        replace="all"
        action="replace-all">
        <xforms:action ev:event="xforms-submit-done">
            <xxforms:script>alert('submit done');</xxforms:script>
        </xforms:action>
        <xforms:action ev:event="xforms-submit-error">
            <xxforms:script>alert('submit error');</xxforms:script>
        </xforms:action>
        <xforms:action ev:event="xforms-submit">
        </xforms:action>
   </xforms:submission> 
It will goto the next page when trigger the "replace-all-submission". It don;t display "submit done".
 
 
 



[广告] 文化重镇 惊现别墅

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

view.xhtml (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xforms:submission bug

Erik Bruchez
Administrator
This is because once the submission is successful, we do not give  
control back to the client: we run server-side actions, and then load  
the new page. Since alerts and scripts are displayed on the client,  
they don't show at all. Arguably that is a bug, but given the way we  
handle replace="all", I am not sure we will fix it as it may be a lot  
of work to do so.

-Erik

On Sep 21, 2008, at 8:01 PM, hechengrong wrote:

>
>  Hi, I find a bug with xforms:submission.
>
> Orbeon version: Orbeon Forms 3.7 beta 1;
> view.xhtml:
>    <xforms:submission id="replace-all-submission" method="post"
>         ref="instance('receive-all')"
>         replace="all"
>         action="replace-all">
>         <xforms:action ev:event="xforms-submit-done">
>             <xxforms:script>alert('submit done');</xxforms:script>
>         </xforms:action>
>         <xforms:action ev:event="xforms-submit-error">
>             <xxforms:script>alert('submit error');</xxforms:script>
>         </xforms:action>
>         <xforms:action ev:event="xforms-submit">
>            <xxforms:script>alert('submit before');</xxforms:script>
>         </xforms:action>
>    </xforms:submission>
>
> It will display "submit before" --> "submit error" when trigger the  
> "replace-all-submission".
> If modify the xforms:submission:
>    <xforms:submission id="replace-all-submission" method="post"
>         ref="instance('receive-all')"
>         replace="all"
>         action="replace-all">
>         <xforms:action ev:event="xforms-submit-done">
>             <xxforms:script>alert('submit done');</xxforms:script>
>         </xforms:action>
>         <xforms:action ev:event="xforms-submit-error">
>             <xxforms:script>alert('submit error');</xxforms:script>
>         </xforms:action>
>         <xforms:action ev:event="xforms-submit">
>         </xforms:action>
>    </xforms:submission>
> It will goto the next page when trigger the "replace-all-
> submission". It don;t display "submit done".
>
>
>
>
>
> [广告] 文化重镇 惊现别墅<view.xhtml>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
hcr
Reply | Threaded
Open this post in threaded view
|

Re: Re: xforms:submission bug

hcr
    Ok, I know the second bug, but other bug:
> Orbeon version: Orbeon Forms 3.7 beta 1;

> view.xhtml:
>    <xforms:submission id="replace-all-submission" method="post"
>         ref="instance('receive-all')"
>         replace="all"
>         action="replace-all">
>         <xforms:action ev:event="xforms-submit-done">
>             <xxforms:script>alert('submit done');</xxforms:script>
>         </xforms:action>
>         <xforms:action ev:event="xforms-submit-error">
>             <xxforms:script>alert('submit error');</xxforms:script>
>         </xforms:action>
>         <xforms:action ev:event="xforms-submit">
>            <xxforms:script>alert('submit before');</xxforms:script>
>         </xforms:action>
>    </xforms:submission>
>
> It will display "submit before" --> "submit error" when trigger the 
> "replace-all-submission".
    
     If delete xxforms:script from "xforms-submit", It will goto next page. 
 
 
 

在2008-09-24,"Erik Bruchez" <[hidden email]> 写道:
>This is because once the submission is successful, we do not give  
>control back to the client: we run server-side actions, and then load  
>the new page. Since alerts and scripts are displayed on the client,  
>they don't show at all. Arguably that is a bug, but given the way we  
>handle replace="all", I am not sure we will fix it as it may be a lot  
>of work to do so.
>
>-Erik
>
>On Sep 21, 2008, at 8:01 PM, hechengrong wrote:
>
>>
>>  Hi, I find a bug with xforms:submission.
>>
>> Orbeon version: Orbeon Forms 3.7 beta 1;
>> view.xhtml:
>>    >         ref="instance('receive-all')"
>>         replace="all"
>>         action="replace-all">
>>         
>>             alert('submit done');
>>         
>>         
>>             alert('submit error');
>>         
>>         
>>            alert('submit before');
>>         
>>    
>>
>> It will display "submit before" --> "submit error" when trigger the  
>> "replace-all-submission".
>> If modify the xforms:submission:
>>    >         ref="instance('receive-all')"
>>         replace="all"
>>         action="replace-all">
>>         
>>             alert('submit done');
>>         
>>         
>>             alert('submit error');
>>         
>>         
>>         
>>    
>> It will goto the next page when trigger the "replace-all- 
>> submission". It don;t display "submit done".
>>
>>
>>
>>
>>
>> [广告] 文化重镇 惊现别墅
>> --
>> You receive this message as a subscriber of the [hidden email]  
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>--
>Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>http://www.orbeon.com/
>



[广告] 买房不必东奔西走,上房老大,看"二手房"网上房展会

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws