NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

problems with the Jukebox tutorial

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
ceyezumma



Joined: 02 Feb 2009
Posts: 122

PostPosted: Sun Mar 01, 2009 12:23 am    Post subject: problems with the Jukebox tutorial Reply with quote

Hello. Is there any one that has worked with the Jukebox tutorial.
If so , I can not find the proper method to adjust as described in the step 4 of the directions.

Is there a way to do step 4 because there are only these methods that seem close
Code:

 public SelectItem[] getGenreItemsAvailableSelectMany() {
        return JsfUtil.getSelectItems(jpaController.findGenreEntities(), false);
    }

    public SelectItem[] getGenreItemsAvailableSelectOne() {
        return JsfUtil.getSelectItems(jpaController.findGenreEntities(), true);
    }

    public Genre getGenre() {

        if (genre == null) {
            genre = (Genre) JsfUtil.getObjectFromRequestParameter("jsfcrud.currentGenre", converter, null);
        }
        if (genre == null) {
            genre = new Genre();
        }
        return genre;
    }



Editing GenreController.java

1. In the Projects window, expand the Source Packages > jsf node.
2. Double-click the GenreController.java node to edit the file.
3. Add the following member field:
private Map<String,Object> searchParameters = null;

4. Change the first line of the getGenresAvailable(boolean) method to the following:
List<Genre> allGenres = getGenres(true, null);
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo