on 12-06-2007 7:14 AM
Hi guys,
I have a input field htmlb in my jsp. I have to handle on blur event for this.. i.e if a user gives in somethin in the input field and once it looses focus, a event should get triggered. And probably in my case it will be helpful for me if I have this event handler method in the dynpage. For this kind of event handling what should I write in the followin tag
<htmlb:inputfield id="" value="" width=""> plz tell me a tag attribute which supports this event.
Regards,
PP.
The answer which you gave worked for me.. Thanks siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi siva,
setClientEvent .. This kind of things we can set in the dynpage if you take a new instance of InputField.. For Ex: InputField input = new InputField(); input.setClientEvent("");
But I would like to have a tag attribute which I can put it in my JSP
in this.. <hbj:inputfield id="" width="" value=""> I want some tag attribute which can support my blur event. If I am using ClientEvent="" in this above tag, it gives me a error saying that this tagattribute is not supported by taglibrary.. I m seriously stuck up over here..Kindly help...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priyanka,
You can get reference of your input field in JSP into DynPage. Do like this:
Declare input field in JSP
<hbj:inputfield id="input" value="test">
In DynPage, get refernce of the input field
Wherever you want to trigger event
InputField myInputField =(InputField) getComponentByName("input");
myInputField.setClientEvent();
Hope this helps.
regards,
Siva
Note: If you get success, please post the solution before you close this thread.
Message was edited by:
Siva Rama Krushna
Hi Priyanka,
You can use setClientEvent of input field. For more help on input field events visit this link
http://help.sap.com/javadocs/NW04S/current/hb/com/sapportals/htmlb/InputField.html
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.