[Wicket-user] working with plugins

2006-07-17 Thread Ittay Dror
Hi, We're using plugins similar to Eclipse's to decouple functionality. Each plugin's classes run in their own class loader. We've encountered a problem in onNewBrowserWindow(). it uses Objects.cloneObject(), which uses the default ObjectInputStream, that uses the class loader associated with

[Wicket-user] Modal Dialog

2006-07-17 Thread Арву Оетук
Hi all. Is component like Modal Dialog exist in wicket framework? Dmitry. - 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

[Wicket-user] Radio, AJAX and Model: What ist he correct type for a radio button property model

2006-07-17 Thread Stefan Lindner
Hi all, What ist he correct type for a radio button property model? I want to use RadioButtons with AJAX. I have found a hint in the mailing list archive that I have to use RadioGroup and add an ajax event to each Radio Object in the radio group. This works. But now: when I want one of the radio

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Martijn Dashorst
As a side note, you still can pass in the full object, even in 1.2, that is what we are doing in our application constantly. You do have to be careful to always use the shared model, otherwise you'll get LazyInitialization exceptions... Sharing the model between components on one page is a good

Re: [Wicket-user] Modal Dialog

2006-07-17 Thread Eelco Hillenius
Not at this time. Shouldn't be too hard to do, but we're still waiting for someone to contribute it :) Eelco On 7/17/06, Арву Оетук [EMAIL PROTECTED] wrote: Hi all. Is component like Modal Dialog exist in wicket framework? Dmitry.

Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Ayodeji Aladejebi
Well,should i say i have specifics yet, okay yesterday i was trying to make a small customizable menubar widget and i needed a way to ensure that an time i want to reuse it or even give it out for others to use, they can simple change certain general schemes in the CSS like border color,

Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Eelco Hillenius
Did you take a look at what's in wicket.extensions.util.resource? I think that package has exactly what you are looking for, e.g. PackagedTextTemplate. Eelco On 7/17/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Well, should i say i have specifics yet, okay yesterday i was trying to make a

Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Ayodeji Aladejebi
really?...shit!!..thanksOn 7/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Did you take a look at what's in wicket.extensions.util.resource? Ithink that package has exactly what you are looking for, e.g.PackagedTextTemplate.EelcoOn 7/17/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Well,

Re: [Wicket-user] More CSS support in wicket?

2006-07-17 Thread Eelco Hillenius
That package is just a few months old :) If you come up with some useful contributions specific for CSS, I'd be happy to incorporate them. Eelco On 7/17/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: really?...shit!!..thanks On 7/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Did you

[Wicket-user] WebMarkupContainer

2006-07-17 Thread gangadhar
Hi All I am calling WebMarkupContainer on Ajax call . but WebMarkupContainer is not clear for Ajax call. plz anybody know about solution send me a mail. Thanks in Advance Gangadhar A Vibhute - Using Tomcat but need to do

Re: [Wicket-user] Playing with models:) / wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Eelco Hillenius
When is setObject supposed to get called, Cause I only see it get called during construct? Whenever a (form)component has to update it's model contents. Or if you call setObject explicitly of course :() Typically, a component update is done by Form, which visits all it's children and calls

Re: [Wicket-user] WebMarkupContainer

2006-07-17 Thread Eelco Hillenius
I'm not clear on what your question is. Keep in mind that you have to call setOutputMarkupId(true) on any component you want to target (render) with ajax requests. Eelco On 7/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All I am calling WebMarkupContainer on Ajax call . but

[Wicket-user] WebMarkupContainer

2006-07-17 Thread gangadhar
Hi All I have WebMarkupContainer code in this WebMarkupContainer there is list View I am tragting this WebMarkupContainer on Dropdown ajax call but there is previous output present. I want solution for clearing this previous output Thanks in Advance Gangadhar A Vibhute

[Wicket-user] bookmarkable ajax link

2006-07-17 Thread Nili Adoram
Hi all, I have an AjaxLink that opens a modal dialog (which is implemented as an iframe that displays the URL of that link). The link is embedded inside a ListView that refreshes itself every 30 seconds via ajax. The URL of that link is generated of course by Ajax and include session mapping

Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Nino Wael
Strange then, it seems as the extension palette does not update on a submit? Does it somehow detach from its model? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 17. juli 2006 12:14 To: wicket-user@lists.sourceforge.net Subject:

Re: [Wicket-user] wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior= not working?

2006-07-17 Thread Nino Wael
Yup that fixed it, thanks... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 14. juli 2006 15:38 To: wicket-user@lists.sourceforge.net Subject: Re:

[Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
I'm using wicket 1.2 final and trying to use the form's 'onsubmit' handler to prompt the user to confirm a message or not. I've tried to solve this by adding the onsubmit to the form with a SimpleAttributeModifier but it doesn't work, the onsubmit attribute is simply not rendered ?! If this

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Matej Knopp
I think you should add Button(s) to the form and add onclick attribute modifier on them (or right on to the markup input type=submit wicket:id=submit onlick=return confirm('...');/ ) -Matej Dorel Vaida wrote: I'm using wicket 1.2 final and trying to use the form's 'onsubmit' handler to

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Eelco Hillenius
Yeah do it like that. I wouldn't know why attaching attribute modifiers to your form didn't work though... Eelco On 7/17/06, Matej Knopp [EMAIL PROTECTED] wrote: I think you should add Button(s) to the form and add onclick attribute modifier on them (or right on to the markup input

Re: [Wicket-user] WebMarkupContainer

2006-07-17 Thread Eelco Hillenius
Maybe you could send some code of what you are trying to do... Eelco On 7/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All I have WebMarkupContainer code in this WebMarkupContainer there is list View I am tragting this WebMarkupContainer on Dropdown ajax call but there is previous

Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Eelco Hillenius
I think Matej and Igor have been working on that. Maybe they can comment on this. Eelco On 7/17/06, Nili Adoram [EMAIL PROTECTED] wrote: Hi all, I have an AjaxLink that opens a modal dialog (which is implemented as an iframe that displays the URL of that link). The link is embedded inside a

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
Eelco Hillenius wrote: Yeah do it like that. The form is submitted no matter what I return in submit button's onclick. Eventually the solution would be to add a simple button and NOT a submit button and force submiting the form through javascript when pressing the button. (Which I do not

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Matej Knopp
Dorel Vaida wrote: Eelco Hillenius wrote: Yeah do it like that. The form is submitted no matter what I return in submit button's onclick. Eventually the solution would be to add a simple button and NOT Can you check the generated output, if the javascript is there? I see no reason why

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Dorel Vaida
It works, sorry, I was not paying enough attention. In the first phase I wasn't looking to the right form, the the second phase I forgot to add the 'return' in the 'onsubmit' form handler Correct is *add(new SimpleAttributeModifier(onsubmit, return confirmSubmission()));* and it works with

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Eelco Hillenius
It works, sorry, I was not paying enough attention. In the first phase I wasn't looking to the right form, the the second phase I forgot to add the 'return' in the 'onsubmit' form handler Correct is *add(new SimpleAttributeModifier(onsubmit, return confirmSubmission()));* and it works with

Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Matej Knopp
What URL do you exactly display in the iframe? I think the behavior is caused by PageMap in 1.2 which behaves as stack. So to get over this you have to put the page that is shown in the iframe to separate pagemap. You can change the pagemap in which wicket is created by either specifying it in

Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Nili Adoram
1. The generated URL is: javascript:var wcall=wicketAjaxGet('/page;jsessionid=66D2B1310B47081B62EE203A648CDAE8?wicket:interface=:0:statusForm:data:nodeGroups:0:deprovision::IBehaviorListenerwicket:behaviorId=0', function() { }, function() { }); 2. Can you please explain what is th purpose of

[Wicket-user] Model and setObject?

2006-07-17 Thread Nino Wael
Hi Starting this over again, trying to explain more clearly what im doing here. Ive created a AbstractModel that pretty much works as property model, only difference are that the setObject sets the object and does a little bit more. My model is attached to the

Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Matej Knopp
This is generated url of the ajax link. you said you open a page in an iframe, so I asked, what URL do you display in the iframe (iframe src=??/ How do you create the iframe? -Matej Nili Adoram wrote: 1. The generated URL is: javascript:var

Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Ittay Dror
Matej Knopp wrote: This is generated url of the ajax link. you said you open a page in an iframe, so I asked, what URL do you display in the iframe (iframe src=??/ How do you create the iframe? it is statically in the page, but hidden. the ajax link calls a javascript that sets the

Re: [Wicket-user] Model and setObject?

2006-07-17 Thread Nino Wael
Hmm, when doing further debug. It seems as the backing object are updated but not via the models setObject command. Is it supposed to work like that? Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 17. juli 2006 15:02 To:

[Wicket-user] PrependContextPathHandler for components?

2006-07-17 Thread Jan Willem Janssen
Hi All, Just as an exercise, I created a custom image-component that rewrites the source attribute to link to my own image-handling servlet. By default, src-attributes in static HTML are corrected by PrependContextPathHandler to include the right servlet context. However, this behaviour is

Re: [Wicket-user] Radio, AJAX and Model: What ist he correct type for a radio button property model

2006-07-17 Thread Igor Vaynberg
the model of each radio returns the object that you want put into the model of the radiogroup so the type of both models is the samenew RadioGroup(foo, new PropertyModelPerson(this, person)); new Radio(bar, new Model(new Person(...)));so if you want the value to be preselected you have to put the

Re: [Wicket-user] Playing with models:) /wicket.extensions.markup.html.form.palette.Palette;

2006-07-17 Thread Igor Vaynberg
components whose model is backed by a collection do not always call setobject() because they work on the collection directly so there is no need to callCollection c=model.getObject();c.clear();//refill c model.setObject(c); == NOOPand also in wicket there is a guardcomponent.setObject(c) { if

Re: [Wicket-user] form's onsubmit handler

2006-07-17 Thread Igor Vaynberg
btw, when submitting a form through _javascript_ form's onsubmit is not called so you have to call it manually from the button anyways.-IgorOn 7/17/06, Dorel Vaida [EMAIL PROTECTED] wrote: It works, sorry, I was not paying enough attention. In the first phase Iwasn't looking to the right form,

[Wicket-user] Stream Excel to the client

2006-07-17 Thread Dorel Vaida
Is there an easy way, (or an example :-)), of how to stream an Excel (application/vnd.ms-excel) to the client ? With the beta4 version it was working to write the bytes to wicket response's output stream and set the content disposition etc on the http servet response, but that seem not to work

Re: [Wicket-user] working with plugins

2006-07-17 Thread Eelco Hillenius
I'm afraid I don't get the request. Could you please create a feature request with a patch, clearly explaining what is wrong today and what your patch fixes? Thanks, Eelco On 7/17/06, Ittay Dror [EMAIL PROTECTED] wrote: Hi, We're using plugins similar to Eclipse's to decouple functionality.

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Vincent Jenks
I've been successful w/ exactly what Iman is concerned with - keeping objects alive between requests just isn't necessary. With detachable-models, you can request your POJOs - and they effectively become detached (outside of Hibernate session context). You can pass them between pages and persist

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Igor Vaynberg
while merge is good for saving the bigger concern is stale data. you pass your pojo to the component, store it as a property, and some request later you read its property - which at this point will be stale because the pojo is detached from the session. -IgorOn 7/17/06, Vincent Jenks [EMAIL

[Wicket-user] ajax the wiki

2006-07-17 Thread Scott Swank
I want to take my first dive into Ajax with Wicket. Can anyone point me to a useful page on the wiki... or elsewhere. Alternately, I've read through the example code and a simple pointer toward one example or another as best practices would be swell. Many thanks, Scott -- Scott Swank reformed

Re: [Wicket-user] working with plugins

2006-07-17 Thread Ittay Dror
done. the request id is 1524019. i've added more description of the problem and the solution. i think this may happen also with osgi integration, or any other case where an object is used that is found through a classloader different than the one wicket / tomcat is in. Eelco Hillenius wrote:

Re: [Wicket-user] working with plugins

2006-07-17 Thread Igor Vaynberg
we do have IClassResolver woudnt that help? it helped with osgi-IgorOn 7/17/06, Ittay Dror [EMAIL PROTECTED] wrote:done. the request id is 1524019.i've added more description of the problem and the solution. i think this may happen also with osgi integration, or any other case where an object is

Re: [Wicket-user] working with plugins

2006-07-17 Thread Ittay Dror
if the deserialization uses it, then maybe (i'm not sure how it is used). but in our case, every Page subclass may be in its own class loader, separate from others, so using a singleton IClassResolver instance will not help (unless it delegates to all class loaders, which may cause havoc). i

Re: [Wicket-user] ajax the wiki

2006-07-17 Thread Frank Bille Jensen
Try checking out the AJAX examples: http://www.wicket-library.com/wicket-examples/ajax I think they are really useful. Frank On Mon, 2006-07-17 at 11:12 -0700, Scott Swank wrote: I want to take my first dive into Ajax with Wicket. Can anyone point me to a useful page on the wiki... or

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-17 Thread Julian Klappenbach
What's the risk of "stale" data? Primary concern would be that someone updated the record between the time that you read the data, and when you try to perform your own update. You can use the Hibernate / EJB3 strategy of optimistic locking with @Version (IIRC) to prevent stale data from

Re: [Wicket-user] Radio, AJAX and Model: What ist he correct type for a radio button property model

2006-07-17 Thread Stefan Lindner
This works very well. Thank you! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and

[Wicket-user] Wicket in large scale production scenarios?

2006-07-17 Thread Peter Neubauer
Hi there, we are planning to propose Wicket for a large scale migration project, and beside my previous question about the Swing compatibility (which I think after your nice hints is solveable, thanks!) I have some more questions - basically the usual sales and standard stuff: - is there any

[Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker
I frequently have the need to filter the elements in a ListView.. of course I can filter elements before passing them to ListView by creating a new List, but it seems a lot cleaner to have an accept() method, just like in IFeedbackMessageFilter or whatever. ie: add( new ListView( list,

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Juergen Donnerstag
Just out of my head. Paging which is based on windows size and list size would need to take these into consideration. Not sure this change is trivial. Juergen On 7/18/06, Aaron Hiniker [EMAIL PROTECTED] wrote: I frequently have the need to filter the elements in a ListView.. of course I can

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
the filtering should be performed in the model - it is the perfect place for it.-IgorOn 7/17/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:Just out of my head. Paging which is based on windows size and list size would need to take these into consideration. Not sure this changeis

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker
Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy. Aaron On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote: the filtering should be performed in the model - it is the perfect place for it. -Igor On

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.-IgorOn 7/17/06, Aaron Hiniker [EMAIL PROTECTED] wrote: Yeah, there's no problem implementing this in the model, other than

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker
Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance hits than a single List copy (due to the Linked List nature of the filtering). The current ListView implementation only works on lists.. rightfully so because you can extract the active

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
another key reason for list is that the index of the list is used as a primary key to identify the right item on callbacks.-IgorOn 7/17/06, Aaron Hiniker [EMAIL PROTECTED] wrote: Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance

Re: [Wicket-user] Stream Excel to the client

2006-07-17 Thread Dorel Vaida
Igor, you rock ! :-D . Igor Vaynberg wrote: sure it does :) private class DownloadEulaPdfLink extends Link { public DownloadEulaPdfLink(String id) { super(id); } @Override public void onClick() {