Re: Wicket.Event.subscribe - how to get a response header

2018-03-29 Thread Entropy
For some reason, jqXHR is null when I run subscribe a failure listener. It's the third parameter, correct? function onFailure(jqEvent, attributes, jqXHR, errorThrown, textStatus) { var value = jqXHR.getResponseHeader('myHeader'); if('true' == value) //do

Wicket.Event.subscribe - how to get a response header

2018-03-26 Thread Entropy
I've defined a javascript event handler using Wicket.Event.subscribe. How would I get a response header in that callback? According to docs I saw, the parameters are: attrs, jqXHR, textStatus, jqEvent, errorThrown. I set a breakpoint and inspected each and didn't see a response header

Re: Wicket.Event.subscribe - how to get a response header

2018-04-02 Thread Entropy
Actually, yes, on some of our pages. That might explain it. So then in that case, how would I add a request header or check a response header from the server? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: Wicket Session timeout & ajax

2018-03-23 Thread Entropy
I should have mentioned, we're in Wicket 6. -- 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:

Wicket Session timeout & ajax

2018-03-22 Thread Entropy
When wicket times out, and the user clicks something ajax oriented, they just get an error in the page in javascript. No message or redirect to the Home page or anything. We'd prefer to redirect them to a home page as if they first arrived in the app. Is there a way to accomplish that? I saw

Re: WicketModal customization

2019-01-07 Thread Entropy
I wasn't aware of that library, thanks! -- 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:

WicketModal customization

2019-01-04 Thread Entropy
I'm trying to use WicketModal with a newer, more accessibility friendly modal that our front-end guy picked out. http://api.jqueryui.com/dialog/ I copied the source from wicket-extensions ModalWindow and was replacing javascript and customizing until I came to the getWindowOpenJavaScript()

Wicket forward to static page after logoff?

2018-12-28 Thread Entropy
I want to forward to a static html page in the web content folder (where web-inf resides) after they hit my logoff link. The session is already killed. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Wicket Modal with a different javascript modal

2018-12-18 Thread Entropy
Our front-end developer doesn't like some of the behavior of the wicket modal with respect to 508 compliance. He has an alternative modal implementation he'd prefer us to use. Is there any way i can use the existing Wicket modal code on the server side with this other javascript modal? It's

Re: Wicket-jquery-ui autocomplete running slow

2019-03-10 Thread Entropy
The browser's network tab reflects pretty closely the number I see in the filter. In my most recent attempt, this was about 6.5 seconds. Meanwhile in the same request, the getchoices took 24 milliseconds. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: Wicket-jquery-ui autocomplete running slow

2019-03-10 Thread Entropy
Identical to the timing of getchoices (the method that contains it). In my most recent test 24ms for both while the full request took 6.5 seconds. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: Wicket-jquery-ui autocomplete running slow

2019-03-11 Thread Entropy
The problem is our project is a government one that doesn't let us use Maven (we've tilted at that windmill multiple times). So quick starts aren't that quick for us. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Wicket-jquery-ui autocomplete running slow

2019-03-08 Thread Entropy
My project is using the wicket-jquery-ui AutoCompleteTextField. We're returning a list that was prefetched and all we do in the getChoices is create a sublist. the entire getChoices runs in milliseconds...usually 20-30, which I know because I put a rudimentary timer in it. Yet, the autocomplete

Re: Wicket-jquery-ui question

2019-02-17 Thread Entropy
The problem is that my project isn't allowed to use Maven (long story with many arguments). As i understand it, the quickstarts require Maven. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html -

Wicket-jquery-ui question

2019-02-15 Thread Entropy
We recently added wicket-jquery-ui MessageDialog (http://www.7thweb.net/wicket-jquery-ui/dialog/MessageDialogPage;jsessionid=666ECDD526710BAC40AC4EBBFCC7F4F1?0) to our app. But the demo renders the buttons like so: button class="ui-button ui-corner-all ui-widget" id="btn04" type="button" But

Radio button submits encoded value

2019-05-15 Thread Entropy
We have a general audit requirement to capture literally every request and log it and it's parameters. We are stripping these parameters from the HttpServletRequest object in a common method. Works great...except when it doesn't. We have a page where the radio buttons are producing a

Table-ize error messages

2019-11-14 Thread Entropy
Most of our error messages are in property files, but we have a set of them that we need to draw from a database. I'd like to add them to the resources programmatically in the Application object at startup so that pages don't know any difference between whether it was sourced from property files

Log feedback messages

2019-10-28 Thread Entropy
As part of a larger effort to improve our audit logs, I have been requested to add the feedback messages that appear as part of validation to those audits. So in the onError() of a button or form, where the validation has failed, I need to gather (non-destructively) the feedback messages that

Is there a way to control Wicket's id generation?

2019-10-25 Thread Entropy
I work on a government project and one of our rules is that all of our apps scrape the request object and log it so that everything that happens can be reviewed. Partly this is for audit reasons, sometimes it comes in handy for lawsuits, but mostly it's handy for our L2 support team. But when a

Feedback messages not showing on first request

2019-11-26 Thread Entropy
We have a page where we are being required to have multiple feedback panels, and to show messages in various ones depending on the error. Our solution was to use message filters and to put the messages against certain containers to say 'any message in container X goes to feedback panel X'. You

Re: Feedback messages not showing on first request

2019-12-02 Thread Entropy
The isVisible(): assetLookupOptionsFP = new FeedbackPanel("assetLookupOptionsFP"){ private static final long serialVersionUID = 1L; @Override public boolean isVisible() {

Re: Need an event later than 'done'

2020-01-23 Thread Entropy
I just tried that and in terms of timing, it's perfect! However, my front-end guys put together a multi-piece veil that blocks input, displays our spinny, but also does some accessibility stuff and focus stuff that they consider important. I'm going to go talk to them and see if they can live

Re: Need an event later than 'done'

2020-01-23 Thread Entropy
Okay, nevermind. I solved that by using a MutationObserver in javascript to look for the thing Wicket makes visible or not and invoke my javascript as needed. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: Need an event later than 'done'

2020-01-22 Thread Entropy
That sounds great. But as I look through the jqEvent and attributes objects I don't see what element is the response headers. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To

Re: Need an event later than 'done'

2020-01-22 Thread Entropy
And I should add that the third parameter, which the docs imply is the jqXHR object, which is where I would expect the response to be, is null in these callbacks. i tried subscribing to the /ajax/call/success handler as well and it was null there. -- Sent from:

Re: Need an event later than 'done'

2020-01-22 Thread Entropy
Sven, I'm afraid I don't know what you mean. Our real jQuery expert quit abruptly and hasn't been replaced yet, so I'm sorry if this is a jQuery thing, but your last two paragraphs don't make sense to me. What is attrs.i? It's not on the object from what I see in the F12 tools. There's alot

Need an event later than 'done'

2020-01-21 Thread Entropy
In our app we display a veil after any button click that goes to the server to prevent users double-submitting. Which they do. Alot. Double-submits cause a variety of mischief for us ranging from StaleObjectExceptions in hibernate to wicket exceptions about buttons not being enabled and others.

Re: Need an event later than 'done'

2020-01-21 Thread Entropy
That seems promising. If you could look how you did it in your other project that would be great. I suppose if I could get access to the response XML I could look for the redirect in that. I'm not sure where it is though or even if it's provided to this event. -- Sent from:

Wicket 1.4 equivalent of FeedbackCollector

2020-04-10 Thread Entropy
I have a little chunk of re-usable code I wrote in some of our more modern apps that I've been asked to add to a couple apps we have that are very old. they're still on wicket 1.4 and the boss doesn't want to invest in upgrading them wholesale, but just wants this one feature put in. It relies

ModalWindow alert popup that submits form

2020-05-13 Thread Entropy
We have a custom popup alert box launched from wicket. It's build around org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow. It works great in most situations where it's just messaging and doing other not-validating things. But one of the buttons in one scenario needs to cause a

Re: ModalWindow alert popup that submits form

2020-05-15 Thread Entropy
Issue Resolved. Another part of the code was found to be setting it back to false in a way that evaded my previous searches. Once that was corrected, the AjaxButton behaves as expected. Sorry to waste your time. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

Re: ModalWindow alert popup that submits form

2020-05-14 Thread Entropy
The panel that launches the modal is not inside the form (it's part of a standard header), so when i remove it from the constructor I get an illegal state exception saying "form was not specified in the constructor and cannot be found in the hierarchy of the component this behavior is attached to"

<    1   2   3