[ http://issues.apache.org/jira/browse/ADFFACES-173?page=all ]

Piyush Hari updated ADFFACES-173:
---------------------------------

    Attachment: patch_sept14_12_43PM.patch

I am providing patch for this issue. With this patch, 'initialFocusId' will 
work on BlackBerry, PIE and IE Mobile. The following major changes were made:

- onload JS handler for body html tag currently calls _checkLoad(event) method 
for all browsers that supports PPR. 'event' argument was causing an error to 
appear on PIE and IE Mobile. Moreover, 'event' was not used in 
_checkLoad(event) method definition. Therefore, I removed it.

-_checkLoad sets the initialFocus. However, it is called for only those 
browsers that support PPR. For others, that do not, like BlackBerry 4.0+ , no 
onload JS handler for body html tag is called. Thus, intialFocus is not set. 
Therefore, created a _checkLoadNoPPR() function to set focus.

-other code improvements : see comments in patch to review other important code 
changes.

>  'initialFocusId' attribute support for document component on PDA
> -----------------------------------------------------------------
>
>                 Key: ADFFACES-173
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-173
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>         Environment: PDA
>            Reporter: Piyush Hari
>            Priority: Minor
>         Attachments: patch_sept14_12_43PM.patch
>
>
> 'initialFocusId' attribute on a 'document' component represents the id of the 
> component to which you want the focus to be when the full page renders. This 
> attribute is currently not supported on PDAs but works fine for desktop 
> applications.  We plan to fix this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to