on 11-17-2007 5:29 PM
Hi,
I am trying to create and input field using the following code
for (int j=0;j<qForm.getNoOfChoices();j++)
{
IWDInputField text1 =
(IWDInputField)view.createElement(IWDInputField.class , null);
text1.setValue("input");
wdContext.getNodeInfo().addAttribute("input"ij,"ddic:com.sap.dictionary.string");
//text.bindEnabled("input"ij);
rootContainer.addChild(text1);
}
and i am getting the following error
<b>com.sap.tc.webdynpro.progmodel.context.ContextException: Path null does not point to an attribute, but to com.sap.tc.webdynpro.progmodel.generation.DelegatingView@b94ed5</b>
can somebody help me in solving this issue
The "value" of an InputField is a mandatory bindable property. This means, you must bind it against some context attribute of type "string" or some other primitive type.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
I have written the code like this
for (int j=0;j<qForm.getNoOfChoices();j++)
{
IWDInputField text1 =
(IWDInputField)view.createElement(IWDInputField.class , "input"+j);
wdContext.getNodeInfo().addAttribute("input","ddic:com.sap.dictionary.string");
<b>text1.setValue("input");</b>
//text.bindEnabled("input"ij);
rootContainer.addChild(text1);
}
i binded the value property with an attribute.still it is throwing the same exception
any other thoughts...
Try below code:
for (int j=0;j<qForm.getNoOfChoices();j++)
{
IWDInputField text1 =
(IWDInputField)view.createElement(IWDInputField.class , "input"+j);
wdContext.getNodeInfo().addAttribute("input"+j,"ddic:com.sap.dictionary.string");
text1.setValue("input");
rootContainer.addChild(text1);
}
Raja T
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.