Re: AJAX updating of non "typical components"

2012-12-13 Thread Martin Makundi
Maybe add a dummy component inside the panel that is refreshed instead and piggybacks your js or smth. 2012/12/13 Ernesto Reinaldo Barreiro : > Hi, > > On Wed, Dec 12, 2012 at 8:29 PM, Martin Makundi < > martin.maku...@koodaripalvelut.com> wrote: > >> Why not have outputmarkupid=true? >> >> > In t

Re: AJAX updating of non "typical components"

2012-12-12 Thread Ernesto Reinaldo Barreiro
Hi, On Wed, Dec 12, 2012 at 8:29 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Why not have outputmarkupid=true? > > In this particular use case doing that would mean that a IFeedback panel, based on ( http://www.erichynds.com/jquery/a-jquery-ui-growl-ubuntu-notification-widge

Re: AJAX updating of non "typical components"

2012-12-12 Thread Martin Makundi
1. Please also implement this expert/newuser mode as boolean closeonhover setting inside notificationspanel: public void onTargetRespond(AjaxRequestTarget target) { if(isExpertMode()) { renderErrorNotifications(target, getString("timeManagement.error"), new NotificationSettings()

Re: AJAX updating of non "typical components"

2012-12-12 Thread Martin Makundi
Why not have outputmarkupid=true? 2012/12/12 Ernesto Reinaldo Barreiro : > IHeaderContibutor won't work if component does not has > setOutputMarkupId(true) AjaxRequestHandler#add() > > public void add(Component... components) > { > for (final Component component : components) > { > Args.notNul

Re: AJAX updating of non "typical components"

2012-12-12 Thread Ernesto Reinaldo Barreiro
So, essentially what I'm asking is to relax the condition component.getOutputMarkupId() == true <==> AJAX updateable, by introducing and alternative IAjaxUpdateable (marking a component as "I know how to update myself via AJAX") for components with component.getOutputMarkupId() == false or even

Re: AJAX updating of non "typical components"

2012-12-12 Thread Ernesto Reinaldo Barreiro
IHeaderContibutor won't work if component does not has setOutputMarkupId(true) AjaxRequestHandler#add() public void add(Component... components) { for (final Component component : components) { Args.notNull(component, "component"); if (component.getOutputMarkupId() == false && !(component ins

Re: AJAX updating of non "typical components"

2012-12-12 Thread Martin Makundi
IHeaderContributor? 2012/12/12 Ernesto Reinaldo Barreiro : > Hi, > > Several times I have encountered the situation where I want to "update" a > component via AJAX and this component does not have setOutputMarkupId(true) > or even the component generates no visible markup. All this component > n