[JBoss JIRA] Created: (RF-2735) Error to clear node content by innerHTML when re-rendering
by Nick Belaevski (JIRA)
Error to clear node content by innerHTML when re-rendering
-----------------------------------------------------------
Key: RF-2735
URL: http://jira.jboss.com/jira/browse/RF-2735
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Nick Belaevski
Assigned To: Nick Belaevski
Fix For: 3.2.0
debug[20:56:36,276]: Such element exist in document
debug[20:56:36,289]: Attempt to update part of page for Id: j_id213:output
debug[20:56:36,303]: call selectSingleNode for id= j_id213:output
debug[20:56:36,318]: Replace content of node by outerHTML()
error[20:56:36,333]: Error to clear node content by innerHTML Unknown runtime error
debug[20:56:36,350]: search for elements by name 'script' in element input
debug[20:56:36,364]: selectNodes found 0
debug[20:56:36,379]: Scripts in updated part count : 0
debug[20:56:36,395]: Update part of page for Id: j_id213:output successful
debug[20:56:36,410]: Attempt to update part of page for Id: j_id213:j_id214:29:j_id215
debug[20:56:36,427]: call selectSingleNode for id= j_id213:j_id214:29:j_id215
debug[20:56:36,446]: Replace content of node by outerHTML()
error[20:56:36,461]: Error to clear node content by innerHTML Unknown runtime error
For page:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<p>This tree uses "ajax" switch type, note that for collapse/expand operations it will be Ajax request to the server. You may see short delay in this case.</p><br/>
<h:form>
<h:inputText id="output" />
<rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
<rich:treeNode type="artist" iconLeaf="/images/tree/singer.gif" icon="/images/tree/singer.gif" reRender="output">
<h:outputText value="1 #{item.name}" />
</rich:treeNode>
<rich:treeNode type="album" iconLeaf="/images/tree/disc.gif" icon="/images/tree/disc.gif">
<h:outputText value="#{item.title}" />
</rich:treeNode>
<rich:treeNode type="song" iconLeaf="/images/tree/song.gif" icon="/images/tree/song.gif">
<h:outputText value="#{item.title}" />
</rich:treeNode>
</rich:tree>
</h:form>
<a4j:log popup="false"></a4j:log>
</ui:composition>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months
[JBoss JIRA] Created: (RF-3427) component control not working on oncomplete event
by Ilya Shaikovsky (JIRA)
component control not working on oncomplete event
-------------------------------------------------
Key: RF-3427
URL: http://jira.jboss.com/jira/browse/RF-3427
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
<a4j:commandButton value="Show Current Selection" reRender="table"
action="#{dataTableScrollerBean.takeSelection}" id="button">
<rich:componentControl attachTo="button" for="panel" event="oncomplete" operation="show" />
</a4j:commandButton>
doesn't works but
<a4j:commandButton value="Show Current Selection" reRender="table"
action="#{dataTableScrollerBean.takeSelection}"
oncomplete="javascript:Richfaces.showModalPanel('panel');"/>
works fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months
[JBoss JIRA] Created: (RF-996) aj4:support cannot be used to validate rich:calander.
by Chris Rudd (JIRA)
aj4:support cannot be used to validate rich:calander.
-----------------------------------------------------
Key: RF-996
URL: http://jira.jboss.com/jira/browse/RF-996
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Chris Rudd
The following can be used to valdiate the date entered manually, but there is not a way to validate when the date is "picked"
<rich:calendar value="#{bean.date}" enableManualInput="true">
<a4j:support event="oninputchange" reRender="..."/>
</rich:calendar>
There should be an event that is fired any time the date is changed, reguarless of the input method.
NOTE : ondateselect is not applicable as its not notification that the date was changed, it is allowing a hook to see if the date selection should occur.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 8 months
[JBoss JIRA] Created: (RF-4931) Tree Adaptors: ClassCastException in StackingTreeModel
by Nick Belaevski (JIRA)
Tree Adaptors: ClassCastException in StackingTreeModel
------------------------------------------------------
Key: RF-4931
URL: https://jira.jboss.org/jira/browse/RF-4931
Project: RichFaces
Issue Type: Patch
Affects Versions: 3.1.x
Reporter: Nick Belaevski
ClassCastException in StackingTreeModel.java:137
Method doSetupKey throws classCastException for one of the scenario.
Steps:-
Search items so that we get Tree(richfaces) list on page.
Delete the one of the node from tree (ajax delete)
After that we tried to reset the search parameters (They are in different a4j:region than the tree) by clicking on Reset button
which means we had to rerender tree for reset operation.
While rerendering the tree we got class cast exception. at line 137.
Following is the code we fixed in our project.
protected StackingTreeModel doSetupKey(Iterator<Key> keyIterator, Iterator<StackEntry> entriesIterator, FacesContext context, Object modelKey) {
if (modelKey != null) {
if (!setupModel(modelKey, context)) {
//no key is available
leaveModel(getRoot().stackEntries.iterator(), null, context);
return null;
}
//TODO what's here?
}
if (keyIterator != null && keyIterator.hasNext()) {
//Patch added by Atul
Object obj = keyIterator.next();
if(obj == null || !(obj instanceof Key)) {
leaveModel(entriesIterator, null, context);
return this;
}
Key key = (Key)obj;
//Patch ends by Atul
//Following is orginal code commented by Atul for above patch.
//Key key = keyIterator.next();
--
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, 9 months
[JBoss JIRA] Created: (RF-4020) a4j:support doesn't work inside tomahawk dataTable
by tbech (JIRA)
a4j:support doesn't work inside tomahawk dataTable
--------------------------------------------------
Key: RF-4020
URL: https://jira.jboss.org/jira/browse/RF-4020
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.6
Environment: tomahawk, myfaces 1.1.5
Reporter: tbech
The a4j:support for the component (selectOneMenu or inputText, etc) in tomahawk dataTable doesn't work. The request to the server is done, but:
- component has binding, however the 'binding' doesn't have submitted value set (so no way to get the value);
- the component in 'rerender' attribute is not rerendered.
Log:
debug[13:33:03,009]: Full response content: <?xml version="1.0"?>
...
<body><select id="content:searchForm:data:myField" name="content:searchForm:data:myField" size="1" class="" onchange="A4J.AJAX.Submit('_viewRoot','content:searchForm',event,{
...
debug[13:33:03,056]: Attempt to update part of page for Id: content:searchForm:data:myField
debug[13:33:03,056]: call getElementById for id= content:searchForm:data:myField
warn[13:33:03,056]: Node for replace by response with id content:searchForm:data:myField not found in document
The problem is, that the name of the component is not well resolved - the missing part is the index. It should be
<body><select id="content:searchForm:data:0:myField" name="content:searchForm:data:0:myField" size="1" class="" onchange="A4J.AJAX.Submit('_viewRoot','content:searchForm',event,{
We have plenty of pages with tomahawk:dataTable, and migration to any other component (for example rich:dataTable) is not possible, however the a4j:support is needed now. I suspect that the same problem is with standard myfaces:dataTable.
--
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, 9 months
[JBoss JIRA] Created: (RF-4239) PanelMenu: action is not fired in FF3
by Nick Belaevski (JIRA)
PanelMenu: action is not fired in FF3
-------------------------------------
Key: RF-4239
URL: https://jira.jboss.org/jira/browse/RF-4239
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.6, 3.1.5, 3.1.4
Environment: FF3
Reporter: Nick Belaevski
Assignee: Nick Belaevski
Fix For: 3.1.x
<rich:panelMenu style="width:200;background-color:#ccddaa" mode="ajax"
iconExpandedGroup="disc" iconCollapsedGroup="disc"
iconExpandedTopGroup="chevronUp"
iconCollapsedTopGroup="triangleDown" >
<rich:panelMenuGroup label="group 1">
<rich:panelMenuItem id="item1" label="item 1" action="#{menu.updateCurrent}">
<f:param name="current" value="Item1_1"/>
</rich:panelMenuItem>
<rich:panelMenuItem id="item2" label="item 2" action="#{menu.updateCurrent}">
<f:param name="current" value="Item1_2"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenu>
...
String current;
public String updateCurrent() {
System.out.println("currrent3_1:" + current);
FacesContext context=FacesContext.getCurrentInstance();
current = (String)context.getExternalContext().getRequestParameterMap().get("current");
System.out.println("currrent3_2:" + current);
return current;
}
...
menu item actions do not work in FF3, IE 6/7 are ok
--
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, 9 months