[JBoss JIRA] Created: (RF-7676) Actions for h:commandButton in tabPanel with dynamic selectedTab and switchType of ajax or server not being called
by Dean Ashby (JIRA)
Actions for h:commandButton in tabPanel with dynamic selectedTab and switchType of ajax or server not being called
------------------------------------------------------------------------------------------------------------------
Key: RF-7676
URL: https://jira.jboss.org/jira/browse/RF-7676
Project: RichFaces
Issue Type: Bug
Components: component-panels-layout-themes
Affects Versions: 3.3.0
Environment: Richfaces 3.3.0GA on Tomcat 6.0.18
Reporter: Dean Ashby
In the example below, the h:commandButton action only works on the tab that was selected when the page containing the panel was opened.
<rich:tabPanel id="panel" selectedTab="#{test.selectedTab}" switchType="server">
<rich:tab id="taba" label="Tab A" name="taba" >
<h:commandButton id="add_itemA" value="Add" action="#{test.actionAddTestA}" />
</rich:tab>
<rich:tab id="tabb" label="Tab B" name="tabb" >
<h:commandButton id="add_itemB" value="Add" action="#{test.actionAddTestB}" />
</rich:tab>
<rich:tab id="tabc" label="Tab C" name="tabc" >
<h:commandButton id="add_itemC" value="Add" action="#{test.actionAddTestB}" />
</rich:tab>
</rich:tabPanel>
If the selectedTab attribute is hardwired to 'taba' for example, the actions on all three tabs work fine. Similarly if the switchType is set to 'client' then all three actions work fine.
I've come across a couple of posts that talk about actions not being called if the parent component isn't being rendered. I'm guessing that the selectedTab value is being re-read when the view is reconstructed prior to trying to execute the action. Because the selectedTab value is still set to the same value as when the page was loaded, the components on whichever of the other two tabs was selected are not being reconstructed and so therefore the corresponding action can't be called.
A similar problem occurs when and extended data table is rendered in each of the tabs. The table columns can only be sorted on the table in the tab that was originally selected. If you switch to a different tab and then try changing the sort order of one of the table columns a request is sent to the server and returns an HTTP 200 response but the 'hourglass' icon remains spinning, and the table order remains unchanged.
--
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, 3 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, 3 months
[JBoss JIRA] Created: (RF-6138) calendar and german translation of button labels
by chris s (JIRA)
calendar and german translation of button labels
------------------------------------------------
Key: RF-6138
URL: https://jira.jboss.org/jira/browse/RF-6138
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Reporter: chris s
Priority: Trivial
Fix For: 3.3.1
Several button labels in calendar component are not translated to German:
I try to give you the best possible translation even if it's not always
the literal one:
'Apply' = 'Übernehmen'
'Today' = 'Heute'
'Clean' = 'Löschen'
'Ok' = 'OK'
'Cancel'= 'Abbrechen'
I hope you are familiar with German 'Umlaute' (öäüß, ÖÄÜ).
It's properly displayed with UTF-8 or ISO-8859-1 or -15.
If your EMail-client can't display it, here are the codes:
'Ü' in 'Übernehmen' = U+00DC or ANSI \uDC
'ö' in 'Löschen' = U+00F6 \uF6
--
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, 3 months