[JBoss JIRA] Created: (RF-4293) comboBox: using component with s:convertEntity leads to displaying id list instead of object property in label for s:selectItems.
by Mikhail Vitenkov (JIRA)
comboBox: using component with s:convertEntity leads to displaying id list instead of object property in label for s:selectItems.
---------------------------------------------------------------------------------------------------------------------------------
Key: RF-4293
URL: https://jira.jboss.org/jira/browse/RF-4293
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: jboss 4.2.1.GA, seam 2.0.2, richfaces 3.2.2.BETA5(IE6, IE7, FF 3.1, Safari 3.1, Opera 9.51)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
#1. Create "Car" entity with two attributes("id" & "name") following way:
@Entity(name="car")
public class Car {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Car(int id){
this.id = id;
this.name = "name_" + id;
}
@Id
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
#2. Add rich:comboBox on the page.
<rich:comboBox id="lstIndustry1" defaultLabel="Select your industry">
<s:selectItems value="#{combobox.selectItems}" var="ind" label="#{ind.name}"/>
<s:convertEntity />
</rich:comboBox>
selectItems is ArrayList<Car> defined in "combobox" bean:
private ArrayList<Car> selectItems;
public Combobox(){
this.selectItems = new ArrayList<Car>();
for(int i = 0; i < 100; i++){
selectItems.add(new Car(i));
}
}
#3. Naviagate on the page, contained rich:comboBox.
#4. Open component's pop up list & verify items' labels.
Actual behavior:
Instead of Car's "name" property list fo ids displayed. Replace rich:comboBox with h:selectOneMenu - everything works fine.
--
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
14 years, 5 months
[JBoss JIRA] Created: (RF-3559) rich:combobox using different itemValue and itemLabel select item
by Rafael Jimenez (JIRA)
rich:combobox using different itemValue and itemLabel select item
-----------------------------------------------------------------
Key: RF-3559
URL: http://jira.jboss.com/jira/browse/RF-3559
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: IE7 - Richfaces 3.2.1 CR7 - eclipse europa
Reporter: Rafael Jimenez
Priority: Optional
Fix For: 3.2.1
In this code:
-------------------------------------------------------------------------------------------------------
<f:view>
<ui:composition>
<ui:define>
<h:form>
<rich:panel style="width:500px; height:300px; overflow:scroll" >
<h:outputText value="ComboBox Scroll Bug" />
<rich:comboBox>
<f:selectItem itemValue="001" itemLabel="option1" />
<f:selectItem itemValue="002" itemLabel="option2" />
<f:selectItem itemValue="003" itemLabel="option3" />
</rich:comboBox>
</rich:panel>
</h:form>
</ui:define>
</ui:composition>
</f:view>
---------------------------------------------------------------------------------------------------------------
It must show itemlabels options and get itemvalue but It shows itemvalues and get itemvalue from selectitem.
--
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
14 years, 5 months
[JBoss JIRA] Created: (RF-3517) Entered values in rich:subTable are lost upon validation errors
by Jonck van der Kogel (JIRA)
Entered values in rich:subTable are lost upon validation errors
---------------------------------------------------------------
Key: RF-3517
URL: http://jira.jboss.com/jira/browse/RF-3517
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: Windows Vista, JBoss 4.0.5, JSF 1.2
Reporter: Jonck van der Kogel
Given the following sample code:
<rich:dataTable
value="#{backingBean.holders}"
var="holder">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="Test">
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column>
<h:inputText value="#{holder.requiredTest}" required="true" />
</rich:column>
<rich:subTable
value="#{holder}"
var="holderSubTable">
<rich:column colspan="1">
<h:inputText value="#{holderSubTable.test}" />
</rich:column>
</rich:subTable>
</rich:dataTable>
When the surrounding form is submitted, the "test" field in the rich:subTable is cleared when a validation error occurs. This is not the expected behavior, normally in JSF when a validation error occurs the entered values remain.
To illustrate this, I rebuilt the above scenario but now placed all fields within the same rich:dataTable like so:
<rich:dataTable
value="#{backingBean.holders}"
var="holder">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="Test">
</rich:column>
<rich:column>
<h:outputText value="Test2">
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column>
<h:inputText value="#{holder.requiredTest}" required="true" />
</rich:column>
<rich:column>
<h:inputText value="#{holder.test}" />
</rich:column>
</rich:dataTable>
In this case when the form is submitted and a validation error occurs the "test" field is not cleared, as expected.
--
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
14 years, 5 months