Skip to main content

Posts

Showing posts from December, 2009

Creating a multilevel dependent picklist on Visualforce inside a Data table

Recently on working on a project I cam across a serious issue, creating a multilevel picklist with N-Level dependency.
e.g., Picklist one, select option, picklist two displays related values, select a value and the data for Picklist 3 are filtered based on picklist 1 and 2 and this goes on.
Lets increase the complexity a bit, you want to have this functionality in a data table with multiple rows.

The code for this seems tricky, but I did manage to write some.

The trick is create a wrapper class within you Apex:Class and bind it with the SelectList.

VF Page:

<apex:actionRegion > <apex:pageBlockSection id="theSection" rendered="{!noLob}"> <apex:dataTable value="{!packages}" var="field" id="thetable" cellpadding="3px" id="dt"> <apex:column headerValue="Action"> <apex:CommandButton action="{!copyRow}" value="Copy" rerender="theSection" status="ple…

Google Gears up for HTML5

I am not that big fan of Google, (ok I am lying, who isn't a fan of Google?) But you like them or No, one thing you must agree, they are technology savvy and not money-power hungry, good for poor developers like me.

Google always came up with something new to surprise us and even if they did not intend to surprise us, we do get surprised with their announcements.
Devta
Google has announced that is it dumping Google Gears for HTML 5, which is a surprise yet a technically sound move.

With Google Gears, they had to build it compatible around every browser which was a headache for Google but if they do have the same technology around HTML 5, then I every browser compatible with HTML 5 will have offline access to Google products.

ReadWriteWeb says, "We question whether offline access is even necessary. After all... in today's world, you're never too far from an internet connection. We concluded that offline access is important now, but less important with each passing day."…