[opencms-dev] OpenCMS 8 upgrade problem

Deiverson Silveira deiverson at solutioncms.com
Mon May 30 13:35:02 CEST 2011


Hello Gleb,

I searched here, and looked in the source code of the OpenCms 8.0, and this
function is defined on I_CmsXmlContentContainer:
  hasMoreContent boolean () throws JspException.

I think you might be experiencing a caching problem on the application
server, this class is the implementation of taglib <cms: contentload
collector = "singlefile"!

- Have you tried the clean install, after install, make export the modules
of your project to OpenCms 8?

Don't update, install clean, export your module project OpenCms 7 and import
in OpenCms 8 install clean!

I belive this way you have sucess!

Regards,

Deiverson Silveira


2011/5/30 gleb makarov <gleb.a.makarov at gmail.com>

> Hello everyone,
>
> Our problem was solved by updating the JDBC driver. Installation was
> completed without any problems after that.
>
> But now we have another problem: to display XML content, we use the code
> listed below in the templates of our web pages.
>
> After last upgrade, system started showing this error: The method
> hasMoreContent() is undefined for the type I_CmsXmlContentContainer. So my
> question is: whether this method is not supported since 8.0 version, and how
> should we update our code to fix this issue without too much effort (we have
> this code in the most part of our templates).
>
> Any information would be appreciated. Thank you in advance.
>
> Code example of displaying XML contents with Java:
>     ...
>     I_CmsXmlContentContainer contentContainer =
> thisPage.contentload("singleFile", param, false);
>     I_CmsXmlContentContainer elementContainer = null;
>     while(contentContainer.hasMoreContent()){
>         elementContainer = thisPage.contentloop(contentContainer, "Offer");
>         while(elementContainer.hasMoreContent()){
>             out.writeln(thisPage.contentshow(contentContainer, "Title"));
>              ...
>         }
>     }
>     ...
>
>
>
-- 
*
www.solutioncms.com
The Brazilian
Official Provider OpenCms
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110530/ce807162/attachment.htm>


More information about the opencms-dev mailing list