[jboss-dev-forums] [Design of JBoss Portal] - Partial Refresh and RichFaces components on edit mode
naspeh
do-not-reply at jboss.com
Wed May 13 10:39:49 EDT 2009
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.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230863#4230863
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230863
More information about the jboss-dev-forums
mailing list