Re: editing response in onComponentTag

2015-06-04 Thread msalman
Thanks so much for your reply. I tried to do it as following. But could not make it work. Obviously I have no idea what I am doing. I would appreciate very much if you will help me out here. Thanks. private static class RequiredLabel extends SimpleFormComponentLabel {

editing response in onComponentTag

2015-06-03 Thread msalman
Please see the following code: private static class RequiredLabel extends SimpleFormComponentLabel { private static final long serialVersionUID = 5132250047993256659L; //private boolean required; FormComponent fc;

Re: Handling page refresh or redirect when the server reboots

2014-10-31 Thread msalman
myproject.zip http://apache-wicket.1842946.n4.nabble.com/file/n4668210/myproject.zip I finally got it working. And just in case some one needs to do something similar I am attaching the proof of concept project. Any feedback would be highly appreciated. Thanks to Sebastian and Martin for

Re: IndicatorAware and BookmarkablePageLink

2014-10-24 Thread msalman
Hi Martin Thanks for your response. And yes this explains the behavior I have seen. Any way the busy indicator can be shown during the entire page unloading and unloading process? Thanks. -- View this message in context:

IndicatorAware and BookmarkablePageLink

2014-10-23 Thread msalman
Hi, We use SuckerfishMenuPanel for our menus and in it the links use BookmarkablePageLinks. I need to make make some of the links (menu items) IndicatorAware, i.e., show the whirling wheel, when clicked. I tried some thing like following: private class LinkIndicatingAwareBehaviour extends

Re: Handling page refresh or redirect when the server reboots

2014-10-20 Thread msalman
Sebastian, thanks for your response and idea. Taking your idea myproject.zip http://apache-wicket.1842946.n4.nabble.com/file/n4667990/myproject.zip I am trying to use the following javascript code in wicket: Http.Get = function(theUrl) { var xmlHttp = null; try {

Re: FormValidators and messages property file

2014-10-01 Thread msalman
Hi Martin, Thanks for your help. That worked but I had to do a few extra things such as setting the values for '${label0}', etc. What I don't get is why do we need to do this extra thing for Form validation classes (extending AbstractFormValidator) but not for component validation classes

Re: FormValidators and messages property file

2014-10-01 Thread msalman
Well, I wanted these to be independent validation classes. But now it seems like a bad idea. I will make them part of the form. Martin, your comments and help are much appreciated. Thanks. -- View this message in context:

FormValidators and messages property file

2014-09-30 Thread msalman
Hi, I have created form validator classes as shown below. The problem is that the code is not picking up messages from the corresponding 'FromDateBeforeToDate.properties' file in the same package. It works if the messages are in the page.properties or application.properties file. I can see

Handling page refresh or redirect when the server reboots

2014-09-10 Thread msalman
So we have this feature of online server upgrade in which the user can start an upgrade on the server while still logged into the (wicket) web app. This starts some scripts in the bacground which bring the jboss server down, upgrade the db, upgrade the ear file, etc., and then restart the jboss

Re: FileDownload hides the activity indicator

2014-06-13 Thread msalman
Hi Ernesto, I have it like as following. @Override public void onSubmit(final AjaxRequestTarget target, Form? form) { // The veil and the

Re: AJAX update and file download on Wicket 1.5

2014-06-13 Thread msalman
Thanks for your response. Can you please kindly provide an outline or a few lines of code to get me started. My particular concerns are: 1. How do I create an Ajax request and AjaxRequestTarget. Will this be another Ajaxbehaviour. Sorry I should have learned this by now but... 2. How and

Re: AJAX update and file download on Wicket 1.5

2014-06-13 Thread msalman
Well, that is exactly what we are trying to avoid. An error page is a must fix bug. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AJAX-update-and-file-download-on-Wicket-1-5-tp4095241p4666262.html Sent from the Users forum mailing list archive at

Re: FileDownload hides the activity indicator

2014-06-12 Thread msalman
Ernesto, Well the change seems to work. I am using a button that shows an activity indicator with a veil for the request. So now that activity indicator and veil is shown while the file is generated. But they go away when the file is downloaded and the user can start clicking the button again.

Re: AJAX update and file download on Wicket 1.5

2014-06-12 Thread msalman
Hi, Suppose there is some problem or exception in the file download. Let's say in the following method: protected IResourceStream getResourceStream() { return new AbstractResourceStreamWriter() { public void write(Response output) { WebResponse response =

Re: FileDownload hides the activity indicator

2014-06-11 Thread msalman
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

Re: FileDownload hides the activity indicator

2014-06-11 Thread msalman
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:

FileDownload hides the activity indicator

2014-06-10 Thread msalman
about how to fix it? I am attaching a quick start for the test code. ajaxfileDownload.zip http://apache-wicket.1842946.n4.nabble.com/file/n4666181/ajaxfileDownload.zip As always, I would appreciate any help in fixing this issue. Thanks, -msalman -- View this message in context: http

Re: wait indicator not showing with veil for AjaxButton

2014-04-23 Thread msalman
Thanks for your help. I knew that it had some thing to do with the url. I found another way to make it work by extending the IndicatingAjaxButton class. It seems it knows the way to find the right URL. But that made me change the code at a lot of different places where the original button was

Re: wait indicator not showing with veil for AjaxButton

2014-04-16 Thread msalman
Any help please? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wait-indicator-not-showing-with-veil-for-AjaxButton-tp4665422p4665434.html Sent from the Users forum mailing list archive at Nabble.com.

wait indicator not showing with veil for AjaxButton

2014-04-15 Thread msalman
Hi, I am trying to show an wait indicator and a veil when an ajax button is showed. The veil works fine but despite all my effort the indicator is not working. Attached is a quick start of the project. My code is based on the code at this page:

Re: Confirm Navigation pop up dialog box

2014-03-05 Thread msalman
Thanks you very much. That worked very nicely. Good to not see the page refreshing any more and the jerk that goes with it. I always wondering what is the difference between 'setOutputMarkupId' and 'setOutputMarkupPlaceholderTag'. So this issue explains it. Can I always use

Confirm Navigation pop up dialog box

2014-03-04 Thread msalman
I have a page where I switch between panels by making one of them visible and using a radio button as following: radioChoice.add(new AjaxFormChoiceComponentUpdatingBehavior() { /** * */

Re: Wicket and Menu support

2012-04-08 Thread msalman
Thanks to every one for all of your comments and suggestions. Great to know that wicket core will include jquery. Alle, I would appreciate very much if you can please share your code for using jquery tree. It would give me a good start. Thanks. -- View this message in context:

Wicket and Menu support

2012-04-07 Thread msalman
Wicket is a great product and I really hope that I do not offend any one by my question. Indeed this may be due to my lack of information. What I want to know is why does not Wicket 'core' supports menu and other items necessary to develop a website? I have to search for YUI wicket,

Re: Wicket and Menu support

2012-04-07 Thread msalman
Well you are right that I am not good with html and css. As I say I have been forced to do GUI work - kicking and screaming. Well, I think I am OK with html but this CSS thing leaves me very frustrated. I thought that the idea behind Wicket is to take care of these things for Java programmers.

Setting/changing id for components after creation.

2012-02-04 Thread msalman
classes depending on future parent panels, etc. I hope I have not made it too complicated to understand. Thanks, -msalman -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-changing-id-for-components-after-creation-tp4358004p4358004.html Sent from the Users

WicketTester and the rendered page

2011-06-02 Thread msalman
I am testing an application that starts with a login page. After logging in the user is taken to the home page. @Test public void test() { QuickStartApplication app = new QuickStartApplication();

RE: WicketTester and the rendered page

2011-06-02 Thread msalman
Thanks for the quick response. Well, I want it to stay at the Home Page. How did it go back to loginPage?? Thanks again. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-the-rendered-page-tp3568766p3568826.html Sent from the Users forum mailing list

Re: WicketTester and clicking a tree node

2011-06-02 Thread msalman
Pedro, thanks for your response. I solved my problem in the following way: For my derived DefaultMutableTreeNode class I added an Ajax link element: public class CheckBoxSelectableTreeItem extends DefaultMutableTreeNode { protected AjaxLink clickLink; // for testing the

Re: WicketTester and clicking a tree node

2011-06-02 Thread msalman
Hi Pedro. But how do you get the link's id i.e., moveC3ToC2? I added all the code to the Node and Tree derive classes to so that I could get the link id. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-clicking-a-tree-node-tp3556724p3569317.html

Re: TextField not getting the value after a validation eror

2011-05-27 Thread msalman
If you can please provide your code then may be I might be able to figure out the problem. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-not-getting-the-value-after-a-validation-eror-tp3521252p3556715.html Sent from the Users forum mailing list

WicketTester and clicking a tree node

2011-05-27 Thread msalman
Hi, I am trying to simulate/test clicking and expanding tree nodes. My Tree is based off LinkTree class. Can some one please provide me the solution or ideas. Thanks. -- View this message in context:

Re: TextField not getting the value after a validation eror

2011-05-16 Thread msalman
Hi Clint: The steps are: 1- user opens page 2- user submits form (without entering any value) 3- required error appears. 4- user clicks on the link to enter value and no value appears in the text box. -- View this message in context:

Re: TextField not getting the value after a validation eror

2011-05-16 Thread msalman
Hi Pedro: Thanks for that. And it fixed the problem. The onClick code is now like this: String guid = java.util.UUID.randomUUID().toString(); bean.setText(guid); textField.modelChanged();

TextField not getting the value after a validation eror

2011-05-13 Thread msalman
I have a text field that is required to have a value. I also have a link that on being clicked inserts a value into the text field. It all works fine except if the user submits the form without setting the value for the text field. Once the form has been submitted without the required

Re: custom html page

2010-05-29 Thread msalman
Hi Martin, Yes, you are very right about that. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-html-page-tp2234086p2235861.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: custom html page

2010-05-28 Thread msalman
Martin, Thanks for your response. I did try ((CastToYourSession) Session.get()) and that part works. I wanted to do something as following: public class MyOwnStreamLocator extends ResourceStreamLocator { //protected protected App app;

custom html page

2010-05-27 Thread msalman
Hi, Is it possible for a Page to have to have customized html files depending on certain parameter (user, customer, etc)? I want to allow users to for a certain page to be able to provide their own html file for that page or panel. So depending on the user or customer id I can pick up the

Re: CheckGroup and ListView

2010-05-13 Thread msalman
And it was as simple as that. Thank you so much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2197959.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: CheckGroup and ListView

2010-05-12 Thread msalman
Hi, Was any one able to test the quick start? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2196464.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: CheckGroup and ListView

2010-05-07 Thread msalman
QuickStart project added. BTW thanks for the instructions for creating the quick start. If any one else needs the instructions then they can be found at: http://www.jeremythomerson.com/blog/2008/11/wicket-quickstart-tutorial/#more-99 Well, I hope the quick start works for others too. Thanks

Re: CheckGroup and ListView

2010-05-06 Thread msalman
Well, I have tried using ListModel as following: selectableValues = new ListViewSelectableValue(selectableValuesList, new ListModelSelectableValue(list)) { .. } and then: selectableValues.getModelObject().add(new SelectableValue(newId, value + newId++)); without any

Re: CheckGroup and ListView

2010-05-06 Thread msalman
Well, I have tried removing and then adding the ListView to the CheckGroup, but that does not work either. I have tried to debug this as much as I could and I do see that there are the right values in the java objects of ListView and the wrapped list. To me it looks like that the code that

Re: CheckGroup and ListView

2010-05-05 Thread msalman
I have not heard anything on this one. I will be very thankful if I can get some help on this one. To help reproduce the problem I have attached simple code files. http://n4.nabble.com/file/n2131672/App.java App.java . http://n4.nabble.com/file/n2131672/PageCheckGroup.html

Re: CheckGroup and ListView

2010-05-05 Thread msalman
: Jeremy Thomerson [via Apache Wicket] ml-node+2131687-1413056525-229...@n4.nabble.com To: msalman mohammad_sal...@yahoo.com Sent: Wed, May 5, 2010 2:08:06 PM Subject: Re: CheckGroup and ListView I haven't looked at it in detail, but you shouldn't be doing that removeAll() and setList() stuff - it comes