All
All
Projects
Snippets
Go
Explore
Home
About
Get Involved
IP
Legal
Interact With Us
Blog
Webinars
Discord
Twitter
YouTube
Facebook
OpenNTF GitHub
OpenNTF Connections GitHub
IBM Connections Downloads
DominoHelp (external)
Explore
Home
About
Get Involved
IP
Legal
Interact With Us
Blog
Webinars
Resources
Discord
Twitter
YouTube
Facebook
OpenNTF GitHub
OpenNTF Connections GitHub
IBM Connections Downloads
DominoHelp (external)
Resources
Discord
Twitter
YouTube
Facebook
OpenNTF GitHub
OpenNTF Connections GitHub
IBM Connections Downloads
DominoHelp (external)
Projects
Snippets
Collaboration Today
Sign In
Username
Password
Forgotten your login credentials?
Login
Register
All
All
Projects
Snippets
Go
New Release of XPages Extension Library and JSON RPC Service
Posted by
Niklas Heidloff
on
December 27, 2010
Phil Riand has released the last version of the
XPages Extension Library
this year. Here is what he writes:
<<
This is the Christmas release, which will be the last of the year.
It contains several bug fixes, but also shows the emphasize we are now putting on performance. The prebuilt release now includes minified versions of the JavaScript (dojo modules) and CSS files. More than that, thanks to the Dojo build system, the HTML templates are now compiled into the JavaScript files, resulting to less requests sent to the server. This is a great step forward!
Other optimizations for minimizing the downloads are also being worked out but they require some changes in the core XPages runtime, so they won't be available before the next release. Come and see us at Lotusphere for more details!
The dwa fragment had also been merged with the domino one. It doesn't change anything from a user standpoint but, if you're working with the source code, then you'll have to remove this fragment from your Eclipse workspace.
Enjoy the release, have a great holidays and merry Christmas!
>>
I want to highlight one other feature which I think is very powerful and easy to use. The Extension Library comes with a
JSON RPC Service control
. This control allows calling from the client side JavaScript server side code without a full page refresh. Instead the output of the server side code is returned asynchronously. The serialization/deserialization is done internally via JSON and hidden from the consumers.
There is a simple sample in the Extension Library with a not that impressive user interface, but it shows the core functionality. There are two simple methods called when pressing the buttons:
The remote methods are defined in the JSON RPC service control and implemented as usual via server side JavaScript:
The remote functions are called from the client side JavaScript and callbacks are used for the asynchronous results:
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus