Input Data lost?

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

Input Data lost?

c.harder
Hi,
I've got a Question. I have an input view and a xml output.
If I hit the next button, I can see the instance model with input data.
Now I went back through browser "back" button. I see the input view with data.
I hit the next button again. But now the xml model instance is empty.
Can someone explain, why that happens?
Do I have to use a refresh before submitting again or something like that? Is there a solution for that?




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Input Data lost?

Erik Bruchez
Administrator
[hidden email] wrote:
> Hi,
> I've got a Question. I have an input view and a xml output.
> If I hit the next button, I can see the instance model with input data.
> Now I went back through browser "back" button. I see the input view with data.
> I hit the next button again. But now the xml model instance is empty.
> Can someone explain, why that happens?
> Do I have to use a refresh before submitting again or something like that? Is there a solution for that?

I think you need to provide some more context about what your "input
view" and "xml output" are. What version of OPS are you using, and are
you using XForms?

There is currently a known issue with certain browsers with the "back"
button and XForms, as "old" browsers do not entirely restore the state
of a page. Browsers that work "correctly" in that respect are Firefox
1.5 and Opera (but we don't quite yet support Opera). For older Mozilla
browser and IE, we will fix this for 3.0 final.

-Erik



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Input Data lost?

c.harder
Thanks!

I am using version 3.0 beta 3 of orbeon.
I have an input-view with xforms ng - xforms:input and xforms:trigger (submission method="post"). My output uses the xml-detail-model.xpl for showing the xml-instance of the xforms-model.

I have another problem, maybe its the same before. I'm using a combo box with 3 entries. If I select one of them, I see the value in the xml-output. Ok. But if I don't do that, the xml-element stays empty.
Do I have to specify a default entry? Where can I do that (For now I'm doing that in the instance-model.xml, but I guess there's a better way ;-))?



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Input Data lost?

Erik Bruchez
Administrator
[hidden email] wrote:
 > Thanks!
 >
 > I am using version 3.0 beta 3 of orbeon.

 > I have an input-view with xforms ng - xforms:input and
 > xforms:trigger (submission method="post"). My output uses the
 > xml-detail-model.xpl for showing the xml-instance of the
 > xforms-model.
 >
 > I have another problem, maybe its the same before. I'm using a combo
 > box with 3 entries. If I select one of them, I see the value in the
 > xml-output. Ok. But if I don't do that, the xml-element stays empty.

You mean the element the control is bound to is initially empty, but
the xforms:select1 control having only three possible selections, and
naturally showing one of them to the user, you expect when you submit
the instance that a value is stored into that element, and I think you
are right. This may be considered a bug, so I enter one to track this
issue:

https://forge.objectweb.org/tracker/index.php?func=detail&aid=304287&group_id=168&atid=350207

This said I think it is good practice to explicitly specify an initial
value for select1 controls:

   <my-value>1</my-value>

   <xforms:select1 ref="my-value>
     <xforms:item>
       <xforms:label>One</xforms:label>
       <xforms:value>1</xforms:value>
     </xforms:item>
     <xforms:item>
       <xforms:label>Two</xforms:label>
       <xforms:value>2</xforms:value>
     </xforms:item>
   </xforms:select1>

Or, alternatively, to provide an empty item in the select1 control,
which encourages the user to make a selection:

   <my-value/>

   <xforms:select1 ref="my-value>
     <xforms:item>
       <xforms:label>...</xforms:label>
       <xforms:value></xforms:value>
     </xforms:item>
     <xforms:item>
       <xforms:label>One</xforms:label>
       <xforms:value>1</xforms:value>
     </xforms:item>
     <xforms:item>
       <xforms:label>Two</xforms:label>
       <xforms:value>2</xforms:value>
     </xforms:item>
   </xforms:select1>

 > Do I have to specify a default entry? Where can I do that (For now
 > I'm doing that in the instance-model.xml, but I guess there's a
 > better way ;-))?

Check out this part of the doc:

http://www.orbeon.com/ops/doc/reference-xforms-ng#instance-initialization

-Erik




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws