Hi!
Anybody know how to get text field values, that i was inserted in some wizard, in the formProcessor that will handle this wizard?
nmCommandBean.getText().get(...)
Anton, did Vasiliy's suggestion get you what you needed?
No.
This method return null value. I can't find something about getting text fields values from wizards in customization guide. May be you have any manuals?
this method is returning null value. can u tell me how to get the value given in the text box?
If you know the parameter name, you can use something like this:
String myStringValue = nmcommandbean.getTextParameter("myStringParamKey");
Or you can get the parameter map and pull it from there:
HashMap<String,Object> params = ((ObjectBean)list.get(i)).getParameterMap();
Iterator<String> iterator = params.keySet().iterator();
while (iterator. hasNext()) {
String key = (String) iterator.next();
String[] valueArray = (String[])params.get(key);
if (key.contains("myStringParamKey") && !(key.contains("___old"))) {
String myStringValue = valueArray[0];
}
}
Thanks, Teresa! I'll try it later.
If the jsp is custom jsp then its recommend to use wrapper tag from tag lib to create "TextBox" or If using HTML tag for input, the tag name must be following style for being read at NmCommandBean. “null___[attribute name]___textbox” If you want to use combo box, you must set name like following for NmCommandBean. “null___[attribute name]___combobox”
Regards,
Kauhsik