This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 187122 - [EL] entity property not correct on ELResolver
Summary: [EL] entity property not correct on ELResolver
Status: RESOLVED DUPLICATE of bug 194302
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 09:34 UTC by hwaastad
Modified: 2011-11-16 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
open18 mySQL schema (8.35 KB, text/x-sql)
2010-06-03 09:34 UTC, hwaastad
Details
code completion screenshot (753.39 KB, image/png)
2010-12-17 14:43 UTC, hwaastad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hwaastad 2010-06-03 09:34:12 UTC
Created attachment 99778 [details]
open18 mySQL schema

I'm trying to port the open18 (seaminaction) to an EE6/JPA2.0 project in netbeans 69RC2

1. I'm creating enitites from database
2. I'm creating session beans for entity classes.
3. Using default eclipselink

The Hole.java entity class shows:

@Basic(optional = false)
    @Column(name = "m_par")
    private int mPar;

and:

public int getMPar() {
        return mPar;
    }


The ELResolver will tell me:
<ui:repeat value="#{roundController.current.teeSet.course.holeCollection}" var="score">
<td>
#{score.mPar}
</td>
</ui:repeat>

While the create jsf datatable from entity will use:

<h:dataTable value="#{roundController.current.teeSet.course.holeCollection}" var="item">
<h:column>
<f:facet name="header">
<h:outputText value="MPar"/>
</f:facet>
<h:outputText value="#{item.MPar}"/>
</h:column>
Comment 1 Marek Fukala 2010-12-16 11:36:49 UTC
I must admit I do not get what exactly is the problem here. What do you mean by "The ELResolver will tell me"??? Both codes sample looks fine, at least from the EL point of view. Can you please elaborate a bit?
Comment 2 hwaastad 2010-12-17 14:43:22 UTC
Created attachment 104211 [details]
code completion screenshot
Comment 3 hwaastad 2010-12-17 14:47:35 UTC
(In reply to comment #1)
> I must admit I do not get what exactly is the problem here. What do you mean by
> "The ELResolver will tell me"??? Both codes sample looks fine, at least from
> the EL point of view. Can you please elaborate a bit?

I've added a screenshot.
Check this issue also in 6.9.1.

What I mean is that the code completion in the editor should suggest MPar instead of mPar since mPar make the application fail.....

the get functions ar auto generated form the IDE. I did not make them my self.

br hw
Comment 4 Marek Fukala 2011-01-03 13:29:35 UTC
I see, thanks. However after the EL code support redesign, the code completion for declared variables of iterable type doesn't work at all.
Comment 5 Marek Fukala 2011-01-14 10:19:21 UTC

*** This bug has been marked as a duplicate of bug 194302 ***