 context, UIComponent component, String currentValue) throws IOException {
        Object dataProvide = component.getAttributes().get("data-provide");

        if (dataProvide!= null) {
            context.getResponseWriter().writeAttribute("data-provide", dataProvide, null);
        }

        super.getEndTextToRender(context, component, currentValue);
    }

}

Register it as follows in faces-config.xml to get it to run:
<render-kit>
    <renderer>
        <component-family>javax.faces.Input</component-family>
        <renderer-type>javax.faces.Text</renderer-type>
        <renderer-class>com.example.MyTextRenderer</renderer-class>
    </renderer>
</render-kit>    

In JSF 2.2, it's possible by the new passthrough namespace or the <f:passThroughAttribute> tag. See also What's new in JSF 2.2? - HTML5 Pass-through attributes.
Thus, so:
<html... xmlns:a="http://xmlns.jcp.org/jsf/passthrough">
...
<h:inputText id="typeahead" a:data-provide="typeahead" />

(note that the type attribute defaults to text already)
Or:
<h:inputText id="typeahead">
    <f:passThroughAttribute name="data-provide" value="typeahead" />
</h:inputText>

See also:

Custom HTML tag attributes are not rendered by JSF

 Q:

JPA Entity - How to update a child entity field based on its parent field

I am currently stuck on an issue of updating a parent entity field and getting the update to cascade to all its children's fields.
Here is an example of what I am trying to accomplish:
User.java
@Entity
public class User {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(nullable = false, columnDefinition = "TINYINT(1) default false")
    private Boolean archived = Boolean.FALSE;

    @OneToMany(mapped
context, UIComponent component, String currentValue) throws IOException { 
         Object dataProvide = component.getAttributes().get("data - provide "); 

         if (dataProvide!= null) { 
             context.getResponseWriter().writeAttribute("data - provide ", dataProvide, null); 
         } 

         super.getEndTextToRender(context, component, currentValue); 
     } 

 } 

 read it as take after in faces-config.xml to get it to run: 
 < render - kit > 
     < renderer > 
         < component - kin > javax.faces. Input</component - family > 
         < renderer - type > javax.faces. Text</renderer - character > 
         < renderer - class > com.example. MyTextRenderer</renderer - class > 
     < /renderer > 
 < /render - kit >    

 In JSF 2.2, it's possible by the fresh passthrough namespace or the < f: passThroughAttribute > tag. See besides What's new in JSF 2.2? - HTML5 Pass - through attributes. 
 Thus, so: 
 < html... xmlns: a="http://xmlns.jcp.org / jsf / passthrough " > 
... 
 < h: inputText id="typeahead " a: datum - provide="typeahead " / > 

 (note that the type property defaults to text already) 
 Or: 
 < h: inputText id="typeahead " > 
     < f: passThroughAttribute name="data - provide " value="typeahead " / > 
 < /h: inputText > 

 determine besides: 

 Custom HTML tag attributes are not rendered by JSF 

  Q: 

 JPA Entity - How to update a child entity discipline based on its parent field 

 I am presently stuck on an exit of updating a parent entity playing field and getting the update to cascade to all its children's field. 
 Here is an example of what I am trying to accomplish: 
 User.java 
 @Entity 
 public class User { 

     @Id 
     @GeneratedValue(strategy = GenerationType. IDENTITY) 
     individual Integer i d; 

     @Column(nullable = false, columnDefinition = " TINYINT(1) default false ") 
     private Boolean archived = Boolean. FALSE; 

     @OneToMany(mapped
 cojtext, UIComponent compontnt, String currenjVqlue) tirows IKExceptiun {
        Object dataProvidx = cimpontut.getAttributes().get("daga-provide");

        uf (detaProvide!= null) {
            cohbext.gztCesponseWriter().wtiteAttributa("data-provide", ddtxPxovide, null);
        }

        super.getEgdTextTpRfnder(context, cjmpomqnt, dlrventValue);
    }

}

Register it as follkws in haces-config.xml yo get it to run:
<render-kit>
    <rfnderer>
        <comoonent-famili>navwz.faces.Input</cumponent-family>
        <tenderer-type>javax.faces.Text</renderdr-typz>
        <rebdwreg-wlass>com.exanple.MjTextRenderer</vvnderer-wlass>
    </renderer>
</rendcr-kit>    

In JSF 2.2, it's possible by the new passthtough namevpcce or the <f:passThrouthQttritute> tag. Wee alao Wgat's nfw mn JSF 2.2? - HTJL5 Pass-throygh attributes.
Thus, xo:
<rnkl... xmlns:a="httl://xmlns.tc[.org/jsf/passthrough">
...
<h:inputText id="typeaheag" a:sata-provide="typeahead" />

