After long exploration I have found what was causing problem with poll (poll
was not returning answer elements). Problem was caused by jpox version.

With jpox 1.1.6 - 1.1.8 poll was not returning answers, but with 1.1.0
result was containing all answer elements.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jasha
Joachimsthal
Sent: Friday, February 20, 2009 10:45
To: Hippo CMS development public mailinglist
Subject: Re: [HippoCMS-dev] Problem in retreiving poll

2009/2/20 Igor Gere <[email protected]>

> > That's because we split up the code into separate projects. You need the
> > community-apps-core with community-apps-cocoon.
>
> I excluded hippo-community-apps (2.01.02) and rebuild FE application with
> this dependencies:
> hippo-community-apps-cocoon 2.02.02
> hippo-community-apps-core 2.02.02
>
> When I make request for poll xml that is returned is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <poll xmlns="http://hippo.nl/cocoon/generation/poll";
> all-vote-count="0" pollid="6">
>        <question>This is question?</question>
>        <headertext> Test poll.</headertext>
>        <repodocument/>
>        <isonline>true</isonline>
>        <onlinedate date-format="dd-MM-yyyy">19-02-2009</onlinedate>
>        <answers total="0"/>
> </poll>
>
> It also lacks of answers child nodes. Is that because no question is
> answered? I think questions should be listed anyway.
>
> It should return all possible answers even if there's no vote for the
answer. We've only tested the HCA on MySQL and Oracle so it might be MSSQL
that is the problem.


>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Jasha
> Joachimsthal
> Sent: Friday, February 20, 2009 10:03
> To: Hippo CMS development public mailinglist
> Subject: Re: [HippoCMS-dev] Problem in retreiving poll
>
> 2009/2/20 Igor Gere <[email protected]>
>
> > Thanks for helping,
> >
> > > The notifier is not necessary for the poll. Why aren't you using the
> same
> > > versions for hippo-community-apps and hippo-community-apps cocoon?
> >
> > From: http://repository.hippocms.org/maven/hippo/jars/ I took last
> > versions
> > of artifacts. I know that versions do not match, but I can't find
> matching
> > versions.
> >
> > Could you suggest me which versions to use?
>
>
> That's because we split up the code into separate projects. You need the
> community-apps-core with community-apps-cocoon.
>
> >
> >
> >
> >
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of Jasha
> > Joachimsthal
> > Sent: Friday, February 20, 2009 9:16
> > To: Hippo CMS development public mailinglist
> > Subject: Re: [HippoCMS-dev] Problem in retreiving poll
> >
> > 2009/2/20 Igor Gere <[email protected]>
> >
> > > > Which version of the Hippo Community Apps are you using?
> > >
> > > Thanks for answering.
> > >
> > > Version I use are:
> > > hippo-community-apps 2.01.02
> > > hippo-community-apps-cocoon 2.02.02
> > > hippo-community-apps-notifier 2.02.02
> >
> >
> > The notifier is not necessary for the poll. Why aren't you using the
same
> > versions for hippo-community-apps and hippo-community-apps cocoon?
> >
> > >
> > >
> > > > If you save the poll, do you see rows in the database for answers?
> > >
> > > Yes there are rows for answers in the database and I am using MS SQL.
> > > In CMS in dashboard answers are correctly associated to polls.
> > >
> > >
> > > -----Original Message-----
> > > From: [email protected]
> > > [mailto:[email protected]] On Behalf Of Jasha
> > > Joachimsthal
> > > Sent: Friday, February 20, 2009 8:40
> > > To: Hippo CMS development public mailinglist
> > > Subject: Re: [HippoCMS-dev] Problem in retreiving poll
> > >
> > > Hello,
> > >
> > > 2009/2/19 I. Gere <[email protected]>
> > >
> > > > Hi all, I am new to hippocms-dev mailing list,
> > > >
> > >
> > > welcome :)
> > >
> > > >
> > > >
> > > >
> > > > I am working on front end poll. Poll component is enabled in CMS
> > > (6.03.06)
> > > > and I added few polls. I was following guide from
> > > > http://www.hippo-ecm.org/display/CMS/2.+Frontend+poll and I added
> > > matcher
> > > > in
> > > > main sitemap:
> > > >
> > > > <map:match pattern="poll">
> > > >
> > > > <map:generate type="poll">
> > > >
> > > >            <map:parameter name="pollid"
> value="{request-param:pollid}"
> > />
> > > >
> > > >      </map:generate>
> > > >
> > > >      <map:serialize type="xml" />
> > > >
> > > > </map:match>
> > > >
> > > >
> > > >
> > > > it returns me this xml document:
> > > >
> > > > <poll all-vote-count="0" pollid="3">
> > > >
> > > > <question>Is it working?</question>
> > > >
> > > > <headertext> This is the first working poll.</headertext>
> > > >
> > > > <repodocument/>
> > > >
> > > > <isonline>true</isonline>
> > > >
> > > > <onlinedate
> > date-format="yyyyMMddHHmmssSS">20090218165916127</onlinedate>
> > > >
> > > > <answers total="0"/>
> > > >
> > > > </poll>
> > > >
> > > >
> > > >
> > > > Node answers does not contain answer elements although poll has two
> > > answers
> > > > offered in CMS. Can someone help me with suggestion what to try or
> > share
> > > > their experience on working with poll in front end? If needed I can
> > > provide
> > > > more information.
> > >
> > >
> > > Which version of the Hippo Community Apps are you using? If you save
> the
> > > poll, do you see rows in the database for answers?
> > >
> > > --
> > > Jasha Joachimsthal
> > >
> > > [email protected] - [email protected]
> > >
> > > www.onehippo.com
> > > Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
> > > San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
> > 94952-5100
> > > +1 (707) 773-4646
> > > ********************************************
> > > Hippocms-dev: Hippo CMS development public mailinglist
> > >
> > > Searchable archives can be found at:
> > > MarkMail: http://hippocms-dev.markmail.org
> > > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> > >
> > > ********************************************
> > > Hippocms-dev: Hippo CMS development public mailinglist
> > >
> > > Searchable archives can be found at:
> > > MarkMail: http://hippocms-dev.markmail.org
> > > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> > >
> > >
> >
> >
> > --
> > Jasha Joachimsthal
> >
> > [email protected] - [email protected]
> >
> > www.onehippo.com
> > Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
> > San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
> 94952-5100
> > +1 (707) 773-4646
> > ********************************************
> > Hippocms-dev: Hippo CMS development public mailinglist
> >
> > Searchable archives can be found at:
> > MarkMail: http://hippocms-dev.markmail.org
> > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> >
> > ********************************************
> > Hippocms-dev: Hippo CMS development public mailinglist
> >
> > Searchable archives can be found at:
> > MarkMail: http://hippocms-dev.markmail.org
> > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
> >
> >
>
>
> --
> Jasha Joachimsthal
>
> [email protected] - [email protected]
>
> www.onehippo.com
> Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
> San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-5100
> +1 (707) 773-4646
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>


-- 
Jasha Joachimsthal

[email protected] - [email protected]

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100
+1 (707) 773-4646
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to