0
votes

I'm using Liferay 5.2.3 and i have a problem with webformportlet: I want to send a value in a CSS hidden field to be processed by webformportlet.java, like this:

view.jsp

<div>
    <input type="text" value="vacío" id="<portlet:namespace />ocult" name="<portlet:namespace />ocult" style="display:none" />

</div>

And trying to print the value of the hidden field in:

WebFoemPortlet.java

String oculto=ParamUtil.getString(actionRequest, "ocult");

    System.out.println("CAMP OCULT: "+oculto);

But i get no value in "oculto" variable.

Any help will be very appreciated. Thanks in advance.

1
Please check your input tag is inside form tag.Pankaj Kathiriya

1 Answers

0
votes

Use

<aui:input cssClass="" label="" type="text" name="ocult" value="vacío" />

then it should return the value.