<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17102" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=475431510-28092011><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=475431510-28092011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=475431510-28092011><FONT face=Arial
color=#0000ff size=2>Add my signature to this request. I use mostly structured
content and scriptlet code, and
consequently I use I_CmsXmlContentContainer#hasMoreContent()
"everywhere".</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=475431510-28092011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=475431510-28092011><FONT face=Arial
color=#0000ff size=2>To be honest, I find it quite strange the
method was simply removed, in favor of another. I'd expect som
kind of backwards compatibility – especially in a case like
this, where it seems extremely easy to achieve (f.ex. just
returning hasMoreResources(), like Brett suggests).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=475431510-28092011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=475431510-28092011><FONT face=Arial
color=#0000ff size=2>Best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=475431510-28092011><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Brett
Sheeran<BR><B>Sent:</B> 28. september 2011 12:02<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] Can We Have
hasMoreContent() Method Back Please?<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Hi,</P>
<P>On behalf of those of us who utilize the hasMoreContent() method, can we
have it back in future versions of OpenCMS please?</P>
<P>I have just installed OpenCMS 8.0.1 which had a couple of incompatibilities
with our code base.</P>
<P>One incompatibility was easily fixed. However, the other incompatability
(hasMoreContent() becoming hasMoreResources() in the following files has
caused us major
headaches:<BR>CmsJspTagResourceLoad.java<BR>I_CmsResourceContainer.java<BR>CmsJspTagContentLoad.java<BR>CmsJspTagContentLoop.java</P>
<P>The reasons we are respectfully requesting hasMoreContent() back are as
follows:<BR>- We make extensive use of the hasMoreContent() method<BR>- 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.<BR>- 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.</P>
<P>I feel we could have both hasMoreContent() and hasMoreResources() methods
but deprecate hasMoreContent().</P>
<P>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.</P>
<P><BR>public boolean hasMoreContent() throws JspException {<BR> return
hasMoreResources();<BR>}</P>
<P>OR</P>
<P>boolean hasMoreContent() throws JspException;</P>
<DIV><BR>Those modifications seem to work OK however, I'm hoping we can
eventually use a standard OpenCMS build.</DIV>
<DIV> </DIV>
<DIV>BTW, I am happy to email those files to anyone who wants a
copy</DIV>
<P>Thank you.</P>
<P>Regards</P>
<P>Brett S</P></BLOCKQUOTE></BODY></HTML>