Closed glassfishrobot closed 17 years ago
@glassfishrobot Commented Reported by mattbohm
@glassfishrobot Commented @edburns said: dup
@glassfishrobot Commented Was assigned to jsf-extensions-issues
@glassfishrobot Commented This issue was imported from java.net JIRA JSF_EXTENSIONS-42
@glassfishrobot Commented Marked as duplicate on Friday, January 12th 2007, 3:35:20 am
Add a textfield, button, and staticText to an AjaxZone. I used woodstock components for this part, but it should not matter.
Set the button or AjaxZone's action to the following or a similar backing bean method, that is, one that sets the static text's value based on input from the textfield:
public String button1_action()
{ staticText1.setText(textField1.getText()); return null; }
Set the inspectElement of the AjaxZone to the following Javascript function:
function inspect(element) { if (element.tagName == 'INPUT' && (element.getAttribute('type') == 'submit'
| element.getAttribute('type') == 'button')) { alert(element.id + ": " + element.onclick); return true; }
if (element.tagName == 'A' && element.hasAttribute('href'))
{ alert(element.id + ": " + element.onclick); return true; }
return false; }
|
It works nicely.
Now for the problem: replace the button with a woodstock Hyperlink or a standard HtmlCommandLink or HtmlOutputLink. prototype.js line 803 throws a JavaScript exception and a conventional page submit occurs.
Environment
Operating System: All Platform: All
Affected Versions
[current]