You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Carsten Ziegeler <cz...@apache.org> on 2005/11/18 12:28:01 UTC

[ANN] Apache Cocoon 2.1.8 Released

Apache Cocoon 2.1.8 Released
----------------------------

  The Apache Cocoon Community is proud to announce the new release
  of Apache Cocoon.

  Apache Cocoon is a web development framework built around the concept
  of separation of concerns (that is: allowing people to do their job
  without having to step on each other toes) and component-oriented web
  RAD.

  The latest version is downloadable from
  http://cocoon.apache.org/mirror.cgi
  (Please use the mirrors to download the release - it might take
  a little bit more time until the latest release is available on
  all mirrors, so give the mirrors some time - approx. 24h to update.)

  This release includes many bug fixes and smaller enhancements. Most
  notable additions are:

    * Many enhancements to the forms block including AJAX support for
      partial updates to a form, a new tree widget, some experimental
      code for reusable form libraries (coded as a part of the Google
      Summer of Code project) and a sample showing how to create forms
      using relational databases with zero java code.

    * Cocoon Stack Traces: Ever felt overwhelmed when presented with a
      huge java stack trace when something goes wrong in Cocoon? Well,
      now you will instead see a Cocoon related stack trace, showing you
      precisely where the error occurred and in which Cocoon source
      files

    * Many enhancements to the portal block, including improved caching

      mechanisms, support for the Web Services For Remote Portlets
      (WSRP) standard, and provided components for database access using
      OJB.

    * Some small simplifications to the build process (can now exclude
      all blocks, then include just the ones you need)

    * Substantial reworking of the Cocoon documentation system.
      Documentation is now managed using Daisy (cocoondev.org/daisy).
      Because of this, the documentation is now not included within the
      main Cocoon release, but is available as a separate download as
      zipped HTML.

    * A new JCR block allowing access to JCR repositories such as
      JackRabbit (Java Content Repository specification was designed as
      a part of JSR170)

    * A new validation block providing the ability to validate XML in a
      pipeline chosing from a range of schema languages (DTD, XSD, RNG)

    * The ability to use Cocoon pipelines to render JSF pages (using the
      JSF controller)

  For more information about Apache Cocoon 2.1.8, please go to
  http://cocoon.apache.org. You'll find the whole list of changes at
  http://cocoon.apache.org/2.1/changes.html.

The Apache Cocoon Project

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

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


Re: Page iteration & redirect in Cocoon

Posted by Oleg Konovalov <ol...@yahoo.com>.
Hi,

What 

I see that act() method has redirector parameter, 
don't know what it is for or how to use it:
public Map act(Redirector redirector, SourceResolver resolver,
Map
objectModel, String source, Parameters par)
which is a method of class:
ExecuteCDAAction extends AbstractMbrAction implements
Composable,
Configurable, Disposable

Any examples of using that redirector ?

There is also RedirectTransformer implemented but never used:
public class RedirectTransformer extends AbstractSAXTransformer

What is that for, any clue ?


Sorry for the newbie questions.

Any help is very appreciated.

TIA,
Oleg.

--- Oleg Konovalov <ol...@yahoo.com> wrote:

