[JBoss JIRA] Created: (RF-3573) columns: changed data isn't rendered under Safari. So impossible to add or remove some columns or rows.
by Mikhail Vitenkov (JIRA)
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:verbatim></h:outputLink>
<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
15 years, 9 months
[JBoss JIRA] Created: (RF-4390) Calendar zindex doesn't work (IE7)
by Hrvoje Jo (JIRA)
Calendar zindex doesn't work (IE7)
----------------------------------
Key: RF-4390
URL: https://jira.jboss.org/jira/browse/RF-4390
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: a4j, jsf
Reporter: Hrvoje Jo
In IE7 zindex doesn't work. If calendar is inside rich:panelBarItem and after them there is another rich:panelBarItem it is behind the rich:panelBarItem no matter what zindex values are.
<rich:panelBarItem id="p1"
label="someLabel" headerStyle="z-index: 1;"
headerStyleActive="z-index: 1;" contentStyle="z-index: 1;" >
<rich:calendar id="p1c1" value="#{d_bean.date}" popup="true" rendered="true"
inputClass="input-field input-field-cal"
converter="DateConverter" enableManualInput="true"
buttonClass="calendar-button" datePattern="dd.MM.yyyy"
buttonIcon="/images/datepicker.gif" showApplyButton="false"
direction="bottom-right" jointPoint="bottom-right"
weekDayLabels="1,2,3,4,5,6,7"
weekDayLabelsShort="1,2,3,4,5,6,7"
monthLabels="1,2,3,4,5,6,7,8,9,10,11,12"
monthLabelsShort="1,2,3,4,5,6,7,8,9,10,11,12"
todayControlMode="hidden" required="false" cellWidth="15"
cellHeight="15" zindex="2000">
</rich:panelBarItem>
<rich:panelBarItem id="p2"
label="someOtherLabel" headerStyle="z-index: 1;"
headerStyleActive="z-index: 1;" contentStyle="z-index: 1;" >
...
</rich:panelBarItem>
--
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, 9 months
[JBoss JIRA] Created: (RF-4462) a4j:support issues
by Metin OSMAN (JIRA)
a4j:support issues
------------------
Key: RF-4462
URL: https://jira.jboss.org/jira/browse/RF-4462
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Facelets 1.1.14, JSF RI 1.2_04-P02 or 1.2_09-BETA1, jboss 4.2.2
Reporter: Metin OSMAN
Hi,
I have just migrated from 3.2.1 to 3.2.2 and I am experiencing 2 problems with the a4j:support tag.
1. As there is no "onclick" attribute on h:outputText, I used a4j:support to attach an action to the "onclick" event of the outputText (rendered as a span) :
{code}
<h:outputText style="CURSOR: pointer" value="#{lbl.header_deconnexion}">
<a4j:support event="onclick" onsubmit="window.location='session.stop'; return false;" />
</h:outputText>
{code}
As this does'nt work anymore, I had to change it to :
{code}
<h:outputLabel style="CURSOR: pointer" value="#{lbl.header_deconnexion}" onclick="window.location='session.stop'; return false;" />
{code}
2. Lets say I need to populate some data and then open a modalPanel on a given position.
These lines used to work :
{code}
<h:panelGrid column="2">
<h:column>
<h:graphicImage alt="green"
url="/resources/img/feurouge-vert-16x16.gif"
styleClass="priorityIcon" rendered="false" />
</h:column>
<h:panelGrid cellpadding="0" cellspacing="0">
<h:outputText value="Qualification" />
<h:outputText value="#{client.qualification}%" />
</h:panelGrid>
<a4j:support action="#{client.openQualification}" immediate="true"
reRender="..."
event="onclick"
oncomplete="showIndicatorModalPanel(this);" />
</h:panelGrid>
{code}
The showIndicatorModalPanel(this) js function calculate a position and open the modalPanel on this position.
With 3.2.2, all the dom attributes relative to dimensions and positions of the clicked panelGrid are set to 0. Then, the calculated position is wrong and the modalPanel is misplaced.
But when I call the same js function on the "onclick" attribute of the panelGrid, the modalPanel is correctly placed, but its data are not filled as I did not call the client.openQualification action.
{code}
<h:panelGrid column="2" onclick="showIndicatorModalPanel(this);">
<h:column>
<h:graphicImage alt="green"
url="/resources/img/feurouge-vert-16x16.gif"
styleClass="priorityIcon" rendered="false" />
</h:column>
<h:panelGrid cellpadding="0" cellspacing="0">
<h:outputText value="Qualification" />
<h:outputText value="#{client.qualification}%" />
</h:panelGrid>
</h:panelGrid>
{code}
Any idea on what change could have make theses issues happen ?
--
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, 9 months