* @throws FieldNotFoundException
*/
public void setFieldValue(HttpServletRequest request, String name, String value) throws FieldNotFoundException
{
FormField field;
FormData data = null;
// Obtiene el contenedor de valores
data = (FormData) request.getSession().getAttribute(this.getSessionControlDataKey());
// Si no estaba definido, lo crea
if (data == null)
{
data = new FormData(this.getId());
}
// Almacena el valor y se asegura que el campo exista
for (FormFieldset group : this.groups)
{
Iterator<FormField> it = group.getFields();
while (it.hasNext())
{
field = it.next();
if (field.getName().equals(name))
{
data.addParameterValue(name, value);
return;
}
}
}