0 Replies Latest reply on Aug 22, 2007 7:18 PM by tzhgosh1

    Problems with a4j:form in jdk1.4

    tzhgosh1

      Hi,
      firstly, may i say that I am very impressed with this product. It is very simple and intuitive to use, with a very small learning curve.

      But, I do have one problem. The project I am currently working on is using jdk1.4 (dark ages, I know, but there we go). The documentation states that 1.4 is supported, however when I try to use the a4j:form I get :

      java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)


      I've had a look, and this is caused by the following code in : AjaxFormRenerer
      renderClearHiddenCommandFormParamsFunction(
       ResponseWriter writer, String formName, Set dummyFormParams,
       String formTarget) {
       ....
       script.append("function ").append("clearFormHiddenParams_").append(
       formName.replace("-", "$_").replace(':', '_'));
       ...
      
      
      
      }
      


      The method String.replace(CharSequence, CharSequence); was introduced in Java5, so is incompatible with java1.4

      Any suggestions? I would very much like to use the a4j:form...

      Many thanks.