myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2876) Ajax Support in Mobile Browsers
Date Wed, 08 Sep 2010 12:46:35 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907199#action_12907199
] 

Werner Punz commented on MYFACES-2876:
--------------------------------------

Ok so far everything runs except the viewhead and viewroot replacement, the reason there is
probably the xml processing which is slightly different or partially incomplete on old blackberries.
The biggest issue I ran into was globalEval, window.eval.call or eval.call was not possible
on blackberries, so I had a scoping problem
even scoping a wrapper function and then doing eval did not work out, I had to revert to the
document append method like it is documented on quirksmode and like jquery uses it.
But I tried to avoid the method so far because it does not run properly on newer browsers.
Chrome simply does not eval, other browsers like ie8 simply change the eval order randomly.
But having it as fallback for blackberries where it works fine is ok I guess.


> Ajax Support in Mobile Browsers
> -------------------------------
>
>                 Key: MYFACES-2876
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2876
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General, JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Windows Mobile 6.1, Blackberry 4.7
>            Reporter: Mamallan Uthaman
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message