Skip to content

Commit

Permalink
fixed StalePageException, refs #493
Browse files Browse the repository at this point in the history
  • Loading branch information
pulse00 committed Apr 9, 2015
1 parent 15d7f4d commit f37c0cd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ protected CharSequence getRemoteUrl(String wildcard) {
public abstract Iterable<T> getChoices(String input);

public BloodhoundConfig getConfig() {

// prevent StalePageException
// see https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/493
if (config != null && config.getRemote() != null) {
Remote remote = config.getRemote();
remote.withUrl(getRemoteUrl(remote.getWildcard() != null ? remote.getWildcard() : Remote.DEFAULT_WILDCARD));
}

return config;
}

Expand Down

0 comments on commit f37c0cd

Please sign in to comment.