[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
15 years, 5 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
15 years, 5 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
15 years, 5 months