Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

NetBeans Tip: Add/Remove Sort Key from Woodstock TableDataProvider

DZone's Guide to

NetBeans Tip: Add/Remove Sort Key from Woodstock TableDataProvider

· Java Zone
Free Resource

Learn how our document data model can map directly to how you program your app, and native database features like secondary indexes, geospatial and text search give you full access to your data. Brought to you in partnership with MongoDB.

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.

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 uniqueID (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.

Reposted


taT_SortKey_and_Woodstock

 

Discover when your data grows or your application performance demands increase, MongoDB Atlas allows you to scale out your deployment with an automated sharding process that ensures zero application downtime. Brought to you in partnership with MongoDB.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}