Github user martin-g commented on a diff in the pull request:
https://github.com/apache/wicket/pull/210#discussion_r99936796
--- Diff:
wicket-core/src/main/java/org/apache/wicket/core/request/handler/PageProvider.java
---
@@ -349,6 +306,11 @@ public void detach()
*/
public void setPageSource(IPageSource pageSource)
{
+ if (provision != null)
+ {
+ throw new IllegalStateException(
+ "A provision was already been done. The
provider can be forcefully detached or a new one needs to be used to provide
using this page source.");
--- End diff --
`"A provision has already been done. The provider can be forcefully
detached or a new one has to be created be be able to use this page source."` ?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---