Apache Wicket 10.x Reference Guide
GenericSitePage.html. Now let’s create a specific page called OrderCheckOutPage where users can check out their orders on our web site. This class extends GenericSitePage but we don’t provide it with submitted the form, the page should display a message like “Your registration is complete! Please check your mail to activate your user profile.”. Instead of displaying this message with a new component setResponsePage(Class page). In order to comply with the second requirement it could be helpful to check if all children components of a page are stateless. To do this we can leverage method visitChildren0 码力 | 336 页 | 7.16 MB | 1 年前3Apache Wicket 9.x Reference Guide
GenericSitePage.html. Now let’s create a specific page called OrderCheckOutPage where users can check out their orders on our web site. This class extends GenericSitePage but we don’t provide it with submitted the form, the page should display a message like “Your registration is complete! Please check your mail to activate your user profile.”. Instead of displaying this message with a new component setResponsePage(Class page). In order to comply with the second requirement it could be helpful to check if all children components of a page are stateless. To do this we can leverage method visitChildren0 码力 | 335 页 | 7.15 MB | 1 年前3Apache Wicket 8.x Reference Guide
GenericSitePage.html. Now let’s create a specific page called OrderCheckOutPage where users can check out their orders on our web site. This class extends GenericSitePage but we don’t provide it with submitted the form, the page should display a message like “Your registration is complete! Please check your mail to activate your user profile.”. Instead of displaying this message with a new component setResponsePage(Class page). In order to comply with the second requirement it could be helpful to check if all children components of a page are stateless. To do this we can leverage method visitChildren0 码力 | 350 页 | 9.95 MB | 1 年前3Apache Wicket 7.x Reference Guide
GenericSitePage.html. Now let’s create a specific page called OrderCheckOutPage where users can check out their orders on our web site. This class extends GenericSitePage but we don’t provide it with submitted the form, the page should display a message like “Your registration is complete! Please check your mail to activate your user profile.”. Instead of displaying this message with a new component setResponsePage(Class page). In order to comply with the second requirement it could be helpful to check if all children components of a page are stateless. To do this we can leverage method visitChildren0 码力 | 346 页 | 10.00 MB | 1 年前3Introducing Apache Wicket
forms. ● Forms are special container for input components (representing text felds, radio buttons, check boxes, etc...) which are subclasses of org.apache.wicket.markup.html.form.FormComponent. ● Class WicketTester. This utility class provides a set of methods to render a component, click links, check page content, etc... Testing the response ● WicketTester allows us to access to the last response more utilities for unit testing: Other test goodies ● Check component status (assertEnabled, assertDisabled, assetVisible, assertInvisible) ● Check component’s model value (assertModelValue) ● Test0 码力 | 53 页 | 1.85 MB | 1 年前3
共 5 条
- 1