Skip to content

Commit

Permalink
Fixing "not serializable" exception occurring in wicket development m…
Browse files Browse the repository at this point in the history
…ode when editing resource via debug pages.
  • Loading branch information
mederly committed Jul 11, 2014
1 parent ffcc7d4 commit 0cb5f59
Showing 1 changed file with 17 additions and 0 deletions.
Expand Up @@ -126,6 +126,23 @@ public PrismContainerValue(OriginType type, Objectable source, PrismContainerabl
setPrismContext(prismContext);
}

@Override
public PrismContext getPrismContext() {
return prismContext;

// we could take prismContext also from the parent, but
// actually if it's in the parent, it should be also here
// (as the "add" operation automatically adopts/revives
// the child being added)
// if (prismContext != null) {
// return prismContext;
// }
// if (getParent() != null) {
// return getParent().getPrismContext();
// }
// return null;
}

/**
* Returns a set of items that the property container contains. The items may be properties or inner property containers.
* <p/>
Expand Down

0 comments on commit 0cb5f59

Please sign in to comment.