Downport WICKET-6639 to Wicket 7

2019-04-23 Thread ssamarin
Hello,

Would appreciate if you put
https://issues.apache.org/jira/browse/WICKET-6639 on Wicket 7 as well.

Thanks, Stepan.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Custom handling of serialisation exception

2017-10-05 Thread ssamarin
Hello,
I'm trying to figure out on how to force wicket to re-render requested page.
On a first try it fails when it deserialises it from disk due to changes in
classfile (introduction of serialversionuid is not a solution for us,
unfortunately). 
Please have a look at the following code snippet, I've been trying to get
.class from mounted pages and then invoke "return new
RenderPageRequestHandler"...but this doesn't seem to work.

... extends AbstractRequestCycleListener {

public IRequestHandler onException(RequestCycle cycle, Exception ex) {

if (ex instanceof RuntimeException && ex.getMessage() != null &&
ex.getMessage().contains("Could not deserialize object from byte[]")) {
IPageRequestHandler handler = 
cycle.find(IPageRequestHandler.class);
if (handler == null) {
for (Iterator it =
Application.get().getRootRequestMapperAsCompound().iterator(); it.hasNext();
) {
IRequestMapper mapper = it.next();
if (mapper instanceof MountedMapper) {
MountedMapper mm = 
(MountedMapper) mapper;


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Toastr popups and Form's onSubmit

2017-08-01 Thread ssamarin
Thanks Vit, this worked. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Toastr-popups-and-Form-s-onSubmit-tp4678320p4678396.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Toastr popups and Form's onSubmit

2017-07-27 Thread ssamarin
I probably don't need a label, problem is that onSubmit of the form typically
calls redirect to another page.

I tried AjaxButton, but can't get redirect being called *after* toastr popup
shows up. Ideally, I want popup, wait few seconds till it closes (or user
closes it) - do redirect. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Toastr-popups-and-Form-s-onSubmit-tp4678320p4678329.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Toastr popups and Form's onSubmit

2017-07-27 Thread ssamarin
Hello,
I'm integrating toastr popups (https://github.com/CodeSeven/toastr) into our
application. For it to work properly, I need to add Behavior to Label and
then add that label to AjaxRequestTarget. 

I'm wondering on how to wire this with Form's and onSubmit methods. Custom
Ajax buttons everywhere could be a solution, but means quite a lot of
rewrite. 

May be there's some best practice? 

Regards, Stepan.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Toastr-popups-and-Form-s-onSubmit-tp4678320.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Which Check got clicked in CheckGroup with AjaxFormChoiceComponentUpdatingBehavior

2017-06-23 Thread ssamarin
Hello,

I have CheckGroup with Check's, and I need to have models for Check's
updated on click, on form submit it's too late. 

So far I've seen recommendations to use
AjaxFormChoiceComponentUpdatingBehavior. It does get invoked on every click,
but how do I determine which checkbox got clicked?

Regards

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Which-Check-got-clicked-in-CheckGroup-with-AjaxFormChoiceComponentUpdatingBehavior-tp4678142.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: POST request on textfield when expecting GET on link in AjaxPagingNavigator

2017-04-10 Thread ssamarin
We've got .add(new OnChangeAjaxBehavior() on TextField. 

Is there any way to fix this?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/POST-request-on-textfield-when-expecting-GET-on-link-in-AjaxPagingNavigator-tp4677619p4677638.html
Sent from the Users forum mailing list archive at Nabble.com.

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



POST request on textfield when expecting GET on link in AjaxPagingNavigator

2017-04-07 Thread ssamarin
Hello,

We've got TextField and AjaxPagingNavigator. After user enters something in
text field, list view is filtered, navigator is updated. After that, if
clicking on ">>" in navigator, POST request for text field is issued and
nothing happens. After clicking second time on ">>" - GET request is issued
for navigator and everything works as expected.

Any ideas why POST request for text field is issued first time?

Regards, Stepan.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/POST-request-on-textfield-when-expecting-GET-on-link-in-AjaxPagingNavigator-tp4677619.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicketstuff-datastore-memcached guide

2017-03-09 Thread ssamarin
Thanks Martin, I got it working! 

Question though: is it possible to have fallback mechanism? 

Let's say memcached crashes or process is not present - can wicket switch
back to disk mechanism?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-datastore-memcached-guide-tp4677272p4677282.html
Sent from the Users forum mailing list archive at Nabble.com.

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



wicketstuff-datastore-memcached guide

2017-03-08 Thread ssamarin
Hello, 

I've been looking for a guide/howto for wicketstuff-datastore-memcached, but
no luck so far.

So, I put 2 new jars in the classpath:
wicketstuff-datastore-memcached-7.3.0.jar and spymemcached-2.12.2.jar 

Is there any configuration parameters somewhere? Like memcached host and
port? 

Would appreciate hints.

Regards, Stepan.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-datastore-memcached-guide-tp4677272.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: i18n, ResourceModel question

2017-02-14 Thread ssamarin
Ok, funny enough, figured it out already. getString() on Component does the
trick.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/i18n-ResourceModel-question-tp4677113p4677114.html
Sent from the Users forum mailing list archive at Nabble.com.

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



i18n, ResourceModel question

2017-02-14 Thread ssamarin
Hello,

I'm wondering what's the mechanism under the hood for ResourceModel, in i18n
context.

In number of places I can't use Models, got to set titles of modal windows,
for example, so need to retrieve value from .properties file. Unfortunately,
standard ResourceBundle.getBundle mechanism doesn't take *.utf8.properties
files into consideration.

I tried to use ResourceModel.getObject - without success. 

Would appreciate help.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/i18n-ResourceModel-question-tp4677113.html
Sent from the Users forum mailing list archive at Nabble.com.

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



PagingNavigation extension

2016-12-02 Thread ssamarin
Hello,

I'm trying to change PagingNavigation: current page of navigation is a
not-clickable number by default. I'd like to have textbox instead. 
Straightforward solution seems to be overriding method populateItem(LoopItem
loopItem) from PagingNavigation class. 

But so far I have not figured out how to distinguish link to the current
page from other links.

Would appreciate help/ideas.

Regards, Stepan.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PagingNavigation-extension-tp4676353.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ListenerInvocationNotAllowedException in wicket 6.19

2015-04-15 Thread ssamarin
Looks like there was a problem with non-printable character in HTML.
If it doesn't show up again - that's it, solved. Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-in-wicket-6-19-tp4670301p4670319.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ListenerInvocationNotAllowedException in wicket 6.19

2015-04-15 Thread ssamarin
Well, 

Behaviour is the following: click once in navigator and wait. Components of
the page are not refreshed at all but component page number is disabled in
background.

Clicking second time on same number in navigator produces an error because
the component is disabled

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-in-wicket-6-19-tp4670301p4670315.html
Sent from the Users forum mailing list archive at Nabble.com.

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



ListenerInvocationNotAllowedException in wicket 6.19

2015-04-14 Thread ssamarin
Hello,
I've been trying to figure out the following problem with
AjaxPagingNavigator:

org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:
Behavior rejected interface invocation. Component: [AjaxPagingNavigationLink
[Component id = pageLink]] Behavior:
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationLink$1@107ac94f
Listener: [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]

This is getting thrown quite often, sometimes on every 3rd page link of
navigator.
Had no success in resolving this so far, would appreciate your help.

Regards, Stepan.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-in-wicket-6-19-tp4670301.html
Sent from the Users forum mailing list archive at Nabble.com.

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