I think this code has been already integrated into wicketstuff module stateless : https://github.com/wicketstuff/core/tree/master/stateless-parent On 29 Mar 2016 10:14, "Martijn Dashorst" <[email protected]> wrote:
> All, > > I've done a small experiment with stateless ajax based on the code > from Jolira and ported it to wicket 7. > > It appears that stateless ajax actually works, and the code doesn't > look all that jarring to me. I understand that providing this > out-of-the-box, and as a default implementation is dangerous. > > > https://github.com/jolira/wicket-stateless/blob/master/stateless/src/main/java/com/google/code/joliratools/StatelessAjaxFormComponentUpdatingBehavior.java > > The only thing I had to fix was adding the following onBind method, > because Wicket's standard implementation doesn't perform this when > getStatelessHint() returns true: > > @Override > protected void onBind() > { > super.onBind(); > getFormComponent().getBehaviorId(this); > } > > The other snag I ran into was that the components you want to replace > need to have a static markupId (not generated by Wicket). > > Is this something we want to add to wicket proper? > > Martijn > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com >
