In case Ajax is available you can start with button disabled by default
Then add AbstractDefaultAjaxBehavior to the page and trigger it on dom ready:

@Override
public void renderHead(IHeaderResponse response) {
     
response.render(OnDomReadyHeaderItem.forScript(myBehavior.getCallbackScript()));
}

and enable your buttons in myBehavior response

On Thu, May 18, 2017 at 3:30 PM, Martin Grigorov <mgrigo...@apache.org> wrote:
> Hi,
>
> See PageExpiredException javadoc.
> The exception is not thrown only when the session is expired.
> Most probably the page has not be saved at all.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, May 18, 2017 at 10:12 AM, Erwan Tanajaya <r_...@yahoo.com.invalid>
> wrote:
>
>> hi all,
>> I have problem always get Page Expired error(event i set my session
>> expired time to 8 hour), it happen if i open a page that had a datatable
>> with have hundred of row.If i click a button that had a setResponsePage to
>> a new page when the page is still loading and do something in the new
>> opened page(push a button for example) it will cause Page Expired.
>> can anybody help me to solve this problem ?
>> i using :wicket 7.3tomcat 8.5java 8
>>
>> Best Regards,Erwan
>>



-- 
WBR
Maxim aka solomax

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to