Reputation: 379
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
Upvotes: 2
Views: 521
Reputation: 10485
You can access the values in SSJS with
paramValues.get("fieldName").toString();
In Java you can access the parameters from the request parameter values map:
ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
Map<String, String[]> pMap = ec.getRequestParameterValuesMap();
Upvotes: 6