[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
16 years, 7 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
16 years, 7 months
[JBoss JIRA] Created: (RF-6734) Do not render default attributes.
by Alexander Smirnov (JIRA)
Do not render default attributes.
---------------------------------
Key: RF-6734
URL: https://jira.jboss.org/jira/browse/RF-6734
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.3.0
Reporter: Alexander Smirnov
Calendar JavaScript code is always rendered with full attributes values that significant increase size of html page:
new Calendar('pageForm:SITE_V_HOLD_BEGIN_DATE_date', {dayListTableId: 'pageForm:SITE_V_HOLD_BEGIN_DATE_dateDay',
weekNumberBarId: 'pageForm:SITE_V_HOLD_BEGIN_DATE_dateWeekNum',
weekDayBarId: 'pageForm:SITE_V_HOLD_BEGIN_DATE_dateWeekDay',
currentDate: new Date(2009,3,8),
selectedDate: null,
datePattern: 'MM/dd/yyyy',
jointPoint: 'bottom-left',
direction: 'bottom-right',
toolTipMode:'batch',
boundaryDatesMode:'inactive',
popup: true,
enableManualInput: false,
showInput: true,
disabled: false,
readonly: false,
ajaxSingle: true,
verticalOffset:0,
horizontalOffset: 0,
style:'z-index: 3; ',
firstWeekDay: 0,
minDaysInFirstWeek: 1,
todayControlMode:'select',
showHeader:true,
showFooter:true,
showWeeksBar:true,
showWeekDaysBar:true,
showApplyButton:false,
resetTimeOnDateSelect:false,
defaultTime:{hours:12,minutes:0},
labels:{apply:'Apply', today:'Today', clean:'Clean', cancel:'Cancel', ok:'OK', close:'x'},
'monthLabelsShort': ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] ,
'weekDayLabelsShort': ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] ,
'monthLabels': ['January','February','March','April','May','June','July','August','September','October','November','December'] ,
'weekDayLabels': ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] }).load();
Because page developers almost newer use all of them together, calendar should use built-in default values and never render default values.
--
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, 7 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
16 years, 7 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
16 years, 7 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
16 years, 7 months
[JBoss JIRA] Created: (RF-6936) realworld/ui/Opera: Vertical scroll bar appares on the page when it shouldn't
by Inna Shchibrya (JIRA)
realworld/ui/Opera: Vertical scroll bar appares on the page when it shouldn't
-----------------------------------------------------------------------------
Key: RF-6936
URL: https://jira.jboss.org/jira/browse/RF-6936
Project: RichFaces
Issue Type: Bug
Components: examples
Affects Versions: 3.3.1
Environment: Opera
Reporter: Inna Shchibrya
Assignee: Andrey Markhel
Priority: Minor
1. Login to the application like user with shelves.
2. Click on Delete shelf link (or Delete album). --> Confirmation message appeared. Vertical scroll bar appeared.
3. Scroll down the page. --> See attachment.
The same situation takes place if user add some image.
Vertical scroll without scrolling ability appeared after any click on shelves in the tree, Edite album or shelves.
Expected result: Vertical scroll bar shouldn't appaer if the page fits to the screen.
--
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, 7 months
[JBoss JIRA] Created: (RF-6971) realworld/images: Incorrect behaviour of Upload and Cancel on Files upload page
by Inna Shchibrya (JIRA)
realworld/images: Incorrect behaviour of Upload and Cancel on Files upload page
-------------------------------------------------------------------------------
Key: RF-6971
URL: https://jira.jboss.org/jira/browse/RF-6971
Project: RichFaces
Issue Type: Bug
Components: examples
Affects Versions: 3.3.1
Environment: All browsers
Reporter: Inna Shchibrya
Assignee: Andrey Markhel
1. Login to the application.
2. Click on Add images icon.
3. Add several images.
4. Click on Cancel link near any image. --> Nothing happened.
5. Click on Upload button and Stop button. --> The image is uploaded but doesn't appear from upload list.
6. Click on Upload button and Stop button again. --> The same image is uploaded and doesn't appear from upload list.
Expected result: If user clicks on Cancel link image should be removed from upload list. If image is uploaded it should be removed from upload list.
--
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, 7 months