Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-16 Thread Igor Vaynberg
but you dont have that kind of visibility. for example if you have a tabbed panel, how do you know what all the different component tab panels will use?-IgorOn 5/12/06, Bruno Borges <[EMAIL PROTECTED]> wrote: I just had an idea: how about require the programmer to inform the current page instance

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-15 Thread Ayodeji Aladejebi
wat is the possibility of inline scripting like...   On 5/12/06, Bruno Borges <[EMAIL PROTECTED]> wrote: I just had an idea: how about require the programmer to inform the current page instance to "register" all Ajax components he pretends to use, _before_ using them? This way the Ajax component c

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-15 Thread Ayodeji Aladejebi
i have tested with AttributeModifier to alter the behavior of a particular tag using Ajax via this inline stuff but for small length scripts anyway. I did it in my own small way. Created a Model, a Bean with a property which will hold the _javascript_ string and bound using PropertyModel to bind to

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-12 Thread Bruno Borges
I just had an idea: how about require the programmer to inform the current page instance to "register" all Ajax components he pretends to use, _before_ using them? This way the Ajax component could return to the page everything it's going to need and then the page can load .js, .css, whatever in th

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-09 Thread Igor Vaynberg
well, my concern is to make this automatic.for example:when a component contributes func whatever() { } through that contribution needs to magically merge. or when a component contributes a { color:red; } that also has to magically get mergedbut from what i have seen there is no way to do that, yo

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-09 Thread Rüdiger Schulz
Hello Igor not sure how iframes behave here, but it is possible to call javascript functions in one frame, which is defined in another frame, which then again can do anything with the calling frame. Done this a couple of years ago (when frames where still en vogue ;), but as it turned out, nothing

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Bruno Borges
Looks like there's no problem adding styles. http://www.dynamicdrive.com/forums/archive/index.php/t-3459.htmlThis URL is not quite what it should be for, but demonstrates how CSS's can be changed without reloading a page. And I'm sure the same way new .js files can be added to a Head section dynami

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Igor Vaynberg
basically what we are talking about is somehow capturing the componnet's header contribution and writing it out.so take datepicker, datepicker.html has a section. what we need to do is to somehow get that portion as a charsequence so that the ajax request target can dump it as part of component's

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Igor Vaynberg
i dont think this is cool at all because it requires components to provide an alternate output unless we parse the

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Johan Compagner
cool..var script = document. createElement('script'); script.type = 'text/_javascript_' ; script.src = 'snip.js'; document.getElementsByTagName('head' )[0].appendChild(script);  if that works.. that should be doable.johanOn 5/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:thanks bruno! i will try t

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Juergen Donnerstag
Not sure I understand what needs to be done. I guess I'll wait until tomorrow until the "that is how the output must look like" question is solved. Juergen On 5/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: i guess in this case we need to capture the head output of the component during ajax re

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Igor Vaynberg
thanks bruno! i will try to take a look tonight and see if we can adapt these ideas.-IgorOn 5/4/06, Bruno Borges < [EMAIL PROTECTED]> wrote:I found some links that might be of great interest! dynamic load _javascript_ from _javascript_ http://www.activewidgets.com/_javascript_.forum.6114.15/dynami

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Bruno Borges
I found some links that might be of great interest!dynamic load _javascript_ from _javascript_ http://www.activewidgets.com/_javascript_.forum.6114.15/dynamic-load-_javascript_-from-_javascript_.htmlDojo Package System http://dojo.jot.com/WikiHome/Documents/DojoPackageSystem_javascript_ Includeshtt

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Timo Stamm
Ooops. I was wrong. I just checked some stubs with the w3 validator, and they pass without a hitch. Both XHTML 1.0 strict and transitional. XHTML 1.1 and 2.0 seem to be fine as well. Sorry. Timo Igor Vaynberg schrieb: in that case i dont see how you can ever make this work in xhtml unless

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Igor Vaynberg
i guess there can be a hidden iframe, but then the loaded js will not be part of the page because frames are isolated, no?-IgorOn 5/4/06, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:> in that case i dont see how you can ever make this work in xhtml > unless you refresh the entire page.A twisted "solu

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Rüdiger Schulz
> in that case i dont see how you can ever make this work in xhtml > unless you refresh the entire page. A twisted "solution" using an invisible frame loading only JS comes to mind ;-) - Rüdiger --- Using Tomcat but need to do more? Need to s

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Igor Vaynberg
i guess in this case we need to capture the head output of the component during ajax render and dump it into the markup before the component.Juergen are you reading with us? do you think this is feasible?-Igor On 5/4/06, Rüdiger Schulz <[EMAIL PROTECTED]> wrote: > right, and that is the main proble

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Igor Vaynberg
in that case i dont see how you can ever make this work in xhtml unless you refresh the entire page.-IgorOn 5/4/06, Timo Stamm < [EMAIL PROTECTED]> wrote:Igor Vaynberg schrieb:> right, and that is the main problem to solve. is a

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Rüdiger Schulz
> right, and that is the main problem to solve. is a

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Timo Stamm
Igor Vaynberg schrieb: right, and that is the main problem to solve. is a

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Igor Vaynberg
right, and that is the main problem to solve. is a

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-04 Thread Bruno Borges
Igor, I'm not sure if browsers support the "update head" thing (probably not), but one "first step" solution is to notify the component that it is been added through Ajax, so the component must generate a "load" function and return that function name to the Ajax call, so the Ajax JS can call that f

Re: [Wicket-user] Re: Problem loading DatePicker inside Panel through AjaxLink

2006-05-03 Thread Igor Vaynberg
yes, there is a problem indeed with components that need head contribution and are added via ajax. the problem is that when the component is added via ajax its header contribution is ingored because the head section is not updated. so in case of the datepicker the js it needs is never added to the