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.
No code completion and verification in inherited jsf managed bean with generic typed property: public abstract class AbstractController<T extends EntityBase, F extends AbstractFacade<T>> implements Serializable { private LazyDataModel<T> model; public AbstractController() { model = new LazyDataModel<T>() { @Override public List<T> load(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String, String> filters) { setRowCount(getFacade().count()); return getFacade().findRange(new int[]{first, first + pageSize}); } @Override public Object getRowKey(T object) { return object.getId(); } @Override public T getRowData(String rowKey) { return getFacade().find(Long.parseLong(rowKey)); } }; } public LazyDataModel<T> getModel() { return model; } protected abstract F getFacade(); } @ManagedBean @SessionScoped public class UserController extends AbstractController<User, UserFacade> { @EJB private UserFacade userFacade; private User currentItem; public UserController() { } @Override protected UserFacade getFacade() { return userFacade; } public User getCurrentItem() { if (currentItem == null) { currentItem = new User(); } return currentItem; } public void setCurrentItem(User currentUser) { this.currentItem = currentUser; } public void save() { userFacade.edit(currentItem); } } <p:dataTable id="list" value="#{userController.model}" var="user" selection="#{userController.currentItem}" selectionMode="single" rows="10"> <p:column headerText="Id"> <h:outputText value="#{user.}"/> </p:column> <p:column headerText="Username"> <h:outputText value="#{user.username}"/> </p:column> <p:column headerText="Password"> <h:outputText value="#{user.password}"/> </p:column> </p:dataTable>
Code have some logical mistakes.
Thanks for entering that issue, but I wasn't fully able to reproduce your problem. I had to update sources a lot since many class definitions are missing and I tried out the completion on the userController where were offered 'currentItem', 'model', 'save' which looks correct to me. Please could you ideally attach whole sample project where we could try out what's missing to you and better specify what are you missing there/where. Please reopen this issue then again. Thanks a lot...
Created attachment 129308 [details] test project i attached a test project, you can open index.xhtml and look for warning
(In reply to comment #3) > i attached a test project, you can open index.xhtml and look for warning Thanks for providing the project, I helped a lot to understand your issue.
any changes? already more than 2 years.
Problem still exists in 7.4 mac os x. This problem also effects cdi beans.
(In reply to ravshansbox from comment #5) > any changes? already more than 2 years. Sorry, not fixed yet. Trying to target that to the Next.
Created attachment 153262 [details] inside index.xhtml ide can't detect property
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
This is still an issue with the latest DEV build 20160920