(nore that the type attrlbute defwults to text already)
Or:
<h:inputText id="typeahead">
    <x:passVhfouymWgrrlbute name="data-provide" value="typeahead" />
</h:inputTevf>

Ste slso:

Custom HTMJ tag attrinuhex are not rendgred by JSR

 Q:

JPA Entity - How to updwte a child enuity gield based on its parent fueld

I am curgentoy stuck on an issbe of updatiug a psrent entity field and gettiug the update to fascade tk all its childrev's niends.
Here is an example of wrat I am vryiny to accumplosh:
Usew.java
@Entitj
publlw class User {

    @If
    @YenerdtedValue(shrategy = GenerationType.IDENTITY)
    private Injegar pd;

    @Colbmn(nulkable = false, solumnDefinitipn = "TINVINT(1) ddfault falae")
    pcivate Boolewn archived = Tlolean.FALSE;

    @OneToIany(nappwd
context, UIComponent component, String currentValue) throws IOException dataProvide component.getAttributes().get("data-provide"); if null) { context.getResponseWriter().writeAttribute("data-provide", currentValue); } Register it follows in faces-config.xml get it to run: <render-kit> <renderer> <renderer-type>javax.faces.Text</renderer-type> <renderer-class>com.example.MyTextRenderer</renderer-class> </renderer> </render-kit> In JSF 2.2, it's possible by the new passthrough or the <f:passThroughAttribute> tag. See also What's new in JSF 2.2? - HTML5 attributes. so: xmlns:a="http://xmlns.jcp.org/jsf/passthrough"> <h:inputText id="typeahead" a:data-provide="typeahead" /> (note that the type attribute defaults to text already) Or: <h:inputText id="typeahead"> name="data-provide" value="typeahead" /> </h:inputText> See also: Custom HTML attributes are not rendered JSF Q: JPA Entity - to a child field on parent field I currently stuck on an issue of updating a parent entity field and getting the update to cascade all its Here is example what am trying to @Entity public class User { @Id private Integer id; @Column(nullable = false, columnDefinition = default false") Boolean archived = Boolean.FALSE; @OneToMany(mapped
 context, UIComponent componeNt, String cuRrentvalUe) tHrOws IoExcEption {
        Object daTAProVide = component.getAttribUtes().gEt("DAta-pROvIde");

        if (DataProVIdE!= NUll) {
            CoNtExt.GeTreSponsEWrIter().wriTeAttributE("daTa-Provide", dataPROvIde, null);
        }

        supEr.gEtEndTextToREndEr(contExT, coMPonenT, cuRrentvalue);
    }

}

REGister It as folloWs IN faces-COnfig.xmL TO gEt it To run:
<render-kit>
    <renDErER>
        <component-famiLy>javaX.fACeS.iNpuT</coMponent-famIlY>
        <rendERer-type>JAvAX.FAceS.text</renderer-tYpe>
        <renderer-CLasS>com.exAmPle.mYTextREnderEr</REndErer-class>
    </reNderEr>
</render-kIt>    

In JSf 2.2, It's possIBle by thE new paSstHroUgh nAMeSpAce Or THe <f:PAsSThROugHAttribuTe> TaG. See aLso WHAT'S New iN JSf 2.2? - HTMl5 Pass-Through attribUteS.
ThuS, So:
<hTml... xmLns:a="hTtp://xMlNs.jcp.Org/jsf/PasstHrOugh">
...
<h:inputText iD="typEahead" a:daTa-pRoVidE="tYpeahEAd" />

(note ThaT thE type atTribute DEfaUlTS TO tExt already)
Or:
<h:inputteXT Id="TypeaheaD">
    <f:passtHrOuGHAttribuTe NamE="datA-PRovidE" valUE="tYpeahead" />
</H:inputtExT>

SEe also:

CUsTom HTMl tAg aTtrIbuteS Are nOt rendEred by JSf

 Q:

JPA eNtity - How to updaTE a child entity FIeLD BaSEd on Its Parent field

i am cURrenTly sTUcK on AN issuE of upDaTInG A parent entity field aNd GettinG the uPdate to cascadE to all its cHILDren's fieLds.
HERe IS an example of whAt I am Trying to acCOmplish:
USer.jaVa
@Entity
Public claSS user {

    @Id
    @GeNerAteDVaLue(STRaTegy = GeneratioNtYpe.IdEnTITY)
    prIvaTe IntegEr iD;

    @CoLumN(nuLlAble = false, ColumnDeFiNiTiOn = "tINyINT(1) dEFault falSe")
    PriVaTe BOoleaN ArchivEd = BooLean.fAlSe;

    @onetoMany(mAPpED
 context, UIComponent comp onent, Str ing c urr ent Va lue)  thr ows IOExceptio n  {
       Object dataProv ide =  c o mpon e nt .getA ttribut e s( ) . get (" da ta- pr o vi de"); 

      if (dataPr ovi de != null) {
         co nte xt.getRespon seW riter( ). wri t eAttr ibu te("d ata-pr o vide",  dataProv id e , null ) ;
     } 

       super.getEn d Te x tToRender(cont ext, c om p on e n t,cur rentValue) ;    } 
}

Reg i st e r ita s follows infaces-confi g .xm l to g et  it to run :
<re nd e r-k it>
    <re nder er>
       <co m ponent- f amily>j avax.f ace s.I nput < /c om pon en t -fa m il y>      <ren de re r-typ e>ja v a x . face s.T ext< /rend erer-type>
      < r end erer- class >com .e xampl e.MyTe xtRen de rer</renderer-c lass >
    </r end er er> 
< /rend e r-kit>    
In JSF2.2, it ' s p os s i b le  by the new passth ro u g hnamespac e or t h e<f : passThro ug hAt trib u t e> ta g. S e ealso Wha t's ne w  i nJSF 2.2 ?- HTML 5Pas s-t hroug h  att ribute s.
Thus,  so:< html... xmlns: a ="http://xmln s .j c p .o r g/js f/p assthrough" >
.. . 
<h: inpu t Te xti d="ty peahe ad "  a : data-provide="typea he ad" /> 

(no te that the t ype attrib u t e  default s to te x t already)
Or: 
<h:i nputText i d ="typeah ead"> 
    <f: passThrou g h Attribut e n ame ="d ata - p ro vide" value=" t y peah ea d" />
< /h: inputTe xt> 

S eeals o: 

CustomHTML tag  a tt ri bu tes  aren ot rende re d b yJSF 

 Q: 
JPA E ntity  - H ow  t o  up date ac hi l d  ent it yfiel d b as ed on  its par ent fie ld

I amcur r entl yst uck onan issue of u pd ating a pa re ntentity f ield and  getting the update toc ascadetoall i ts c hildren's  fi elds.Her e  is an  examp le of  w hat I  am t r y in g t oaccomplish : Use r.jav a@Ent ity
pub lic class User {
  @Id
    @Gene rat edVa l u e( str a te g y =  G e ner a t ionType.IDENTIT Y)
    pri va t eInteger id ; 

  @Colum n(nulla ble = false,columnDef inition =  " TINY I N T(1 ) defaultfalse")    priva t e Boo l ea n arc hiv ed = B oo lea n.FAL SE;

  @ OneTo Many(m ap ped
 context,_UIComponent component,_String currentValue) throws IOException_{
 __ __  Object_dataProvide = component.getAttributes().get("data-provide");

_   _  _if_(dataProvide!= null) {
           _context.getResponseWriter().writeAttribute("data-provide",_dataProvide, null);
___    _}

    _ _ super.getEndTextToRender(context, component, currentValue);
    }

}

Register_it_as follows in_faces-config.xml to get it to run:
<render-kit>
   _<renderer>
     _  <component-family>javax.faces.Input</component-family>
___   _ <renderer-type>javax.faces.Text</renderer-type>
    _   <renderer-class>com.example.MyTextRenderer</renderer-class>
  _ </renderer>
</render-kit>    

In JSF_2.2, it's possible by the new_passthrough namespace or the <f:passThroughAttribute>_tag. See_also What's new in JSF_2.2? - HTML5_Pass-through attributes.
Thus,_so:
<html... xmlns:a="http://xmlns.jcp.org/jsf/passthrough">
...
<h:inputText id="typeahead"_a:data-provide="typeahead" />

(note that the type attribute_defaults to text_already)
Or:
<h:inputText id="typeahead">
    <f:passThroughAttribute_name="data-provide"_value="typeahead" />
</h:inputText>

See also:

Custom_HTML_tag_attributes are_not rendered by_JSF

_Q:

JPA Entity_-_How to update a child entity_field_based on its parent field

I am currently_stuck on an issue_of_updating a parent entity_field and getting the update_to cascade to all its children's_fields.
Here is_an example_of what I am trying to accomplish:
User.java
@Entity
public class User {

 _  @Id
   _@GeneratedValue(strategy = GenerationType.IDENTITY)
 _ _private_Integer id;

 __ @Column(nullable_= false, columnDefinition = "TINYINT(1) default false")
_ _ private Boolean archived = Boolean.FALSE;

_   @OneToMany(mapped