If you are using JSF 2.2 you can make use of the Pass-through attributes feature, like this
<h:panelGroup p:title="My title"
Another solution could be using the div
with title
and wrapping it with
<panelGroup rendered=""
<div title="My title"