Ales Novak's old blog

     
 

Ajaxized IdM


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.

 
 
 
 
 

« březen 2007 »
PoÚtStČtSoNe
   
1
3
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today

[This is a Roller site]
Theme by Rowell Sotto.
 
© anovak