0 Replies Latest reply on May 13, 2009 10:39 AM by naspeh

    Partial Refresh and RichFaces components on edit mode

    naspeh

      Greetings

      I use Jboss Portal 2.7.2 and RichFaces 3.3.0.GA.
      Partial Refresh feature is switched on.
      Edit mode contain several RichFaces components.

      Received javascript error on load page:
      "FUNCTION_NAME is not defined"
      Where FUNCTION_NAME is rich faces function name (for example ProgressBar, when used rich:progressBar component).

      I know workaround: put this component on view mode and set display: none.
      But it isn't good solution.

      I took some investigation with javascript.
      Below javascript function definition isn't working:

      <script type='text/javascript'>
      function test() {
      alert("test");
      }
      </script>
      <input type="button" value="Test" onclick="test()" /> // test() not found;


      But when I change function definition it works:

      <script type='text/javascript'>
      test = function() {
      alert("test");
      }
      </script>
      <input type="button" value="Test" onclick="test()" /> // test() is called;


      I think problem is in javascript evaluation. In dyna.js.
      Does somebody know better solution or how we can change javascript
      evaluation?

      Thanks a lot.