I have a wizard, in which many of the panels provide forms, with their respective validtors. If I click on the cancel button within the wizard, I am unable to run the onCancel logic without the forms being validated. [The only job that the cancel button will be doing is redirection] Is there a way to disable the validation just for that situation?
I am using Apache Wicket 6.10, and the Wizard control is coming from Wicket-Extensions 6.10.
You should set Button.setDefaultFormProcessing(false) to skip validation.
Also take a look at this link for an example: https://cwiki.apache.org/confluence/display/WICKET/Multiple+submit+buttons
Related
For a custom IntelliJ plugin I am trying to write a handler that is invoked when the user uses the "cmd" key (or "control" in windows) and clicks in the value of an XML tag (which usually triggers a "go to declaration" or "show usages") in regular java code. In the tutorials I have found samples for creating a plugin that handles a click to an entry in the menu bar, but I need a handler for that one specific action.
Does IntelliJ support handling that event and execute a custom action? Thank you for your help in advance.
I am using netbeans for my Java swing application. I am trying to use mvc pattern. To do that, I have to set my Controller to be the action listener for many Gui components.
With netbeans, if I click on component to add an action listener then it automatically generates the code (the listener). How can I use netbeans (through Gui designer) to point the action listener to another class/file?
Thank you
Left click on your component, go to Properties > Events and delete the event you created, accept. Then left click again and customize code, there you should be able to add you own action listener.
I am developing an application in wicket which has several pages.Its like a step by step configuration.
The application has around 6-7 pages of configuration like connection information,table information,security information, etc.
Which component to use to show this step by step progress as and when i complete it.For instance if i complete the connection information, a tick mark or a car reaching the connection information in progress bar needs to be shown.
Please suggest your ideas as i am new to wicket and want the UI to be as rich as possible.
Also, How easy is to combine wicket with bootstrap?
Check http://www.wicket-library.com/wicket-examples-6.0.x/wizard for the step-by-step component. It works with Panel instead of page.
For integration with Bootstrap see: https://github.com/l0rdn1kk0n/wicket-bootstrap.
Nice wizard with Bootstrap: http://ajoke.cz/wizard/examples
I am working on creating a pop-up in JSF for my project. The popup will be used for Country/State/City look-up.
The requirements are as follows:
It should be an overlay panel and not a new browser window
This is easier. I have multiple options
jQuery dialog
Some JSF library popup (ex. richfaces dialog)
The pop-up should be a separate page (a different JSP/XHTML) so the pop-up code won't get copied in a lot of pages
This is also easy. I could make a separate JSP and use some include tag to include this jsp where ever the pop-up is required.
The pop-up JSP should be able to have form with controls that may result in post-back events within the pop-up. Like the popup may have search functionality. So there may be an in put textbox, a button along with a datatable on the pop-up. When the search button is clicked,
some action needs to be executed to load the contents of the datatable, so the form (on the pop-up) will be submitted. This should not result in the pop-up being closed.
I am stuck up with this last requirement. If when the form (on pop-up) is submitted, the pop-up should not close, then this action should be asynchronous (AJAX). But the AJAX is not used in all the actions in my project. So If I need to solve this problem using AJAX, the AJAX script should be generic enough which won't require all the pop-up JSP's to re-write.
There might be a requirement to exchange data between the host page and the pop-up JSP.
May be this can be solved with some JS script. Am I correct ?
I need help with point# 3 and 4. In general if you are aware of any existing library to solve the problem, it would be great, but even if you could help with some directions, it would be appreciated.
Thanks in advance.
I am working in a desktop application. In my application i am performing login operation where user enters his id and password. Login page is created in java swings using jDialog. When user enters his credentials, it takes few minutes to validate user. i want to add snipping tool with message "Please wait" which will be display, when user click on "next" button.
I didn't get any swing control which can be used as snipping tool. While searching i got some idea that ajax loader.jpg can be used as a snipping tool but not getting how can i use it in my jDialog.
Please suggest me some way to add an snipping tool.
There is spinning tool available in ajax that can be directly used by putting a lable in jPanel/jDialog and importing it as an icon image.
Here is link where you can get ajax spinning tools
http://www.andrewdavidson.com/articles/spinning-wait-icons/
Thanks for your valuable suggestions and response.
You can use a JProgressBar doing a bucle and changing the progress value.
Also take note that SwingX project offers a login dialog that does it for you.