default submission

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

default submission

Mats Eklund-2

Hi,

I am letting a default xml submission document be populated based on query parameters in the page-flow. When a query parameter has the value of an empty string (e.g. "http://example.org?param=") it seems that this does not override the default value of the corresponding element in the default xml submission document. I would expect the default value to be overridden with an empty string, and only keep the default value if the parameter name is missing on the query string!??

Thanks for any clarification,

Mats




--
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
Reply | Threaded
Open this post in threaded view
|

Re: default submission

Erik Bruchez
Administrator
Looking briefely at the code, it seems it should clear the value. Do you have an easily reproducible sample?

-Erik

On Wed, Oct 21, 2009 at 2:50 PM, Mats Eklund <[hidden email]> wrote:

Hi,

I am letting a default xml submission document be populated based on query parameters in the page-flow. When a query parameter has the value of an empty string (e.g. "http://example.org?param=") it seems that this does not override the default value of the corresponding element in the default xml submission document. I would expect the default value to be overridden with an empty string, and only keep the default value if the parameter name is missing on the query string!??

Thanks for any clarification,

Mats




--
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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: default submission

Mats Eklund-2
In reply to this post by Mats Eklund-2
Eric,
 
I attach an easily reproducible sample that demonstrates the issue.
 
The zip contains an app that you can extract to the folder where the other orbeon apps reside, and then you just hit the following urls:
 
http://localhost:8080/orbeon/issue-1/?my-param=  (note: the equal sign is part of the url)
 
The expected behaviour for the second url is that the empty string parameter value should override the corresponding parameter value in the default xml submission, but it doesn't.
 
-Mats

--- On Thu, 10/22/09, Erik Bruchez <[hidden email]> wrote:

From: Erik Bruchez <[hidden email]>
Subject: [ops-users] Re: default submission
To: [hidden email]
Date: Thursday, October 22, 2009, 2:53 AM

Looking briefely at the code, it seems it should clear the value. Do you have an easily reproducible sample?

-Erik

On Wed, Oct 21, 2009 at 2:50 PM, Mats Eklund <mats.eklund@...> wrote:
Hi,
I am letting a default xml submission document be populated based on query parameters in the page-flow. When a query parameter has the value of an empty string (e.g. "http://example.org?param=") it seems that this does not override the default value of the corresponding element in the default xml submission document. I would expect the default value to be overridden with an empty string, and only keep the default value if the parameter name is missing on the query string!??
Thanks for any clarification,
Mats



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



-----Inline Attachment Follows-----


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



--
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

