Hi,
I'm not sure how your logic looks like but the simplest solution that I see
is to use a member boolean variable 'hasRendered' in your behavior and use
it in #renderHead() so that the JS is contributed just once.
if (!hasRendered) {
hasRendered = true;
Hi all,
I have problems to find the correct path of my component to place it in the
properties file.
In particular validation retrieves the name of the component through the
properties file to display it in the browser if validation fails.
I did component.getPath() and component.getRelativePath()
Hi,
The key in properties file should look like:
myForm.myField.SomeValidator=Error message
I.e. it starts with the relative path and ends with the class name of the
used validator.
On Fri, Mar 15, 2013 at 2:47 PM, yka i...@jcoder.de wrote:
Hi all,
I have problems to find the correct path
Hi,
I have a simple filter form for a table, currently with one textfield, to
which this behavior is added:
new AjaxEventBehavior(keyup) {
protected void onEvent(AjaxRequestTarget target) {
// get search string from request, get new data and add table to
target
}
Use AjaxFormSubmitBehavior
Regards
Sven
On 03/15/2013 03:01 PM, M Kili wrote:
Hi,
I have a simple filter form for a table, currently with one textfield, to
which this behavior is added:
new AjaxEventBehavior(keyup) {
protected void onEvent(AjaxRequestTarget target) {
//
Hi all,
I have a form, which server-side processing takes takes 2-5 sec, at this
time user can resubmit the form, this call goes to a queue and will be send
right after the first one.
I tried to play around the IAjaxCallListener but with no luck.
How can I avoid this behaviour?
--
View this
Hi,
You can disable the submit link/button in beforeSend handler and re-enable
it in complete handler.
This will work only if you make Ajax submit.
For non-Ajax you will need to add onclick attribute to just disable it.
On Fri, Mar 15, 2013 at 3:59 PM, Alexey Mukas alexey.mu...@gmail.comwrote:
Hi Martin,
Thank for the fast reply, could you please tell me how can I manipulate it
(make disable/enable) in those callbacks?
Before your answer I came up with very dirty solution...
public class AjaxBlockingListener extends AjaxCallListener{
public AjaxBlockingListener() {
Did it :)
onBeforeSend(this.setAttribute('disabled', 'disabled'););
onComplete(this.removeAttribute('disabled'););
Thanks once again
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Prevent-submit-tp4657277p4657280.html
Sent from the Users forum
Thanks, works flawlessly
2013/3/15 Sven Meier s...@meiers.net
Use AjaxFormSubmitBehavior
Regards
Sven
On 03/15/2013 03:01 PM, M Kili wrote:
Hi,
I have a simple filter form for a table, currently with one textfield, to
which this behavior is added:
new AjaxEventBehavior(keyup) {
ok, that was already implemented:
*
public void renderHead(IHeaderResponse response){
super.renderHead(response);
WebRequest request = (WebRequest)
RequestCycle.get().getRequest();
if (!stopped (!headRendered || !request.isAjax())) {
Hi all,
I'm looking at a strange behavior of my PageableListView.
I have a PageableListView with an AjaxPagingNavigator within a
WebMarkupContainer. Recently I added an AjaxLink to the list view that
removes an element from the underlying list. The view refreshes, but takes
off the first(!)
Hi,
you're probably using #setReuseItems(true) ?
Show us your #populateItem() please.
Sven
On 03/15/2013 07:04 PM, N. Metzger wrote:
Hi all,
I'm looking at a strange behavior of my PageableListView.
I have a PageableListView with an AjaxPagingNavigator within a
WebMarkupContainer. Recently
I use a datatable with FilterColumn. I specially made a IntegerColumn. It
works fine, but if the user enters a blank or nothing the table is not
refreshed. I can see that the old value is used.
If a enter a zero or another integer value it works like i expected.
How can I repair this problem
My
What does your FilterForm's model object look like?
Sven
On 03/15/2013 09:04 PM, Delange wrote:
I use a datatable with FilterColumn. I specially made a IntegerColumn. It
works fine, but if the user enters a blank or nothing the table is not
refreshed. I can see that the old value is used.
If a
Hi all,
I am using a modal window as a substitute for messageboxes. E.g. I have a
few forms with an ajax submit button, and I am using the modal window to
first display a confirmation message, and if the user accepts it, to
display a success / failure message.
I am getting frequent errors in the
I have a much better understanding on this now. Are there any plans to
support injection on LDMs, or is there a suggested work around for this?
It seems like you'd want a DAO service to get an object from the DB within
a custom model so you can return that back to your component.
I wasn't using the setReuseItems property at all, but tried to set it to
false: no change. Here's the code:
serviceContainer = new WebMarkupContainer(serviceData);
serviceContainer.setOutputMarkupId(true);
serviceContainer.add(new
Also, the ajax timer on the markup container stops after I hit the
removeLink.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/PageableListView-item-removal-tp4657283p4657291.html
Sent from the Users forum mailing list archive at Nabble.com.
19 matches
Mail list logo