This will be turned on by default on 2.1:

https://issues.apache.org/struts/browse/WW-2077

check this for details:

http://dojo.jot.com/WidgetsFAQ

musachy

On 9/10/07, Marc Eckart <[EMAIL PROTECTED]> wrote:
> How can I initialize dojo with the dojo tags ids? Dojo is integrated in
> Struts2, how can I influence this without altering the package?
>
> Regards,
> Marc
>
> 2007/9/10, Adam Hardy <[EMAIL PROTECTED]>:
> >
> > I'm not familiar with that tag you are using, but there are general ways
> > of
> > enhancing dojo, including initialising dojo with the dojo tag ids instead
> > of
> > letting it scan for them, or compiling just the scripts that you need from
> > dojo
> > instead of taking the default build.
> >
> > I found last year that a page would be unacceptably slow if it had more
> > than 15
> > to 20 dojo tags, even after performance tuning. Things have probably
> > improved
> > since then, but probably not enough to provide for the usage you need.
> >
> > I ended up writing my own plain javascript to cut out the processing of
> > all the
> > generic code that dojo goes through when it initialises. Dojo does a great
> > job
> > of fitting in well in any browser and any page layout but it has made it
> > snail-like on page load.
> >
> > Regards
> > Adam
> >
> >
> >
> > Marc Eckart on 10/09/07 09:54, wrote:
> > > I have a table which contains a column with struts tags with ajax theme:
> > >
> > > <s:url id="showCustomerDetails" value="/showCustomerDetails.action" >
> > >         <s:param name="ipNbr" value="%{ipNbr}" />
> > > </s:url>
> > >  <td align="right" style="width:20px;">
> > >               <div class="info"><s:a theme="ajax"
> > > targets="customerdetailinfo" href="%{showCustomerDetails}"
> > > onclick="showCustomerDetailInfo();"><span>Kundendetailinfo</span></s:a>
> > >              </div>
> > > </td>
> > >
> > > If I have 100 entries in my table it needs about 6 secs to render the
> > table,
> > > without these tags I need about 1 sec or less.
> > >
> > > Is there a way to tune the performance apart from remove these tags? :-)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to