cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: sitemap processing bug?
Date Wed, 12 Jun 2002 19:07:59 GMT
> From: Gerhard Hipfinger [mailto:gerhard.hipfinger@openforce.at]
> 
> Hi Vadim,
> 
> but this method is still in the tutorial section of the distribution
> (webapp/tutorial/sitemap.xmap), so I assumed it is still working :-(

Sorry for spreading disinformation. I'm wrong, it should work.

Try your sitemap with Cocoon 2.0.3-dev. If it works with 2.0.3 and same
sitemap does not work with 2.1, file a bug.


Vadim

> Is there a new pattern to nest actions? I think this was an elegant
> solution to handle chained actions.
> 
> Thanks,
> Gerhard
> 
> Vadim Gritsenko wrote:
> 
> >>From: Gerhard Hipfinger [mailto:gerhard.hipfinger@openforce.at]
> >>
> >>Hi!
> >>
> >>I have the following problem with sitemap processing in the current
> >>2.1-dev CVS Snapshot.
> >>
> >>I have the following action set:
> >>
> >>
> >><snip>
> >>    <map:action-set name="linkkat">
> >>
> >>      <map:act type="formEncoding">
> >>        <map:parameter name="form-encoding" value="utf-8"/>
> >>      </map:act>
> >>
> >>      <map:act type="form" action="Create Kategorie">
> >>        <map:parameter name="validate-set" value="create"/>
> >>        <map:act type="dbAdd" action="Create Kategorie"/>
> >>      </map:act>
> >></snip>
> >>
> >
> >It looks like a bug (or, it is a feature - there is no sitemap
> >validation) in the sitemap implementation. This should not be allowed
> >and sitemap should not get loaded.
> >
> >Action set can contain only actions and these actions can have only
> >parameters.
> >
> >
> >>Even if all parameters are validated without errors, the dbAdd
action
> >>
> >is
> >
> >>never called (not even a entry in the sitemap.log)
> >>
> >>The DB configuration is 100% working, because when I do
> >>
> >><snip>
> >>    <map:action-set name="linkkat">
> >>
> >>      <map:act type="formEncoding">
> >>        <map:parameter name="form-encoding" value="utf-8"/>
> >>      </map:act>
> >>
> >>      <map:act type="form" action="Create Kategorie">
> >>        <map:parameter name="validate-set" value="create"/>
> >>      </map:act>
> >>
> >>        <map:act type="dbAdd" action="Create Kategorie"/>
> >>
> >>    </map:action-set>
> >></snip>
> >>
> >>A new record is successfully created. I guess I use the new
> >>TreeProcessor and not the compiled sitemap. Maybe there is a bug in
> >>
> >this
> >
> >>implementation. Btw. - how do I use the old compiled sitemap style
in
> >>current cvs snapshot?!? Or has the compiled version been deprecated
> >>
> >and
> >
> >>is gone?
> >>
> >
> >It is gone from 2.1-dev. Use 2.0.3-dev if you want compiled version.
> >
> >
> >Vadim
> >
> >
> >>Thanks in advance,
> >>Gerhard


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message