Sietse
Sietse

Reputation: 7955

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?

Upvotes: 0

Views: 785

Answers (2)

Max Katz
Max Katz

Reputation: 1582

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>

Upvotes: 1

Max Katz
Max Katz

Reputation: 1582

It should have an onclick event, you can attach Ajax support to the panel via that event.

Upvotes: 1

Related Questions