You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2009/04/07 15:41:21 UTC

Radio onBeforeRender funny business?

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
		setMarkupId(getGroup().getMarkupId() + "-" + getMarkupId());
		super.onBeforeRender();
	}


The markup id will go wild if the page is rendered multiple times?

**
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to use Wicket in cluster to avoid memory problem?

Posted by Johan Compagner <jc...@gmail.com>.
"the system" which is that?

On Tue, Apr 7, 2009 at 15:54, Wenke Ji <ji...@gmail.com> wrote:

> Hi
> I am new to Wicket , in using wicket , the system often tells me the memory
> is not enough. Is there any one kindly tell me how to use wicket in cluster
> to avoid it or any document/example for it? Thanks your time so much!
>
> Best Regards
> Ji

Re: How to use Wicket in cluster to avoid memory problem?

Posted by Martijn Dashorst <ma...@gmail.com>.
without telling us what you currently use for your settings, we won't
be able to help you.

how much memory did you allocate for your server. Does it only run
your wicket app, did you use loadabledetachablemodels, did you profile
your application to see if there's a leak or if you keep too much
memory in your session?

Martijn

On Tue, Apr 7, 2009 at 3:54 PM, Wenke Ji <ji...@gmail.com> wrote:
> Hi
> I am new to Wicket , in using wicket , the system often tells me the memory is not enough. Is there any one kindly tell me how to use wicket in cluster to avoid it or any document/example for it? Thanks your time so much!
>
> Best Regards
> Ji



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


How to use Wicket in cluster to avoid memory problem?

Posted by Wenke Ji <ji...@gmail.com>.
Hi
I am new to Wicket , in using wicket , the system often tells me the memory is not enough. Is there any one kindly tell me how to use wicket in cluster to avoid it or any document/example for it? Thanks your time so much!

Best Regards
Ji

Re: Radio onBeforeRender funny business?

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
> 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 <ig...@gmail.com> wrote:
>> 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
>> <ma...@koodaripalvelut.com> wrote:
>>> 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
>>>                setMarkupId(getGroup().getMarkupId() + "-" + getMarkupId());
>>>                super.onBeforeRender();
>>>        }
>>>
>>>
>>> The markup id will go wild if the page is rendered multiple times?
>>>
>>> **
>>> Martin
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Radio onBeforeRender funny business?

Posted by Igor Vaynberg <ig...@gmail.com>.
ah, thought you posted a snippet from your code.

fixed.

-igor

On Tue, Apr 7, 2009 at 10:09 AM, Igor Vaynberg <ig...@gmail.com> wrote:
> 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
> <ma...@koodaripalvelut.com> wrote:
>> 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
>>                setMarkupId(getGroup().getMarkupId() + "-" + getMarkupId());
>>                super.onBeforeRender();
>>        }
>>
>>
>> The markup id will go wild if the page is rendered multiple times?
>>
>> **
>> Martin
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Radio onBeforeRender funny business?

Posted by Igor Vaynberg <ig...@gmail.com>.
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
<ma...@koodaripalvelut.com> wrote:
> 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
>                setMarkupId(getGroup().getMarkupId() + "-" + getMarkupId());
>                super.onBeforeRender();
>        }
>
>
> The markup id will go wild if the page is rendered multiple times?
>
> **
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org