myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael Tavares Carmona (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-2566) HTMLEnconder requiring StringBuilder class from JDK 5
Date Fri, 19 Feb 2010 14:12:28 GMT
HTMLEnconder requiring StringBuilder class from JDK 5
-----------------------------------------------------

                 Key: MYFACES-2566
                 URL: https://issues.apache.org/jira/browse/MYFACES-2566
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-127
    Affects Versions: 1.1.7
         Environment: Windows XP SP3, JDK 1.4, JBoss 3.2.6, JSF 1.1, myfaces-api-1.1.7.jar,
myfaces-impl-1.1.7.jar
            Reporter: Rafael Tavares Carmona


I'm developing a JSF application using MyFaces 1.1.7 under JBoss 3.2.6 and JDK 1.4. Everything
was OK (had deployed it several times) untill I tried to used the following code:

<h:outputLink value="secondPage.jsf" target="_blank">
  <h:outputText value="Click here" />
  <f:param name="myParam" value="#{bean.myParam}" />
</h:outputLink>

This is resulting in the following exception:

java.lang.NoClassDefFoundError: java/lang/StringBuilder
	at org.apache.myfaces.shared_impl.renderkit.html.util.HTMLEncoder.encodeURIAtributte(HTMLEncoder.java:355)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.writeURIAttribute(HtmlResponseWriterImpl.java:393)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderOutputLinkStart(HtmlLinkRendererBase.java:461)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:93)



I checked twice the jars and also checked the I'm developing a JSF application using MyFaces
1.1.7 under JBoss 3.2.6 and JDK 1.4. Everything was OK (had deployed it several times) untill
I tried to used the following code:

<h:outputLink value="secondPage.jsf" target="_blank">
  <h:outputText value="Click here" />
  <f:param name="myParam" value="#{bean.myParam}" />
</h:outputLink>

This is resulting in the following exception:

java.lang.NoClassDefFoundError: java/lang/StringBuilder
	at org.apache.myfaces.shared_impl.renderkit.html.util.HTMLEncoder.encodeURIAtributte(HTMLEncoder.java:355)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.writeURIAttribute(HtmlResponseWriterImpl.java:393)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderOutputLinkStart(HtmlLinkRendererBase.java:461)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:93)

I downloaded the source code of HTMLEncoder.java from myfaces-impl-1.1.7.jar and confirmed
that it's using a StringBuilder object within encodeURIAtributte method.

The question is: isn't myfaces 1.1.7 supposed to be compatible with JDK 1.4?

Thank in advance,
Rafael

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message