Message Boards

<aui:validator name="required" /> is not doing the mandatory field validati

sanga reddy, modified 9 Years ago.

<aui:validator name="required" /> is not doing the mandatory field validati

New Member Posts: 5 Join Date: 4/28/09 Recent Posts
Hi,

 <aui:validator> is not validating the mandatory field validation.
i have a view.jsp and it includes 3 jsp files
<%@ include file="two.jsp" %>
<%@ include file="three.jspf" %>
<%@ include file="four.jspf" %>in the three.jspf another jsp included another jsp file into the <script> tags.
<script> <%@ include file="three-content.jsp" %>  </script>in the three-content.jsp under <aui:form action='' method="post" name="fm" >  i have iput fields have mandatory validation.
<aui:input name="myname" value="" label="">    
<aui:validator name="required" />
</aui:input>and in the four.jsp  <aui:form> tag used under <script> like below
<script>
<aui:form method="post" name="myform" autocomplete="off">content ....
</aui:form>
</script>
sangam
thumbnail
Hitesh Methani, modified 9 Years ago.

RE: Sharing the session object from one .war to other .war

Regular Member Posts: 171 Join Date: 6/24/10 Recent Posts
Hello Sanga,

If your first war file from which you want to set session variables is a portlet, you can set private-session-attributes as 'false' in liferay-portlet.xml which will allow themes to access session variables set in that portlet.

<private-session-attributes>false</private-session-attributes>

You can add above line in your liferay-portlet.xml.

HTH.

Thanks,
Hitesh Methani.
Suresh Gurusamy, modified 9 Years ago.

RE: Sharing the session object from one .war to other .war

New Member Posts: 2 Join Date: 8/27/14 Recent Posts
Hi,
If you not abt able to get session variable from your theme war please follow the below steps

+ add the prefix LIFERAY_SHARED_ in the session variable and try to access in theme war. and if you are sharing the string value across wars through the liferay session then you can easily share, but if you are sharing some obj then you have to place the session object into the shared library in the server.(convert the session classes into jar and place it in server shared library path)

(String)session.setAttribute("LIFERAY_SHARED_sessionValue",sessionValue,PortletSession.APPLICATION_SCOPE);
thumbnail
vamshi krishna, modified 6 Years ago.

RE: Sharing the session object from one .war to other .war

Junior Member Posts: 31 Join Date: 3/3/11 Recent Posts
if you want to get the session values across the portlets it is better to keep below line
<private-session-attributes>false</private-session-attributes>
value as false in the corresponding portlet's liferay-portlet.xml