Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Maxim Mossienko 
Subsystem
Editor. Code Completion 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7590
Fixed in build
7654
Severity
0
  • Submitted by   Serge Baranov
    2 years ago (30 Dec 2007 14:20)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:56)
  • Jira: IDEA-42392
    (history, comments)

IDEA-42392

JSF DataModel row code completition does not work for Collection<T> (but for List<T>)

1
Support feedback:

I created a JSF page like this

<h:dataTable value="#{SampleBean.list}" var="entry">
<h:column>
<h:outputText value="#{entry.id}"/>
</h:column>
</h:dataTable>

When I now try to use the code completition to see what attributes/methods "entry" has (i.e. put the caret after "entry." and press CTRL-Space), it only works if SampleBean.getList is defined as

public List<SampleEntity> getList() {

but not if it is defined as

public Collection<SampleEntity> getList() {

In the latter case a totally different (and unexpected) list of choices is presented. One would expect the same list as with "List" as return type.

I also testet it now with Selena, 7626 and it is even worse :-(




Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments