eclipse-ee4j / mojarra-jsf-extensions

Other
1 stars 3 forks source link

Links seem not to work in AjaxZones #42

Closed glassfishrobot closed 17 years ago

glassfishrobot commented 17 years ago

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]

glassfishrobot commented 5 years ago
glassfishrobot commented 17 years ago

@glassfishrobot Commented Reported by mattbohm

glassfishrobot commented 17 years ago

@glassfishrobot Commented @edburns said: dup

glassfishrobot commented 17 years ago

@glassfishrobot Commented Was assigned to jsf-extensions-issues

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JSF_EXTENSIONS-42

glassfishrobot commented 17 years ago

@glassfishrobot Commented Marked as duplicate on Friday, January 12th 2007, 3:35:20 am