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
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
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
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:
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
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:
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()
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
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
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
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
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
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
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
-
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
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
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
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
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
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
The isVisible():
assetLookupOptionsFP = new
FeedbackPanel("assetLookupOptionsFP"){
private static final long serialVersionUID = 1L;
@Override
public boolean isVisible() {
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
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
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
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:
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
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.
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:
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
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
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
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"
201 - 232 of 232 matches
Mail list logo