2

Is there a way to read a field with ssjs that is created via client side javascript (so is no xp:input field, it's a simple html input field wich is in the notes form-tag)? I know i can send the value with an XAgent, but i hope there is another beautiful way. Somthing like context.getSubmittedValue("fieldName")

Thanks

4

1 回答 1

6

您可以访问 SSJS 中的值

paramValues.get("fieldName").toString();

在 Java 中,您可以从请求参数值映射中访问参数:

ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
Map<String, String[]> pMap = ec.getRequestParameterValuesMap();
于 2013-03-21T12:59:35.090 回答