on 02-16-2009 6:16 AM
Hello,
I've created a simple web service for displaying Hello<UserName> wherein User Name is the input parameter. Ive created the imported the model and have mapped it to the view using custom controller.
On running the application im getting following illegal argument exception:
Attribute name 'Name' not defined for model class 'SayHello
This exception is coming at the line where im setting the import parameter in the view. This line has been displayed in bold in my code for execution of the model shown below,
try{
InputService objInput = new InputService();
SayHello objSayHello = new SayHello(objInput);
IPrivateInputServicesView.ISayHelloElement eleSayHello;
wdContext.nodeSayHello().invalidate();
eleSayHello = wdContext.nodeSayHello().createSayHelloElement(objSayHello);
wdContext.nodeSayHello().bind(eleSayHello);
eleSayHello.setName("Gaurang");
}
catch(IllegalArgumentException e)
{
wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
}
Please help/suggest in solving this issue.
Thanks and Regards
Gopi
closing the message
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
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.