• 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

ExtJS Avoid using Ext.getCmp(id) in specific framework

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I have seen the screencasts about not using Ext.getCmp() and I was thinking how can we avoid using it in our application, we build our windows dinamically via custom Java tags, so we have our JSPs that might look something like this:



This is just a reduced example of a screen with a tree and a dataview, this generates a JSON Object that is attached when the page is generated and then we create the object by:


Then we have a JS file for handling the actions on this screen and there as you can imagine the main way of getting things is via functions like:



and so on.

We also have our own classes extending the Ext official ones for adding our own functionallity to the elements and so on.

How would you suggest that we can avoid this behavior? (without changing the whole application if possible )
 
author
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a screencast dedicated to this exact topic: http://extjsinaction.com/258
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic