It's not our component, but a Wicket component:
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxNavigationToolbar
We add it like this:
datatable.addBottomToolbar(new AjaxNavigationToolbar(this));
And then I would assume it took care of itself, and updated the table when it
The specific panel *inside* the form is getting updated during each AJAX
request, the form itself stays the same.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Implementing-a-SecureForm-to-avoid-CSRF-attacks-tp4666175p4666187.html
Sent from the Users forum mailing
Hi,
On Wed, Jun 11, 2014 at 8:55 AM, Oddgeir Bell oddgeir.b...@deltasoft.no
wrote:
It's not our component, but a Wicket component:
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.
AjaxNavigationToolbar
We add it like this:
datatable.addBottomToolbar(new
Your form can listen to AjaxRequestTargets, override:
public void onEvent(IEvent event) {
if (event.getPayload() instanceof AjaxRequestTarget) {
// update token via JavaScript
((AjaxRequestTarget)event.getPayload()).appendJavaScript(...);
}
}
Regards
Sven
On 06/11/2014 08:41
How can we? The deletion doesn't happen on the same page. Without
polling (or websocket), I don't see how we can update the table?
Every time we click a navigation button (in the table), the dataprovider
fetches the data from the database. It just so happens that that data
has been changed
I see.
In this case you can use AbstractRequestCycleListener#onException() to
catch ListenerInvocationNotAllowedException and repaint the whole page
instead of logging it and showing an error page.
I.e. you need to do:
return new RenderPageRequestHandler(new
Hi,
On Tue, Jun 10, 2014 at 11:28 AM, Vishal Popat vishal.po...@cipriati.co.uk
wrote:
Hi,
I am using a jquery steps plugin which has the ability to change options.
One of the options I have is:
onFinished: function (event, currentIndex) {
var form =
This works, thank you. We still get the stacktrace in the log, but
that's ok..
Thank you very much.
regards
Oddgeir
On 11.06.2014 10:32, Martin Grigorov wrote:
I see.
In this case you can use AbstractRequestCycleListener#onException() to
catch ListenerInvocationNotAllowedException and
Hi all,
I am migrating an application from Wicket 1.4 to 6.15. This app makes use
of HybridUrlCodingStrategy, that I replaced with a MountedMapped using
UrlPathPageParametersEncoder.
The problem is that many users have old bookmarks of URLs generated by
HybridUrlCodingStrategy, in which the page
Well, by hidden do you mean an input type of hidden or not present on the
DOM?
I mean that I used jQuery to slideUp() the containing div in the
$(document).ready(), so that when the page loads the div is not visible
to the user and it becomes visible on some other event.
Unless I'm doing it wrong, I can't get it to work :(
I'm posting my class here maybe someone can see my mistake?
public class SecureFormT extends FormT {
private static final Logger log =
LoggerFactory.getLogger(SecureForm.class);
private static final String TOKEN_NAME =
Note the apostrophe around 'token':
document.getElementById('SECURE_FORM_TOKEN').value= ' + token + ';);
But don't you want to generate a new token on ajax requests too?
Sven
On 06/11/2014 01:17 PM, shayy wrote:
Unless I'm doing it wrong, I can't get it to work :(
I'm posting my class here
Hi Fabio,
You can create your own root request mapper that when detecting an old url
can either :
1) return a redirect with code 301 (Moved permanently)
2) just move the page id from the last segment to the query string
silently
Martin Grigorov
Wicket Training and Consulting
On Wed, Jun 11,
Is there a request made by the browser to the server when you type
something in these input fields ?
we need more information to find out where is the problem - at the client
side or at the server
Martin Grigorov
Wicket Training and Consulting
On Wed, Jun 11, 2014 at 11:34 AM, Lucio Crusca
Hmm, not sure about that. Do you mean that onEvent() will both re-generate
the token on the SecureForm class as well as replace the value on the HTML?
Security wise, is there a reason to do that?
--
View this message in context:
Hi,
a single token from the start of a form until its submit should do fine.
I'm just wondering why you see the need to update the token, although
the form isn't re-rendered and thus the token is unchanged.
Sven
On 06/11/2014 02:19 PM, shayy wrote:
Hmm, not sure about that. Do you mean
Martin was right, there were Javascript errors, but for some reason the
webconsole didn't display them the first time I looked at it.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail:
So first let me just say that your answer helped me and everything works now,
I really appreciate the help!
So the scenario is that I have a form, inside the form there are several
tabs.
When the user enters the first tab, the form is first rendered with the
token and the SecureForm class has the
Bruce,
Apologies for the delay in answering. Thanks for your feedback. I have
merged your changes into the original example.
https://github.com/reiern70/antilia-bits/commit/0a1b14534409698b9219137666f060e04e715ed4
Example still seems to work as expected... But I did not do any extensive
By the way that is exactly how we handle these errors as well. The only time
I ever see ListenerInvocationNotAllowedExceptions are when the state of the
database changes between clicks. With repainting the screen the users may
click a link and then the link disappears which is weird. But that is
Martin was right, there were Javascript errors, but for some reason the
webconsole didn't display them the first time I looked at it.
However the problem is only partially solved. onUpdate() now gets called,
but only when the TextField looses focus. I need it to be called on every
single
Here is a form:
http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register
here is the relevant html snippet:
form class=inputForm wicket:id=registrationform
fieldset
legendInserisci i tuoi dati/legend
div id=feedbackPanel
span
Hi Ernesto,
Thank you for your quick response. But I think I did not explain the
problem that I am trying to solve. What is happening in my case is that
when I click the IndicatingAjaxButton to start the file download, the
activity indicator (that twirling round thing) appears. But it then
Strange, invalid form input isn't preserved either.
Check the application log for clues.
Regards
Sven
On 06/11/2014 06:21 PM, Lucio Crusca wrote:
Here is a form:
http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register
here is the relevant html snippet:
form
Hi,
On Wed, Jun 11, 2014 at 6:30 PM, msalman mohammad_sal...@yahoo.com wrote:
Hi Ernesto,
Thank you for your quick response. But I think I did not explain the
problem that I am trying to solve. What is happening in my case is that
when I click the IndicatingAjaxButton to start the file
Hi Ernesto,
Generating the file first and then triggering the download sounds like a
good idea. I think at least while the file is being generated the activity
indicator will show.
I will try this.
Thanks.
--
View this message in context:
How about an AjaxBehavior with the onChange event?
On Jun 11, 2014, at 9:10 AM, Lucio Crusca lu...@sulweb.org wrote:
Martin was right, there were Javascript errors, but for some reason the
webconsole didn't display them the first time I looked at it.
However the problem is only partially
Hi,
On Wed, Jun 11, 2014 at 8:21 PM, msalman mohammad_sal...@yahoo.com wrote:
Hi Ernesto,
Generating the file first and then triggering the download sounds like a
good idea. I think at least while the file is being generated the activity
indicator will show.
Good so. You shouldn't do
Hello Team,
I have started using Wicket Chart for my project (web based Java project)
and I am facing some difficulties to meet requirement.
I wanted to archive below chart using Wicket chart
http://apache-wicket.1842946.n4.nabble.com/file/n4666214/image001.png
I can’t able to get exactly
29 matches
Mail list logo