|
Page Edited :
WICKET :
Adding Dynamic Field Prompts or Hints
Adding Dynamic Field Prompts or Hints has been edited by Spencer Crissman (Feb 16, 2007). Content:" title="Visit page outside Confluence" rel="nofollow">Bookmarkable link Table of contents ScenarioSometimes, it is useful for text to be displayed when a user is in a form element, and hidden when they leave the field. An example would be a prompt which offers help about the expected field contents, but which generally doesn't need to be displayed, since displaying them all at once would clutter up the interface. This article will cover how to achieve this in your wicket page. Overview of OptionsThree basic ways to achieve this functionality are: 1. Create ajax behavior which gets fired when field is entered/left.
2. Tag each field with an hint attribute, and use _javascript_ tools to display the text as needed.
3. Wrap #2 inside of appropriate wicket components/behaviors.
Implementations1. Create ajax behavior which gets fired when field is entered/left.I could not determine how to work through the first option. I leave this for someone else. 2. Tag each field with an hint attribute, and use _javascript_ tools to display the text as needed.I will shortly be detailing how to achieve this, using the mootools library. 3. Wrap Implementation #2 inside of appropriate wicket components/behaviors.Help needed to flesh this out correctly. |
Unsubscribe or edit your notifications preferences
