Bug 253920 - content assist for "var" names show up everywhere
Summary: content assist for "var" names show up everywhere
Status: NEW
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: 3.0.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Raghunathan Srinivasan CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2008-11-05 09:39 EST by Xiaonan Jiang CLA
Modified: 2012-01-03 17:46 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaonan Jiang CLA 2008-11-05 09:39:49 EST
Build ID: M-3.0.3-20081102205312

Steps To Reproduce:
1. Create a Faces dynamic web project
2. Create a JSF page
3. Drop a dataTable on the page
4. Set the "var" attribute value to "test"
5. Drop an inputText outside the <h:dataTable> tag.
6. Set its "value" attribute value to "#{}", move the cursor between the {} and show the content assist list.

Problem: the variable "test" is shown although <h:inputText> is not nested inside <h:dataTable>.


More information:
Comment 1 Raghunathan Srinivasan CLA 2009-04-29 01:09:35 EDT
Not planned for Galileo
Comment 2 Xiaonan Jiang CLA 2010-01-27 16:24:48 EST
Usually the var defined is used in the child tags, but there is a special case in the <f:selectItems> tag in JSF 2.0: the defined var is used in the tag itself, e.g.,

<f:selectItems value="#{bean.items} var="myvar" itemLabel="myvar.label"/>
Comment 3 Raghunathan Srinivasan CLA 2010-04-26 15:22:42 EDT
Deferred due to lack of resources.
Comment 4 Raghunathan Srinivasan CLA 2011-03-28 18:36:46 EDT
Deferred again. Contributions welcome!