Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2876

Ajax Support in Mobile Browsers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-beta
    • 2.0.2
    • General, JSR-314
    • None
    • Windows Mobile 6.1, Blackberry 4.7

    Description

      In Windows Mobile (WM) 6.1 platform, <f:ajax> is converted into a full-page submit instead of a PPR. The reason is unlike Webkit based mobile-browsers, WM 6.1 or Blackberry (BB) 4.7 offers only a limited JavaScript-DOM support, so we need to optimize MyFaces's Ajax mechanism to work around the limitations of mobile browsers. I used the sample code below for testing.

      Facelets code:
      <h:commandButton value="PPR">
      <f:ajax event="action" render="second"/>
      </h:commandButton>
      <h:outputText value="#

      {item.date.seconds}

      " id="second"/>

      Item.Java:
      import java.util.Date;

      public class Item {
      Date date;

      public void setDate(Date date)

      { this.date = date; }

      public Date getDate()

      { return new Date(); }

      }

      faces-config:
      <managed-bean>
      <managed-bean-name>item</managed-bean-name>
      <managed-bean-class>Item</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>

      Also, in the case of BB 4.7 , <f:ajax> can successfully send a PPR, but PPR response is ignored.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mamallan.uthaman Mamallan Uthaman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: