[JBoss JIRA] (RF-11978) Graph Validator - does not mark context to fail validation
by Lukáš Fryč (JIRA)
Lukáš Fryč created RF-11978:
-------------------------------
Summary: Graph Validator - does not mark context to fail validation
Key: RF-11978
URL: https://issues.jboss.org/browse/RF-11978
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Lukáš Fryč
GraphValidator is using BeanValidator to check that instance does not failed [1],
and it calls [{{facesContext.renderResponse()}}|http://docs.oracle.com/javaee/6/api/javax/faces/context/FacesContext.html#renderResponse()] when beanValidation returns some message.
However it does not call [{{facesContext.validationFailed()}}|http://docs.oracle.com/javaee/6/api/javax/faces/context/FacesContext.html#isValidationFailed()].
[1] https://github.com/richfaces/components/blob/develop/validator/ui/src/mai...
----
This causes problem when another component reads the [{{FacesContext.isValidationFailed()}}|http://docs.oracle.com/javaee/6/api/javax/faces/context/FacesContext.html#isValidationFailed()] flag in order to distinguish is it should proceed or not, like in following snippet.
----
Following snippet is part of the wizard using togglePanel and toggleControl in order to switch panels.
When user hits Continue button, togglePanel is switched regardless the graphValidator validation failed or not - when validation for another component like {{h:inputText}} fails, toggleControl does not switch.
{code:XML}
...
<rich:togglePanelItem>
<!-- Step 3: password -->
<rich:graphValidator id="passwordsValidation" value="#{passwordBean}">
<rich:messages for="passwordsValidation" />
<h:panelGrid columns="3">
<h:outputLabel for="password" value="Password" />
<h:inputSecret id="password" value="#{passwordBean.password}" />
<rich:message for="password" />
<h:outputLabel for="passwordConfirmation" value="Confirmation" />
<h:inputSecret id="passwordConfirmation" value="#{passwordBean.passwordConfirmation}" />
<rich:message for="passwordConfirmation" />
</h:panelGrid>
<a4j:commandButton value="Back">
<rich:toggleControl event="click" targetItem="@prev" />
</a4j:commandButton>
<a4j:commandButton value="Continue">
<rich:toggleControl event="click" targetItem="@next" />
</a4j:commandButton>
</rich:graphValidator>
</rich:togglePanelItem>
...
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (RF-11606) rich:select : doesn't cast selectItem value
by Frederic Allard (Created) (JIRA)
rich:select : doesn't cast selectItem value
-------------------------------------------
Key: RF-11606
URL: https://issues.jboss.org/browse/RF-11606
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-selects
Affects Versions: 4.1.0.Milestone2
Environment: Internet Explorer 8, Google Chrome 14, Oracle Weblogic 11g
Reporter: Frederic Allard
If you define f:selectItem(s) directly in the xhtml file as children of a rich:select, the values of the selectItem(s) are not cast to the bound value of the rich:select.
This results in the value to be not selected by the rich:select after rendering the page.
As the documentation of the component says: "The rich:select component is designed to replace standard h:selectOneMenu."
The h:selectOneMenu casts and selects the value in this case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] Created: (RF-11345) If two extendedDataTable placed on the page, both lose horizontal scroll.
by Vitaliy Pavlov (JIRA)
If two extendedDataTable placed on the page, both lose horizontal scroll.
-------------------------------------------------------------------------
Key: RF-11345
URL: https://issues.jboss.org/browse/RF-11345
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-tables
Affects Versions: 4.0.0.Final
Environment: Windows xp sp3, java (jdk1.6.0_26), jboss-6.0.0, RichFaces 4.0.0 Final, Browsers: Firefox 5.0, IE7, Google Chrom.
Reporter: Vitaliy Pavlov
Fix For: 4.Future
If two extendedDataTable put on page, both extendedDataTables lose horizontal scroll.
Vertical scroll is still working.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (RF-12003) Including h:head breaks f:ajax events of commandButton
by Joern Ohmen (JIRA)
Joern Ohmen created RF-12003:
--------------------------------
Summary: Including h:head breaks f:ajax events of commandButton
Key: RF-12003
URL: https://issues.jboss.org/browse/RF-12003
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: base functionality
Affects Versions: 4.2.0.CR1, 4.1.0.Final
Environment: JBoss 7.0.2 Final, JBoss 7.1.0 Final, RichFaces 4.2.0 Final, 4.1.0 Final, Chrome and Safari
Reporter: Joern Ohmen
Priority: Critical
If I add h:head-Tag to my page, the ajax events of the h:commandButton are not working. The example should show up a panel with a click on a button, but nothing happens. The example is working when h:head is removed. I use a ConversationScoped Bean.
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head>
<title>Test</title>
</h:head>
<f:metadata>
<f:event type="preRenderView"
listener="#{testController.beginConversation}" />
</f:metadata>
<h:body>
<f:view>
<h:form>
<h:commandButton value="showField"
action="#{testController.changeRenderInputPanel}">
<f:ajax event="click" render="inputPanelId" execute="@form" />
</h:commandButton>
<h:panelGroup id="inputPanelId" layout="block"
rendered="#{testController.renderInputPanel}">
<h:outputText value="Author" />
<h:inputText value="#{testController.newCommentAuthor}" />
</h:panelGroup>
</h:form>
</f:view>
</h:body>
</h:html>
import java.io.Serializable;
import javax.enterprise.context.Conversation;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Inject;
import javax.inject.Named;
import org.apache.commons.logging.Log;
@Named
@ConversationScoped
public class TestController implements Serializable{
private static final long serialVersionUID = 1L;
@Inject
private Conversation conversation;
private String newCommentAuthor;
private boolean renderInputPanel = true;
@Inject
private Log logger;
public boolean isRenderInputPanel() {
return renderInputPanel;
}
public void setRenderInputPanel(boolean renderInputPanel) {
this.renderInputPanel = renderInputPanel;
}
public void changeRenderInputPanel() {
this.setRenderInputPanel(!isRenderInputPanel());
logger.info("render panel: " + renderInputPanel);
}
public String getNewCommentAuthor() {
return newCommentAuthor;
}
public void setNewCommentAuthor(String newCommentAuthor) {
this.newCommentAuthor = newCommentAuthor;
}
public void beginConversation() {
if (conversation.isTransient()) {
conversation.setTimeout(120000);
conversation.begin();
}
}
public void endConversation() {
if (!conversation.isTransient()) {
conversation.end();
return;
}
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (RF-11589) showcase - an Warning is generated when there is interaction with Atmosphere CR2 framework
by Juraj Huska (Created) (JIRA)
showcase - an Warning is generated when there is interaction with Atmosphere CR2 framework
------------------------------------------------------------------------------------------
Key: RF-11589
URL: https://issues.jboss.org/browse/RF-11589
Project: RichFaces
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: component-push/poll, showcase
Affects Versions: 4.1.0.Milestone3
Environment: app: showcase
container: JBoss AS 7.0.2.Final
Reporter: Juraj Huska
Priority: Minor
An WARNING is generated when there is any interaction with Atmosphere CR2 framework in showcase push demos.
The warning:
{code}
10:08:12,102 WARNING [org.atmosphere.cpr.AtmosphereResourceImpl] (http-localhost.localdomain-127.0.0.1-8080-2) Broadcaster DefaultBroadcaster9dd3cbac-4e33-482d-8c8c-cd2c0936e695 has been destroyed and cannot be re-used. Recreating a new one with the same name. You can turn off that mechanism by adding, in web.xml, org.atmosphere.cpr.recoverFromDestroyedBroadcaster set to false
{code}
The demos however work as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months