That's not possible. The UIComponent#getAttributes()
returns only attributes which are either explicitly declared on the component in the view side:
<p:someComponent style="position: absolute;">
Or programmatically before or during rendering:
component.getAttributes().put("style", "position: absolute;");
It does not return the attribute of the generated HTML element. It's not entirely clear what you're trying to do, but you might consider to perform the task in the client side instead, using JavaScript.