I made a small demo of how can Ajax be used in IdM. This was my first Ajax attempt, so the demo is not exactly rocket science. I used book Ajax Hacks By Bruce W. Perry, mostly first chapter :-). I also found a Javascript timer function somewhere on the internet. All in all the javascript part was not tough.
On the IdM side, I had to modify several jsps. headStart.jsp for starting the timer onLoad, bodyStart.jsp for embedding an HTML element, which is later modified by javascript. I also created an ApprovalProvider.jsp. It turned out to be the most difficult part of this exercise - finding right methods for searching WorkItems in the repository and for getting currently logged in user. What I mean by difficult is that it took maybe several hours to find right API methods.
All in all, I spent about 4+4+2 evening hours on that.
Picture here:
That red circle shows a field which is updated every 10 seconds without the full page reload, so if an approval is required by an activity in another browser, it suddenly pops up.
I thought that it was first Ajax in IdM - not at all, a guy from engineering told me that there already is some kind of ajaxized dashboard.
Posted by anovak
@ 04:46 odp. CET