Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9076

Developing forms for ME: Styling an outputLabel ... JSF version 2.2?

$
0
0

I'm working on a custom activity for SAP ME.  My basic requirement is to 'gray out' the label under certain circumstances determined by the logic in the Controller class. My view contains "fh:outputLabel" elements (taglib prefix="fh" uri=http://java.sun.com/jsf/html).  I would like to put an EL expression into the styleClass attribute.  This would be the example:

 

<fh:outputLabel value="#{gapiI18nTransformer['NONPOD_INVTRANSFER.transqty.LABEL']}"

      styleClass="#{inventoryTransferBean.transQtyLabelStyle}" />

 

From a bit of exploration of the JSF documentation, it appears that JSF 2.2 allows this, while JSF 1.1 does not.  In fact, when I try it, the entire page disappears.  Nothing even appears in View Source.

 

Any suggestions?

 

Thanks,

Barry


Viewing all articles
Browse latest Browse all 9076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>