[JBoss JIRA] Created: (RF-3925) graphValidator: when all ajaxValidators passed successfully, after submit h:message for all validated components says, that validation failed in case using graphValidator.
by Mikhail Vitenkov (JIRA)
graphValidator: when all ajaxValidators passed successfully, after submit h:message for all validated components says, that validation failed in case using graphValidator.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: RF-3925
URL: https://jira.jboss.org/jira/browse/RF-3925
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: IE6, IE7, FF 3.0, Safari 3.1, Opera 9.5(3.2.2.BETA1)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
Step 1. Create panelGrid with h elements, like inputText, selectOneMenu, selectBooleanCheckBox... which are validated by ajaxValidator following way:
<rich:graphValidator value="#{graphValidator}">
<h:panelGrid columns="2" border="2" id="panelGridID">
...
<h:outputLabel for="mailValue" value="Mail validation:" />
<h:panelGroup>
<h:inputText value="#{validator.text}" id="mailValue">
<rich:ajaxValidator event="onchange" a></rich:ajaxValidator>
</h:inputText>
<rich:message for="mailValue" showDetail="true" showSummary="true" />
</h:panelGroup>
...
</h:panelGrid>
</rich:graphValidator>
Step 2. Input valid values in all fields.
Step 3. Submit form, contained tested panelGrid.
Actual behavior:
h:messages for appropriate fields appears. For more info see attached ValidatorBean.java & GraphValidatorBean.java.
--
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
17 years, 7 months
[JBoss JIRA] Created: (RF-3512) tabPanel loads content of all tabs in server/ajax switchType mode
by Zied Hamdi (JIRA)
tabPanel loads content of all tabs in server/ajax switchType mode
-----------------------------------------------------------------
Key: RF-3512
URL: http://jira.jboss.com/jira/browse/RF-3512
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: Sun RI 1.2, tomcat 6
Reporter: Zied Hamdi
Content of all tabPanel tabs is encoded when displaying a tab: this bug becomes major if our home page loads all data relative to the app. The following code demonstrates this feature:
This is what we get in the log file: all tabs are loaded, then the one to display is loaded again
INFO [gisiinteractive.common.test.jsf.richfaces.TestController] displaying tab 1
INFO [gisiinteractive.common.test.jsf.richfaces.TestController] displaying tab 2
INFO [gisiinteractive.common.test.jsf.richfaces.TestController] displaying tab 3
INFO [gisiinteractive.common.test.jsf.richfaces.TestController] displaying tab 1
For this code, I have no direct way to avoid this (I will try to enable/disable the rendered attribute on each tab on display...) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:jsp="http://java.sun.com/JSP/Page">
<f:view>
<a4j:loadStyle src="/styles/gisi.css"></a4j:loadStyle>
<ui:insert name="modalPanels" />
<body style="margin: 0; padding: 0;">
<h:form id="mainForm">
<ui:debug hotkey="e" rendered="true" />
<rich:tabPanel switchType="ajax">
<rich:tab label="tab1">
<h:outputText value="#{testController.tab1Text}"/>
</rich:tab>
<rich:tab label="tab2">
<h:outputText value="#{testController.tab2Text}"/>
</rich:tab>
<rich:tab label="tab3">
<h:outputText value="#{testController.tab3Text}"/>
</rich:tab>
</rich:tabPanel>
</h:form>
</body>
</f:view>
</html>
package net.gisiinteractive.common.test.jsf.richfaces;
public class TestController {
private static org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory
.getLog(TestController.class);
public TestController() {
}
public String getTab1Text() {
String value = "displaying tab 1";
LOG.info(value);
return value;
}
public String getTab2Text() {
String value = "displaying tab 2";
LOG.info(value);
return value;
}
public String getTab3Text() {
String value = "displaying tab 3";
LOG.info(value);
return value;
}
}
--
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
17 years, 7 months
[JBoss JIRA] Created: (RF-3509) Firefox: modal panel is shown in the upper-left window corner if showWhenRendered is 'true'.
by Sergey Halipov (JIRA)
Firefox: modal panel is shown in the upper-left window corner if showWhenRendered is 'true'.
--------------------------------------------------------------------------------------------
Key: RF-3509
URL: http://jira.jboss.com/jira/browse/RF-3509
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: FF
Reporter: Sergey Halipov
Priority: Minor
<rich:modalPanel id="mp" showWhenRendered="true" >
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.
</rich:modalPanel>
--
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
17 years, 7 months
[JBoss JIRA] Created: (RF-4013) rich:suggestionBox and rich:jQuery (1.2.6) not play together
by Jan Ziegler (JIRA)
rich:suggestionBox and rich:jQuery (1.2.6) not play together
------------------------------------------------------------
Key: RF-4013
URL: https://jira.jboss.org/jira/browse/RF-4013
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Tomcat 6.0.16
MyFaces 1.2.3
Tomahawk 1.1.7 Snapshot
Facelets 1.1.15 Snahshot
Richfaces 3.2.2 Snapshot (20080724)
Reporter: Jan Ziegler
It seems that <rich:jQuery> (with the new Version 1.2.6) does not play together with <rich:suggestionBox>.
I tested with this code:
Code:
...
<!-- jQuery for showing an alert when clicking on a div -->
<div class="test">click me!</div>
<rich:jQuery selector="div.test" timing="onload" query="click(function(){alert('you clicked the div!')})" />
<!-- suggestion box -->
<h:form>
<h:inputText value="#{testBean.searchString}" id="normalStringSearch" />
<a4j:region>
<rich:suggestionbox for="normalStringSearch" minChars="2" suggestionAction="#{testBean.autocomplete}" var="elements" >
<h:column>
<h:outputText value="#{elements}" />
</h:column>
</rich:suggestionbox>
</a4j:region>
</h:form>
...
The action of the suggestionBox is not called - na ajax call at all. If i comment out the suggestion box the jQuery stuff works, otherwise not!
Once, in combination with other components I got a stange firefox exception:
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: http://localhost:8080/test/a4j_3_2_2-SNAPSHOTorg/richfaces/renderkit/html...
/jquery.js.faces :: anonymous :: line 96" data: no]
http://localhost:8080/test/a4j_3_2_2-SNAPSHOTorg.ajax4jsf.javascript.Ajax...
Line 192
--
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
17 years, 7 months