In addition to Johan's point about having to actually open the dialog and hit save, the other thing I'd point out is that you are accessing currentPage.getProperties - for that to work your widget has to be on your page properties dialog, not your component's dialog, and you have to have opened the ...