taT | Sort Key and Woodstock

Have you used PluginPortal, you might not have realised but its a JSF Web application. I am using the portal for the past 6 months, and never thought of this.

Anyways, I have been recently working with JSF 1.2 with Woodstock Components, and as I see James blogging some tips and Tricks these days. So, I thought of doing the same.

PluginPortal Users

Firstly, I will ask you something, if you have submitted any plugins, you would see your My Plugins section, once you logged in.

Table is shown, and recently I saw it has a sortable header, when I click it either it arranges plugin’s info in descending/ascending order.

How do we get that?

Now, how do we get this feature in your web application. If you have any Tabular component in your application, then select any column and goto Properties Window (Ctrl+Shift+7), there would see a property sort under section Data.

When you enter a unique ID (Sort Key),

the changes that took place in JSP is the following attribute gets added-
sort=”$uniqueID

OR, you could have added this attribute yourself in JSP, and when you switch to Design View, and changes are reflected with the sort header icon present in the respective column.

Well, I had stopped blogging on weekends, but I couldn’t resist, so see this as well as, upcoming blogs and have fun ;)

This blog has been contributed to NetBeans Community Docs Program and for latest updates on this content, refer to the contribution.

About these ads

2 thoughts on “taT | Sort Key and Woodstock

  1. Pingback: 10 Tips and Tricks « N, Varun

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s