row selection for RichFaces

I found this thread helpful for figuring out how to get selected row for an extendedDataTable. Now I start to really appreciate how elegant and simple Ext JS is on getting selected row for a datatable. Advertisements

Read more "row selection for RichFaces"

Workarounds for IE 8 and Ext JS

For the last couple days I ran into JavaScript errors with toolbars for Ext JS. One of the issues is clearly documented here. I just added hideMode:’offsets’ to the toolbar definition and the error went away. The other one, I had to add enableOverflow: false option to the toolbar to avoid hitting Object required error […]

Read more "Workarounds for IE 8 and Ext JS"

JavaScript trick

This might be useful trick to upload and display an image. Advertisements

Read more "JavaScript trick"

Configure tab sequencing on a modal window

mmusson’s code post in this thread works well for me. Advertisements

Read more "Configure tab sequencing on a modal window"

createDelegate in ExtJS

createDelegate is an interesting way to pass a function object with a scope object. This is very useful for using callback functions. For more information, see this screencast. Advertisements

Read more "createDelegate in ExtJS"

Optional fields with XTemplate in Ext JS

This thread helped me to use Ext JS XTemplate with optional fields. The only thing I had to figure out was defining my own check exists function, this.exists(). Advertisements

Read more "Optional fields with XTemplate in Ext JS"

Sort case insensitively

It’s interesting to find a minor difference on how Ext JS’ store handles case sorting. If you want to sort case sensitively, then remove the type property definition below, else add it in. Here is an example: {name: ‘field name’, type:’string’}, Thanks to this thread for the trick. Advertisements

Read more "Sort case insensitively"