[JBoss JIRA] Created: (RF-4731) Sorting: (rich:dataTable + rich:cloumn + rich:columns) => Sorting is not displayed if header facet has not been defined
by Tsikhon Kuprevich (JIRA)
Sorting: (rich:dataTable + rich:cloumn + rich:columns) => Sorting is not displayed if header facet has not been defined
-----------------------------------------------------------------------------------------------------------------------
Key: RF-4731
URL: https://jira.jboss.org/jira/browse/RF-4731
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Tsikhon Kuprevich
Assignee: Nick Belaevski
When using together rich:dataTable + rich:cloumn + rich:columns. In case if 'sortBy' is defined but there are no header facets for rich:column and rich:columns — sorting indicators are not displayed.
See example below:
<rich:dataTable id="richColumnsID" value="#{columns.data1}" var="d1"
rendered="#{columns.dataTableRendered}">
<h:column>
<h:outputText value="h: #{d1.int0}"></h:outputText>
</h:column>
<rich:column>
<h:outputText value="rich: #{d1.int0}"></h:outputText>
</rich:column>
<rich:columns value="#{columns.data2}" var="d2"
breakBefore="#{columns.breakBefore}" colspan="#{columns.colspan}"
columns="#{columns.columns}" index="index"
rowspan="#{columns.rowspan}" begin="#{columns.begin}"
end="#{columns.end}" width="#{columns.width}"
sortOrder="#{columns.orderings[index]}" sortBy="#{d1.str0}">
<h:outputText value="#{index}. "></h:outputText>
<h:outputText value="#{d1.str0}, "></h:outputText>
<h:outputText value="#{d2.str0}"></h:outputText>
<h:outputLink value="http://www.jboss.com/">
<f:verbatim>Link</f:verbatim>
</h:outputLink>
</rich:columns>
</rich: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, 4 months
[JBoss JIRA] Created: (RF-5773) Forms not working within DataTable
by Hugh Nguyen (JIRA)
Forms not working within DataTable
----------------------------------
Key: RF-5773
URL: https://jira.jboss.org/jira/browse/RF-5773
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0, 3.2.2, 3.2.1, 3.2.0.SR1, 3.2.0, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0
Reporter: Hugh Nguyen
There is a problem with form handling for forms (either a4j:form or h:form) nested within a dataTable (either rich:dataTable or h:dataTable). I've already filed a bug report with JSF for h:form case, but I realised that fixing it in the JSF implementation doesn't fix a4j case, because a4j has its own version of UIForm (UIAjaxForm).
The situation is like this:
When a form is nested within a dataTable, although there is one form component in the component tree, it's rendered into multiple instances for each of the table row. A form instance is processed by each of JSF processing phases only if it's marked as having been submitted in the Decodes phase. However, when a form instance other than the one in the last row is submitted, it's submitted flag is cleared in the iterations for later rows in the Decodes phase. Thus when JSF enter subsequent phases, the form processing is skipped, and the form data would not be available in Applications phase.
I would like to propose a solution: recheck and set the submitted flag at beginning of the later phases. Here is the one line that should go at the beginning of UIAjaxForm.mustProcessed() method:
setSubmitted(context.getExternalContext().getRequestParameterMap().containsKey(getClientId(context)));
Note that problem only surface when there is data to be updated to backing bean. Purely action forms (i.e. from that handle commandLink, commandButton, dropSupport, etc.) seem not affected, because they don't seem to need Validators and Updates phases.
Also, there is a very baffling situation: if just one field is submitted with <a4j:support ajaxSingle=true/>, then the Validators and Updates phases are processed correctly for just that field, with either <h:form> or <a4j:form>.
--
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, 4 months
[JBoss JIRA] Created: (RF-4320) Hi All, I have created a suggestionbox using richfaces which consists nationalitylist, but the problem is when I click on any letter only the first one in the is getting selected not the one which am trying to select.
by Samala Swathi (JIRA)
Hi All, I have created a suggestionbox using richfaces which consists nationalitylist, but the problem is when I click on any letter only the first one in the is getting selected not the one which am trying to select.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: RF-4320
URL: https://jira.jboss.org/jira/browse/RF-4320
Project: RichFaces
Issue Type: Bug
Environment: Windows XP
Reporter: Samala Swathi
This is nationality.xhtml
<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">
<h:form id="suggestionbox_form">
<h:inputText value="" id="text" />
<rich:suggestionbox id="suggestionBoxId" for="text"
suggestionAction="#{capitalsBean.autocomplete}" var="result"
fetchValue="#{result.countryName}"
nothingLabel="No capitals found" columnClasses="center">
<h:column>
<h:outputText value="#{result.countryName}" />
</h:column>
</rich:suggestionbox>
</h:form>
</ui:composition>
This is the action class capitalsBean.java
package com.manam.sakana.session;
import java.io.IOException;
import java.io.Serializable;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.faces.FacesException;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
import javax.persistence.EntityManager;
//import org.apache.commons.digester.Digester;
//import org.apache.commons.digester.xmlrules.DigesterLoader;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.xml.sax.SAXException;
import com.manam.sakana.entity.NationalityList;
@Name("capitalsBean")
public class CapitalsBean {
private String nationality;
private ArrayList<NationalityList> nationalityList = new ArrayList<NationalityList>();
@In EntityManager entityManager;
public List autocomplete(Object suggest) {
String pref = (String)suggest;
System.out.println("Received Letters " +pref);
ArrayList<NationalityList> result = new ArrayList();
Iterator iterator = getAllData().iterator();
while (iterator.hasNext()) {
NationalityList elem = ((NationalityList) iterator.next());
if ((elem.getCountryName() != null && elem.getCountryName().toLowerCase().indexOf(pref.toLowerCase()) == 0) || "".equals(pref))
{
result.add(elem);
}
}
return result;
}
public ArrayList<NationalityList> getAllData(){
ArrayList<NationalityList> tempList2 = new ArrayList<NationalityList>();
ArrayList<NationalityList> nationalityList = new ArrayList<NationalityList>();
tempList2 = (ArrayList<NationalityList>)entityManager.createQuery("from NationalityList order by id").getResultList();
if(tempList2!=null)
{
for(NationalityList nationality : tempList2)
{
nationalityList.add(nationality);
}
}
return nationalityList;
}
public String getNationality() {
return nationality;
}
public void setNationality(String nationality) {
this.nationality = nationality;
}
public ArrayList<NationalityList> getNationalityList() {
return nationalityList;
}
public void setNationalityList(ArrayList<NationalityList> nationalityList) {
this.nationalityList = nationalityList;
}
}
--
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-4889) Suggestion box hides behind modalPanel in IE 7
by Darrel Su (JIRA)
Suggestion box hides behind modalPanel in IE 7
----------------------------------------------
Key: RF-4889
URL: https://jira.jboss.org/jira/browse/RF-4889
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.6
Reporter: Darrel Su
In IE7, suggestionbox is hidden behind modalpanel.
Using zindex attribute suggestionbox can be shown up front in firefox, but IE7 it is still a problem.
In richfaces 3.1.6 suggestionbox.js has zindex 200 setting so the workaround is not working.
For some reasons, we can not upgrade to 3.2.x. Is there a new workaround to fix this problem?
<rich:suggestionbox id="caseAssignSuggestionBoxId" for="loginName" tokens=","
rules="#{bundle.AutoSuggestRules}"
suggestionAction="#{switchUserBean.autocomplete}" var="result"
fetchValue="#{result.loginName}" rows="#{bundle.AutoSuggestRows}"
first="#{bundle.AutoSuggestFirst}"
minChars="#{bundle.AutoSuggestMinchars}"
shadowOpacity="#{bundle.AutoSuggestShadowOpacity}"
border="#{bundle.AutoSuggestBorder}" width="#{bundle.AutoSuggestWidth}"
height="#{bundle.AutoSuggestHeight}"
shadowDepth="#{switchUserBean.shadowDepth}"
zindex="9999" >
<h:column>
<h:outputText value="#{result.loginName} (#{result.firstName} #{result.lastName})" />
</h: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-4321) I created suggestion box
by gopi b (JIRA)
I created suggestion box
------------------------
Key: RF-4321
URL: https://jira.jboss.org/jira/browse/RF-4321
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: Seam frame work using Rich faces server Jboss
Reporter: gopi b
Fix For: 3.2.2
I created suggestion box for country(nationality) using rich faces, and seam the problem am facing is "Only the topmost name in the list of the countries is displaying if also I select the country in the list of countries (like If I type "A", countries name starting with 'A' are displaying, at this time only the top most country is selected, If I select any of them).
--
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-5607) rich:componentControl: disableDefault attribute not work
by Alexandr Levkovsky (JIRA)
rich:componentControl: disableDefault attribute not work
--------------------------------------------------------
Key: RF-5607
URL: https://jira.jboss.org/jira/browse/RF-5607
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Reporter: Alexandr Levkovsky
Assignee: Nick Belaevski
rich:componentControl: disableDefault attribute not work.
Following example submit the page but it is incorrect.
<rich:modalPanel id="panel" width="350" height="100">
<h:outputText value="This panel is called using Component Control Component"></h:outputText>
</rich:modalPanel>
<h:commandLink value="Show Modal Panel" id="showlink" >
<rich:componentControl id="control" for="panel" operation="show" event="onclick" disableDefault="true"/>
</h:commandLink>
--
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-3350) Selection doesn't work in modalPanel with FF2
by Paul Andrews (JIRA)
Selection doesn't work in modalPanel with FF2
---------------------------------------------
Key: RF-3350
URL: http://jira.jboss.com/jira/browse/RF-3350
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.5
Environment: Tomcat 5.x, MyFaces 1.1.5.
Reporter: Paul Andrews
If there is an HTML element in a modal panel that requires a selection, it doesn't work in FireFox 2.x unless you drag or resize the modal panel first. It works fine in IE6. Here is a little test page:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>
Modal Test
</title>
</head>
<body>
<f:view>
<rich:calendar id="date" value=""/>
<h:form>
<h:commandLink onclick="Richfaces.showModalPanel('testPanel');return false;" value="Show test panel"/>
</h:form>
<rich:modalPanel id="testPanel">
<f:facet name="header">
<h:outputText value="Test Panel" />
</f:facet>
<f:facet name="controls">
<h:graphicImage value="images/modal/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('testPanel')" />
</f:facet>
<h:form id="fdsdForm">
<h:commandLink onclick="Richfaces.hideModalPanel('testPanel');return false;" value="Hide this panel"/>
<h:selectOneListbox>
<f:selectItem itemValue="One"/>
<f:selectItem itemValue="Two"/>
</h:selectOneListbox>
</h:form>
</rich:modalPanel>
</f:view>
</body>
</html>
Trying to select an item in the list box doesn't work until you have dragged the page. I pored through the JavaScript source but couldn't see anything obviously wrong and all my attempts to fix the issue by simulating a drag from JavaScript failed. A work-around would be great since I get the feeling that work on the 3.1.x branch of RichFaces has ceased.
--
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, 5 months