[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, 8 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, 8 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, 8 months
[JBoss JIRA] Created: (RF-3652) simpleTooglePanel: component's content isn't fit to boarders in case size changing(height & width)
by Mikhail Vitenkov (JIRA)
simpleTooglePanel: component's content isn't fit to boarders in case size changing(height & width)
--------------------------------------------------------------------------------------------------
Key: RF-3652
URL: http://jira.jboss.com/jira/browse/RF-3652
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.6
Environment: IE6(special case), IE7, FF, Opera, Safari(3.1.6.CR1)
Reporter: Mikhail Vitenkov
Assigned To: Nick Belaevski
Step 1. Navigate to test application page for rich:simpleTooglePanel. - several panel inside each other should appear.
Step 2. Open all simpleTooglePanels by click on it's header.
Step 3. Run beta test 1: height: 80px; width: 300px.
Step 4. Verify style of simpleTooglePanel component's content displaying.
Actual behavior:
For all browsers except IE6 content isn't fit to panel.
For IE6 component's header don't take whole width of simpleTooglePanel.
For more info see attached screenshots.
--
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-3824) Ajax reRender break Tomahawk commandButton
by Marine Wacheux (JIRA)
Ajax reRender break Tomahawk commandButton
------------------------------------------
Key: RF-3824
URL: http://jira.jboss.com/jira/browse/RF-3824
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.6
Environment: Windows XP + Firefox 2.0.0.14
Reporter: Marine Wacheux
Fix For: 3.1.x
After reRendering a richPanel that own a tomahawk commandButton, this button dosn't work anymore.
JavaScript error :
f has no properties
a4j_3_1_6.GAorg.ajax4jsf.javascript.AjaxScript - Line 986
Form HTML owning tomahawk button before reRender :
<form enctype="application/x-www-form-urlencoded" action="/gcm-web-patients/faces/jsp/rdv/DevisActeOperatoireSansNav.jsp" method="post" name="body:formActionsGlobales" id="body:formActionsGlobales" target=""><div class="DIV_BOUTONS_CENTRES"><input type="submit" class="BTN_FERMER" title="Fermer" onclick="if(typeof window.clearFormHiddenParams_body_formActionsGlobales!='undefined'){clearFormHiddenParams_body_formActionsGlobales('body:formActionsGlobales');}if(typeof window.getScrolling!='undefined'){oamSetHiddenInput('body:formActionsGlobales','autoScroll',getScrolling());}" value=" " name="body:formActionsGlobales:btnFermer" id="body:formActionsGlobales:btnFermer"/>
<input type="hidden" name="autoScroll"/>
</div><input type="hidden" value="1" name="body:formActionsGlobales_SUBMIT"/><input type="hidden" name="body:formActionsGlobales:_link_hidden_" value=""/><input type="hidden" name="body:formActionsGlobales:_idcl" value=""/><script type="text/javascript"><!--
function clear_body_3AformActionsGlobales()
{
clearFormHiddenParams_body_formActionsGlobales('body:formActionsGlobales');
}
function clearFormHiddenParams_body_formActionsGlobales(currFormName)
{
var f = document.forms['body:formActionsGlobales'];
f.elements['body:formActionsGlobales:_link_hidden_'].value='';
f.elements['body:formActionsGlobales:_idcl'].value='';
f.target='';
}
clearFormHiddenParams_body_formActionsGlobales();
//--></script><input type="hidden" value="8EgC7hvJoXWgMHaUZxk5rx66APlnNueyP32ajDxbvc/i5akMf2jX5WWSSrgXZJhYKzcAAFHyrv86yIYKdwr0uOheIjdsKfp03QYDic7/mAIYaFPjvIjow2OLV06wFNI0" id="javax.faces.ViewState" name="javax.faces.ViewState"/></form>
Form HTML owning tomahawk button after reRender :
<form id="body:formActionsGlobales" name="body:formActionsGlobales" method="post" action="/gcm-web-patients/faces/jsp/rdv/DevisActeOperatoireSansNav.jsp" enctype="application/x-www-form-urlencoded"><div class="DIV_BOUTONS_CENTRES"><input type="submit" id="body:formActionsGlobales:btnFermer" name="body:formActionsGlobales:btnFermer" value=" " onclick="if(typeof window.clearFormHiddenParams_body_formActionsGlobales!='undefined'){clearFormHiddenParams_body_formActionsGlobales('body:formActionsGlobales');}if(typeof window.getScrolling!='undefined'){oamSetHiddenInput('body:formActionsGlobales','autoScroll',getScrolling());}" title="Fermer" class="BTN_FERMER"/> <input type="hidden" name="autoScroll"/></div><input type="hidden" name="body:formActionsGlobales_SUBMIT" value="1"/><input type="hidden" name="body:formActionsGlobales:_link_hidden_"/><input type="hidden" name="body:formActionsGlobales:_idcl"/><script type="text/javascript">//<![CDATA[
function clear_body_3AformActionsGlobales()
{
clearFormHiddenParams_body_formActionsGlobales('body:formActionsGlobales');
}
function clearFormHiddenParams_body_formActionsGlobales(currFormName)
{
var f = document.forms['body:formActionsGlobales'];
f.elements['body:formActionsGlobales:_link_hidden_'].value='';
f.elements['body:formActionsGlobales:_idcl'].value='';
f.target='';
}
clearFormHiddenParams_body_formActionsGlobales();
//
//]]>
</script><span id="org.ajax4jsf.view.state" name="org.ajax4jsf.view.state"/></form>
--
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