Can you pass the id of the selected object using the  <f:param>. I have never 
used the params but sounds like you can do that.

As Heath posted in the mail sith subject "predifined form values"...
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("paramName");

-Srikanth


On 4/13/05, Brandon Goodin <[EMAIL PROTECTED]> wrote:
> This rowData works okay, if you are using session... but there are
> problems with this. Most of the time you want to query based on the ID
> of your object. Not the index of the object location. If you database
> changes behind the scenes and you query a list from the database, the
> index may produce a different object. The important thing to me is to
> get the ID for the query. I don't like to keep lists of objects in
> session. That's weighty and pointless.  I appreciate the previous
> contributions. I'm going to try them out later this evening.
> 
> Please correct me if i'm wrong.
> 
> Thanks,
> Brandon
> 
> On 4/13/05, Srikanth Madarapu <[EMAIL PROTECTED]> wrote:
> > In your backing bean, you must have access to the model (of your table ), 
> > just call   yourModel.getRowData() to get the current row's data or 
> > yourModel.getRowIndex to the currenty row's index.
> >
> > -----Original Message-----
> > From: Ray Clark [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, April 06, 2005 10:46 PM
> > To: [email protected]
> > Subject: dataTable and commandButton question
> >
> > I'm sure this must have been asked before but I can't
> > find it in the archives.  So please forgive me if it
> > has been asked before.
> >
> > I have a dataTable with a commandButton rendered on
> > each row.  When the commandButton is pressed I need
> > it's managed bean method to know which row the button
> > was pressed for.  So how can the method know which row
> > to process?
> >
> > Thanks,
> > Ray
> >
> > __________________________________
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
> > http://mobile.yahoo.com/maildemo
> >
>

Reply via email to