NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
jarslev@gmail.com
Joined: 06 Mar 2012 Posts: 5
|
Posted: Mon Apr 02, 2012 9:06 pm Post subject: JSF 2.0 implementing a search function - help plz |
|
|
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.
|
Posted: Tue Apr 03, 2012 11:47 pm Post subject: Re: JSF 2.0 implementing a search function - help plz |
|
|
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
|
Posted: Wed Apr 04, 2012 8:13 pm Post subject: Now the pages work, but missing the data |
|
|
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 |
|
 |
|
|
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
|
|