cancel
Showing results for 
Search instead for 
Did you mean: 

get the values from the bean class?

Former Member
0 Kudos
80

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member132278
Discoverer
0 Kudos

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