Accessing tag attribute within the same tag without using binding
<p>I'm writing a simple menu using PrimeFaces, and I'm wondering if I can access a tag attribute within itself. Let me explain:</p>

<pre><code>...
&lt;p:menuitem value="#{labels['menu.home']}" url="/pages/index.jsf"
            styleClass="#{view.viewId == '/pages/index.jsf' ? 'nav-selected-menuitem' : ''}"/&gt;
...
</code></pre>

<p>Since this will be repeated for more pages, is there a way to do something of the sort:</p>

<pre><code>&lt;p:menuitem value="#{labels['menu.home']}" url="/pages/index.jsf"
            styleClass="#{view.viewId == url ? 'nav-selected-menuitem' : ''}"/&gt;
</code></pre>

<p>Where <code>url</code> is the same <code>url</code> attribute in this p:menuitem tag.</p>

<p>Is this doable?</p>