You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Michael Homeijer <M....@devote.nl> on 2002/12/03 08:48:57 UTC

[possible donation] XmlForm popup sample using sourcewriter

Hi,

I have prepared a sample for Cocoon 2.1 of a xml form popup that reads from
and writes data to a xml file using a sourcewriter. The example edits
business cards from a directory in a popup.

I'd be happy to zip them up and mail these if anybody wants to add it to the
Cocoon samples.

Some background and things to do:
- XmlFormPopupAction.java
Takes care of the 'show' and 'save' phase of the popup. For now the popup is
handled in 3 phases. Load data using the WriteDOMTransformer, store it in
the session and client-redirect to the 'show' phase. The show phase
determines if the pipeline for showing the popup is called or the pipeline
for saving the data and closing the popup. I didn't find a way yet to
retrieve the xml data in the pipeline just before the action, this way the
dom could be stored in the request instead of the session.

- ReadDOMTransformer.java
A new version of the ReadDOMSessionTransformer that can read objects from
the session or the request, and that can replace xml data
(position=replace). I think this transformer should be adapted to use
inputmodules, but I am not sure yet on how to implement this.

- WriteDOMTransformer.java
A new version of the WriteDOMSessionTransformer that can write a dom object
in the request or in the session. I think this transformer should be adapted
to use outputmodules.

Michael Homeijer

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [possible donation] XmlForm popup sample using sourcewriter

Posted by Ivelin Ivanov <iv...@apache.org>.
Please submit a bugzilla report.
I will review the code and possibly commit it.


Ivelin


----- Original Message -----
From: "Michael Homeijer" <M....@devote.nl>
To: <co...@xml.apache.org>
Sent: Tuesday, December 03, 2002 1:48 AM
Subject: [possible donation] XmlForm popup sample using sourcewriter


> Hi,
>
> I have prepared a sample for Cocoon 2.1 of a xml form popup that reads
from
> and writes data to a xml file using a sourcewriter. The example edits
> business cards from a directory in a popup.
>
> I'd be happy to zip them up and mail these if anybody wants to add it to
the
> Cocoon samples.
>
> Some background and things to do:
> - XmlFormPopupAction.java
> Takes care of the 'show' and 'save' phase of the popup. For now the popup
is
> handled in 3 phases. Load data using the WriteDOMTransformer, store it in
> the session and client-redirect to the 'show' phase. The show phase
> determines if the pipeline for showing the popup is called or the pipeline
> for saving the data and closing the popup. I didn't find a way yet to
> retrieve the xml data in the pipeline just before the action, this way the
> dom could be stored in the request instead of the session.
>
> - ReadDOMTransformer.java
> A new version of the ReadDOMSessionTransformer that can read objects from
> the session or the request, and that can replace xml data
> (position=replace). I think this transformer should be adapted to use
> inputmodules, but I am not sure yet on how to implement this.
>
> - WriteDOMTransformer.java
> A new version of the WriteDOMSessionTransformer that can write a dom
object
> in the request or in the session. I think this transformer should be
adapted
> to use outputmodules.
>
> Michael Homeijer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: [possible donation] XmlForm popup sample using sourcewriter

Posted by Ivelin Ivanov <iv...@apache.org>.
Please send me your code.



----- Original Message -----
From: "Michael Homeijer" <M....@devote.nl>
To: <co...@xml.apache.org>
Sent: Tuesday, December 03, 2002 1:48 AM
Subject: [possible donation] XmlForm popup sample using sourcewriter


> Hi,
>
> I have prepared a sample for Cocoon 2.1 of a xml form popup that reads
from
> and writes data to a xml file using a sourcewriter. The example edits
> business cards from a directory in a popup.
>
> I'd be happy to zip them up and mail these if anybody wants to add it to
the
> Cocoon samples.
>
> Some background and things to do:
> - XmlFormPopupAction.java
> Takes care of the 'show' and 'save' phase of the popup. For now the popup
is
> handled in 3 phases. Load data using the WriteDOMTransformer, store it in
> the session and client-redirect to the 'show' phase. The show phase
> determines if the pipeline for showing the popup is called or the pipeline
> for saving the data and closing the popup. I didn't find a way yet to
> retrieve the xml data in the pipeline just before the action, this way the
> dom could be stored in the request instead of the session.
>
> - ReadDOMTransformer.java
> A new version of the ReadDOMSessionTransformer that can read objects from
> the session or the request, and that can replace xml data
> (position=replace). I think this transformer should be adapted to use
> inputmodules, but I am not sure yet on how to implement this.
>
> - WriteDOMTransformer.java
> A new version of the WriteDOMSessionTransformer that can write a dom
object
> in the request or in the session. I think this transformer should be
adapted
> to use outputmodules.
>
> Michael Homeijer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org