issue-1.zip (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: default submission

Alessandro  Vernet
Administrator
Mats,

On Thu, Oct 22, 2009 at 1:31 AM, Mats Eklund <[hidden email]> wrote:
> I attach an easily reproducible sample that demonstrates the issue.
>  [...]

Thank you for creating this reproducible test case. This is now fixed,
and will be in the next nightly build. You'll let us know if it works
for you. For reference, the bug is:

http://forge.ow2.org/tracker/index.php?func=detail&aid=314417&group_id=168&atid=350207

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: default submission

Mats Eklund-2
In reply to this post by Mats Eklund-2
Any progress on this issue? Anyone?
 
Thanks,
Mats

--- On Thu, 10/22/09, Mats Eklund <[hidden email]> wrote:

From: Mats Eklund <[hidden email]>
Subject: [ops-users] Re: Re: default submission
To: [hidden email]
Date: Thursday, October 22, 2009, 10:31 AM

Eric,
 
I attach an easily reproducible sample that demonstrates the issue.
 
The zip contains an app that you can extract to the folder where the other orbeon apps reside, and then you just hit the following urls:
 
http://localhost:8080/orbeon/issue-1/?my-param=  (note: the equal sign is part of the url)
 
The expected behaviour for the second url is that the empty string parameter value should override the corresponding parameter value in the default xml submission, but it doesn't.
 
-Mats

--- On Thu, 10/22/09, Erik Bruchez <[hidden email]> wrote:

From: Erik Bruchez <[hidden email]>
Subject: [ops-users] Re: default submission
To: [hidden email]
Date: Thursday, October 22, 2009, 2:53 AM

Looking briefely at the code, it seems it should clear the value. Do you have an easily reproducible sample?

-Erik

On Wed, Oct 21, 2009 at 2:50 PM, Mats Eklund <mats.eklund@...> wrote:
Hi,
I am letting a default xml submission document be populated based on query parameters in the page-flow. When a query parameter has the value of an empty string (e.g. "http://example.org?param=") it seems that this does not override the default value of the corresponding element in the default xml submission document. I would expect the default value to be overridden with an empty string, and only keep the default value if the parameter name is missing on the query string!??
Thanks for any clarification,
Mats



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



-----Inline Attachment Follows-----


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


-----Inline Attachment Follows-----


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



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: default submission

Erik Bruchez-3
http://n4.nabble.com/default-submission-tp276138p277351.html

-Erik

On Wed, Oct 28, 2009 at 1:51 AM, Mats Eklund <[hidden email]> wrote:
Any progress on this issue? Anyone?
 
Thanks,
Mats

--- On Thu, 10/22/09, Mats Eklund <[hidden email]> wrote:

From: Mats Eklund <[hidden email]>
Subject: [ops-users] Re: Re: default submissionDate: Thursday, October 22, 2009, 10:31 AM


Eric,
 
I attach an easily reproducible sample that demonstrates the issue.
 
The zip contains an app that you can extract to the folder where the other orbeon apps reside, and then you just hit the following urls:
 
http://localhost:8080/orbeon/issue-1/?my-param=  (note: the equal sign is part of the url)
 
The expected behaviour for the second url is that the empty string parameter value should override the corresponding parameter value in the default xml submission, but it doesn't.
 
-Mats

--- On Thu, 10/22/09, Erik Bruchez <[hidden email]> wrote:

From: Erik Bruchez <[hidden email]>
Subject: [ops-users] Re: default submission
To: [hidden email]
Date: Thursday, October 22, 2009, 2:53 AM

Looking briefely at the code, it seems it should clear the value. Do you have an easily reproducible sample?

-Erik

On Wed, Oct 21, 2009 at 2:50 PM, Mats Eklund <mats.eklund@...> wrote:
Hi,
I am letting a default xml submission document be populated based on query parameters in the page-flow. When a query parameter has the value of an empty string (e.g. "http://example.org?param=") it seems that this does not override the default value of the corresponding element in the default xml submission document. I would expect the default value to be overridden with an empty string, and only keep the default value if the parameter name is missing on the query string!??
Thanks for any clarification,
Mats



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



-----Inline Attachment Follows-----


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


-----Inline Attachment Follows-----


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



--
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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: default submission

Mats Eklund-2
Excellent, it works now!  Thanks!

--- On Sat, 10/31/09, Erik Bruchez <[hidden email]> wrote:

From: Erik Bruchez <[hidden email]>
Subject: [ops-users] Re: Re: Re: Re: default submission
To: [hidden email]
Date: Saturday, October 31, 2009, 2:01 AM

http://n4.nabble.com/default-submission-tp276138p277351.html

-Erik

On Wed, Oct 28, 2009 at 1:51 AM, Mats Eklund <mats.eklund@...> wrote:
Any progress on this issue? Anyone?
 
Thanks,
Mats

--- On Thu, 10/22/09, Mats Eklund <mats.eklund@...> wrote:

From: Mats Eklund <mats.eklund@...>
Subject: [ops-users] Re: Re: default submissionDate: Thursday, October 22, 2009, 10:31 AM


Eric,
 
I attach an easily reproducible sample that demonstrates the issue.
 
The zip contains an app that you can extract to the folder where the other orbeon apps reside, and then you just hit the following urls:
 
http://localhost:8080/orbeon/issue-1/?my-param=  (note: the equal sign is part of the url)
 
The expected behaviour for the second url is that the empty string parameter value should override the corresponding parameter value in the default xml submission, but it doesn't.
 
-Mats

--- On Thu, 10/22/09, Erik Bruchez <ebruchez@...> wrote:

From: Erik Bruchez <ebruchez@...>
Subject: [ops-users] Re: default submission
To: ops-users@...
Date: Thursday, October 22, 2009, 2:53 AM

Looking briefely at the code, it seems it should clear the value. Do you have an easily reproducible sample?

-Erik

On Wed, Oct 21, 2009 at 2:50 PM, Mats Eklund <mats.eklund@...> wrote:
Hi,
I am letting a default xml submission document be populated based on query parameters in the page-flow. When a query parameter has the value of an empty string (e.g. "http://example.org?param=") it seems that this does not override the default value of the corresponding element in the default xml submission document. I would expect the default value to be overridden with an empty string, and only keep the default value if the parameter name is missing on the query string!??
Thanks for any clarification,
Mats



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



-----Inline Attachment Follows-----


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


-----Inline Attachment Follows-----


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



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



-----Inline Attachment Follows-----


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



--
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
Reply | Threaded
Open this post in threaded view
|

Re: default submission

Alessandro  Vernet
Administrator
Mats,

Great; thanks for confirming this.

Alex

On Saturday, October 31, 2009, Mats Eklund <[hidden email]> wrote:

> Excellent, it works now!  Thanks!
>
> --- On Sat, 10/31/09, Erik Bruchez <[hidden email] <javascript:_e({}, 'cvml', '[hidden email]');>> wrote:
>
> From: Erik Bruchez <[hidden email] <javascript:_e({}, 'cvml', '[hidden email]');>>
> Subject: [ops-users] Re: Re: Re: Re: default submission
> To: [hidden email] <javascript:_e({}, 'cvml', '[hidden email]');>
> Date: Saturday, October 31, 2009, 2:01 AM
>
> http://n4.nabble.com/default-submission-tp276138p277351.html
> -Erik
>
> On Wed, Oct 28, 2009 at 1:51 AM, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote:
> Any progress on this issue? Anyone?
>
>
>
> Thanks,
> Mats
>
> --- On Thu, 10/22/09, Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>> wrote:
>
>
> From: Mats Eklund <[hidden email] <http://mc/compose?to=mats.eklund@...>>
> Subject: [ops-users] Re: Re: default submission
>
>
> To: [hidden email] <http://mc/compose?to=ops-users@...>
> Date: Thursday, October 22, 2009, 10:31 AM
>
>
>
> Eric,
>
> I attach an easily reproducible sample that demonstrates the issue.
>
> The zip contains an app that you can extract to the folder where the other orbeon apps reside, and then you just hit the following urls:
>
> http://localhost:8080/orbeon/issue-1/
> http://localhost:8080/orbeon/issue-1/?my-param=  (note: the equal sign is part of the url)
> http://localhost:8080/orbeon/issue-1/?my-param=my-value
>
> The expected behaviour for the second url is that the empty string parameter value should override the corresponding parameter value in the default xml submission, but it doesn't.
>
> -Mats
>
> --- On Thu, 10/22/09, Erik Bruchez <[hidden email] <http://mc/compose?to=ebruchez@...>> wrote:
>
>
> From: Erik Bruchez <[hidden email] <http://mc/compose?to=ebruchez@...>>
> Subject: [ops-users] Re: default submission
> To: [hidden email] <http://mc/compose?to=ops-users@...>
> Date: Thursday, October 22, 2009, 2:53 AM
>
> Looking briefely at the code, it seems it should clear the value. Do you have an easily reproducible sample?
>
>
> -Erik
>
> On Wed, Oct 21, 2009 at 2:50 PM, Mats Eklund <[hidden email] <http://us.mc590.mail.yahoo.com/mc/compose?to=mats.eklund@...>> wrote:
>
>
> Hi,
>
> I am letting a default xml submission document be populated based on query parameters in the page-flow. When a query parameter has the value of an empty string (e.g. "http://example.org?param= <http://example.org/?param=>") it seems that this does not override the default value of the corresponding element in the default xml submission document. I would expect the default value to be overridden with an empty string, and only keep the default value if the parameter name is missing on the query string!??
>
>
>
> Thanks for any clarification,
> Mats
>
>
> --
> You receive this message as a subscriber of the [hidden email] <http://us.mc590.mail.yahoo.com/mc/compose?to=ops-users@...> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email] <http://us.mc590.mail.yahoo.com/mc/compose?to=sympa@...>?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
>
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet