Wednesday, February 3, 2010

Links and rich:menuItem

One of the shortcomings of links and rich:menuItem is that you have to define the url in two places; in the onclick attribute and in the inner text.



The reason for adding the url to the onclick is so that user can click anywhere on the highlighted menu rather then just the text portion. Well...as one of my tricks in the bag is to wrap the whole menu item with an anchor using jQuery's wrap. Then you only need to have one url to keep track of and maintain.

No comments:

Post a Comment