4.1.2.1.2. Content Assist Based on Project Data

JBoss Developer Studio takes Content Assist to the next level. Studio will constantly scan your project and you will be able to insert code into the JSP page from your project that includes:

  • Values from Property files

  • "Managed beans" attributes and methods

  • Navigation Rule Outcomes

  • JSF variables (context, request etc...)

The first screenshot shows how to insert message from a Properties files. You simply put the cursor inside the "value" attribute and press Ctrl-Space. JBoss Developer Studio will scan your project and show a list of possible values to insert.

Inserting Message

Figure 4.12. Inserting Message


In the following screenshot we are inserting a "Managed bean" attribute value. Again, by simply clicking Ctrl-Space, JBoss Developer Studio will show a list of all possible values that you can insert.

Once you select a Managed bean, it will show you a list of all available attributes for the selected Managed bean (userBean).

Attributes List

Figure 4.13. Attributes List


Code Assist based on project data will also prompt you for navigation rules that exist in your JSF configuration file.

Code Assist

Figure 4.14. Code Assist