Can't markup stream cache it?
Markup.findComponentIndex(path, id) {
  Integer pos = cache.get(path+":"+id) ;
  if (pos != null)
    return pos;
  else {
  ...
  }
}

On 2/11/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> > > fully agree  IMO This is all very much experimental only. It is the
> > > first (draft) version of these features and they'll certainly improve.
> > Hope so. Perhaps the component should remember the position in markup
> > stream? Perhaps during full render the position could be set on all
> > components?
>
>
> that was what we did before but back then we didn't have that finding of the
> position
> Maybe now this part:
> int index = markupStream.findComponentIndex(relativePath, getId());
>         if (index == -1)
>         {
>             throw new WicketRuntimeException("Unable to determine markup for
> component: "
>                     + this.toString());
>         }
>         markupStream.setCurrentIndex(index);
>
> can be cached? Would that index be always the same for a component (except
> for markup reload)
> Then maybe we coiuld cache the markupstream and the index?
>
> johan
>
>
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to