Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed a spelling error

...

The form handles all the stuff regarding the search fields. For example the panel check whether all
mandatory fields are filled. If everything is fine the delegate method void searchSumitted(SearchPanel panel) is invoked.
Inside this method you have access to the submitted form values and you can provide the result list.
After that the result table is shown. When the user selects a row of the result table the second delegate method customerSelected(SearchPanel panel, Customer customer) is executed.
Inside this method you get the selected customer value object.

...

Source structure

Code Block
xml
xml
src
 |-com.sample
 	|-searchpanel
 	|	|-Customer.java // Customer value object
	|	|-CustomerDataProvider.java // custom implmentation of data provider
	|	|-SearchPanel.java // reusable search panel
	|	|-SearchPanelDelegate.java // delegate interface
	|	|-SearchPanel.html // template for the search panel
	|-HomePage.java // Sampel page which uses the search panel
	|-WicketApplication.java // wicket app
	|-HomePage.html // template of the sample page

...