[JBoss JIRA] Created: (RF-7402) Facet header in dataTable problem with two possible entries (and mutlple text output)
by Tony Herstell (JIRA)
Facet header in dataTable problem with two possible entries (and mutlple text output)
-------------------------------------------------------------------------------------
Key: RF-7402
URL: https://jira.jboss.org/jira/browse/RF-7402
Project: RichFaces
Issue Type: Bug
Components: component-tables
Affects Versions: 3.3.2.CR1
Reporter: Tony Herstell
In the following markup the facet header does not show text "Back Number" when its not a graded event.
However the Colums acts correctly and shows the actual back number.
I have had previous trouble with header facet only acting on first possible text
<rich:column rendered="#{eachClass.timesVisibleToCompetitors or s:hasRole('ADMINISTRATOR')}">
<f:facet name="header">
<s:fragment rendered="#{not event.graded}">
<h:outputText value="Back Number" />
</s:fragment>
<s:fragment rendered="#{event.graded}">
<h:outputText value="Back Number (ESNZ)" />
</s:fragment>
</f:facet>
<s:fragment rendered="#{event.graded}">
<s:fragment rendered="#{not empty eachEntry.horse.esnzRegistrationNumber}">
<h:outputText value="#{eachEntry.horse.esnzRegistrationNumber}" />
</s:fragment>
<s:fragment rendered="#{empty eachEntry.horse.esnzRegistrationNumber}">
<h:outputText styleClass="error" value="#{messages.entity_horse_esnz_number_not_added}"/>
</s:fragment>
</s:fragment>
<s:fragment rendered="#{not event.graded}">
<h:outputText value="#{eachEntry.backNumber}" />
</s:fragment>
</rich:column>
--
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-4240) rich:scrollableDataTable exception thrown when attempting to filter
by Valery Tcherepanov (JIRA)
rich:scrollableDataTable exception thrown when attempting to filter
-------------------------------------------------------------------
Key: RF-4240
URL: https://jira.jboss.org/jira/browse/RF-4240
Project: RichFaces
Issue Type: Bug
Environment: FireFox 3.0, JSF 1.2, RichFaces 3.2.1
Reporter: Valery Tcherepanov
rich:scrollableDataTable fallbacks to rich:column id attribute as part of expression by which to filter. Since id attribute is not intended(??) to be a part of any type of value expression that leads to unpredictable sorting results or exception thrown. See code example beelow
// bean
import java.util.List;
import java.util.ArrayList;
public class TableBean {
private List<String[]> tableData;
private String[] headers;
public TableBean() {
fillTableData();
fillHeaders();
}
private void fillHeaders() {
headers = new String[]{"Header1", "Header2"};
}
private void fillTableData() {
tableData = new ArrayList<String[]>();
for (int i = 0; i < 20; i++) {
tableData.add(new String[]{"Record " + i, i + ""});
}
}
public List<String[]> getTableData() {
return tableData;
}
public String[] getHeaders() {
return headers;
}
}
// table
<rich:scrollableDataTable
height="400px"
width="700px"
value="#{tableBean.tableData}"
var="data">
<rich:column id="someId0">
<f:facet name="header"><h:outputText value="#{tableBean.headers[0]}"/></f:facet>
<h:outputText value="#{data[0]}"/>
</rich:column>
<rich:column id="someId1">
<f:facet name="header"><h:outputText value="#{tableBean.headers[1]}"/></f:facet>
<h:outputText value="#{data[1]}"/>
</rich:column>
</rich:scrollableDataTable>
Clicking on table header (in FireFox) results in
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: For input string: "someId1"
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
root cause
java.lang.NumberFormatException: For input string: "someId1"
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Integer.parseInt(Integer.java:447)
java.lang.Integer.parseInt(Integer.java:497)
javax.el.ArrayELResolver.coerce(ArrayELResolver.java:153)
javax.el.ArrayELResolver.getValue(ArrayELResolver.java:45)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
org.richfaces.model.impl.expressive.SimplePropertyExpression.evaluate(SimplePropertyExpression.java:33)
org.richfaces.model.impl.expressive.ObjectWrapperFactory.wrapObject(ObjectWrapperFactory.java:189)
org.richfaces.model.impl.expressive.ObjectWrapperFactory$2.convert(ObjectWrapperFactory.java:177)
org.richfaces.model.impl.expressive.ObjectWrapperFactory.convertList(ObjectWrapperFactory.java:138)
org.richfaces.model.impl.expressive.ObjectWrapperFactory.wrapList(ObjectWrapperFactory.java:175)
org.richfaces.model.internal.ComponentSortableDataModel.prepareCollection(ComponentSortableDataModel.java:58)
org.richfaces.model.internal.ComponentSortableDataModel.loadData(ComponentSortableDataModel.java:112)
org.richfaces.model.DataModelCache.loadData(DataModelCache.java:153)
org.richfaces.model.ScrollableTableDataModel.walk(ScrollableTableDataModel.java:127)
org.richfaces.model.DataModelCache.walk(DataModelCache.java:183)
org.ajax4jsf.component.UIDataAdaptor.walk(UIDataAdaptor.java:1127)
org.richfaces.component.UIScrollableDataTable.walk(UIScrollableDataTable.java:347)
org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer.renderAjaxChildren(ScrollableDataTableBaseRenderer.java:736)
org.richfaces.renderkit.html.ScrollableDataTableBaseRenderer.encodeChildren(ScrollableDataTableBaseRenderer.java:804)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:125)
org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:68)
org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:116)
org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:68)
org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:116)
org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:123)
org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:673)
org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:544)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577)
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
--
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-7205) SimpleTogglePanel's opened attribute doesn't allow conditional EL
by Matthew Lieder (JIRA)
SimpleTogglePanel's opened attribute doesn't allow conditional EL
-----------------------------------------------------------------
Key: RF-7205
URL: https://jira.jboss.org/jira/browse/RF-7205
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: JRE 6, Tomcat 6
Reporter: Matthew Lieder
The following works fine when rendering:
<rich:simpleTogglePanel label="Panel" switchType="client" opened="#{true}">
but if I close the panel and then submit the page the following error message is shown:
/test.xhtml @50,205 opened="#{true}": Illegal Syntax for Set Operation
However, if I set it to a bean property (like opened="#{myBean.property}") then it works fine. I believe the problem is that it's trying to update the EL expression with the current state of the opened attribute.
--
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-6730) rich:contextMenu shows in wrong position when used inside scroll div
by Alex Peelman (JIRA)
rich:contextMenu shows in wrong position when used inside scroll div
--------------------------------------------------------------------
Key: RF-6730
URL: https://jira.jboss.org/jira/browse/RF-6730
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: FF3, Ubuntu 8.04, JSF 1.2, JBOSS Seam 2., JBOSS 4.2.3
Reporter: Alex Peelman
I have a lot of context menu's placed inside a scrollable div. When the scrollbar is at the top the pop up shows correctly but when I scroll down the pop up moves more towards the bottom.
The context menu is created as followed
<rich:contextMenu attached="false"
disableDefaultMenu="false"
styleClass="left"
id="contextMenu"
style="z-index:1500"
> ...
And is summoned by a rich:componentControl onclick event
<h:panelGrid columns="2">
<h:outputText value="Actions" styleClass="actions" />
<h:graphicImage value="#{root}/img/arrow_down.png" />
<rich:componentControl event="onclick" for="contextMenu" operation="show"></rich:componentControl>
</h:panelGrid>
I will attach pictures which shows the problem
--
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