JSF footer text converter

Posted: May 16, 2012 in web

From:

<p:columnGroup rendered=”#{foo > 1}”
type=”footer”>
<p:row>
<p:column colspan=”5″ />
<p:column footerText=”343″>
</p:column>
</p:row>
</p:columnGroup>

To:

<p:column style=”text-align:center” headerText=”Total Balance”>
<f:facet name=”footer”>
<h:outputText value=”222″>
<f:convertNumber type=”currency” />
</h:outputText>
</f:facet>
<h:outputText
value=”3″>
<f:convertNumber type=”currency” />
</h:outputText>
</p:column>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s