eclipse-ee4j / mojarra-jsf-extensions

Other
1 stars 3 forks source link

Regression: jMaki Widgets not correctly re-added when DOM update happens elsewhere in the page. #71

Closed glassfishrobot closed 17 years ago

glassfishrobot commented 17 years ago

Here's the problem.

Greg, now in jmaki.js you have:

/**

When I do DOM replacement of the table in which the scriptaculous inplace editor widget instances reside, I'm ok as long as the _jmw.uuid hasn't been encountered before. The moment I try to load one that has already been encountered, problems result.

This is new jMaki behavior. This is not a problem on the DynaFaces side.

Ed

Environment

Operating System: All Platform: Sun

Affected Versions

[current]

glassfishrobot commented 5 years ago
glassfishrobot commented 17 years ago

@glassfishrobot Commented Reported by @edburns

glassfishrobot commented 17 years ago

@glassfishrobot Commented @edburns said:

On Tue, 17 Apr 2007 18:41:34 -0700, Gregory Murray Gregory.Murray@Sun.COM said:

GM> Hi Ed, GM> We have an API just for this kind of thing:

GM> See the jMaki clear widgets?

GM> jmaki.clearWidgets(DOM_NODE);

GM> jMaki will find all jMaki created widgets under the DOM node:

GM> 1. jMaki will call the destroy function on the widget. A destroy GM> function is not required but if present will remove any listeners and GM> make sure data is synced up. GM> 2. The widget will be div will be removed from the document. GM> 3. The widget will be removed from the jmaki.attributes map.

GM> If you can call this before re-injecting new widgets your problem GM> should go away. I think this is the best approach because it give the GM> widgets the opportunity to de-register events as well. This API has GM> been around for a few releases and is what the injector uses.

GM> Let me know if this will work, otherwise we will figure out another GM> solution.

GM> -Greg

glassfishrobot commented 17 years ago

@glassfishrobot Commented @edburns said: Mark as invalid because clearWidgets() was being called.

glassfishrobot commented 7 years ago

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

glassfishrobot commented 17 years ago

@glassfishrobot Commented Marked as incomplete on Wednesday, April 18th 2007, 1:10:15 am