how to submit page on single click when text fields are using onchange event

2012-11-04 Thread _kl_
Hi,


I have used onchange event for my text fields to get the updated value.
After updating the text fields if the user tries to save the changes by
clicking on the ajax submit link he has to double click. Reason: the "on
change" event internally uses "on blur" so when the link is clicked first it
finishes the on change event then on second click the page submits. How can
i avoid this?? I tried using "on focus" instead but that is not the
solution. What can be the other way for doing this? Only single click is
required by the user.



-
_kl_ :)
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-submit-page-on-single-click-when-text-fields-are-using-onchange-event-tp4653606.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



getting error: yahoo-dom-event.js, line 10 character 3521

2012-11-02 Thread _kl_
Hi,

I have created a list view having few columns out of which 2 are date
columns. I am using wicket date picker for those columns. When the grid is
reloaded several times i get some script error on my page and after
debugging script came to know this, yahoo-dom-event.js, line 10 character
3521. How to resolve this problem? why reloading list view with many date
pickers giving this error? i am using it this way :

DateTextField field = new DateTextField("dateTextfield",new
Model(),WebConstants.DATE_PATTERN);
field.add(new DatePicker(){
@Override
protected String getDatePattern() {
return WebConstants.DATE_PATTERN;
} 
@Override
protected boolean enableMonthYearSelection() {
return true;
}
}); 
field.setOutputMarkupId(true);

If any one has faced this issue please help me out with this.

Thanks in advance!



-
_kl_ :)
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getting-error-yahoo-dom-event-js-line-10-character-3521-tp4653567.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



Blocking screen on click of Link

2012-10-29 Thread _kl_
Hi,

I am using Link for export functionality on my screen using following code.

Link exportLink = new Link("export") {
@Override
public void onClick() {
List list = ABCService
.exportABCList();
ExportUtil export = new ExportUtil();
export.exportABCToExcel(list, 
getRequestCycle());
}
};

I need to block the screen for any other functionality by the user while
this functionality gets over. For other functionalities this is being done
by using the following code that can be called only for any ajax call:
@Override
public String getAjaxIndicatorMarkupId() {
return "div_blockScreen";
}

As i am using Link instead of any ajax link (using ajax link for export
functionality does not work,gives some javascript error )this method is not
getting called. I thought of calling a javascript method on click on this
link so that i can block the screen but how will i get to know when to
unblock it, means on what event i should do it. If somebody has any idea how
to do it please let me know.

Thanks in advance!



-
_kl_ :)
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Blocking-screen-on-click-of-Link-tp4653425.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



show message to user when session about to expire

2012-10-18 Thread _kl_
Hi,

I am working on a complex web application and one of its requirement is,when
session is about to expire user should see a confirmation pop up asking him
"Your session is about to expire.Do you want to continue?" if user click
"yes" then the session should continue else he should be logged out.
Searched a lot but did not find any proper solution for this.Please help.

Thanks in advance!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/show-message-to-user-when-session-about-to-expire-tp4653081.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