• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    Lookout! Runaway whale! Hide behind this tiny ad:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic