Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the <apex:SelecList> component, with a variable called "selection", to show the valid values for Account.Type. The page uses an <apex:pageBlockTable> component to display the list of accounts, where the iteration variable is "acct". The developer wants to ensure that when a user selects a type on the <apex : selectList> component, only accounts with that type are shown on the page. What should the developer do to accomplish this?
Correct Answer: C
Recent Comments (The most recent comments are at the top.)
test - Jun 12, 2024
C. Use the onChange event to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable.
Explanation:
1. onChange Event: This event can be used to detect when the selected value in the <apex:selectList> component changes. 2. Controller Update: When the onChange event is triggered, it can call an action method in the custom controller to filter the list of accounts based on the selected type. 3. Re-rendering: After the controller updates the list, re-rendering the <apex:pageBlockTable> component ensures that the UI reflects the updated list of accounts.
Recent Comments (The most recent comments are at the top.)
C. Use the onChange event to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable.
Explanation:
1. onChange Event: This event can be used to detect when the selected value in the <apex:selectList> component changes.
2. Controller Update: When the onChange event is triggered, it can call an action method in the custom controller to filter the list of accounts based on the selected type.
3. Re-rendering: After the controller updates the list, re-rendering the <apex:pageBlockTable> component ensures that the UI reflects the updated list of accounts.