NetBeans Forums

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

JSF 2.0 implementing a search function - help plz

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
jarslev@gmail.com



Joined: 06 Mar 2012
Posts: 5

PostPosted: Mon Apr 02, 2012 9:06 pm    Post subject: JSF 2.0 implementing a search function - help plz Reply with quote

Hi, I have been trying to implement a search function in the project I'm currently working on which is very similar to this
http://netbeans.org/kb/docs/web/jsf20-crud.html

Web App with Java Server Faces Framework.
I have generated entity classes from the MySQL database that I'm using. From those entity classes I have generated the JSF pages.
I just can't get a search feature to work (inputText+submit button).
I have tried to make a managedBean, but can't get any further.

Am I doing it the right way and/or what am I doing wrong?

Any links/suggestions would be very appreciated.

Simon
Back to top
Rick Fincher
Posted via mailing list.





PostPosted: Tue Apr 03, 2012 11:47 pm    Post subject: Re: JSF 2.0 implementing a search function - help plz Reply with quote

What doesn't work? Is your managed bean not working? When you run in
the debug mode is the action method of your submit button being called?


Rick

On 4/2/2012 5:07 PM, address-removed wrote:
Quote:
Hi, I have been trying to implement a search function in the project I'm currently working on which is very similar to this
http://netbeans.org/kb/docs/web/jsf20-crud.html

Web App with Java Server Faces Framework.
I have generated entity classes from the MySQL database that I'm using. From those entity classes I have generated the JSF pages.
I just can't get a search feature to work (inputText+submit button).
I have tried to make a managedBean, but can't get any further.

Am I doing it the right way and/or what am I doing wrong?

Any links/suggestions would be very appreciated.

Simon


Back to top
jarslev@gmail.com



Joined: 06 Mar 2012
Posts: 5

PostPosted: Wed Apr 04, 2012 8:13 pm    Post subject: Now the pages work, but missing the data Reply with quote

I am a bit unsure what to use of all the methods.

Putting either a person id or name as the search value. then I should have a method that that/those values with database tables and return the persons info if there are.
Is that close to what I should do with the managed bean?

Then the action on the button inside the search form, should call that method right?

I will try post some of the code....
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 can 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