columns: changed data isn't rendered under Safari. So impossible to add or remove some
columns or rows.
-------------------------------------------------------------------------------------------------------
Key: RF-3573
URL:
http://jira.jboss.com/jira/browse/RF-3573
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Safari(3.2.1.CR8)
Reporter: Mikhail Vitenkov
Assigned To: Nick Belaevski
There are two input fields on the page, that define number of lines & rows in
dataTable with rich:columns inside.
Step 1. Use following code to add input fields:
<h:outputText value="Enter quantity of lines [data 1]" />
<h:panelGroup>
<h:inputText value="#{columns.length1}" />
<h:commandButton action="#{columns.addNewItem1}" value="ok"
onclick="submit();"></h:commandButton>
</h:panelGroup>
<h:outputText value="Enter quantity of lines [data 2]" />
<h:panelGroup>
<h:inputText value="#{columns.length2}" />
<h:commandButton action="#{columns.addNewItem2}" value="ok"
onclick="submit();"></h:commandButton>
Step 2. See addNewItem1 & addNewItem2 methods in Java bean:
public void addNewItem1() {
if (length1 < 0)
length1 = 0;
if (data1.size() > length1)
for (int i = length1; i < data1.size();)
data1.remove(i);
else
for (int i = data1.size() + 1; i <= length1; i++)
data1.add(new Data(i, "data 1 [" + i + "]", "Button " +
i, "Link " + i, "select" + (i % 5)));
}
public void addNewItem2() {
if (length2 < 0)
length2 = 0;
if (data2.size() > length2)
for (int i = length2; i < data2.size();)
data2.remove(i);
else
for (int i = data1.size() + 1; i <= length2; i++)
data2.add(new Data(i, "data 1 [" + i + "]", "Button " +
i, "Link " + i, "select" + (i % 5)));
}
Step 3. See code of rich:dataTable with dynamic columns inside:
<rich:columns value="#{columns.data2}" var="d2" ...
columns="#{columns.columns}" index="index" ...>
<f:facet name="header">
<h:outputText value="header #{d2.int0}"></h:outputText>
</f:facet>
<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:v...
<f:facet name="footer">
<h:outputText value="footer #{d2.int0}"></h:outputText>
</f:facet>
</rich:columns>
</rich:dataTable>
Step 4. Navigate to page & verify number of dataTable rows & columns.
Step 5. Change data for two input fields , described above & press "ok".
Step 6. Verify verify number of dataTable rows & columns again.
Actual behavior:
Number of columns & rows remains previous. Everything works fine under FF, IE &
other browsers, except Safari.
--
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