开发者

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

开发者 https://www.devze.com 2023-03-18 20:47 出处:网络
I have a simple rich:panel. I would like it to behave like one big link to some page. Is that even possible? How?

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. Sup开发者_如何转开发pose I wanted to make each panel link to a detailed page for that car, how would I do that?


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>


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

0

精彩评论

暂无评论...
验证码 换一张
取 消