简体   繁体   中英

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?

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

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM