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 239818

Summary: [80cat] create method
Product: javaee Reporter: muellermi <muellermi>
Component: JSF EditorAssignee: Martin Fousek <marfous>
Status: REOPENED ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description muellermi 2013-12-26 22:27:04 UTC
Product Version = NetBeans IDE Dev (Build 201312250002)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.8.0-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b61

if I have some code like
  login.login()
and the method login does not exists within the class, then NB offers the chance to create this missing method.

Within a JSF page, this feature does not work

<h:commandButton action="#{login.login}" value="Login"/>

NB alerts "unknown property login" and offers some actions like "add surrounding tag".
NB shall offer the action "create method login in class Login"

The action depends on the context, e.g.

            <h:inputText id="email" value="#{login.email}"/>

NB shall offer the action "create getter/setter methods for property email in class Login"

action: method of type void
actionListener: method with parameter
value: getter/setter of default type string
...
Comment 1 Martin Fousek 2014-01-03 07:56:19 UTC
That's really good idea - thank you Muellermi for the issue. It's not allowed to implement enhancement in this development phase so I'm targeting that to the Next.
Comment 2 muellermi 2014-01-06 12:57:15 UTC
Usuall in source code the create method is available. Thus, we may declare this as bug rather then an enhancemen? ;-)
Comment 3 Chiana 2014-01-10 04:37:35 UTC
(In reply to muellermi from comment #2)
> Usuall in source code the create method is available. Thus, we may declare
> this as bug rather then an enhancemen? ;-)

I'll second that...
Comment 4 Martin Balin 2016-07-07 08:56:06 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 5 markiewb 2016-07-10 20:49:52 UTC
@Micha: Still relevant?
Comment 6 muellermi 2016-08-04 21:33:00 UTC
still valid, reopened