nerdexam
Oracle

1Z0-151 · Question #78

You are implementing a JavaBean in a form, the bean has no visible component on the form when invoked, the bean displays an input text where users enter a zip code, the bean has a single method that…

The correct answer is D. Use FBEAN.ENABLE_EVENT to register a listener for the bean event. Obtain the value of SYSTEM. When a user interacts with a JavaBean at run time, it usually causes an event to occur. You can use FBEAN.ENABLE_EVENT to register a listener for the event, so that when the event occurs Forms will fire the When-Custom-Item-Event trigger. In this trigger, you can code a…

Implementing WebUtil

Question

You are implementing a JavaBean in a form, the bean has no visible component on the form when invoked, the bean displays an input text where users enter a zip code, the bean has a single method that returns a short weather forecast for that zip code as a character value. How can you retrieve that value so that you can display it to the user?

Options

  • AUse FBEAN.ENABLE_EVENT to register a listener for the bean event. Obtain the value of SYSTEM.
  • BUse FBEAN.REGISTER_BEAN as an argument to the MESSAGE built in to invoke the bean's method
  • CUse FBEAN.REGISTER_BEAN to register the bean, so that when the user enters a zip code into the
  • DUse FBEAN.ENABLE_EVENT to register a listener for the bean event. Obtain the value of SYSTEM.

How the community answered

(26 responses)
  • A
    4% (1)
  • C
    12% (3)
  • D
    85% (22)

Explanation

When a user interacts with a JavaBean at run time, it usually causes an event to occur. You can use FBEAN.ENABLE_EVENT to register a listener for the event, so that when the event occurs Forms will fire the When-Custom-Item-Event trigger. In this trigger, you can code a response to the event. The :SYSTEM.CUSTOM_ITEM_EVENT and SYSTEM.CUSTOM_EVENT_PARAMETERS variables contain the name of the event and information the bean is sending to the form.

Topics

#JavaBean#FBEAN.ENABLE_EVENT#bean events#WebUtil

Community Discussion

No community discussion yet for this question.

Full 1Z0-151 Practice