crud operations
Hi, shouldn't it be easy?
A table displays a Collection of objects. I want be able to click on an 'edit' link or button and be brought to the detail screen for editing the record.
I have to retrieve the ID of my objects, but I don't know how to get it after clicking on the edit-link.
There must be a mechanism in JSF, could someone help me,
thanks in adcance,hamid
[400 byte] By [
hamidagaa] at [2007-10-3 11:46:56]

I have a userbean with properties: ID, name and age and setter/getter methods.
I can create such a object and save it to the DB.After saving, i come back to my start.jsp page where i can see my just created bean with 2 links, one EDIT link and one DELETE link. So I would like to be able to edit my created User objects e.g. the age of a user. I would like to click on the edit-link and this link should take me to a page with all properties (of this userobject) populated in a form, for editing.
I know that i have to get the ID of that object selected, but i donot know how.
Thanks
> I know that i have to get the ID of that object
> selected, but i donot know how.
You said this:
where i can see my just created bean with 2 links,
and that the bean contains the id. Why can't you just pull the id from the bean? There must be something more to what you are asking right?
zadoka at 2007-7-15 14:19:47 >
