Adding Facebook connectPage commented by Don FergusonGreat writeup. Thanks! BTW, there is a good solution to the problem:
Use a model for the fbcallback label, as in:
Label fbcallback = new Label("fbcallback", new AbstractReadOnlyModel<String>() {
@Override
public String getObject() {
CharSequence url = ""
StringBuffer sb = new StringBuffer();
sb.append("function callWicket() { \n");
sb.append(" var wcall = wicketAjaxGet('");
sb.append(url);
sb.append("', function() { }, function() { });");
sb.append(" }");
return sb.toString();
}
});
This has the effect of delaying the call to getCallbackUrl() until render time (when the wicket component hierarchy is all set up). With this change, you can simplify the code, and call createPanel() in the constructor rather than having it called later by the parent.
Change Notification Preferences
View Online
|
|
