myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Lessard" <>
Subject [TRINIDAD] StatusIndicator improvement
Date Wed, 12 Sep 2007 19:09:35 GMT
Hi all,

I would like to add two facets to statusIndicator: "busy" and "ready", each
with an attached styleClass placed on a child span element. I think it would
make the component much more customizable as it would allow something like:

  <f:facet name="busy">
    <tr:outputText value="Loading, please wait..."/>

and in the skin:

  border-color:   black;
  border-style:   outset;
  border-width:   2px;
  display:        block;
  margin:         auto;
  position:       absolute;
  top:            45%;
  text-align:     center;
  vertical-align: middle;


The icon would still be supported and placed in the parent span, at the same
place than now. The generated markup would thus look like:

  <span id="clientId::ready">
    <img src="readyIcon"/>
    <span class="af_statusIndicator_ready">
      ("ready" facet content)
  <span id="clientId::busy">
    <img src="budyIcon"/>
    <span class="af_statusIndicator_busy">
      ("busy" facet content)

Anyone's ok with that or has a better idea?

~ Simon

View raw message