Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2980

Client side form validations not working in portlets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.0.14, 2.1.6
    • None
    • Plugin - Portlet
    • None
    • Websphere Portal Server Express 6.1 and Liferay 5.1.2, JDK 1.5 (06), Windows

    • Important

    Description

      Hi,
      I am quite frustrated to see that client side form-validations are not working within portlets.
      To illustrate, I have implemented the validations through annotations.
      And on form i have used validate="true" which should produce client side validation javascript.
      But it happens so, that only the below line of code is generated:
      <script type="text/javascript" src="/<Project Name>/struts/css_xhtml/validation.js"></script>

      also in form onsubmit="return validateForm_<form name>();" is generated but this function [validateForm_<form name>()] is nowhere else
      generated which should be ideally generated after end of form tag.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dippedingold Shashank
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: