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

Re: [Wicket-user] RE: Problem with FormComponentFeedbackBorder and Component#isAncestor()? (was: "*" is not output)

2006-04-18 Thread Eelco Hillenius
I created http://sourceforge.net/tracker/index.php?func=detail&aid=1472451&group_id=119783&atid=684975 Thanks for spotting it. Eelco On 4/18/06, Sebastian Scheid <[EMAIL PROTECTED]> wrote: > > I use Wicket 1.2-rc1. > > I use FormComponentFeedbackBorder, but when input error is occured, "*" is >

Re: [Wicket-user] Re: Problem with panel in of another panel

2006-01-24 Thread Igor Vaynberg
and a special class/instance scopes? or the additional boolean?-IgorOn 1/24/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:i think scoping and multiple head tags are more flexible. is it harder to implement then the boolean solution? you can for example sayblahblah   panel specific stuffthat way mult

Re: [Wicket-user] Re: Problem with panel in of another panel

2006-01-24 Thread Igor Vaynberg
i think scoping and multiple head tags are more flexible. is it harder to implement then the boolean solution?you can for example sayblahblah   panel specific stuffthat way multiple panels can have dojo-requirements contributions and not collide even though they are different classes.-Igor On 1/24/

Re: [Wicket-user] Re: Problem with panel in of another panel

2006-01-24 Thread Juergen Donnerstag
I've implemented on my latop a version which applies the "scope" approach. I called it "skipDuplicates" though which is a boolean. It gets evaluated before the headers body gets rendered. The advantage is that we save some performance compared to an approach which first renders the header part and

Re: [Wicket-user] Re: Problem with panel in of another panel

2006-01-24 Thread Igor Vaynberg
or support multipe . originally i was thinking of setting this key in java somewhere which would make it much more flexible. but if only class/instance is required then ading an attr to wicket:head is probably easier. -Igor On 1/24/06, Jim McLaughlin <[EMAIL PROTECTED]> wrote: Maybe the component

Re: [Wicket-user] Re: Problem with panel in of another panel

2006-01-24 Thread Igor Vaynberg
can we make it so there is some sort of a string key we provide for each contribution. it can default to the component.class.getName() which is the default currently right?-Igor On 1/24/06, Jim McLaughlin <[EMAIL PROTECTED]> wrote: Juergen Donnerstag wrote:> Are you saying your Panel inside is the

Re: [Wicket-user] RE: Problem with markup inheritance ()

2005-08-27 Thread Ingram Chen
So, is there any plan to provide such feature ? or just give some hints, so I can try it by myself ;-) On 8/26/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: Yes, there seems to be a problem with components inside . -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia

Re: [Wicket-user] RE: Problem with markup inheritance ()

2005-08-26 Thread Juergen Donnerstag
Yes, there seems to be a problem with components inside . Juergen On 8/26/05, pepone pepone <[EMAIL PROTECTED]> wrote: > I trying what Stefan lindner says wicth wicket.1.1-b3 but is not > working for me It´s only render childs head > > any ideas? thanks > > On 8/25/05, Stefan Lindner <[EMAIL P

Re: [Wicket-user] RE: Problem with markup inheritance ()

2005-08-25 Thread pepone pepone
I trying what Stefan lindner says wicth wicket.1.1-b3 but is not working for me It´s only render childs head any ideas? thanks On 8/25/05, Stefan Lindner <[EMAIL PROTECTED]> wrote: > The HEAD parts of your HTML files can be inherited (using Wicket > 1.1beta2 and above) by writing > > The parent

Re: [Wicket-user] Re: Problem

2005-08-10 Thread Johan Compagner
reference does now. Does this make sense or do I just now know enough about resource references in wicket? -Igor -----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-use

Re: [Wicket-user] Re: Problem

2005-08-10 Thread Jonathan Locke
-----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcereference to youre application? Then

Re: [Wicket-user] Re: Problem

2005-08-10 Thread Johan Compagner
or do I just now know enough about resource references in wicket? -Igor -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket

Re: [Wicket-user] Re: Problem

2005-08-10 Thread Jonathan Locke
? -Igor -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcereference to youre appl

Re: [Wicket-user] Re: Problem

2005-08-10 Thread Johan Compagner
mage service that given an image name from within a package will write it to the response, kind of like a resource reference does now. Does this make sense or do I just now know enough about resource references in wicket? -Igor -Original Message----- From: [EMAIL PROTEC

Re: [Wicket-user] Re: Problem

2005-08-09 Thread Jonathan Locke
Does this make sense or do I just now know enough about resource references in wicket? -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.n

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Jonathan Locke
now. Does this make sense or do I just now know enough about resource references in wicket? -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourcef

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Johan Compagner
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcereference to youre application? Then that resourc

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Jonathan Locke
>>> > >>>>>> webRequestCycle.add("photos", new CustomResource() { }) > >>>>>> > >>>>>> and then URLs like: > >>>>>> > >>>>>> http:///app/customResources/photos/... > >>&

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Johan Compagner
eferences in wicket? -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcerefe

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Jonathan Locke
one thing that makes me think adding parameterization to a subclass is wrong is that every Resource should be parameterizable. and that should really have nothing to do with where the resource is streamed from. one can even imagine a resource where the resourcestream implementation returned

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Jonathan Locke
uh, i don't know. maybe. the thing is, we've already got all these cool ResourceStream classes like StringResourceStream, FileResourceStream and UrlResourceStream. maybe it's better to just add the protected method that gives you the request parameters? I could see us adding DatabaseResour

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Jonathan Locke
e- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcereference to youre application? Then that resourcereference will becalled

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Johan Compagner
h. very sneaky! it's my middle name ;) i like it. but maybe we can provide a little helper subclass so people don't have to do this to get resource parameters: Map params = RequestCycle.get().getRequest().getParameterMap(); that takes a bit more knowledge of wicket than most people p

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Jonathan Locke
inal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcereference to youre application? Then that resour

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Jonathan Locke
Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcereference to youre applicatio

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Johan Compagner
from within a package will write it to the response, kind of like a resource reference does now. Does this make sense or do I just now know enough about resource references in wicket? -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan

Re: [Wicket-user] Re: Problem

2005-08-06 Thread Johan Compagner
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcereference to youre application? Th

Re: [Wicket-user] Re: Problem

2005-08-05 Thread Jonathan Locke
ind of like a resource reference does now. Does this make sense or do I just now know enough about resource references in wicket? -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wick

Re: [Wicket-user] Re: Problem

2005-08-05 Thread Jonathan Locke
Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem but isn't this adding a esourcereference to youre application? Then that resourcereference will becalled under the url: /wicket-examples/images/resources/home/ima

Re: [Wicket-user] Re: Problem

2005-08-05 Thread Johan Compagner
ake sense or do I just now know enough about resource references in wicket? -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket

Re: [Wicket-user] Re: Problem

2005-08-05 Thread Jonathan Locke
erence does now. Does this make sense or do I just now know enough about resource references in wicket? -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, August 05, 2005 2:14 PM To: wicket-user@lists.sourceforg

RE: [Wicket-user] Re: Problem

2005-08-05 Thread Igor Vaynberg
ow enough about resource references in wicket? -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Johan Compagner > Sent: Friday, August 05, 2005 2:14 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re:

Re: [Wicket-user] Re: Problem

2005-08-05 Thread Johan Compagner
lip A. Chapman Sent: Friday, August 05, 2005 1:03 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Re: Problem Gili wrote: Jon, I think you need to give more information about your actual requirements. As I already mentioned, I have a simple servlet which serv

RE: [Wicket-user] Re: Problem

2005-08-05 Thread Igor Vaynberg
ECTED] On Behalf Of > Philip A. Chapman > Sent: Friday, August 05, 2005 1:03 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Re: Problem > > Gili wrote: > > > > Jon, I think you need to give more information about > your actual > &

Re: [Wicket-user] Re: Problem

2005-08-05 Thread Philip A. Chapman
Gili wrote: > > Jon, I think you need to give more information about your actual > requirements. As I already mentioned, I have a simple servlet which > serves up images by ID and the ID is passed in via a HTTP POST (although > originally I had it going via a HTTP GET and you could do this too

Re: [Wicket-user] Re: Problem with ResourceLink in CVS HEAD?

2005-04-23 Thread Johan Compagner
if you send a session id with the url or the header Then the image can also be stale (not cacheable) Because it is session bound So we should try to avoid a session state being attached on a image link (a static link ofcourse which doesn't change) johan Juergen Donnerstag wrote: I don't ag

Re: [Wicket-user] Re: Problem with ResourceLink in CVS HEAD?

2005-04-23 Thread Gili
I filed a bug that basically states that we should be applying the same behavior consistently across static Images and ResourceLinks to static images. Gili Juergen Donnerstag wrote: I don't agree. There are two ways for a jsessionid to be provided from a browser to a servelt container. a) url p

Re: [Wicket-user] Re: Problem with ResourceLink in CVS HEAD?

2005-04-23 Thread Juergen Donnerstag
I don't agree. There are two ways for a jsessionid to be provided from a browser to a servelt container. a) url parameter b) http header. I'm not really an expert on this but as far as I know it is a matter of servlet container config and the reason there are two options is because of SSL. The url

Re: [Wicket-user] Re: Problem with ResourceLink in CVS HEAD?

2005-04-22 Thread Johan Compagner
that is strange yes It smells like that jsessionid should be reversed... the href should have a jsession id and a img src not. (at least a static resource not a completely dynamic one is session bound) Gili wrote: Another thing I noticed. The URL generated for tags contains a "jsessionid"