[JBoss JIRA] Created: (RF-8054) Richfaces menu item opens new window when styleClass is set
by Maksim Kaszynski (JIRA)
Richfaces menu item opens new window when styleClass is set
-----------------------------------------------------------
Key: RF-8054
URL: https://jira.jboss.org/jira/browse/RF-8054
Project: RichFaces
Issue Type: Bug
Components: component-menu
Affects Versions: 3.3.1
Environment: FF 3.5
Reporter: Maksim Kaszynski
When rich:menuItem has styleClass attrribute set, but no target set, clicking item forces new window/tab open
Following code
<rich:menuItem value="#{participant.name}"
action="#{participantImageDisplayBBean.load}"
styleClass="#{i0.first ? 'first' : ''} #{i0.last ? 'last' : ''}">
Results in rendering
RichFaces.Menu.submitForm(
event,
this,
{'left\x2Dmenu\x2Dform:j_id111':'28','left\x2Dmenu\x2Dform:j_id112':'2'},
{styleClass:' '})
However, method signature is
RichFaces.Menu.submitForm = function (event, element, params, target, attr) {
Thus, {styleClass:' '} is used as target.
target should be null when no target is specified.
So far I see 2 solutions,
either make target attribute for menuItem to have default value _self (probably, regression testing needed)
or, change the code in org.richfaces.renderkit.html.MenuItemRendererBase starting at line 268
String target = (String) menuItem.getAttributes().get("target");
if (null != target && target.length()>0) {
scriptValue.append(",");
scriptValue.append(ScriptUtils.toScript(target));
}
to
String target = (String) menuItem.getAttributes().get("target");
scriptValue.append(",");
scriptValue.append(ScriptUtils.toScript(target));
--
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, 1 month
[JBoss JIRA] Created: (RF-6862) RF picklist does not update target list after onchange event
by Brendan Farragher (JIRA)
RF picklist does not update target list after onchange event
------------------------------------------------------------
Key: RF-6862
URL: https://jira.jboss.org/jira/browse/RF-6862
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0, 3.2.2
Environment: JBoss AS 4.2.3 (Ubuntu Linux 8.04)
Reporter: Brendan Farragher
The RichFaces picklist component does not re-load it's pre-selected (target) data correctly when an onchange event of a dependent selectonelistbox component is raised. If a valuechangelistener method is set on the selectonelistbox, and that method loads the picklist's source and target lists with new data, the target list is not populated when the page is re-displayed (in this case, the target list in the backing bean maps to the value attribute of the picklist tag). I even tried wrapping the picklist in an a4j:outputPanel with an a4j:support event=onchange reRender=pickListName tag placed inside of the selectonelistbox tag, but the target list is never populated.
I have a JSF test application developed that I can provide you with that demonstrates the problem, and a second JSF test application that contains a workaround using a bound HtmlPickList (the workaround is not really appropriate for Seam integration, though). (Please update the JIRA with a forwarding address if you would like my test apps)
Please note that this bug has more important implications for Seam integration, since JSF component binding is discouraged. As a result, the value attribute of the picklist (the target data) needs to be refreshed via the picklist tag value attribute (or via some a4j help).
--
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, 1 month
[JBoss JIRA] Created: (RF-7911) OutOfMemory when redeploying - ClientSelection not unregistered from PropertyEditorManager
by Geert Coelmont (JIRA)
OutOfMemory when redeploying - ClientSelection not unregistered from PropertyEditorManager
------------------------------------------------------------------------------------------
Key: RF-7911
URL: https://jira.jboss.org/jira/browse/RF-7911
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: richfaces.3.3.1.GA + Tomcat 6
Reporter: Geert Coelmont
When redeploying, webapp classloader isn't garbage collected, causing a "java.lang.OutOfMemoryError: PermGen space" after a few times.
I used a profiler ("yourkit") to see where the issue was and found these 3 classes:
- org.richfaces.model.selection.ClientSelection
- com.sun.faces.application.ConverterPropertyEditorFactory$DisposableClassLoader
- com.sun.faces.application.ConverterPropertyEditorBase
See attached screen shot for more details.
I don't know where the 2 com.sun.faces classes come from either, but at least org.richfaces.model.selection.ClientSelection shouldn't be there.
I saw issue RF-1284 which appears to be very similar, only now this happens in a newer version.
--
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, 1 month
[JBoss JIRA] Created: (RF-3786) subTable in dataTable adds additional <th>
by Andreas Heiduk (JIRA)
subTable in dataTable adds additional <th>
------------------------------------------
Key: RF-3786
URL: http://jira.jboss.com/jira/browse/RF-3786
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1, 3.2.0.SR1
Environment: RF-3.2.[01], JSF-RI implementation
Reporter: Andreas Heiduk
As soon as a dataTable contains both subTable and a column "header" facet an additional <th> element is rendered.
Example:
<rich:dataTable value="#{capitalsBean.capitals}" var="capital">
<rich:column>
<f:facet name="header">Capital Name</f:facet>
<h:outputText value="#{capital.name}" />
</rich:column>
<rich:column>
<f:facet name="header">Property Name</f:facet>
</rich:column>
<rich:column>
<f:facet name="header">Property Value</f:facet>
</rich:column>
<rich:subTable value="#{capital.detailList}" var="detail">
<rich:column />
<rich:column>
<h:outputText value="#{detail.key}" />
</rich:column>
<rich:column>
<h:outputText value="#{detail.value}" />
</rich:column>
</rich:subTable>
</rich:dataTable>
Now <thead> contains *four* <th> elements instead of three. The last <th> element looks like this:
<th class="dr-table-subheadercell rich-table-subheadercell" scope="col"/>
--
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
15 years, 1 month