Yesterday I accidently found out that you can compute the ID of the rendered HTML element even when you use an XSP element to produce your output tag, e.g. a UL. To produce such a tag you can use a panel:
If you need a computed ID for the outout tag you can have it by defining an attribute:
I didn't expect this to be working as the ID is the "holy cow" in XSP but it works. What of course you can not do is then to define the static ID of the panel itself with the XSP attribute "id" - just saying
What will not work is to use partial refreshes with your own IDs such as XSP.partialRefreshGet() method. These only work with the XSP IDs computed from the runtime.