If you are using dojo 0.4.x javascript library.. then ther is a news for you.. dojo 0.9 is out (only in beta yet :-( )
But 0.9 is a huge huge improvement over 0.4.x version
first and most important thing is the size... now dojo.js stands at around 48kb in stead of beastly 150kb of 0.4.3
They have also done a lot of reorg..
now the.. this has caused 0.9 to be incompatible with the existing html source based on 0.4 dojo.
If you plan to upgrade.. please visit this general info page
If you are using Any of the widgets : make sure to find out ur widget from here.. n read about it.. espl ContentPane and Dialog.. am sure many would be using these two...
These are few of things that i found out...
1. All the changes from general info page are must!
2. u also need to import dijit.js if you plan to use the widgets.
3, if particular attribute / method is removed.. better read the description as to how to get it similar work done.. many attributes are now controlled via css. so.. need to update your css.
Monday, July 16, 2007
Saturday, March 17, 2007
- Program to interfaces rather than to Concrete Objects.
- Favor Object Composition over class inheritance.
- Delgation can be a good addition to Composition to achieve good things from inheritance.... e.g. Composition wont have all method access which inheritance will have.. but what can be done is you can write encapsuling methods in composing class which refer to composed class' methods. this way you can achieve run time change of objects. e.g. window (being a rectangle) should have inherited from rectangle.. in stead.. it containts a referance to rectangle.. so any method that you would rather go to rectangle for imlementation would be called by Window on to internal referance of window. Also if we have defined the Rectangle as a shape.. then we can also replace rectangle ref with a circle ref at runtime..
Friday, March 09, 2007
Struts 6 Learning points
- Struts 2 is not compatible with struts 1
- Default extension for the actions is changed from .do to .action. If we want to change the default extension for actions then we can set it like following in struts.xml file
- By default there should be one struts.xml file present in the classpath. It can include additional struts definition files in it.
- errors: we can have action errors and field errors.. field errors are associated with a particular HTML text field.. while action errors would be any general errors..
- validate="true" in form tag would allow (or invoke?) client side javascript validation so as to save few server trips.
constant name="struts.action.extension" value="do"
Subscribe to:
Comments (Atom)
