1. Is there a way to have a onChange/focus lost event for an InputField? I saw the <bsp> find and replace solution, but I need a jsp version. I need to dynamically calculate field values when a value is entered in the inputfield!
2. How do you handle eventing for dropdownlistboxes (HTMLB using DynPages). how do you get the values for the selected items in your event handler method in DynPage?
Hi Siddhartha,
Even I'm unaware of the first issue. But for the second issue, the sol - if you have htmlb dropdownlistbox, use property <b>"onSelect"</b> as given below.
<hbj:dropdownListBox
id="Tbox"
width="400"
selection ="<%=myBean.getSelection() %>"
model="myBean.model"
onSelect="onDDSelect">
<b>In DynPage - call the method </b>
public void onDDSelect(Event event) throws PageException
{
DropdownListBox sf = (DropdownListBox)
getComponentByName("Tbox");
sel = sf.getSelection();
}
Hope this helps.
Thanks,
Praveen
PS: Dont forget to award points if you find it useful or solved.
Add a comment