Search code examples
jsfrichfaceshyperlink

How do I make a RichFaces rich:panel behave like a link?


I have a simple rich:panel. I would like it to behave like one big link to some page. Is that even possible? How?

For example: the section about rich:dataGrid in the RichFaces manual show a grid of car descriptions. Suppose I wanted to make each panel link to a detailed page for that car, how would I do that?


Solution

  • The example is based on RichFaces 3:

    <rich:panel>
       <a4j:support event="onclick".../>
    </rich:panel>
    

    or this:

    <a4j:outputPanel>
      <a4j:support event="onclick".../>
      <rich:panel></rich:panel>
    </h:outputPanel>