You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthieu Chase Heimer (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/03/17 11:41:38 UTC
[jira] [Created] (TRINIDAD-2244) PPR_OVER_JSF_AJAX and a
tr:inputText mapped to a Date in a tr:panelTabbed is broken
PPR_OVER_JSF_AJAX and a tr:inputText mapped to a Date in a tr:panelTabbed is broken
-----------------------------------------------------------------------------------
Key: TRINIDAD-2244
URL: https://issues.apache.org/jira/browse/TRINIDAD-2244
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 2.0.1-core
Environment: WebLogic 12c
Mojarra 2.1.5
JSF 2.1
Trinidad 2.0.1
Reporter: Matthieu Chase Heimer
With PPR_OVER_JSF_AJAX on a tr:inputText mapped to a Date value will cause the submit to not work when a tr:subForm is nested in a tr:panelTabbed.
Firebug reports:
TrDateTimeConverter is not defined
Line 4639
The work around is to set PPR_OVER_JSF_AJAX to off.
<context-param>
<param-name>org.apache.myfaces.trinidadinternal.PPR_OVER_JSF_AJAX</param-name>
<param-value>on</param-value>
</context-param>
<?xml version='1.0' encoding='UTF-8' ?>
<tr:document xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:tr="http://myfaces.apache.org/trinidad"
title="Test">
<tr:form>
<tr:panelTabbed position="above">
<tr:showDetailItem text="View">
Other tab
</tr:showDetailItem>
<tr:showDetailItem text="Details">
<tr:subform>
<tr:inputText columns="25" label="Date:" value="#{myBean.myDate}"/>
<tr:commandButton action="#{myBean.myAction}" text="Update"/>
</tr:subform>
</tr:showDetailItem>
</tr:panelTabbed>
</tr:form>
</tr:document>
package com.example;
import java.util.Date;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public class MyBean {
private Date date;
public void setMyDate(Date date) {
}
public Date getMyDate() {
return date;
}
public String myAction() {
System.out.println("Action method called");
return null;
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira