Kelt Dockins
  • Technology
  • Blackboard
  • Resume
  • Cracked Ideas
Blackboard taglib issue with itemIdAccessor 11/26/2011
 
Blackboard has a tag library which allows you to put familar Blackboard looking html objects into your Building block. One element in the tag library is an inventoryList, which gives you a nice looking list of items. An inventory list in Blackboard might render something like this:
Picture
You can drag and drop to re-order this list.
The code to generate this list can be seen below. One special functionality of this list is to be able to re-order your list. This is done by sending an ajax call to your reorderingUrl anytime an item is moved. However, I noticed that my objects were not given the correct Id. Makes it difficult to reorder an item when your passing out incorrect Ids. 
Notice the itemIdAccessor="getId()" this means that item.getId() should be called to get the Id for the item. After some digging I found that getId() must return a String (it was an Integer in my case) to work correctly. This bugged me though since most Ids are typically not Strings. Oh well.
 


Comments


Comments are closed.

    Kelt Dockins

    Deafie, geekie, techie, chewie


    Social Networking

    (Likes)

    The Boondocks The Simpsons PlayStation

    Super Mario Bros Wii Diablo II Baldur's Gate Dawn of War

    Googlism Star Wars King of the Hill

    Lord of the Rings American Dad Linux Operating System

    American Sign Language Sanfu Comics


    Professional Resume
    (Linked In)

    View my profile on LinkedIn

    Categories

    All
    American Sign Language (ASL)
    Blackboard
    Java
    Javascript
    Jquery
    Technology Innovation

    Archives

    February 2012
    January 2012
    November 2011
    October 2011
    September 2011
    April 2011
    February 2011

    RSS Feed


Create a free website with Weebly