History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-24331
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Serge Baranov
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

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

Created: 30 Dec 07 14:20   Updated: 17 Jan 08 20:53
Component/s: Editor. Code Completion
Fix Version/s: Diana 8243, Selena 7.0.3

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,590
Fixed in build: 7,654
Severity: Medium


 Description  « Hide
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! In 7626, it does neither work with List<SampleEntity> nor with Collection<SampleEntity>. In both cases, wrong attributes are shown!



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.