> One thing I should add is that the mechanism for passing
> checked
> checkboxes is in place and works fine (for Add, Delete &
> Reject),
> via the same Java class ExecuteCDAAction.
> 
> My main question is whether there is some mechanism in sitemap
> allowing page iteration (e.g. conditional loop) or
> should I use some Java mechanism for that, 
> e.g. for loop with servlet's redirect or maybe call some
> method recursively ?
> 
> Sorry for the newbie question.
> 
> Any help is very appreciated.
> 
> TIA,
> Oleg.
> 
> --- Oleg Konovalov <ol...@yahoo.com> wrote:
> 
> > Hi,
> > 
> > I am trying to implement the following enhancement
> > in Cocoon 2.0.4 project (with sitemap actions).
> > 
> > Imagine you have 2 databases (one is Master, one is
> Current).
> > Users can upload information from external Excel files given
> > by 3rd party companies (new, same, partially modified
> > records).
> > So user uploads the new records to the Current database
> > and should be able to manually go through them (program
> > calculates
> > the difference between uploaded and existing records) 
> > and decide whether to Add, Change, Reject, Multi-Match 
> > or Ignore a record (can update just selective fields as
> well).
> > 
> > So we have Main Screen, user clicks on Change, sees a list
> of
> > records which do not match (ChangeRecs Screen), 
> > selects (one or a few of them) and Clicks on Change button
> > which brings him to Details screen (where he sees field by
> > field
> > comparison of fields that record (current and updated) and
> > selects fields he wants to change.
> > 
> > As of now user can only select 1 record at a time, then in
> > brings
> > him back to the ChangeRecs screen.
> > Enhancement is in allowing to select a bunch of records
> > and iterate through all of them (with options to Update,
> Skip
> > one or Cancel the whole sequence).
> > 
> > 1) Is there a sample of implementation such "page iteration"
> 
> > using sitemap actions?
> > 
> > 2) Any sitemap iteractions constructs ?
> > 
> > 3) Could you please suggest me how to design such thing ?
> > As of now, here is a core of the sitemap I have:
> > 
> > <map:match pattern="change_recs">
> > <map:act type='request'>
> >   <map:parameter name="parameters" value="true"/>
> >   <map:generate src='xml/change_query.xml'/>
> >   <map:transform type="sql">
> > 	<map:parameter name="Id" value="{Id}"/>
> > 	<map:parameter name="use-connection" value="mbrdb"/>
> > 	<map:parameter name="show-nr-of-rows" value="true"/>	  
> >   </map:transform>
> >   <map:transform type="xslt" src="change_recs.xsl">
> >     <map:parameter name="use-request-parameters"
> value="true"	
> >  
> > </map:transform>
> >   <map:serialize type="html"/>
> > </map:act>
> > </map:match>
> > 
> > part of changerecs.xsl :
> > <form name="ChangeRecs" id="ChangeRecs" method="post"
> > action="executeAction" onsubmit="some javascript checks">
> > 
> > 
> > <map:match pattern="executeAction">
> >   <map:act type='request'>
> >     <map:parameter name='parameters' value='true'/>
> >     <map:parameter name="default.industry_code" value="%"/>
> >     <map:act type="cda">
> >       <map:redirect-to uri="{../action}?params...
> &amp;ok=1"/>
> >     </map:act>
> >     <map:redirect-to uri="{action}?params...&amp;error=1"/>
> >   </map:act>
> > </map:match>
> > 
> > <map:action name="cda" src="ExecuteCDAAction">
> > Change-Delete-Add
> > <map:action name="request"
> > src="org.apache.cocoon.acting.RequestParamAction"/>
> > 
> > TIA,
> > Oleg.
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:
> users-help@cocoon.apache.org
> > 
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


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


Re: Page iteration in Cocoon

Posted by Oleg Konovalov <ol...@yahoo.com>.
One thing I should add is that the mechanism for passing checked
checkboxes is in place and works fine (for Add, Delete &
Reject),
via the same Java class ExecuteCDAAction.

My main question is whether there is some mechanism in sitemap
allowing page iteration (e.g. conditional loop) or
should I use some Java mechanism for that, 
e.g. for loop with servlet's redirect or maybe call some
method recursively ?

Sorry for the newbie question.

Any help is very appreciated.

TIA,
Oleg.

--- Oleg Konovalov <ol...@yahoo.com> wrote:

> Hi,
> 
> I am trying to implement the following enhancement
> in Cocoon 2.0.4 project (with sitemap actions).
> 
> Imagine you have 2 databases (one is Master, one is Current).
> Users can upload information from external Excel files given
> by 3rd party companies (new, same, partially modified
> records).
> So user uploads the new records to the Current database
> and should be able to manually go through them (program
> calculates
> the difference between uploaded and existing records) 
> and decide whether to Add, Change, Reject, Multi-Match 
> or Ignore a record (can update just selective fields as well).
> 
> So we have Main Screen, user clicks on Change, sees a list of
> records which do not match (ChangeRecs Screen), 
> selects (one or a few of them) and Clicks on Change button
> which brings him to Details screen (where he sees field by
> field
> comparison of fields that record (current and updated) and
> selects fields he wants to change.
> 
> As of now user can only select 1 record at a time, then in
> brings
> him back to the ChangeRecs screen.
> Enhancement is in allowing to select a bunch of records
> and iterate through all of them (with options to Update, Skip
> one or Cancel the whole sequence).
> 
> 1) Is there a sample of implementation such "page iteration" 
> using sitemap actions?
> 
> 2) Any sitemap iteractions constructs ?
> 
> 3) Could you please suggest me how to design such thing ?
> As of now, here is a core of the sitemap I have:
> 
> <map:match pattern="change_recs">
> <map:act type='request'>
>   <map:parameter name="parameters" value="true"/>
>   <map:generate src='xml/change_query.xml'/>
>   <map:transform type="sql">
> 	<map:parameter name="Id" value="{Id}"/>
> 	<map:parameter name="use-connection" value="mbrdb"/>
> 	<map:parameter name="show-nr-of-rows" value="true"/>	  
>   </map:transform>
>   <map:transform type="xslt" src="change_recs.xsl">
>     <map:parameter name="use-request-parameters" value="true"	
>  
> </map:transform>
>   <map:serialize type="html"/>
> </map:act>
> </map:match>
> 
> part of changerecs.xsl :
> <form name="ChangeRecs" id="ChangeRecs" method="post"
> action="executeAction" onsubmit="some javascript checks">
> 
> 
> <map:match pattern="executeAction">
>   <map:act type='request'>
>     <map:parameter name='parameters' value='true'/>
>     <map:parameter name="default.industry_code" value="%"/>
>     <map:act type="cda">
>       <map:redirect-to uri="{../action}?params... &amp;ok=1"/>
>     </map:act>
>     <map:redirect-to uri="{action}?params...&amp;error=1"/>
>   </map:act>
> </map:match>
> 
> <map:action name="cda" src="ExecuteCDAAction">
> Change-Delete-Add
> <map:action name="request"
> src="org.apache.cocoon.acting.RequestParamAction"/>
> 
> TIA,
> Oleg.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


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


Page iteration in Cocoon

Posted by Oleg Konovalov <ol...@yahoo.com>.
Hi,

I am trying to implement the following enhancement
in Cocoon 2.0.4 project (with sitemap actions).

Imagine you have 2 databases (one is Master, one is Current).
Users can upload information from external Excel files given
by 3rd party companies (new, same, partially modified records).
So user uploads the new records to the Current database
and should be able to manually go through them (program
calculates
the difference between uploaded and existing records) 
and decide whether to Add, Change, Reject, Multi-Match 
or Ignore a record (can update just selective fields as well).

So we have Main Screen, user clicks on Change, sees a list of
records which do not match (ChangeRecs Screen), 
selects (one or a few of them) and Clicks on Change button
which brings him to Details screen (where he sees field by field
comparison of fields that record (current and updated) and
selects fields he wants to change.

As of now user can only select 1 record at a time, then in
brings
him back to the ChangeRecs screen.
Enhancement is in allowing to select a bunch of records
and iterate through all of them (with options to Update, Skip
one or Cancel the whole sequence).

1) Is there a sample of implementation such "page iteration" 
using sitemap actions?

2) Any sitemap iteractions constructs ?

3) Could you please suggest me how to design such thing ?
As of now, here is a core of the sitemap I have:

<map:match pattern="change_recs">
<map:act type='request'>
  <map:parameter name="parameters" value="true"/>
  <map:generate src='xml/change_query.xml'/>
  <map:transform type="sql">
	<map:parameter name="Id" value="{Id}"/>
	<map:parameter name="use-connection" value="mbrdb"/>
	<map:parameter name="show-nr-of-rows" value="true"/>	  
  </map:transform>
  <map:transform type="xslt" src="change_recs.xsl">
    <map:parameter name="use-request-parameters" value="true"		 
</map:transform>
  <map:serialize type="html"/>
</map:act>
</map:match>

part of changerecs.xsl :
<form name="ChangeRecs" id="ChangeRecs" method="post"
action="executeAction" onsubmit="some javascript checks">


<map:match pattern="executeAction">
  <map:act type='request'>
    <map:parameter name='parameters' value='true'/>
    <map:parameter name="default.industry_code" value="%"/>
    <map:act type="cda">
      <map:redirect-to uri="{../action}?params... &amp;ok=1"/>
    </map:act>
    <map:redirect-to uri="{action}?params...&amp;error=1"/>
  </map:act>
</map:match>

<map:action name="cda" src="ExecuteCDAAction"> Change-Delete-Add
<map:action name="request"
src="org.apache.cocoon.acting.RequestParamAction"/>

TIA,
Oleg.


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


Re: [ANN] Apache Cocoon 2.1.8 Released

Posted by Aurélien DEHAY <ad...@zorel.org>.
Le vendredi 18 novembre 2005 à 12:28 +0100, Carsten Ziegeler a écrit :
> Apache Cocoon 2.1.8 Released

Great news. Thank you to all Cocoon team.

An happy user.

-- 
Aurélien


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


Re: [ANN] Apache Cocoon 2.1.8 Released

Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 18 nov. 05, à 12:28, Carsten Ziegeler a écrit :

> Apache Cocoon 2.1.8 Released...

Thanks Carsten!

I'll activate 2.1.8 tomorrow as the "current release" demo at 
http://cocoon.zones.apache.org/demos/release/ , unless someone beats me 
to it.

-Bertrand