You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by khush N <kb...@gmail.com> on 2015/05/22 20:48:45 UTC

HtmlRendererUtils.writePrettyLineSeparator() is missing in 2.2

Hi,

I am using myfaces 2.2.7 version and found that
HtmlRendererUtils.writePrettyLineSeparator() method is missing. The method
is present in 2.1 version. Can anyone tell me the alternate of
HtmlRendererUtils.writePrettyLineSeparator in 2.2?

I also could not find the method in DEPRECATED tab in api docs.

Thanks!

Re: HtmlRendererUtils.writePrettyLineSeparator() is missing in 2.2

Posted by khush N <kb...@gmail.com>.
Thank you Mike!

On Wed, May 27, 2015 at 11:16 AM, Mike Kienenberger <mk...@gmail.com>
wrote:

> On Wed, May 27, 2015 at 2:06 PM, khush N <kb...@gmail.com> wrote:
> > Thanks Mike for the response! Do you guys provide Richfaces support as
> well?
>
> No, you'd have to ask at the Richfaces support area or in stackoverflow.
>

Re: HtmlRendererUtils.writePrettyLineSeparator() is missing in 2.2

Posted by Mike Kienenberger <mk...@gmail.com>.
On Wed, May 27, 2015 at 2:06 PM, khush N <kb...@gmail.com> wrote:
> Thanks Mike for the response! Do you guys provide Richfaces support as well?

No, you'd have to ask at the Richfaces support area or in stackoverflow.

Re: HtmlRendererUtils.writePrettyLineSeparator() is missing in 2.2

Posted by khush N <kb...@gmail.com>.
Thanks Mike for the response! Do you guys provide Richfaces support as well?

On Fri, May 22, 2015 at 12:48 PM, Mike Kienenberger <mk...@gmail.com>
wrote:

> I'm pretty sure it was used internally to support the
> org.apache.myfaces.PRETTY_HTML parameter, which was removed on
> November 13, 2013.
>
> https://issues.apache.org/jira/browse/MYFACES-3822
>
> This issue also includes remove unused params like:
>
> org.apache.myfaces.PRETTY_HTML
> Reason : never worked well, modern browsers has support for debugging,
> makes rendering slow.
>
> You can find the complete change-set here:
>
> http://svn.apache.org/viewvc?view=revision&revision=1541762
>
> One possibility is to navigate from the change-set to the previous
> version of HtmlRendererUtils which contained
> writePrettyLineSeparator() and copy that method (or the entire file)
> into your project.
>
>
> http://svn.apache.org/viewvc/myfaces/core/trunk/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java?view=markup&pathrev=1519698
>
> but since the method does very little, you are probably better off not
> using it at all and calling
> "facesContext.getResponseWriter().write(LINE_SEPARATOR);" directly.
>
> if
> (org.apache.myfaces.shared.config.MyfacesConfig.getCurrentInstance(facesContext.getExternalContext()).isPrettyHtml())
> {
>     facesContext.getResponseWriter().write(LINE_SEPARATOR);
> }
>
> On Fri, May 22, 2015 at 2:48 PM, khush N <kb...@gmail.com> wrote:
> > Hi,
> >
> > I am using myfaces 2.2.7 version and found that
> > HtmlRendererUtils.writePrettyLineSeparator() method is missing. The
> method
> > is present in 2.1 version. Can anyone tell me the alternate of
> > HtmlRendererUtils.writePrettyLineSeparator in 2.2?
> >
> > I also could not find the method in DEPRECATED tab in api docs.
> >
> > Thanks!
>

Re: HtmlRendererUtils.writePrettyLineSeparator() is missing in 2.2

Posted by Mike Kienenberger <mk...@gmail.com>.
I'm pretty sure it was used internally to support the
org.apache.myfaces.PRETTY_HTML parameter, which was removed on
November 13, 2013.

https://issues.apache.org/jira/browse/MYFACES-3822

This issue also includes remove unused params like:

org.apache.myfaces.PRETTY_HTML
Reason : never worked well, modern browsers has support for debugging,
makes rendering slow.

You can find the complete change-set here:

http://svn.apache.org/viewvc?view=revision&revision=1541762

One possibility is to navigate from the change-set to the previous
version of HtmlRendererUtils which contained
writePrettyLineSeparator() and copy that method (or the entire file)
into your project.

http://svn.apache.org/viewvc/myfaces/core/trunk/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java?view=markup&pathrev=1519698

but since the method does very little, you are probably better off not
using it at all and calling
"facesContext.getResponseWriter().write(LINE_SEPARATOR);" directly.

if (org.apache.myfaces.shared.config.MyfacesConfig.getCurrentInstance(facesContext.getExternalContext()).isPrettyHtml())
{
    facesContext.getResponseWriter().write(LINE_SEPARATOR);
}

On Fri, May 22, 2015 at 2:48 PM, khush N <kb...@gmail.com> wrote:
> Hi,
>
> I am using myfaces 2.2.7 version and found that
> HtmlRendererUtils.writePrettyLineSeparator() method is missing. The method
> is present in 2.1 version. Can anyone tell me the alternate of
> HtmlRendererUtils.writePrettyLineSeparator in 2.2?
>
> I also could not find the method in DEPRECATED tab in api docs.
>
> Thanks!