In JSF, how can I conditionally render an onclick attribute in Facelets.

```
<div onclick="$(this).applyFancybox({trigger: !$.browser.msie, target: (event.srcElement || event.target)}); return false;">

```

How to get something like:

```
<div #{xBean.method eq null ? 'onclick="$(this).applyFancybox({trigger: !$.browser.msie, target: (event.srcElement || event.target)}); return false;' : ''>

```