Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2244

PPR_OVER_JSF_AJAX and a tr:inputText mapped to a Date in a tr:panelTabbed is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.1-core
    • None
    • None
    • None
    • WebLogic 12c
      Mojarra 2.1.5
      JSF 2.1
      Trinidad 2.0.1

    Description

      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; }

      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chase@osdev.org Matthieu Chase Heimer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: