Re: How to NOT cause a hot redeploy with Jetty when HTML files change

2007-10-05 Thread Martijn Dashorst
I think most developers have given up on using the eclipse jetty plugin, and use an embedded container instead. That one doesn't hot-deploy (or at least not in our configurations). To get changes in classes we run the application in the eclipse debugger. See [1] for a starter class. If you want

Re: How to NOT cause a hot redeploy with Jetty when HTML files change

2007-10-05 Thread Eelco Hillenius
I think most developers have given up on using the eclipse jetty plugin, and use an embedded container instead. Jason uses the Maven Eclipse plugin, which is a completely different bird, and which actually is used by quite a few developers from what I hear. Eelco

Re: Adding to response header (filename)?

2007-10-05 Thread Eelco Hillenius
What do you use for the export? You probably should use a resource. For instance: public class DiscountsExport extends WebResource { public static class Initializer implements IInitializer { public void init(Application application) { SharedResources res =

Re: Adding to response header (filename)?

2007-10-05 Thread Eelco Hillenius
On 10/5/07, Eelco Hillenius [EMAIL PROTECTED] wrote: What do you use for the export? You probably should use a resource. For instance: public class DiscountsExport extends WebResource { public static class Initializer implements IInitializer { public void init(Application

RE: Wicket Meetup Amsterdam: a proposal

2007-10-05 Thread Maeder Thomas
Just and idea I used to work on Eclipse, and one cool thing (in my opinion) we did at conferences were the so called plugin clinics. Basically, there would be a couple of commiters on hand in some conference room for about 2 hours in the evening and you could bring your sick plugin and we

hot redeploy of java classes

2007-10-05 Thread Artur W.
Hi! I know that Wicket in development mode does hot redeploy of html templates. Is it possible to configure it to does a hot redeploy of java classes too? It would boost the development time!! Thanks, Artur -- View this message in context:

Re: Wicket Meetup Amsterdam: a proposal

2007-10-05 Thread Maurice Marrink
I Like that idea, especially for all those wicket stuff projects out there. If anyone has any questions / problems about / with wasp or swarm they can not / will not ask on the mailing list, they are free to ask me on the conference and I'll do my best assist them. If they bring there projects

Re: hot redeploy of java classes

2007-10-05 Thread Maurice Marrink
Hot reloading of classes is already supported in the jvm. it just requires a debug connection if i understand it all correctly. for instance we use the sysdeo tomcat plugin in eclipse which starts tomcat in debug mode every time we change some code tomcat automatically uses the new class. Well up

Re: hot redeploy of java classes

2007-10-05 Thread Gwyn Evans
On Friday, October 5, 2007, 9:18:22 AM, Artur [EMAIL PROTECTED] wrote: I know that Wicket in development mode does hot redeploy of html templates. Is it possible to configure it to does a hot redeploy of java classes too? It would boost the development time!! As far as I'm aware, that's a

RE: Wicket Meetup Amsterdam: a proposal

2007-10-05 Thread Arje Cahn
Excellent idea! I've added it to the Wiki page...: http://cwiki.apache.org/WICKET/community-meetups.html Would be nice if we could add more ideas to the list. Personally, I would be very interested in discussing Wicket plugin architectures, including (but definitely not limited to) OSGi. -

Re: hot redeploy of java classes

2007-10-05 Thread Uwe Schäfer
Gwyn Evans schrieb: On Friday, October 5, 2007, 9:18:22 AM, Artur [EMAIL PROTECTED] wrote: I know that Wicket in development mode does hot redeploy of html templates. Is it possible to configure it to does a hot redeploy of java classes too? It would boost the development time!! works fine

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Kent Tong
Fabio Fioretti wrote: This is what I do, basically: 1) Select a choice from the ListChoice; 2) The form automatically fills with the data of the selected recommendation instance; 3) Modify the data in the form so that validation will fail; 4) Submit data -- validation fails; 5) Select

Re: How to NOT cause a hot redeploy with Jetty when HTML files change

2007-10-05 Thread Martijn Dashorst
Not recommended per se, but it works for me. However, it will not reload structural changes, you'll need to restart jetty when you add a property, method, or change the signature of a method, etc. The debugger can only modify the contents of methods, not add them (unfortunately). The reloading

Re: Page.detachModels() not working like it used to

2007-10-05 Thread Kent Tong
Dan Syrstad-2 wrote: Actually, Page.detach() is not callable from a JUnit test that uses WicketTester in 1.3.0beta3. It throws an exception: I used your code and the test passed. Here is my test page: html body test /body /html public class Test extends WebPage { public Test() {

Re: How to NOT cause a hot redeploy with Jetty when HTML files change

2007-10-05 Thread Jason Mihalick
Thanks Eelco. However, I am using the Maven Jetty plugin (http://www.mortbay.org/maven-plugin/index.html) for jetty usage under Maven. Perhaps that is what you meant. I am also using the Maven2 eclipse plugin (http://m2eclipse.codehaus.org/) for dependency management within eclipse, but that

Re: hot redeploy of java classes

2007-10-05 Thread Artur W.
Gwyn wrote: On Friday, October 5, 2007, 9:18:22 AM, Artur [EMAIL PROTECTED] wrote: I know that Wicket in development mode does hot redeploy of html templates. Is it possible to configure it to does a hot redeploy of java classes too? It would boost the development time!! AFAIK

Re: Wicket Meetup Amsterdam: a proposal

2007-10-05 Thread Martijn Dashorst
Perhaps make a difference between whole day, after lunch and after cup-a-soup? On 10/5/07, Arje Cahn [EMAIL PROTECTED] wrote: BTW; I just added the proposed dates to the Wiki page. Please check which dates have your preference in the big table! Also, please state whether you prefer an evening

Re: ModalWindow.close() results in ERROR: Exception evaluating javascript: TypeError: window.parent.setTimeout is not a function

2007-10-05 Thread skatz
More information. It works as expected in IE7. The problem occurs with Firefox 2.0.0.7 skatz wrote: I am trying to use the ModalWindow as a confirmation dialog and it works fine on one page but the same code on a different page produces the above error. Closing the ModalWindow with the

Re: Adding to response header (filename)?

2007-10-05 Thread Stanczak Group
Ya, I like that. I'll give all these a shot. Here's what I setup thus far, before reading these posts. But what you have is much simpler. Thanks. mount(new URIRequestTargetUrlCodingStrategy(/cvs) {

Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Larva
Hi !! I have this hierarchy: Panel Form DropDownChoice (A and B) I have these two DropDownChoices (A and B) and I am refreshing the choices in B through Ajax when the selection in A changes. I use this dorpdownchoices to define a filter for my dataview. That works fine, when I submit

Re: hot redeploy of java classes

2007-10-05 Thread Gwyn Evans
On Friday, October 5, 2007, 11:56:41 AM, Artur [EMAIL PROTECTED] wrote: Gwyn wrote: On Friday, October 5, 2007, 9:18:22 AM, Artur [EMAIL PROTECTED] wrote: I know that Wicket in development mode does hot redeploy of html templates. Is it possible to configure it to does a hot redeploy of

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Fabio Fioretti
On 10/5/07, Kent Tong [EMAIL PROTECTED] wrote: Hello, thanks for your reply. I suppose you're using wantOnSelectionChangedNotifications() to trigger the refresh? No, I'm not. The ListChoice uses the same AbstractModel on which the panel inside the form builds its CompoundPropertyModel (see

Re: hot redeploy of java classes

2007-10-05 Thread Gohan
It's also possible to hotswap classes using a java agent. And if you're using java6 it's even possible to start an agent without specifying anything at the command line (the trick is that you need to get the java process id). Mr Mean wrote: Hot reloading of classes is already supported in

Re: Adding to response header (filename)?

2007-10-05 Thread Stanczak Group
Instead of setRequestTarget(rsrt) I use this rsrt.respond(getRequestCycle());, is that correct? It does work, but I get this in the logs 08:53:03,277 ERROR WebResponse:190 - Unable to redirect to: ?wicket:interface=:2, HTTP Response has already been committed.. It works, but I wouldn't

AJAX and Form Fields

2007-10-05 Thread Michael Laccetti
Is there a way to retain contents of a form when the fields are repainted by AJAX (to hide/unhide new fields, etc/.)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AJAX and Form Fields

2007-10-05 Thread Sam Hough
I think it pretty much does this by default. It largely depends on what IModel you are using... I think the components will hold dirty values for you (doesn't pass validation) but then the model should store the state of the fields. Michael Laccetti-2 wrote: Is there a way to retain

Re: hot redeploy of java classes

2007-10-05 Thread Eelco Hillenius
Additionally, you can take a look at ReloadingWicketFilter that is shipped with the core project. Eelco On 10/5/07, Maurice Marrink [EMAIL PROTECTED] wrote: Hot reloading of classes is already supported in the jvm. it just requires a debug connection if i understand it all correctly. for

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Eelco Hillenius
*BUT*, when the user edits one of the recommendations making errors, tries to save it and form validation fails, the panel's CompoundPropertyModel seems to detach from the underlying AbstractModel and, if the user selects another choice on the ListChoice, the form is refreshed but it keeps

Re: How to NOT cause a hot redeploy with Jetty when HTML files change

2007-10-05 Thread Eelco Hillenius
On 10/5/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Not recommended per se, but it works for me. However, it will not reload structural changes, you'll need to restart jetty when you add a property, method, or change the signature of a method, etc. The debugger can only modify the contents

Re: Custom label for number and currency formatting?

2007-10-05 Thread Eelco Hillenius
Label dbl = new Label(dbllbl,+x){ Why pass in a string? Better is to do new Label(foo, new Model(x)); @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)

Re: Page.detachModels() not working like it used to

2007-10-05 Thread Kent Tong
Dan Syrstad-2 wrote: Your page code is almost exactly the same as mine. However, your HTML does not look correct - it has no tag with a wicket:id in it. So maybe your component never rendered. No, your mail client has stripped the code. Let me show you the code again: lt;htmlgt;

Re: Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Igor Vaynberg
you shouldnt call page.render() -igor On 10/5/07, Larva [EMAIL PROTECTED] wrote: Hi !! I have this hierarchy: Panel Form DropDownChoice (A and B) I have these two DropDownChoices (A and B) and I am refreshing the choices in B through Ajax when the selection in A changes. I use

Re: Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Larva
Thanks Igor for your quick answer. I call the page.render() method because in the submit I set properties in the page that use to filter my custom dataview. Then, if a don't invoke the page render the dataview isn't update. I tried invoking only the render method of my dataview but I got the same

Re: Best approach to localization

2007-10-05 Thread Eelco Hillenius
Thanks so much, Eelco :-). I can't find the new example, however... Where did you commit it? It doesn't show at the examples page (http://wicketstuff.org/wicket13/). I've also tried an URL similar to pub, but it isn't there. You'll have to get it from our subversion repo:

Re: Best approach to localization

2007-10-05 Thread Gwyn Evans
On Friday, October 5, 2007, 6:53:51 PM, Eelco [EMAIL PROTECTED] wrote: Thanks so much, Eelco :-). I can't find the new example, however... Where did you commit it? It doesn't show at the examples page (http://wicketstuff.org/wicket13/). I've also tried an URL similar to pub, but it isn't

Re: Best approach to localization

2007-10-05 Thread Eelco Hillenius
NB: http for non-committer/anonymous access! You can read from it as far as I know. Just not commit :-) But indeed, you probably want http instead. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Igor Vaynberg
instead of pushing the right values when things change you should make everything pull, that way updates happen on the fly... see the ajax dropdown example in wicket examples. -igor On 10/5/07, Larva [EMAIL PROTECTED] wrote: Thanks Igor for your quick answer. I call the page.render() method

Re: Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Larva
The first time the page is render the dropdownchoices works fine. I took the example from the wicket examples. The problem is after the submit. When I submit the form and the page is render again the data of the dataview is filtered ok but the dropdownchoices aren't working and there is no ajax

Re: Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Igor Vaynberg
provide a working quickstart and i will take a look -igor On 10/5/07, Larva [EMAIL PROTECTED] wrote: The first time the page is render the dropdownchoices works fine. I took the example from the wicket examples. The problem is after the submit. When I submit the form and the page is render

Feedback messages and setResponsePage

2007-10-05 Thread dkarnows
Greetings, I've noticed when I do: info(blah blah blah); setResponsePage(...); that whether or not the feedback displays seems to be dependent on which version of setResponsePage() I call. If I call this version: setResponsePage(Page page) (e.g. setResponsePage(new FooPage());) I see

Re: Feedback messages and setResponsePage

2007-10-05 Thread Igor Vaynberg
getsession().info/error/warn will work across pages -igor On 10/5/07, dkarnows [EMAIL PROTECTED] wrote: Greetings, I've noticed when I do: info(blah blah blah); setResponsePage(...); that whether or not the feedback displays seems to be dependent on which version of

Re[2]: RequestCycle?

2007-10-05 Thread Oleg Taranenko
HelloChuckDeal, databinder.net is down for a while... :(( C:\opensource\net\databinder\trunkping www.databinder.net Pinging databinder.net [66.108.186.60] with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 66.108.186.60:

Re: Re[2]: RequestCycle?

2007-10-05 Thread Martijn Dashorst
Works for me... Apparently Nathan (or his ISP) has shut down the pingd. The website is still alive! Martijn Result of the page in my browser: Toolkit overview Databinder is a Java programming toolkit for data–driven Web applications. It's based upon the Wicket Web component framework and

Re[4]: RequestCycle?

2007-10-05 Thread Oleg Taranenko
Yeah web server is alive... what about svn server? I can not update sources :( C:\opensource\net\databinder\trunksvn update svn: Can't connect to host 'databinder.net': A connection attempt failed because the connected party did not properly respond after a period of time, or established

Customizing RadioChoice

2007-10-05 Thread Clay Lehman
I am trying to customize RadioChoice so that it puts the options into a nice table. I found setPrefix and setSuffix, but I cant just do setSuffix(nbsp;) because I want to have a differenct prefix suffix based on the index (for example create a new row in a table for every 4th option).

Re: Customizing RadioChoice

2007-10-05 Thread Martijn Dashorst
I'd say go with RadioGroup, that is what it is intended for. The RadioChoice is intended for quick solutions, do you want more possibilities, use the Group. And you can just use a RepeatingView inside the Group to dynamically generate the Radio's Martijn On 10/5/07, Clay Lehman [EMAIL

Re: Customizing RadioChoice

2007-10-05 Thread Martijn Dashorst
/me goes back to writing about RadioGroup On 10/5/07, Martijn Dashorst [EMAIL PROTECTED] wrote: I'd say go with RadioGroup, that is what it is intended for. The RadioChoice is intended for quick solutions, do you want more possibilities, use the Group. And you can just use a RepeatingView

Re: Customizing RadioChoice

2007-10-05 Thread Martijn Dashorst
Hmm, Opening up the get*fix methods doesn't seem risky, but I'm not sure what we are going to do with the change recording. That is the only thing I can tell why the methods are final. Your usecase is interesting though. In this case opening the get*fix methods doesn't seem to open a can of

Re: Adding a Link for a Whole ListItem

2007-10-05 Thread Christopher Gardner
I'm continuing to experiment with making a click of a row do a page refresh. I coded up a class called LinkableListView that uses a LinkableListItem, which implements ILinkListener. When the LinkableListItem's onLinkedClick() is called, LinkableListItem delegates back to

Re: wicket:container beta3 and post snapshots

2007-10-05 Thread dukehoops
I'm seeing the same problem. My markup: wicket:container id=loginInfoContainer [userName] !--Hello, # [userName] /a-- /wicket:container Code: //in

Re: wicket:container beta3 and post snapshots

2007-10-05 Thread dukehoops
Duh, my markup was wrong! should have been wicket:container wicket:id dukehoops wrote: I'm seeing the same problem. My markup: wicket:container id=loginInfoContainer __span wicket:id=userNameLabel[userName]/__span

Re: wicket:container beta3 and post snapshots

2007-10-05 Thread Igor Vaynberg
submit a quickstart and make sure you are trying against trunk -igor On 10/5/07, dukehoops [EMAIL PROTECTED] wrote: Duh, my markup was wrong! should have been wicket:container wicket:id dukehoops wrote: I'm seeing the same problem. My markup: wicket:container

Re: wicket:container beta3 and post snapshots

2007-10-05 Thread dukehoops
once I fixed my markup typo everything worked fine - so nothing to fix here. -nikita igor.vaynberg wrote: submit a quickstart and make sure you are trying against trunk -igor On 10/5/07, dukehoops [EMAIL PROTECTED] wrote: Duh, my markup was wrong! should have been wicket:container

Re: Custom label for number and currency formatting?

2007-10-05 Thread Tauren Mills
Thanks for the ideas. Here is my implementation. I split it into two classes since I may want to use the CurrencyConverter separately. In my initial testing it works well, but I haven't tested convertToObject(). Let me know if anyone sees any issues or has suggested improvements: public class

wicket-contrib-input-events : keyboard shortcuts for wicket

2007-10-05 Thread Nino Saturnino Martinez Vazquez Wael
Hi Just wanted to tell that the first working release of input events now are in place, although currently only available via wicket stuff svn. You can bind keys to alot of stuff, form submission, ajax events, buttons... The best part its easy;) Just add the behavior and tell which key to

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Kent Tong
Fabio Fioretti wrote: The ListChoice uses the same AbstractModel on which the panel inside the form builds its CompoundPropertyModel (see my previous posts): when user's selection changes, the AbstractModel correctly replaces its object with the newly selected instance and the form gets

Re: Form.onComponentTagBody()

2007-10-05 Thread Kent Tong
cblehman wrote: Does anyone have a suggest for how to insert a table tag as the first item before any components that were added to the Form, but after the hidden fields that Form adds? I basically want to render the following: Instead of inserting a table, I'd suggest that you use CSS

Re: hot redeploy of java classes

2007-10-05 Thread Kent Tong
Artur W. wrote: I tried to do the same in tomcat 5.5. I added autoDeploy=true to the host but it doesn't work. Anyone has any idea how to force tomcat to do that? You need reloadable in Context, not autoDeploy. There is step-by-step in my free tutorial (see my signature below). -- Kent

Re: Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Kent Tong
Larva wrote: public final void onSubmit() { SiconaraBasePage page = (SiconaraBasePage)getPage(); List pageFilters = page.getFilterProperties(); if (pageFilters != null) pageFilters.clear();