Github user pedrosans commented on a diff in the pull request:
https://github.com/apache/wicket/pull/210#discussion_r99943690
--- 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 --
My bad, I meant to say: "to be able to **change** the page source". I will
improve this exception message.
---
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.
---