3 Replies Latest reply on Mar 25, 2011 7:17 AM by ilya_shaikovsky

    Richfaces 4: colored rich:inplaceInput does not work

    pschuett

      Hallo,

      I try to color a rich:inplaceInput, but it does not work.

       

      <rich:inplaceInput value="#{attribute.name}"  style="#{color:blue}" />

       

      with attribute.name = "produktwunsch"

       

      produces

       

      <span class="rf-ii-d-s" id="j_idt19:ticketAttributesTable:0:j_idt335" style="color:blue">

         <span class="rf-ii-lbl" id="j_idt19:ticketAttributesTable:0:j_idt335Label">produktwunsch</span>

               <input class="rf-ii-none" id="j_idt19:ticketAttributesTable:0:j_idt335Focus" style="position: absolute; top: 0px; left: 0px; outline-style: none;" type="image">

                    <span class="rf-ii-edit rf-ii-none" id="j_idt19:ticketAttributesTable:0:j_idt335Edit">

                        <input autocomplete="off" class="rf-ii-fld" id="j_idt19:ticketAttributesTable:0:j_idt335Input" name="j_idt19:ticketAttributesTable:0:j_idt335" style="width: 100%;" type="text" value="produktwunsch">

                     </span><script type="text/javascript">new RichFaces.ui.InplaceInput("j_idt19:ticketAttributesTable:0:j_idt335", {"readyCss":"rf\u002Dii\u002Dd\u002Ds","noneCss":"rf\u002Dii\u002Dnone","changedCss":"rf\u002Dii\u002Dc\u002Ds","editCss":"rf\u002Dii\u002De\u002Ds","editEvent":"click","defaultLabel":"           "} );</script></span>

       

      The style is only set on the outer span which has no impacts to the span which displays the content of the inplaceInput.

       

      Does someone know a solution or a workaround?

       

      Ciao

        Peter Schütt