Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-52198

Dynamic Data List (DDL) Form Portlet: user is not able to save form with required field on any other language/locale but US (en_US)



      == 6.2.10/6.2.x (original description)

      I created a Dynamic Data List and then added a form to be able to receive input from users. However, whenever a user that has spanish as their primary language clics on the send button the list doesn't get updated and an error is shown: "Su petición no se ha podido realizar correctamente. Por favor, rellene todos los campos obligatorios." Which translates something like: "Your request could not been performed correctly. Please fill in all the required fields".

      Steps to reproduce:
      1. Create a Dynamic Data List
      2. Add it to a form (on spanish)
      3. Put some of the field as required
      4. Try to fill the form and submit it
      5. If the language is changed to english the form works.

      Steps used to Reproduce by QA:

      1. Log in to Test Test user
      2. Deploy Dynamic Data List Form
      3. Add Dynamic Data List Form portlet to the Welcome page
      4. Add List
      5. Create Data Definition with Required Text field and non-Required Selector field
      6. Save List
      7. Go to My Account > Display Settings
      8. Change Language to "català (Espanya)"
      9. Go to the Welcome page
      10. Submit new list record
      11. Input text into required Text field
      12. Save (Envia)

      6. Try to submit another pair of values. It fails with error: "Please fill out all required fields"
      Expected: it should submit without any problems

      == master/7.0.x
      0- Build & deploy DDL Form portlet
      1- Go to Admin/Content/Dynamic Data Lists/Manage Data Definitions/Add

      • Add a text field and make it required, then add an Integer field.
      • Save.

      2- Add a new DDL using the definition you have just created
      3- Place DDL Display and DDL Form portlets on the Welcome page
      4- Configure both portlets to use the DDL we have just created

      Observations 1
      When you click on the "Add..." button in the DDL Display porlet's navbar, the opening edit form will contain a Translation Manager, so you can select the language in which you would like to submit your form. Added in LPS-30197
      Now, use the DDL Form portlet: there is no Translation Manager

      6- Place the Language portlet on the Welcome page
      7- Switch to "French" locale

      Observations 2
      When you click on the "Add..." button in the DDL Display porlet's navbar, the Translation Manager is still present, so you can submit the form in a different locale, despite your current display locale is fr_FR
      There is no Translation Manager displayed in the DDM Form portlet.

      • Here, an end-user may assume that the form will be submitted in French locale as this is his current display locale.
      • Fill out the form
      • Open Firebug and select the Net panel
      • Save the form and check payload of corresponding POST request on the Net panel:
      DDL Form master/7.0.x submit POST request payload
      _1_WAR_ddlformportlet_INS...	1420197686247
      _1_WAR_ddlformportlet_INS...	/web/guest/home?p_p_id=82&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=2&p_p_col_count=4
      _1_WAR_ddlformportlet_INS...	20537
      _1_WAR_ddlformportlet_INS...	true
      _1_WAR_ddlformportlet_INS...	1
      _1_WAR_ddlformportlet_INS...	asdsdsa
      _1_WAR_ddlformportlet_INS...	1231232131
      _1_WAR_ddlformportlet_INS...	{"availableLanguageIds":["en_US"],"defaultLanguageId":"en_US","fieldValues":[{"instanceId":"cjib","name":"Text","value":{"en_US":"asdsdsa"}},{"instanceId":"dqbp","name":"Integer","value":{"en_US":"1231232131"}}]}
      -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_formDate" 1420197686247 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_redirect" /web/guest/home?p_p_id=82&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_pos=2&p_p_col_count=4 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_recordSetId" 20537 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_multipleSubmissions" true -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_workflowAction" 1 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_Text_INSTANCE_cjib" asdsdsa -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_Integer_INSTANCE_dqbp" 1231232131 -----------------------------67797557311393430511080606121 Content-Disposition: form-data; name="_1_WAR_ddlformportlet_INSTANCE_jIUUBteuOQu9_ddmFormValues" {"availableLanguageIds":["en_US"],"defaultLanguageId":"en_US","fieldValues":[{"instanceId":"cjib","name":"Text","value":{"en_US":"asdsdsa"}},{"instanceId":"dqbp","name":"Integer","value":{"en_US":"1231232131"}}]}


          Issue Links



              victor.ware Victor Ware
              ErnestoV Ernesto Vanegas
              Participants of an Issue:
              Recent user:
              Gustavo Vasconcelos
              0 Vote for this issue
              2 Start watching this issue


                Days since last comment:
                6 years, 3 weeks, 6 days ago


                  Version Package
                  6.2.X EE
                  7.0.0 M4