[JBoss JIRA] Created: (RF-7290) A bug is identified in tiny_mce_src.js packaged within Richfaces. Richfaces future release needs to update tiny mce to version 3.2.4.1 where the bug has been fixed.
by Gary Hu (JIRA)
A bug is identified in tiny_mce_src.js packaged within Richfaces. Richfaces future release needs to update tiny mce to version 3.2.4.1 where the bug has been fixed.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: RF-7290
URL: https://jira.jboss.org/jira/browse/RF-7290
Project: RichFaces
Issue Type: Thirdparty Change
Affects Versions: 3.3.1, 3.3.0, 3.2.2
Reporter: Gary Hu
Fix For: 3.3.2.CR1
A bug is identified in tiny_mce_src.js packaged within Richfaces. The version of tiny mce coming with Richfaces is 3.2. The following is the problematic code in tiny_mce_src.js:
function fakeUnload() {
var d = document;
debugger;
if (d.readyState == "interactive") {
function stop() {
d.detachEvent("onstop", stop);
unload();
d = null;
}
*** d.attachEvent("onstop", stop);
window.setTimeout(function () {
*** d.detachEvent("onstop", stop);
}, 0);
}
}
The lines with "***" are problematic. The code needs to check if "d" is null for those lines.
The latest Tiny mce release 3.2.4.1 has fixed the above issue.
The following is the code in 3.2.4.1:
function fakeUnload() {
var d = document;
// Is there things still loading, then do some magic
if (d.readyState == 'interactive') {
function stop() {
// Prevent memory leak
d.detachEvent('onstop', stop);
// Call unload handler
if (unload)
unload();
d = 0;
};
// Fire unload when the currently loading page is stopped
if (d)
d.attachEvent('onstop', stop);
// Remove onstop listener after a while to prevent the unload function
// to execute if the user presses cancel in an onbeforeunload
// confirm dialog and then presses the browser stop button
window.setTimeout(function() {
if (d)
d.detachEvent('onstop', stop);
}, 0);
}
};
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months
[JBoss JIRA] Created: (RF-7749) suggestionBox component extend callSuggestion() functionality
by simon cigoj (JIRA)
suggestionBox component extend callSuggestion() functionality
-------------------------------------------------------------
Key: RF-7749
URL: https://jira.jboss.org/jira/browse/RF-7749
Project: RichFaces
Issue Type: Feature Request
Reporter: simon cigoj
It would be nice to have an aditional parameter in callSuggestion() whick could give an aditional information from where the suggestion method was called...for example I nead two different functionalities from suggestion commponent :
1.) when I type in the textbox the result should be filtered by the inserted text, that works ok
2.) when I click on the button near the textbox the button fire the callSuggestion() function...here I nead all possible results in the suggest even if there si alredy some text typed in the textbox...so I nead to know when the suggestion method was called fom the textbox or from the button to handle the results correctly.
What I would like to achive is simulate a normal dropdown with the functinality of the suggestion.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months
[JBoss JIRA] Created: (RF-7693) Tree DnD: drag/drop listeners are not triggered if ajaxSingle=true for nodes.
by Alexander Dubovsky (JIRA)
Tree DnD: drag/drop listeners are not triggered if ajaxSingle=true for nodes.
-----------------------------------------------------------------------------
Key: RF-7693
URL: https://jira.jboss.org/jira/browse/RF-7693
Project: RichFaces
Issue Type: Bug
Components: component-tree
Affects Versions: 3.3.2.CR1
Environment: 3.3.1.CR1
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Page:
<rich:tree value="#{custom.data}" var="item">
<rich:treeNode ajaxSingle="true" dragListener="#{item.processDrag}"
dropListener="#{item.processDrop}" dragType="all" acceptedTypes="all">
<h:outputText value="#{item.value}" />
</rich:treeNode>
</rich:tree>
Bean:
public class Custom {
TreeNode<Item> data = new TreeNodeImpl<Item>();
public Custom() {
TreeNode<Item> root = new TreeNodeImpl<Item>();
root.setData(new Item("Root"));
int i;
for(i = 0; i < 10; i++) {
TreeNode<Item> node = new TreeNodeImpl<Item>();
node.setData(new Item("Value-" + i));
root.addChild(i, node);
}
data.addChild(i, root);
}
public class Item implements DragListener, DropListener {
private String value;
public Item(String value) {
this.value = value;
}
public void processDrop(DropEvent e) {
System.out.println("***>>> drop " + this.value);
}
public void processDrag(DragEvent e) {
System.out.println("***>>> drag " + this.value);
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
public TreeNode<Item> getData() {
return data;
}
}
=> drag/ drop operation is possible only on itself, i.e. listeners are triggered only in case drag node1 and drop it on node1 (itself).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 7 months