This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue when retrieveing the hidden variable in script and setting the locale of dojoconfig

 
seena mathew
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having issues with setting the locale on the dojo editor. I have a scenario where in
  • JSP1: language value is input and the value is submitted as a hidden variable
    JSP2: DOJo editor is displayed based on the language.I would like to set the locale of the dojo editor.


  • I am trying to retrieve the hidden variable value but the editor always shows with "en" locale. I have done "View Source" on the page and the hidden variable is populated with the correct parameter

    How can I build the locale based on hidden parameter value? Any advice to resolve it will be great.


     
    seena mathew
    Greenhorn
    Posts: 20
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Resolved it by moving the scripts related to dojo from head tag to inside the body tag and then could get the hidden variable value and set the dojoConfig object
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic