thx,
jim
On 7/11/06, Matej Knopp
<[EMAIL PROTECTED]> wrote:
As far as I know Frank Bille Jensen is trying to backport it, so we will
see if he succeeds.
The plan is to backport it to 1.2, I'm just not sure it stable enough to
be backported - it still needs some testing.
-Matej
James McLaughlin wrote:
> I have a use for this right now in 1.2. Is someone already backporting
> this or should I take a stab at it and submit a patch.
>
> Thanks,
>
> jim
>
> On 7/9/06, * Matej Knopp* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi,
>
> I've just committed what I consider to be an "usable AJAX header
> contribution code".
>
> It means that it can contribute certain elements from AJAX response to
> header with proper handling of already contributed elements.
>
> Supported elements are:
> - script references <script src=""
> - inline scripts <script>...</script>
> - stylesheet references <link href="">> - inline stylesheets <style>...</style>
>
> Actual contribution is done using _javascript_ by creating relevant DOM
> representation of elements.
>
> Tested with FF1.5, IE6, Opera 8.5 and 9, Konqueror.
>
> The only thing user has to take care of to prevent duplicated
> contribution of element, is to make sure that every *inline* element
> that has been contributed using *renderHead()* has an unique id.
> (see AbstractDefaultAjaxBehavior#onRenderHeadInitContribution for
> example).
>
> I tried to touch as little API as possible and I think that it should be
> possible to backport this to 1.2 without any API break.
>
> ------------------------------------------------------------------------
> Detecting whether a contribution has already been done:
>
> The detection is done using _javascript_, but there are also some checks
> on the server side (but they are not perfect, they are just supposed to
> reduce bandwidth).
>
> For script and link references, existing header elements are checked
> for
> presence of element of same type with same src/href attribute.
>
> For inline elements, document is checked for presence of element with
> same id.
>
> To make sure, that every inline element has proper ID,
> HeadForceTagIdHandler markup filter has been added. Purpose of this
> filter is to generate unique id for every inline script and style
> element between <wicket:head>..</wicket:head> tags.
>
> -----------------------------------------------------------------------
>
> I'd appreciate if anyone could test this on some "real" components, to
> see if there are any issues to be taken care of.
>
> -Matej
>
>
>
> Btw. There is an issue with DatePicker from wicket-contrib. Init
> code of
> datepickers is called on every render of datepicker, which causes
> problems with ajax update (some weird recursion problem).
> Next issue is that konqueror tries to call initialization code, before
> the actual referenced _javascript_ is loaded.
> I guess both of this issues could be solved by deferring datepicker
> initialization.
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
> _______________________________________________
> Wicket-develop mailing list
> Wicket-develop@lists.sourceforge.net
> <mailto: Wicket-develop@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>
>
>
> ------------------------------------------------------------------------
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-develop mailing list
> Wicket-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop