Tamino and OPS

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

Tamino and OPS

Ryan Puddephatt

Hi all,

            I’ve tried google and OPS Doc, but I can’t find anything that suggests Locking and Transaction types for the Tamino Database using processors. Is this possible? The reason I ask is that occasionally if I don’t wait for the page to come page with the data in an XQuery to Tamino the tranaction isn’t rolled back and the database has to be restarted! This is quite an easy thing for users to do and I would like to be able to read the database without a locking the database to my data when reading

 

Any ideas?

 

Thanks

 

Ryan Puddephatt

Web Developer

TFX Group

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
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: Tamino and OPS

Erik Bruchez
Administrator
Here is a thread on the subject in ops-users:

http://mail-archive.objectweb.org/ops-users/2005-07/msg00114.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00130.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00136.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00138.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00161.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00166.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00193.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00198.html

-Erik

Ryan Puddephatt wrote:

> Hi all,
>
>             I?ve tried google and OPS Doc, but I can?t find anything
> that suggests Locking and Transaction types for the Tamino Database
> using processors. Is this possible? The reason I ask is that
> occasionally if I don?t wait for the page to come page with the data in
> an XQuery to Tamino the tranaction isn?t rolled back and the database
> has to be restarted! This is quite an easy thing for users to do and I
> would like to be able to read the database without a locking the
> database to my data when reading
>
>  
>
> Any ideas?
>
>  
>
> Thanks
>
>  
>
> *Ryan Puddephatt*
>
> Web Developer
>
> TFX Group
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>  
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108


--
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: Tamino and OPS

Ryan Puddephatt
Hi Erik,
        Thanks again for the quick response. I read through the thread, but
it covers a transaction performance issue. I am really looking at changing
the locking or isolation level of the call to tamino. If I am reading data
for a report I don't want to lock/isolate the database incase the user
aborts the call half way through. This locks the database not allowing any
users to look at this data! Is there any properties I can set to stop Tamino
using defaults?

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 22 November 2005 17:56
To: [hidden email]
Subject: Re: [ops-users] Tamino and OPS

Here is a thread on the subject in ops-users:

http://mail-archive.objectweb.org/ops-users/2005-07/msg00114.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00130.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00136.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00138.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00161.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00166.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00193.html
http://mail-archive.objectweb.org/ops-users/2005-07/msg00198.html

-Erik

Ryan Puddephatt wrote:

> Hi all,
>
>             I've tried google and OPS Doc, but I can't find anything
> that suggests Locking and Transaction types for the Tamino Database
> using processors. Is this possible? The reason I ask is that
> occasionally if I don't wait for the page to come page with the data in
> an XQuery to Tamino the tranaction isn't rolled back and the database
> has to be restarted! This is quite an easy thing for users to do and I
> would like to be able to read the database without a locking the
> database to my data when reading
>
>  
>
> Any ideas?
>
>  
>
> Thanks
>
>  
>
> *Ryan Puddephatt*
>
> Web Developer
>
> TFX Group
>
> 1 Michaelson Square
>
> Livingston
>
> West Lothian
>
> Scotand
>
> EH54 7DP
>
>  
>
> * [hidden email]
>
> ( 01506 407 110
>
> 7  01506 407 108




--
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: Tamino and OPS

Pascal Heus
In reply to this post by Ryan Puddephatt
Ryan:
FYI, I'm currently working on a processor to access Sleepycat Berkeley DB-XML (BDB-XML) from OPS. The processor is working well for my application specific requirements but I need to further test it and make it generic for wider use. I would expect to have a beta release available around February/march next year. BDB-XML is build on top of DB-XML and is a solid and high performance platform that supports transactional processing (and more). It is available under both open source and commercial licenses. See http://www.sleepycat.com/ for more information.
regards,
Pascal

Ryan Puddephatt wrote:

Hi all,

            I’ve tried google and OPS Doc, but I can’t find anything that suggests Locking and Transaction types for the Tamino Database using processors. Is this possible? The reason I ask is that occasionally if I don’t wait for the page to come page with the data in an XQuery to Tamino the tranaction isn’t rolled back and the database has to be restarted! This is quite an easy thing for users to do and I would like to be able to read the database without a locking the database to my data when reading

 

Any ideas?

 

Thanks

 

Ryan Puddephatt

Web Developer

TFX Group

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 


-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Tamino and OPS

Erik Bruchez
Administrator
In reply to this post by Ryan Puddephatt
Ryan,

Upon an exception occurring during the HTTP request, the Tamino
transaction is supposed to be rolled back and the connection to Tamino
closed. At least, that's what the code appears to do in TaminoProcessor.

The Tamino processors uses these propeties:

o oxf.tamino.isolation-degree
o oxf.tamino.lock-mode

These are passed directly to Tamino.

-Erik

Ryan Puddephatt wrote:

> Hi Erik,
> Thanks again for the quick response. I read through the thread, but
> it covers a transaction performance issue. I am really looking at changing
> the locking or isolation level of the call to tamino. If I am reading data
> for a report I don't want to lock/isolate the database incase the user
> aborts the call half way through. This locks the database not allowing any
> users to look at this data! Is there any properties I can set to stop Tamino
> using defaults?
>
> Ryan Puddephatt
> Web Developer
> TFX Group
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: 22 November 2005 17:56
> To: [hidden email]
> Subject: Re: [ops-users] Tamino and OPS
>
> Here is a thread on the subject in ops-users:
>
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00114.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00130.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00136.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00138.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00161.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00166.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00193.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00198.html
>
> -Erik
>
> Ryan Puddephatt wrote:
>
>>Hi all,
>>
>>            I've tried google and OPS Doc, but I can't find anything
>>that suggests Locking and Transaction types for the Tamino Database
>>using processors. Is this possible? The reason I ask is that
>>occasionally if I don't wait for the page to come page with the data in
>>an XQuery to Tamino the tranaction isn't rolled back and the database
>>has to be restarted! This is quite an easy thing for users to do and I
>>would like to be able to read the database without a locking the
>>database to my data when reading
>>
>>
>>
>>Any ideas?
>>
>>
>>
>>Thanks
>>
>>
>>
>>*Ryan Puddephatt*
>>
>>Web Developer
>>
>>TFX Group
>>
>>1 Michaelson Square
>>
>>Livingston
>>
>>West Lothian
>>
>>Scotand
>>
>>EH54 7DP
>>
>>
>>
>>* [hidden email]
>>
>>( 01506 407 110
>>
>>7  01506 407 108
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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



--
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: Tamino and OPS

Ryan Puddephatt
Pascal,
        Thanks for your response, but company wide we are using Tamino and I
don't think they will be looking to change it anytime soon!

Erik,
        If I set these properties in the properties.xml am I correct in
saying it will change the lock-mode and isolation-degree for all Tamino
calls in that application?

Thanks

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 23 November 2005 13:22
To: [hidden email]
Subject: Re: [ops-users] Tamino and OPS

Ryan,

Upon an exception occurring during the HTTP request, the Tamino
transaction is supposed to be rolled back and the connection to Tamino
closed. At least, that's what the code appears to do in TaminoProcessor.

The Tamino processors uses these propeties:

o oxf.tamino.isolation-degree
o oxf.tamino.lock-mode

These are passed directly to Tamino.

-Erik

Ryan Puddephatt wrote:
> Hi Erik,
> Thanks again for the quick response. I read through the thread, but
> it covers a transaction performance issue. I am really looking at changing
> the locking or isolation level of the call to tamino. If I am reading data
> for a report I don't want to lock/isolate the database incase the user
> aborts the call half way through. This locks the database not allowing any
> users to look at this data! Is there any properties I can set to stop
Tamino

> using defaults?
>
> Ryan Puddephatt
> Web Developer
> TFX Group
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotand
> EH54 7DP
>  
> * [hidden email]
> ( 01506 407 110
> 7  01506 407 108
>  
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: 22 November 2005 17:56
> To: [hidden email]
> Subject: Re: [ops-users] Tamino and OPS
>
> Here is a thread on the subject in ops-users:
>
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00114.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00130.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00136.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00138.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00161.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00166.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00193.html
> http://mail-archive.objectweb.org/ops-users/2005-07/msg00198.html
>
> -Erik
>
> Ryan Puddephatt wrote:
>
>>Hi all,
>>
>>            I've tried google and OPS Doc, but I can't find anything
>>that suggests Locking and Transaction types for the Tamino Database
>>using processors. Is this possible? The reason I ask is that
>>occasionally if I don't wait for the page to come page with the data in
>>an XQuery to Tamino the tranaction isn't rolled back and the database
>>has to be restarted! This is quite an easy thing for users to do and I
>>would like to be able to read the database without a locking the
>>database to my data when reading
>>
>>
>>
>>Any ideas?
>>
>>
>>
>>Thanks
>>
>>
>>
>>*Ryan Puddephatt*
>>
>>Web Developer
>>
>>TFX Group
>>
>>1 Michaelson Square
>>
>>Livingston
>>
>>West Lothian
>>
>>Scotand
>>
>>EH54 7DP
>>
>>
>>
>>* [hidden email]
>>
>>( 01506 407 110
>>
>>7  01506 407 108
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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






--
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: Tamino and OPS

Erik Bruchez
Administrator
Ryan Puddephatt wrote:
> Pascal,
> Thanks for your response, but company wide we are using Tamino and I
> don't think they will be looking to change it anytime soon!
>
> Erik,
> If I set these properties in the properties.xml am I correct in
> saying it will change the lock-mode and isolation-degree for all Tamino
> calls in that application?

Yes, that's correct. You set the properties this way:

<property as="xs:string"
   name="oxf.tamino.isolation-degree" value="..."/>

<property as="xs:string"
   name="oxf.tamino.lock-mode" value="..."/>

I realize those properties were not mentioned in the doc. That's fixed now.

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

Strange OPS problem

bkerrison
In reply to this post by Ryan Puddephatt
Hi there,

I'm a bit of an OPS newbie so it's possible that I am doing fundamental wrong so bare with me if the answer to this is really obvious.

I am looking at using OPS for the front end to some XML database applications. I have been attempting to replicate much of the functionality in BizDoc NG example, the main differences being that I have put a search page prior to the summary page to filter the results being displayed and the summary page displays only 10 results at a time. Obviously the records them selves are different as well.

An issue I am having at the moment is that the back button sometimes does not operate as I would have expected it to. An example of this is as follows:

* The user types in a keyword in the search page and hits submit.
* A query is generated and executed against the XML database and the results diplayed

So far so good - everything works as I expect

* the user hits the back button
* the search page is displayed with the original keyword still in the input field

Still so for so good.

However, if the user does either of the following:

* presses the submit button again without changing the keyword
* types the same keyword in again

and then tries to resubmit the form then the keyword is not passed through to the XPL. If the user types in a different keyword then everything works as expected.

The first time the user hits submit the instance is passed through as follows:

<criteria>
    <count>0</count>
    <keyword>cast</keyword>
    <option>folder|photo</option>
</criteria>

after hitting back and either hitting submit again or typing in the same keyword the instance looks like:

<criteria>
    <count>0</count>
    <keyword/>
    <option>folder|photo</option>
</criteria>

The problem occurs on both IE and Firefox.

Any ideas?

Cheers
Brendan



--
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: Tamino and OPS

Ryan Puddephatt
In reply to this post by Erik Bruchez
Thanks Erik, that's a great help, seems like Bal("zs might have found it
possible to decide isolation and locking for each transaction, which we
might look into!

Ryan Puddephatt
Web Developer
TFX Group
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: 23 November 2005 22:15
To: [hidden email]
Subject: Re: [ops-users] Tamino and OPS

Ryan Puddephatt wrote:
> Pascal,
> Thanks for your response, but company wide we are using Tamino and I
> don't think they will be looking to change it anytime soon!
>
> Erik,
> If I set these properties in the properties.xml am I correct in
> saying it will change the lock-mode and isolation-degree for all Tamino
> calls in that application?

Yes, that's correct. You set the properties this way:

<property as="xs:string"
   name="oxf.tamino.isolation-degree" value="..."/>

<property as="xs:string"
   name="oxf.tamino.lock-mode" value="..."/>

I realize those properties were not mentioned in the doc. That's fixed now.

-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: Strange OPS problem

Erik Bruchez
Administrator
In reply to this post by bkerrison
What version of OPS are you using (2.8, 3.0 beta 3, nightly), and what
XForms engine (Classic or NG)?

-Erik

Brendan Kerrison wrote:

> Hi there,
>
> I'm a bit of an OPS newbie so it's possible that I am doing fundamental wrong so bare with me if the answer to this is really obvious.
>
> I am looking at using OPS for the front end to some XML database applications. I have been attempting to replicate much of the functionality in BizDoc NG example, the main differences being that I have put a search page prior to the summary page to filter the results being displayed and the summary page displays only 10 results at a time. Obviously the records them selves are different as well.
>
> An issue I am having at the moment is that the back button sometimes does not operate as I would have expected it to. An example of this is as follows:
>
> * The user types in a keyword in the search page and hits submit.
> * A query is generated and executed against the XML database and the results diplayed
>
> So far so good - everything works as I expect
>
> * the user hits the back button
> * the search page is displayed with the original keyword still in the input field
>
> Still so for so good.
>
> However, if the user does either of the following:
>
> * presses the submit button again without changing the keyword
> * types the same keyword in again
>
> and then tries to resubmit the form then the keyword is not passed through to the XPL. If the user types in a different keyword then everything works as expected.
>
> The first time the user hits submit the instance is passed through as follows:
>
> <criteria>
>     <count>0</count>
>     <keyword>cast</keyword>
>     <option>folder|photo</option>
> </criteria>
>
> after hitting back and either hitting submit again or typing in the same keyword the instance looks like:
>
> <criteria>
>     <count>0</count>
>     <keyword/>
>     <option>folder|photo</option>
> </criteria>
>
> The problem occurs on both IE and Firefox.
>
> Any ideas?
>
> Cheers
> Brendan
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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



--
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: Strange OPS problem

bkerrison
In reply to this post by bkerrison
Hi Erik,

I'm using the nightly build from 23112005 and as for as I know I'm using the NG XForms engine.

My page flow looks like:

<config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" instance-passing="forward">
        <!-- Files to serve directly (for standalone operation) -->
        <files path-info="*.gif"/>
        <files path-info="*.css"/>
        <files path-info="*.js"/>
        <files path-info="*.png"/>
        <files path-info="*.jpg"/>
        <files path-info="*.wsdl"/>
        <files path-info="*.html" mime-type="text/html"/>
        <files path-info="*.java" mime-type="text/plain"/>
        <files path-info="*.txt" mime-type="text/plain"/>
        <page id="search" path-info="/photoarchive" view="search/search-view.xsl">
                <action when="/form/action = 'search'" action="search/list-documents-action.xpl">
                        <result page="summary" transform="oxf:xslt" instance-passing="forward">
                                <form xsl:version="2.0" xmlns="">
                                        <xsl:copy-of select="doc('input:action')//result"/>
                                </form>
                        </result>
                </action>
        </page>
        <page id="summary" path-info="/photoarchive/summary" view="summary/summary-view.xsl">
                <!-- View an existing document -->
                <action when="/form/action = 'show-detail'" action="summary/find-document-action.xpl">
                        <result id="photo-detail" page="photo-detail" when="/document-info/document/photo != ''" transform="oxf:xslt">
                                <form xsl:version="2.0" xmlns="">
                                        <document-id>
                                                <xsl:value-of select="doc('input:action')/document-info/document-id"/>
                                        </document-id>
                                        <document>
                                                <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
                                        </document>
                                </form>
                        </result>
                        <result id="folder-detail" page="folder-detail" when="/document-info/document/folder != ''" transform="oxf:xslt">
                                <form xsl:version="2.0" xmlns="">
                                        <document-id>
                                                <xsl:value-of select="doc('input:action')/document-info/document-id"/>
                                        </document-id>
                                        <document>
                                                <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
                                        </document>
                                </form>
                        </result>
                </action>
        </page>
        <page id="photo-detail" path-info="/photoarchive/photo-detail" model="detail/main-model.xpl" view="detail/photo-detail-view.xsl">
                <!-- Back: Return to the summary page -->
                <action when="/form/action = 'back'">
                        <result page="summary"/>
                </action>
        </page>
        <page id="folder-detail" path-info="/photoarchive/folder-detail" view="detail/folder-detail-view.xsl">
                <!-- Back: Return to the summary page -->
                <action when="/form/action = 'back'">
                        <result page="summary"/>
                </action>
        </page>
        <!-- CSS generated by a pipeline (for standalone operation) -->
        <page id="layout-css" path-info="/config/theme/orbeon-layout.cssd" model="/config/theme/orbeon-layout.xpl"/>
        <epilogue url="oxf:/config/epilogue.xpl"/>
</config>

Cheers
Brendan

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
Sent: Friday, 25 November 2005 3:52 AM
To: [hidden email]
Subject: Re: [ops-users] Strange OPS problem


What version of OPS are you using (2.8, 3.0 beta 3, nightly), and what
XForms engine (Classic or NG)?

-Erik

Brendan Kerrison wrote:

> Hi there,
>
> I'm a bit of an OPS newbie so it's possible that I am doing fundamental wrong so bare with me if the answer to this is really obvious.
>
> I am looking at using OPS for the front end to some XML database applications. I have been attempting to replicate much of the functionality in BizDoc NG example, the main differences being that I have put a search page prior to the summary page to filter the results being displayed and the summary page displays only 10 results at a time. Obviously the records them selves are different as well.
>
> An issue I am having at the moment is that the back button sometimes does not operate as I would have expected it to. An example of this is as follows:
>
> * The user types in a keyword in the search page and hits submit.
> * A query is generated and executed against the XML database and the results diplayed
>
> So far so good - everything works as I expect
>
> * the user hits the back button
> * the search page is displayed with the original keyword still in the input field
>
> Still so for so good.
>
> However, if the user does either of the following:
>
> * presses the submit button again without changing the keyword
> * types the same keyword in again
>
> and then tries to resubmit the form then the keyword is not passed through to the XPL. If the user types in a different keyword then everything works as expected.
>
> The first time the user hits submit the instance is passed through as follows:
>
> <criteria>
>     <count>0</count>
>     <keyword>cast</keyword>
>     <option>folder|photo</option>
> </criteria>
>
> after hitting back and either hitting submit again or typing in the same keyword the instance looks like:
>
> <criteria>
>     <count>0</count>
>     <keyword/>
>     <option>folder|photo</option>
> </criteria>
>
> The problem occurs on both IE and Firefox.
>
> Any ideas?
>
> Cheers
> Brendan
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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




--
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: Strange OPS problem

Erik Bruchez
Administrator
Brendan,

I suggest you try with the latest nightly build, since we just
implemented support for "back" with XForms NG. This may fix your problem.

-Erik

Brendan Kerrison wrote:

> Hi Erik,
>
> I'm using the nightly build from 23112005 and as for as I know I'm using the NG XForms engine.
>
> My page flow looks like:
>
> <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" instance-passing="forward">
> <!-- Files to serve directly (for standalone operation) -->
> <files path-info="*.gif"/>
> <files path-info="*.css"/>
> <files path-info="*.js"/>
> <files path-info="*.png"/>
> <files path-info="*.jpg"/>
> <files path-info="*.wsdl"/>
> <files path-info="*.html" mime-type="text/html"/>
> <files path-info="*.java" mime-type="text/plain"/>
> <files path-info="*.txt" mime-type="text/plain"/>
> <page id="search" path-info="/photoarchive" view="search/search-view.xsl">
> <action when="/form/action = 'search'" action="search/list-documents-action.xpl">
> <result page="summary" transform="oxf:xslt" instance-passing="forward">
> <form xsl:version="2.0" xmlns="">
> <xsl:copy-of select="doc('input:action')//result"/>
> </form>
> </result>
> </action>
> </page>
> <page id="summary" path-info="/photoarchive/summary" view="summary/summary-view.xsl">
> <!-- View an existing document -->
> <action when="/form/action = 'show-detail'" action="summary/find-document-action.xpl">
> <result id="photo-detail" page="photo-detail" when="/document-info/document/photo != ''" transform="oxf:xslt">
> <form xsl:version="2.0" xmlns="">
> <document-id>
> <xsl:value-of select="doc('input:action')/document-info/document-id"/>
> </document-id>
> <document>
> <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
> </document>
> </form>
> </result>
> <result id="folder-detail" page="folder-detail" when="/document-info/document/folder != ''" transform="oxf:xslt">
> <form xsl:version="2.0" xmlns="">
> <document-id>
> <xsl:value-of select="doc('input:action')/document-info/document-id"/>
> </document-id>
> <document>
> <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
> </document>
> </form>
> </result>
> </action>
> </page>
> <page id="photo-detail" path-info="/photoarchive/photo-detail" model="detail/main-model.xpl" view="detail/photo-detail-view.xsl">
> <!-- Back: Return to the summary page -->
> <action when="/form/action = 'back'">
> <result page="summary"/>
> </action>
> </page>
> <page id="folder-detail" path-info="/photoarchive/folder-detail" view="detail/folder-detail-view.xsl">
> <!-- Back: Return to the summary page -->
> <action when="/form/action = 'back'">
> <result page="summary"/>
> </action>
> </page>
> <!-- CSS generated by a pipeline (for standalone operation) -->
> <page id="layout-css" path-info="/config/theme/orbeon-layout.cssd" model="/config/theme/orbeon-layout.xpl"/>
> <epilogue url="oxf:/config/epilogue.xpl"/>
> </config>
>
> Cheers
> Brendan
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
> Sent: Friday, 25 November 2005 3:52 AM
> To: [hidden email]
> Subject: Re: [ops-users] Strange OPS problem
>
>
> What version of OPS are you using (2.8, 3.0 beta 3, nightly), and what
> XForms engine (Classic or NG)?
>
> -Erik
>
> Brendan Kerrison wrote:
>
>>Hi there,
>>
>>I'm a bit of an OPS newbie so it's possible that I am doing fundamental wrong so bare with me if the answer to this is really obvious.
>>
>>I am looking at using OPS for the front end to some XML database applications. I have been attempting to replicate much of the functionality in BizDoc NG example, the main differences being that I have put a search page prior to the summary page to filter the results being displayed and the summary page displays only 10 results at a time. Obviously the records them selves are different as well.
>>
>>An issue I am having at the moment is that the back button sometimes does not operate as I would have expected it to. An example of this is as follows:
>>
>>* The user types in a keyword in the search page and hits submit.
>>* A query is generated and executed against the XML database and the results diplayed
>>
>>So far so good - everything works as I expect
>>
>>* the user hits the back button
>>* the search page is displayed with the original keyword still in the input field
>>
>>Still so for so good.
>>
>>However, if the user does either of the following:
>>
>>* presses the submit button again without changing the keyword
>>* types the same keyword in again
>>
>>and then tries to resubmit the form then the keyword is not passed through to the XPL. If the user types in a different keyword then everything works as expected.
>>
>>The first time the user hits submit the instance is passed through as follows:
>>
>><criteria>
>>    <count>0</count>
>>    <keyword>cast</keyword>
>>    <option>folder|photo</option>
>></criteria>
>>
>>after hitting back and either hitting submit again or typing in the same keyword the instance looks like:
>>
>><criteria>
>>    <count>0</count>
>>    <keyword/>
>>    <option>folder|photo</option>
>></criteria>
>>
>>The problem occurs on both IE and Firefox.
>>
>>Any ideas?
>>
>>Cheers
>>Brendan
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>
>>--
>>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
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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



--
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: Strange OPS problem

bkerrison
In reply to this post by bkerrison
Hi Erik,

I have updated to the latest nightly build (25/11) but it didn't fix the problem.

Is there anything else I should check?

Cheers
Brendan

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
Sent: Friday, 25 November 2005 8:12 PM
To: [hidden email]
Subject: Re: [ops-users] Strange OPS problem


Brendan,

I suggest you try with the latest nightly build, since we just
implemented support for "back" with XForms NG. This may fix your problem.

-Erik

Brendan Kerrison wrote:

> Hi Erik,
>
> I'm using the nightly build from 23112005 and as for as I know I'm using the NG XForms engine.
>
> My page flow looks like:
>
> <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" instance-passing="forward">
> <!-- Files to serve directly (for standalone operation) -->
> <files path-info="*.gif"/>
> <files path-info="*.css"/>
> <files path-info="*.js"/>
> <files path-info="*.png"/>
> <files path-info="*.jpg"/>
> <files path-info="*.wsdl"/>
> <files path-info="*.html" mime-type="text/html"/>
> <files path-info="*.java" mime-type="text/plain"/>
> <files path-info="*.txt" mime-type="text/plain"/>
> <page id="search" path-info="/photoarchive" view="search/search-view.xsl">
> <action when="/form/action = 'search'" action="search/list-documents-action.xpl">
> <result page="summary" transform="oxf:xslt" instance-passing="forward">
> <form xsl:version="2.0" xmlns="">
> <xsl:copy-of select="doc('input:action')//result"/>
> </form>
> </result>
> </action>
> </page>
> <page id="summary" path-info="/photoarchive/summary" view="summary/summary-view.xsl">
> <!-- View an existing document -->
> <action when="/form/action = 'show-detail'" action="summary/find-document-action.xpl">
> <result id="photo-detail" page="photo-detail" when="/document-info/document/photo != ''" transform="oxf:xslt">
> <form xsl:version="2.0" xmlns="">
> <document-id>
> <xsl:value-of select="doc('input:action')/document-info/document-id"/>
> </document-id>
> <document>
> <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
> </document>
> </form>
> </result>
> <result id="folder-detail" page="folder-detail" when="/document-info/document/folder != ''" transform="oxf:xslt">
> <form xsl:version="2.0" xmlns="">
> <document-id>
> <xsl:value-of select="doc('input:action')/document-info/document-id"/>
> </document-id>
> <document>
> <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
> </document>
> </form>
> </result>
> </action>
> </page>
> <page id="photo-detail" path-info="/photoarchive/photo-detail" model="detail/main-model.xpl" view="detail/photo-detail-view.xsl">
> <!-- Back: Return to the summary page -->
> <action when="/form/action = 'back'">
> <result page="summary"/>
> </action>
> </page>
> <page id="folder-detail" path-info="/photoarchive/folder-detail" view="detail/folder-detail-view.xsl">
> <!-- Back: Return to the summary page -->
> <action when="/form/action = 'back'">
> <result page="summary"/>
> </action>
> </page>
> <!-- CSS generated by a pipeline (for standalone operation) -->
> <page id="layout-css" path-info="/config/theme/orbeon-layout.cssd" model="/config/theme/orbeon-layout.xpl"/>
> <epilogue url="oxf:/config/epilogue.xpl"/>
> </config>
>
> Cheers
> Brendan
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
> Sent: Friday, 25 November 2005 3:52 AM
> To: [hidden email]
> Subject: Re: [ops-users] Strange OPS problem
>
>
> What version of OPS are you using (2.8, 3.0 beta 3, nightly), and what
> XForms engine (Classic or NG)?
>
> -Erik
>
> Brendan Kerrison wrote:
>
>>Hi there,
>>
>>I'm a bit of an OPS newbie so it's possible that I am doing fundamental wrong so bare with me if the answer to this is really obvious.
>>
>>I am looking at using OPS for the front end to some XML database applications. I have been attempting to replicate much of the functionality in BizDoc NG example, the main differences being that I have put a search page prior to the summary page to filter the results being displayed and the summary page displays only 10 results at a time. Obviously the records them selves are different as well.
>>
>>An issue I am having at the moment is that the back button sometimes does not operate as I would have expected it to. An example of this is as follows:
>>
>>* The user types in a keyword in the search page and hits submit.
>>* A query is generated and executed against the XML database and the results diplayed
>>
>>So far so good - everything works as I expect
>>
>>* the user hits the back button
>>* the search page is displayed with the original keyword still in the input field
>>
>>Still so for so good.
>>
>>However, if the user does either of the following:
>>
>>* presses the submit button again without changing the keyword
>>* types the same keyword in again
>>
>>and then tries to resubmit the form then the keyword is not passed through to the XPL. If the user types in a different keyword then everything works as expected.
>>
>>The first time the user hits submit the instance is passed through as follows:
>>
>><criteria>
>>    <count>0</count>
>>    <keyword>cast</keyword>
>>    <option>folder|photo</option>
>></criteria>
>>
>>after hitting back and either hitting submit again or typing in the same keyword the instance looks like:
>>
>><criteria>
>>    <count>0</count>
>>    <keyword/>
>>    <option>folder|photo</option>
>></criteria>
>>
>>The problem occurs on both IE and Firefox.
>>
>>Any ideas?
>>
>>Cheers
>>Brendan
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>
>>--
>>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
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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




--
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: Strange OPS problem

Erik Bruchez
Administrator
A reproduceable case (i.e. complete working code we can run locally)
would be good. I don't have an idea about what could be wrong.

-Erik

Brendan Kerrison wrote:

> Hi Erik,
>
> I have updated to the latest nightly build (25/11) but it didn't fix the problem.
>
> Is there anything else I should check?
>
> Cheers
> Brendan
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
> Sent: Friday, 25 November 2005 8:12 PM
> To: [hidden email]
> Subject: Re: [ops-users] Strange OPS problem
>
>
> Brendan,
>
> I suggest you try with the latest nightly build, since we just
> implemented support for "back" with XForms NG. This may fix your problem.
>
> -Erik
>
> Brendan Kerrison wrote:
>
>>Hi Erik,
>>
>>I'm using the nightly build from 23112005 and as for as I know I'm using the NG XForms engine.
>>
>>My page flow looks like:
>>
>><config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" instance-passing="forward">
>> <!-- Files to serve directly (for standalone operation) -->
>> <files path-info="*.gif"/>
>> <files path-info="*.css"/>
>> <files path-info="*.js"/>
>> <files path-info="*.png"/>
>> <files path-info="*.jpg"/>
>> <files path-info="*.wsdl"/>
>> <files path-info="*.html" mime-type="text/html"/>
>> <files path-info="*.java" mime-type="text/plain"/>
>> <files path-info="*.txt" mime-type="text/plain"/>
>> <page id="search" path-info="/photoarchive" view="search/search-view.xsl">
>> <action when="/form/action = 'search'" action="search/list-documents-action.xpl">
>> <result page="summary" transform="oxf:xslt" instance-passing="forward">
>> <form xsl:version="2.0" xmlns="">
>> <xsl:copy-of select="doc('input:action')//result"/>
>> </form>
>> </result>
>> </action>
>> </page>
>> <page id="summary" path-info="/photoarchive/summary" view="summary/summary-view.xsl">
>> <!-- View an existing document -->
>> <action when="/form/action = 'show-detail'" action="summary/find-document-action.xpl">
>> <result id="photo-detail" page="photo-detail" when="/document-info/document/photo != ''" transform="oxf:xslt">
>> <form xsl:version="2.0" xmlns="">
>> <document-id>
>> <xsl:value-of select="doc('input:action')/document-info/document-id"/>
>> </document-id>
>> <document>
>> <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
>> </document>
>> </form>
>> </result>
>> <result id="folder-detail" page="folder-detail" when="/document-info/document/folder != ''" transform="oxf:xslt">
>> <form xsl:version="2.0" xmlns="">
>> <document-id>
>> <xsl:value-of select="doc('input:action')/document-info/document-id"/>
>> </document-id>
>> <document>
>> <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
>> </document>
>> </form>
>> </result>
>> </action>
>> </page>
>> <page id="photo-detail" path-info="/photoarchive/photo-detail" model="detail/main-model.xpl" view="detail/photo-detail-view.xsl">
>> <!-- Back: Return to the summary page -->
>> <action when="/form/action = 'back'">
>> <result page="summary"/>
>> </action>
>> </page>
>> <page id="folder-detail" path-info="/photoarchive/folder-detail" view="detail/folder-detail-view.xsl">
>> <!-- Back: Return to the summary page -->
>> <action when="/form/action = 'back'">
>> <result page="summary"/>
>> </action>
>> </page>
>> <!-- CSS generated by a pipeline (for standalone operation) -->
>> <page id="layout-css" path-info="/config/theme/orbeon-layout.cssd" model="/config/theme/orbeon-layout.xpl"/>
>> <epilogue url="oxf:/config/epilogue.xpl"/>
>></config>
>>
>>Cheers
>>Brendan
>>
>>-----Original Message-----
>>From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
>>Sent: Friday, 25 November 2005 3:52 AM
>>To: [hidden email]
>>Subject: Re: [ops-users] Strange OPS problem
>>
>>
>>What version of OPS are you using (2.8, 3.0 beta 3, nightly), and what
>>XForms engine (Classic or NG)?
>>
>>-Erik
>>
>>Brendan Kerrison wrote:
>>
>>
>>>Hi there,
>>>
>>>I'm a bit of an OPS newbie so it's possible that I am doing fundamental wrong so bare with me if the answer to this is really obvious.
>>>
>>>I am looking at using OPS for the front end to some XML database applications. I have been attempting to replicate much of the functionality in BizDoc NG example, the main differences being that I have put a search page prior to the summary page to filter the results being displayed and the summary page displays only 10 results at a time. Obviously the records them selves are different as well.
>>>
>>>An issue I am having at the moment is that the back button sometimes does not operate as I would have expected it to. An example of this is as follows:
>>>
>>>* The user types in a keyword in the search page and hits submit.
>>>* A query is generated and executed against the XML database and the results diplayed
>>>
>>>So far so good - everything works as I expect
>>>
>>>* the user hits the back button
>>>* the search page is displayed with the original keyword still in the input field
>>>
>>>Still so for so good.
>>>
>>>However, if the user does either of the following:
>>>
>>>* presses the submit button again without changing the keyword
>>>* types the same keyword in again
>>>
>>>and then tries to resubmit the form then the keyword is not passed through to the XPL. If the user types in a different keyword then everything works as expected.
>>>
>>>The first time the user hits submit the instance is passed through as follows:
>>>
>>><criteria>
>>>   <count>0</count>
>>>   <keyword>cast</keyword>
>>>   <option>folder|photo</option>
>>></criteria>
>>>
>>>after hitting back and either hitting submit again or typing in the same keyword the instance looks like:
>>>
>>><criteria>
>>>   <count>0</count>
>>>   <keyword/>
>>>   <option>folder|photo</option>
>>></criteria>
>>>
>>>The problem occurs on both IE and Firefox.
>>>
>>>Any ideas?
>>>
>>>Cheers
>>>Brendan
>>>
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>
>>>--
>>>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
>>
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>
>>--
>>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
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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




--
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: Strange OPS problem

bkerrison
In reply to this post by bkerrison
I'll see if I can make a small example which replicates the problem and send it through.

Cheers
Brendan

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
Sent: Thursday, 1 December 2005 9:14 AM
To: [hidden email]
Subject: Re: [ops-users] Strange OPS problem


A reproduceable case (i.e. complete working code we can run locally)
would be good. I don't have an idea about what could be wrong.

-Erik

Brendan Kerrison wrote:

> Hi Erik,
>
> I have updated to the latest nightly build (25/11) but it didn't fix the problem.
>
> Is there anything else I should check?
>
> Cheers
> Brendan
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
> Sent: Friday, 25 November 2005 8:12 PM
> To: [hidden email]
> Subject: Re: [ops-users] Strange OPS problem
>
>
> Brendan,
>
> I suggest you try with the latest nightly build, since we just
> implemented support for "back" with XForms NG. This may fix your problem.
>
> -Erik
>
> Brendan Kerrison wrote:
>
>>Hi Erik,
>>
>>I'm using the nightly build from 23112005 and as for as I know I'm using the NG XForms engine.
>>
>>My page flow looks like:
>>
>><config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" instance-passing="forward">
>> <!-- Files to serve directly (for standalone operation) -->
>> <files path-info="*.gif"/>
>> <files path-info="*.css"/>
>> <files path-info="*.js"/>
>> <files path-info="*.png"/>
>> <files path-info="*.jpg"/>
>> <files path-info="*.wsdl"/>
>> <files path-info="*.html" mime-type="text/html"/>
>> <files path-info="*.java" mime-type="text/plain"/>
>> <files path-info="*.txt" mime-type="text/plain"/>
>> <page id="search" path-info="/photoarchive" view="search/search-view.xsl">
>> <action when="/form/action = 'search'" action="search/list-documents-action.xpl">
>> <result page="summary" transform="oxf:xslt" instance-passing="forward">
>> <form xsl:version="2.0" xmlns="">
>> <xsl:copy-of select="doc('input:action')//result"/>
>> </form>
>> </result>
>> </action>
>> </page>
>> <page id="summary" path-info="/photoarchive/summary" view="summary/summary-view.xsl">
>> <!-- View an existing document -->
>> <action when="/form/action = 'show-detail'" action="summary/find-document-action.xpl">
>> <result id="photo-detail" page="photo-detail" when="/document-info/document/photo != ''" transform="oxf:xslt">
>> <form xsl:version="2.0" xmlns="">
>> <document-id>
>> <xsl:value-of select="doc('input:action')/document-info/document-id"/>
>> </document-id>
>> <document>
>> <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
>> </document>
>> </form>
>> </result>
>> <result id="folder-detail" page="folder-detail" when="/document-info/document/folder != ''" transform="oxf:xslt">
>> <form xsl:version="2.0" xmlns="">
>> <document-id>
>> <xsl:value-of select="doc('input:action')/document-info/document-id"/>
>> </document-id>
>> <document>
>> <xsl:copy-of select="doc('input:action')/document-info/document/*"/>
>> </document>
>> </form>
>> </result>
>> </action>
>> </page>
>> <page id="photo-detail" path-info="/photoarchive/photo-detail" model="detail/main-model.xpl" view="detail/photo-detail-view.xsl">
>> <!-- Back: Return to the summary page -->
>> <action when="/form/action = 'back'">
>> <result page="summary"/>
>> </action>
>> </page>
>> <page id="folder-detail" path-info="/photoarchive/folder-detail" view="detail/folder-detail-view.xsl">
>> <!-- Back: Return to the summary page -->
>> <action when="/form/action = 'back'">
>> <result page="summary"/>
>> </action>
>> </page>
>> <!-- CSS generated by a pipeline (for standalone operation) -->
>> <page id="layout-css" path-info="/config/theme/orbeon-layout.cssd" model="/config/theme/orbeon-layout.xpl"/>
>> <epilogue url="oxf:/config/epilogue.xpl"/>
>></config>
>>
>>Cheers
>>Brendan
>>
>>-----Original Message-----
>>From: Erik Bruchez [mailto:[hidden email]]On Behalf Of Erik Bruchez
>>Sent: Friday, 25 November 2005 3:52 AM
>>To: [hidden email]
>>Subject: Re: [ops-users] Strange OPS problem
>>
>>
>>What version of OPS are you using (2.8, 3.0 beta 3, nightly), and what
>>XForms engine (Classic or NG)?
>>
>>-Erik
>>
>>Brendan Kerrison wrote:
>>
>>
>>>Hi there,
>>>
>>>I'm a bit of an OPS newbie so it's possible that I am doing fundamental wrong so bare with me if the answer to this is really obvious.
>>>
>>>I am looking at using OPS for the front end to some XML database applications. I have been attempting to replicate much of the functionality in BizDoc NG example, the main differences being that I have put a search page prior to the summary page to filter the results being displayed and the summary page displays only 10 results at a time. Obviously the records them selves are different as well.
>>>
>>>An issue I am having at the moment is that the back button sometimes does not operate as I would have expected it to. An example of this is as follows:
>>>
>>>* The user types in a keyword in the search page and hits submit.
>>>* A query is generated and executed against the XML database and the results diplayed
>>>
>>>So far so good - everything works as I expect
>>>
>>>* the user hits the back button
>>>* the search page is displayed with the original keyword still in the input field
>>>
>>>Still so for so good.
>>>
>>>However, if the user does either of the following:
>>>
>>>* presses the submit button again without changing the keyword
>>>* types the same keyword in again
>>>
>>>and then tries to resubmit the form then the keyword is not passed through to the XPL. If the user types in a different keyword then everything works as expected.
>>>
>>>The first time the user hits submit the instance is passed through as follows:
>>>
>>><criteria>
>>>   <count>0</count>
>>>   <keyword>cast</keyword>
>>>   <option>folder|photo</option>
>>></criteria>
>>>
>>>after hitting back and either hitting submit again or typing in the same keyword the instance looks like:
>>>
>>><criteria>
>>>   <count>0</count>
>>>   <keyword/>
>>>   <option>folder|photo</option>
>>></criteria>
>>>
>>>The problem occurs on both IE and Firefox.
>>>
>>>Any ideas?
>>>
>>>Cheers
>>>Brendan
>>>
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>
>>>--
>>>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
>>
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>
>>--
>>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
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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





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