Java Reference
In-Depth Information
Figure 11-9.
Notice that FL appears as the default value.
3.
Click on the state field's drop-down button and verify that all the state abbreviations are
displayed.
4.
Select OK as the state, 10 as the pay rate, Display as the function, and click the Submit
button.
Uh-oh, no state value appears. What happened?
Well, we changed the name of the state field from stateTF to stateDDM and EmpExtractor tries to set the
Employee object's state property from the value of stateTF. So, we have to change EmpExtractor.
5.
Change c11/EmpExtractor to retrieve stateDDM not stateTF.
6.
Rerun the step 4 test and verify that OK is displayed as the state.
Now we will test that the tag attribute was defined correctly and works.
7.
In the Page Designer, click on EnterEmpInfoJSP's stateDDM custom tag icon (see the first
arrow in Figure 11-10 ).
8.
In the Properties view, enter OK as the value for the attribute selected (see the second
arrow in Figure 11-10 ).
Search WWH ::




Custom Search