Thursday, March 8, 2012

Google Play

Android market getting transformed to next level ..

wait and watch roll out of Google Play in coming days ..

hoping to get better service for books

Wednesday, March 7, 2012

Windows 8 Consumer Preview

After many years Microsoft did something original ... different from league and instead of copying came up with nice metro layout.

Try out windows 8 consumer preview .... it looks promising.

Download directly from Microsoft site :

Wednesday, October 7, 2009


Coming next

Sunday, September 13, 2009

Reading values from Java HashMap in Flex Actionscript

Its very common situation when java application return key-value pair values in a hashmap to web-component. As flex is little different in terms of java structure mapping and doesn't have implicit mapping object for java hashmap. Although it converts it to untype array of object and contains Dictionary which somehow similair to HashMap to hold key-value pair values.

function to read values from java hashmap, you can store it in Flex Dictionary

public function readHashMap(javaServiceResult:Object):void
var classInfo:Object = ObjectUtil.getClassInfo(javaServiceResult);
for each (var properties:QName in
var key:String = properties.localName;
var value:String = javaServiceResult[key];
trace('Key: '+key+' Value: '+value);

Sunday, August 30, 2009

Flex with Granite

Planned for this month

Sunday, July 26, 2009

Sunday, June 7, 2009

Flex - Custom Date Validation

Generally, Date validation is not required in Flex because direct entry of date is restricted in DateField and provided through calendar pick box. However, in some cases where developer want to provide search functionality between dates and duration could be in many years suppose 20 or more year. yearNavigationEnabled property does provide direct navigation through instead of month but still in cases of many years, user need to click n times to change dates for n years years, for 20 years 20 clicks that could be annoying.

Solution to this problem is to make enable property 'true' for editing date field direct as input. However, the direct entry in input field raises possibilities of wrong date entry. As client-side validation is key strength of Flex.

Here, I'm trying to cover active date validation of custom date input datefield. Flex validation highlights the field highlighted in Red and developer can add custom validation for alert messages.

Please follow these steps to
1. First add editable="true" in custom DataField

mx:DateField editable="true" showToday="true" id="customDateWithValidation"

2. Add Flex Date Validation
mx:DateValidator source="{customDateWithValidation}" property="text" allowedFormatChars="/" trigger="{customDateWithValidation}" triggerEvent="valueCommit" id="validateCustomDate"

This much will activate the Flex validation and highlight the input field in case of error in Red with error as dataTip.

3. In case developer want to add custom validation, add event with DataField

4. In custom validation method call the alert based on validity of input
protected function validateDate(event:CalendarLayoutChangeEvent):void{
var customDateEvent :ValidationResultEvent = validateCustomDate.validate();
if(customDateEvent.type==ValidationResultEvent.INVALID){"Date must be in MM/DD/YYYY format.");

All this will help developer to achieve Active Validation. However, I'm thinking in lines of passive validation. In this case, user will enter character accidentally only and its known to user dates can be numeric only and system can ignore passively other character apart from number while entering input itself. I will try to code for passive validation in my next blog.