You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "reiern70 (via GitHub)" <gi...@apache.org> on 2023/06/05 08:15:20 UTC
[GitHub] [wicket] reiern70 opened a new pull request, #592: Improvement/ernestosemedt/wicket 7059
reiern70 opened a new pull request, #592:
URL: https://github.com/apache/wicket/pull/592
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@wicket.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [wicket] reiern70 commented on pull request #592: Improvement/ernestosemedt/wicket 7059
Posted by "reiern70 (via GitHub)" <gi...@apache.org>.
reiern70 commented on PR #592:
URL: https://github.com/apache/wicket/pull/592#issuecomment-1576585659
> In my project, we usually do this when we don't want a page to be serialized after an ajax request:
>
> ```java
> private void untouchPage(Page page) {
> if (Session.exists()) {
> // Do not re-serialize page
> Session.get().getPageManager().untouchPage(page);
> }
> }
> ```
>
> Did you consider this approach as well?
No. You do this after each AJAX request?
I just want to be able to mark some requests as "do not generate" a page serialization.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@wicket.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [wicket] theigl commented on pull request #592: Improvement/ernestosemedt/wicket 7059
Posted by "theigl (via GitHub)" <gi...@apache.org>.
theigl commented on PR #592:
URL: https://github.com/apache/wicket/pull/592#issuecomment-1576629868
> No. You do this after each AJAX request?
>
> I just want to be able to mark some requests as "do not generate" a page serialization.
Yes, after each ajax request that does not change the stage of the page.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@wicket.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [wicket] martin-g commented on pull request #592: Improvement/ernestosemedt/wicket 7059
Posted by "martin-g (via GitHub)" <gi...@apache.org>.
martin-g commented on PR #592:
URL: https://github.com/apache/wicket/pull/592#issuecomment-1576689100
I agree with @theigl that you should be able to do this without adding the new API method.
For example you could use a IRequestCycleListener that uses ` Session.get().getPageManager().untouchPage(page);` whenever some condition is met, e.g. when a specific RequestCycle metadata is set (in the Ajax callback method).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@wicket.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improvement/ernestosemedt/wicket 7059 [wicket]
Posted by "reiern70 (via GitHub)" <gi...@apache.org>.
reiern70 closed pull request #592: Improvement/ernestosemedt/wicket 7059
URL: https://github.com/apache/wicket/pull/592
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@wicket.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [wicket] theigl commented on pull request #592: Improvement/ernestosemedt/wicket 7059
Posted by "theigl (via GitHub)" <gi...@apache.org>.
theigl commented on PR #592:
URL: https://github.com/apache/wicket/pull/592#issuecomment-1576425502
In my project, we usually do this when we don't want a page to be serialized after an ajax request:
```java
private void untouchPage(Page page) {
if (Session.exists()) {
// Do not re-serialize page
Session.get().getPageManager().untouchPage(page);
}
}
```
Did you consider this approach as well?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@wicket.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org