The problem with your approach is that each onclick will trigger an ajax
update... It is not exactly what I want. Still, there is absolutely no
impact in making AjaxLazyLoadPanel easier to extend. 

My question to core dev team is: should I create a JIRA issue or you need
more arguments? :)

Regards, 
Alex Objelean


Pedro H. O. dos Santos wrote:
> 
> Hi Alex, don't you got the same impression than I, that it isn't an lazy
> load panel? Looks more like an triggered load panel. I have a few in my
> projects, and I using an strategy like have an page implementing
> IAjaxIndicatorAware, then changing panels with Component.replace method
> inside onSubimit or onClick implementations.
> 
> On Wed, Nov 25, 2009 at 7:48 AM, Objelean Alex
> <[email protected]>wrote:
> 
>> I have a use-case when an AjaxLazyLoadPanel needs to be loaded later then
>> on
>> document "onready" js event (triggered later by some client-side event,
>> like
>> click on some button). The way it is implemented right now, there is no
>> way
>> to override AjaxLazyLoadPanel & change callback handling script. It would
>> be
>> useful if instead of:
>>
>> =================================
>> add(new AbstractDefaultAjaxBehavior() {
>>  ...
>>  @Override
>>  public void renderHead(IHeaderResponse response)
>>  {
>>    super.renderHead(response);
>>    response.renderOnDomReadyJavascript(getCallbackScript().toString());
>>  }
>>  ...
>> }
>> =================================
>>
>> it would be a protected method which would do the same thing:
>>
>> =================================
>> add(new AbstractDefaultAjaxBehavior() {
>>  ...
>>   @Override
>>  public void renderHead(final IHeaderResponse response) {
>>    super.renderHead(response);
>>    handleCallbackScript(response, getCallbackScript().toString());
>>  }
>>  ...
>> }
>>
>> protected void handleCallbackScript(final IHeaderResponse response, final
>> String callbackScript) {
>>  response.renderOnDomReadyJavascript(callbackScript);
>> }
>> =================================
>>
>> Should I open a JIRA issue with a patch attached?
>>
>> Thanks!
>>
>> Alex Objelean
>>
> 
> 
> 
> -- 
> Pedro Henrique Oliveira dos Santos
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-RFE--AjaxLazyLoadPanel-callback-script-rendering-tp26509971p26515359.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to