on 2007 Feb 26 11:02 AM
Hi Praveen and all can u please suggest in this,
I have developped an application In that Create One java class that Extends PageProcesscomponenet and utilizing the Bean That have the Connetion method and retriving the query Based on the Logon customer and spoof customer.
this functionality I have developped in Pageprocessor component.
The same functinality I am utilizing another java Class that Extends AbstractPortalcomponent and utilizing the same Bean.
But the problem both java classes for I used one Jsp only Dynmic spoof customer will come from the JSP Input filed.
In the new Java Class How can I capture the Event When I click the Buttong the InputField value capturing into the AbstractPortalcomponent Class.
I tried like this but It comes as Null Value.
Event event = myContext.getCurrentEvent();
if(event!=null)
{
InputField ip= (InputField) myContext.getComponentForId("spoofCust");
String spoofCust=ip.getValue().toString();
}
Please suggest me in this.
What is wrong with this.
Thanks,
Lohi.
Message was edited by:
Lohitha M
Lohitha,
Try replacing your two lines of code:
InputField ip= (InputField) myContext.getComponentForId("spoofCust");
String spoofCust=ip.getValue().toString();
with:
InputField ip = (InputField) getComponentByName("spoofCust");
String spoofCust = ip.getValueAsDataType().toString();
Let me know how that works for you.
-John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.