[opencms-dev] Can We Have hasMoreContent() Method Back Please?

Brett Sheeran brett.sheeran at gmail.com
Wed Sep 28 12:02:06 CEST 2011


Hi,

On behalf of those of us who utilize the hasMoreContent() method, can we
have it back in future versions of OpenCMS please?

I have just installed OpenCMS 8.0.1 which had a couple of incompatibilities
with our code base.

One incompatibility was easily fixed. However, the other incompatability
(hasMoreContent() becoming hasMoreResources() in the following files has
caused us major headaches:
CmsJspTagResourceLoad.java
I_CmsResourceContainer.java
CmsJspTagContentLoad.java
CmsJspTagContentLoop.java

The reasons we are respectfully requesting hasMoreContent() back are as
follows:
- We make extensive use of the hasMoreContent() method
- We have several production sites running OpenCMS 7.5.3. Most of these are
high availability and shutting them down for upgrades at this time is very
inconvenient.
- We want to use OpenCMS 8 for future projects and eventually upgrade the
other sites but, we don't want to maintain two code bases.

I feel we could have both hasMoreContent() and hasMoreResources() methods
but deprecate hasMoreContent().

We have managed to get our code running on OpenCMS 8.0.1 by adding the
following few lines to the Java files mentioned above and doing a custom
build.


public boolean hasMoreContent() throws JspException {
 return hasMoreResources();
}

OR

boolean hasMoreContent() throws JspException;

Those modifications seem to work OK however, I'm hoping we can eventually
use a standard OpenCMS build.

BTW, I am happy to email those files to anyone who wants a copy

Thank you.

Regards

Brett S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110928/23904d18/attachment.htm>


More information about the opencms-dev mailing list