• Anonymous
  • Login
  • Register
XPages Mobile Controls - News: Blackberry Support


My collegue Yoshiroh Kamiyama is the original author of the dojox/mobile code in Dojo 1.5. Kamiyama has now extended that code to also support Blackberry browsers before Blackberry will support webkit (see here).

 

In order to get this to work Kamiyama had to identify issues and missing functionality and figure out workarounds whenever possible. For example you cannot have spaces in the viewport tag (see here), dojo.require doesn't work since xhr is not supported which is why all JS code needs to be merged in one file, you cannot use CSS sprites, the fade animation doesn't work, dojo.hash doesn't seem to work, etc.

Finding out these things was not easy. Thanks a lot to Kamiyama.

Since Dojo 1.5 was just released that code won't make Dojo 1.5 but we need to look if and when this could be delivered to a future Dojo release. There is also a significant amount of testing required since only one simulator was tested so far.

I've extended slightly the XPages Mobile Controls so that the core controls like mView and mDocumentContainer work. Essentially I only had to change some code that manipulates the client side DOM.

Here is a quick demo. Don't get distracted by the iPhone style. The style can easily be changed with the dojox/mobile framework:



In this field you can enter the actual news.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.