Results 1 to 3 of 3
  1. #1
    mary is offline Member
    Join Date
    Jul 2007
    Posts
    51
    Rep Power
    0

    Default problem with jsf

    I have a data table and I display a picture in each row, I want every picture to be a link that when someones clicks on it, it will call method in my bean that delete selected row
    How can I do that?
    I know that it's easy but I can't do it!

  2. #2
    oregon is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default

    Java Code:
    <h:graphicImage/>
    can not be nested within
    Java Code:
     <h:commandLink>
    It can be. It is just a <a>...</a> content body.

  3. #3
    Join Date
    Sep 2008
    Posts
    9
    Rep Power
    0

    Default

    Hi Mary,
    This is working in my application.
    <h:commandLink styleClass="label" action="action">
    <h:graphicImage id="ID" url="specify_Image_path" />
    </h:commandLink>

    Thanks,
    Pathan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •