Neither of these. I didn't change any of TextFields attributes in java.
I just change the style attribute value in markup. The markup has been reloaded, but the style attribute of component stayed the same (rest of the markup was updated). So the component (textfield in this case, I don't know if it happens in general) remembers the "style" attribute value from previous markup (which shouldn't happen, should it)? -Matej Juergen Donnerstag wrote: > Sorry, I don't understand it. Can you be a bit more explicit > <input style="xxx" ....> > TextField field = new .... > field.add(new AttributeModifier("style", ...) > or are you talking about Component.setStyle()? > > Juergen > > On 8/19/06, Matej Knopp <[EMAIL PROTECTED]> wrote: >> My current use case is that I have an input with a style attribute >> (attached to a TextField). When I change the content of the style >> attribute, markup is reloaded but new style is not displayed, because >> TextField remembers old attribute. >> >> Why is that? Shouldn't it only remember the attributes after I change it >> in code (using getMarkupAttributes)? >> >> -Matej >> >> >> >> >> >> Juergen Donnerstag wrote: >>> What is the use case for changing Component attributes due to the >>> associate Markup being re-loaded? Which component attributes should be >>> reset? To which value? In V2 you may call >>> MarkupCache.addAfterLoadListener() to register a listener though not >>> invented for this purpose. >>> >>> Juergen >>> >>> On 8/19/06, Matej Knopp <[EMAIL PROTECTED]> wrote: >>>> Is this a feature or a bug? >>>> >>>> -Matej >>>> >>>> ------------------------------------------------------------------------- >>>> Using Tomcat but need to do more? Need to support web services, security? >>>> Get stuff done quickly with pre-integrated technology to make your job >>>> easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> _______________________________________________ >>>> Wicket-develop mailing list >>>> Wicket-develop@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/wicket-develop >>>> >>> ------------------------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, security? >>> Get stuff done quickly with pre-integrated technology to make your job >>> easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> Wicket-develop mailing list >>> Wicket-develop@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wicket-develop >>> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Wicket-develop mailing list >> Wicket-develop@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-develop >> > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-develop mailing list > Wicket-develop@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-develop > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop