Radio onBeforeRender funny business?

2009-04-07 Thread Martin Makundi
Hi! Radio.onBeforeRender: @Override protected void onBeforeRender() { // prefix markup id of this radio with its group's id // this will make it easier to identify all radios that belong to a specific group

Re: Radio onBeforeRender funny business?

2009-04-07 Thread Igor Vaynberg
that is expected since onbeforerender is called before every render. if (!getmarkupid().startswith(getgroup().getmarkupid()) { setmarkupid(getgroup().getmarkupid()+-+getmarkupid()); } -igor On Tue, Apr 7, 2009 at 6:41 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi!

Re: Radio onBeforeRender funny business?

2009-04-07 Thread Igor Vaynberg
ah, thought you posted a snippet from your code. fixed. -igor On Tue, Apr 7, 2009 at 10:09 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: that is expected since onbeforerender is called before every render. if (!getmarkupid().startswith(getgroup().getmarkupid()) {  

Re: Radio onBeforeRender funny business?

2009-04-07 Thread Martin Makundi
ah, thought you posted a snippet from your code. No, wazn'tme. fixed. It looks like a hack. Wouldn't it be better fixed by overriding public String getMarkupId() ? ** Martin On Tue, Apr 7, 2009 at 10:09 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: that is expected since