Re: wicket 1.4 release

2008-10-02 Thread Johan Compagner
yes we should make a 1.3.5 and a 1.4m4 asap, there are a lot of changes I think i will make some time this weekend to look over jira issues and also merge back a lot of changes i already did in 1.3.5 igor did also a lot of stuff already so for me within 1 or 2 weeks we could do both releases

Re: Pure client side validation

2008-10-02 Thread harrypitt
Thanks for that solution, To summarize that: - Extend a normal Validator - Add the IValidatorAddListener Interface - Implement the onAdded method - In this method: add a Custom Behavior to the component - In the custom Behavior: Integrate the js like described here:

AW: wicket 1.4 release

2008-10-02 Thread Stefan Lindner
Sounds great! Thank you! Stefan -Ursprüngliche Nachricht- Von: Johan Compagner [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Oktober 2008 09:26 An: users@wicket.apache.org Betreff: Re: wicket 1.4 release yes we should make a 1.3.5 and a 1.4m4 asap, there are a lot of changes I

Re: DefaultDataTable with date column

2008-10-02 Thread Edgar Merino
Or simply use an AbstractColumn for that, you can even create a reusable DateColumn: public class DateColumn extends AbstractColumn { private String datePattern; //you can have a Pattern instead //You can overload the constructor, to have default date patterns for example public

Re: Having Wicket append #someanchor

2008-10-02 Thread Nino Saturnino Martinez Vazquez Wael
I would probably just do a simple javascript and make a headercontribution... But I guess it's not really the standard way when it comes to anchors... Craig Tataryn wrote: *bump* On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn [EMAIL PROTECTED] wrote: I was wondering if there is a way to

Re: linking to a text ResourceReference

2008-10-02 Thread Ryan McKinley
thanks! I knew it was one line. You guys are great! On Sep 30, 2008, at 10:39 PM, Igor Vaynberg wrote: call urlfor(resourcereference) -igor On Tue, Sep 30, 2008 at 6:08 PM, Ryan McKinley [EMAIL PROTECTED] wrote: Hello- I know I have seen an example of this somewhere, so i'm

CFP ApacheCon EU 2009

2008-10-02 Thread Martijn Dashorst
If you only have thirty seconds: The Call for Papers for ApacheCon Europe 2009, to be held in Amsterdam, from 23rd to 27th March, is now open! Submit your proposals at http://eu.apachecon.com/c/aceu2009/cfp/ before 24th October. Remember that early bird prices for ApacheCon US 2008, to be held

Re: Pure client side validation

2008-10-02 Thread Nino Saturnino Martinez Vazquez Wael
harrypitt wrote: Thanks for that solution, To summarize that: - Extend a normal Validator - Add the IValidatorAddListener Interface - Implement the onAdded method - In this method: add a Custom Behavior to the component - In the custom Behavior: Integrate the js like described here:

Re: How to get rid of wicket:id in XML output

2008-10-02 Thread Martijn Dashorst
Why mocking with that setter. Put wicket in deployment mode. That way you can't mess up the order of setting things. Read chapter 14 of Wicket in Action on configuring Wicket—it will tell you to call super.init() first before doing anything yourself. It also instructs you to *NEVER* deploy your

URL to use with mod_jk

2008-10-02 Thread Piller Sébastien
Hi guys, in my project, I very often use absolute url, built with RequestUtils.toAbsolutePath. It works just fine, all my ressources are available. I recently installed Apache and mod_jk. Are the url valid to be served through apache/mod_jk? Because they have a form like

Re: Pure client side validation

2008-10-02 Thread harrypitt
Ok, my question was not clear enough. With Pure client side validation i mean a javascript validation which needs no ajax requests. Of course there should be always a server side validation and the whole default Wicket form-handling AFTER the submit. It would be really stupid to just rely on

Re: DefaultDataTable with date column

2008-10-02 Thread Pablo S.
Great! this is just what I need Thanks Pablo -- From: Edgar Merino [EMAIL PROTECTED] Sent: Thursday, October 02, 2008 5:19 AM To: users@wicket.apache.org Subject: Re: DefaultDataTable with date column Or simply use an AbstractColumn for that,

Re: wicket 1.4 release

2008-10-02 Thread Kristof Jozsa
totally out of topic and excuse me for my curiosity, but do you use subversion to the heavy lifting with such branching/merging there or use some distributed version control system behind the scenes? K On Thu, Oct 2, 2008 at 9:25 AM, Johan Compagner [EMAIL PROTECTED] wrote: yes we should make a

Re: wicket 1.4 release

2008-10-02 Thread James Carman
Apache projects have to do things transparently, so most of the work is (or should be) done in Subversion. Apache is all about the community. On Thu, Oct 2, 2008 at 8:44 AM, Kristof Jozsa [EMAIL PROTECTED] wrote: totally out of topic and excuse me for my curiosity, but do you use subversion to

Re: wicket 1.4 release

2008-10-02 Thread Johan Compagner
we use subversion. I hope that apache will upgrade all the servers to the latest subversion version (1.5.x) or did they already do that? Because there merging is a bit simpler, i still want to test there real merge client they now have but pity is that that is an sub thing of there Collab

Re: wicket 1.4 release

2008-10-02 Thread lesterburlap
re: 1.4m4 Do milestone releases come before beta releases? (or do you just go straight to final from milestone?) LBB -- View this message in context: http://www.nabble.com/wicket-1.4-release-tp19772502p19779596.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Inmethod Grid with wicket 1.3

2008-10-02 Thread lesterburlap
Jim Pinkham wrote: I'm getting this error at runtime I don't understand: NoSuchMethodError: org.apache.wicket.MetaDataKey: method init()V not found at com.inmethod.grid.common.AbstractGrid$4.init(AbstractGrid.java:908) at

Form GET doesn't call onSubmit method

2008-10-02 Thread eyalbenamram
Hi, I have a form that overrides the method: protected String getMethod() { return Form.METHOD_GET; } When the form is submitted, the onSubmit method is never called and I am routed to the home page instead of the location I specified. Any

Re: Inmethod Grid with wicket 1.3

2008-10-02 Thread lesterburlap
Damn it, for some reason nabble 2 didn't show all the other responses to Jim's question. Sorry to answer it needlessly. LBB -- View this message in context: http://www.nabble.com/Inmethod-Grid-with-wicket-1.3-tp19731013p19780036.html Sent from the Wicket - User mailing list archive at

using Prototype.js and Scriptaculous with latest version of wicket

2008-10-02 Thread ilanfox
Hello, I am considering starting a new project (web app) with Wicket. This project will be based heavily on JavaScript with Prototype and Scriptaculous. Most of the UI will be generated via JavaScript and the also the new CANVAS tag will be used. I really need to know if I'm going the right

Form submit to bookmarkable page

2008-10-02 Thread Stefan Lindner
Is it possible to submit a form to a bookmarkable page (with form input as page parameters)? What I want is a form with a submit button/link that leads to a page with e.g. URl http://mysite.com/myapp/targetPage/param1/value1/param2/value2 Of course I mount the submit link#s target page

Re: Pure client side validation

2008-10-02 Thread Igor Vaynberg
On Thu, Oct 2, 2008 at 12:33 AM, harrypitt [EMAIL PROTECTED] wrote: Thanks for that solution, To summarize that: - Extend a normal Validator - Add the IValidatorAddListener Interface - Implement the onAdded method - In this method: add a Custom Behavior to the component - In the custom

Re: wicket 1.4 release

2008-10-02 Thread Igor Vaynberg
milestones-rcs-release was the plan this time around i believe. -igor On Thu, Oct 2, 2008 at 6:46 AM, lesterburlap [EMAIL PROTECTED] wrote: re: 1.4m4 Do milestone releases come before beta releases? (or do you just go straight to final from milestone?) LBB -- View this message in

Re: wicket 1.4 release

2008-10-02 Thread Igor Vaynberg
promises promises! -igor On Thu, Oct 2, 2008 at 12:25 AM, Johan Compagner [EMAIL PROTECTED] wrote: yes we should make a 1.3.5 and a 1.4m4 asap, there are a lot of changes I think i will make some time this weekend to look over jira issues and also merge back a lot of changes i already did in

Re: using Prototype.js and Scriptaculous with latest version of wicket

2008-10-02 Thread Igor Vaynberg
there shouldnt be any problems using prototype with wicket. however, if you are looking to generate your ui purely in javascript you will not be able to take advantage of a lot of wicket components -igor On Thu, Oct 2, 2008 at 8:18 AM, ilanfox [EMAIL PROTECTED] wrote: Hello, I am

Problem understanding LoadableDetachableModel and ListViews

2008-10-02 Thread Jürgen Lind
Hi there, I have been struggling for some time now to understand how LoadableDetachableModel and a ListView work together. The starting point was Chapter 5.5.2 of Wicket in Action where it is recommended to provide your own ItemModel if the underlying list changes frequently. To try out how

Re: Form submit to bookmarkable page

2008-10-02 Thread Igor Vaynberg
you can override form's oncomponenttag() and call super then tag.put(action, urlfor(yourpage.class)); i believe that should work -igor On Thu, Oct 2, 2008 at 8:41 AM, Stefan Lindner [EMAIL PROTECTED] wrote: Is it possible to submit a form to a bookmarkable page (with form input as page

Re: Form GET doesn't call onSubmit method

2008-10-02 Thread Igor Vaynberg
create a quickstart and attach it to a jira issue -igor On Thu, Oct 2, 2008 at 7:09 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi, I have a form that overrides the method: protected String getMethod() { return Form.METHOD_GET; } When the form is

Re: Problem understanding LoadableDetachableModel and ListViews

2008-10-02 Thread Igor Vaynberg
your link works on the object and not on the model, instead add(new link(delete, item.getmodel()) { onclick() { delete(getmodelobject()); }}); -igor On Thu, Oct 2, 2008 at 9:04 AM, Jürgen Lind [EMAIL PROTECTED] wrote: Hi there, I have been struggling for some time now to understand how

Re: Form GET doesn't call onSubmit method

2008-10-02 Thread eyalbenamram
Hi How? what is a quickstart? I am using wicket 1.3.4 is it still not fixed there? igor.vaynberg wrote: create a quickstart and attach it to a jira issue -igor On Thu, Oct 2, 2008 at 7:09 AM, eyalbenamram [EMAIL PROTECTED] wrote: Hi, I have a form that overrides the method:

Re: How to get rid of wicket:id in XML output

2008-10-02 Thread Jonathan Locke
btw, shouldn't we fail init if super isn't called in this case like those other protections we built in? Martijn Dashorst wrote: Why mocking with that setter. Put wicket in deployment mode. That way you can't mess up the order of setting things. Read chapter 14 of Wicket in Action on

Re: wicket 1.4 release

2008-10-02 Thread Johan Compagner
keep reminding me! On Thu, Oct 2, 2008 at 6:00 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: promises promises! -igor On Thu, Oct 2, 2008 at 12:25 AM, Johan Compagner [EMAIL PROTECTED] wrote: yes we should make a 1.3.5 and a 1.4m4 asap, there are a lot of changes I think i will make some

Re: Problem understanding LoadableDetachableModel and ListViews

2008-10-02 Thread Jürgen Lind
Igor Vaynberg wrote: your link works on the object and not on the model, instead add(new link(delete, item.getmodel()) { onclick() { delete(getmodelobject()); }}); Thank you for your quick reply. Well the code is roughly the same(?) as in Listing 5.12 of WiA and there a custom Model is used

Re: Problem understanding LoadableDetachableModel and ListViews

2008-10-02 Thread Igor Vaynberg
final TestItem itemModel = (TestItem) item.getModelObject(); ^ on this line you retrieve the object from the model, you then use this reference inside the onclick() which is called during another request. since you use the model object reference directly it is not loaded from the model. my code,

Re: Pure client side validation

2008-10-02 Thread Nino Saturnino Martinez Vazquez Wael
Ahh ok, I get you. So I guess IVisitor would be very good to use here.. Visit every component and put according js validation in there depending on which validator etc... Could be something I would look into at some point.. Maybe the way would be to upgrade the fvalidate integration to

Re: Problem understanding LoadableDetachableModel and ListViews

2008-10-02 Thread Jürgen Lind
Thanks for the explanation. Still, one questions remains: is there a fundamental problem with the first approach or is it ok to use the object directly? J. Igor Vaynberg wrote: final TestItem itemModel = (TestItem) item.getModelObject(); ^ on this line you retrieve the object from the model,

Re: Problem understanding LoadableDetachableModel and ListViews

2008-10-02 Thread Igor Vaynberg
yes, there is a huge fundamental problem with your approach: you keep the object reference which means the object is serialized instead of being retrieved through a loadable detachable model. -igor On Thu, Oct 2, 2008 at 10:54 AM, Jürgen Lind [EMAIL PROTECTED] wrote: Thanks for the

Re: Pure client side validation

2008-10-02 Thread Nino Saturnino Martinez Vazquez Wael
saw this lib: http://yav.sourceforge.net/ maybe it fits better? Nino Saturnino Martinez Vazquez Wael wrote: Ahh ok, I get you. So I guess IVisitor would be very good to use here.. Visit every component and put according js validation in there depending on which validator etc... Could be

Re: Problem understanding LoadableDetachableModel and ListViews

2008-10-02 Thread Jürgen Lind
I see. So for a small application with few users, the approach might be ok if I can live with a higher memory consumption. For larger applications, using a loadable detachable model would be preferable. Thank you for the clarification. J. Igor Vaynberg wrote: yes, there is a huge fundamental

Re: Problem understanding LoadableDetachableModel and ListViews

2008-10-02 Thread Igor Vaynberg
using an LDM is best practice, big or small... -igor On Thu, Oct 2, 2008 at 11:09 AM, Jürgen Lind [EMAIL PROTECTED] wrote: I see. So for a small application with few users, the approach might be ok if I can live with a higher memory consumption. For larger applications, using a loadable

Re: Form GET doesn't call onSubmit method

2008-10-02 Thread Erik van Oosten
Hi Eyal, Let me translate Igor's reponse (which I agree is somewhat short for the uninitiated ;) ) Quickstart is the optimum way to start with Wicket. For more info see http://wicket.apache.org/quickstart.html. A quickstart is an as small as possible Wicket application that demonstrates

Inmethod grid with more edit controls

2008-10-02 Thread Jim Pinkham
I'm just getting started with inmethod grid and loving what it does so far. Now I'd like some to use other input controls such as checkbox, radiobutton, datepicker, or ChoiceList. I see EditablePropertyColumn has newCellPanel I could override to return Panels with various input component types

RE: Form submit to bookmarkable page

2008-10-02 Thread Stefan Lindner
Wow! Seems to be a good starting point. I'm using wicket for 2 years now but still got a lot to learn. Sigh! Now I have a form with a simple submit button. In the Form's onComponentTag I have tag.put(action, urlFor(TargetPage.class, parameters)); The URL now looks like

wicket 1.3.4 - setDefaultFormProcessing(true) not solving the GoAndClearFilter problem

2008-10-02 Thread jchappelle
I have looked at the other posts people have made about this problem and each says that the solution is to call setDefaultFormProcessing(true) on the clear button. I have done that and it doesn't solve my problem. I started with wicket 1.3.2 but I saw where a bug fix for this was in 1.3.3 so now

How to update ListChoice after form submission?

2008-10-02 Thread Seven Corners
I have a page with a ListChoice of user names that is populated with a call to our server (loadUserNames()). The page also contains a number of TextFields corresponding to the user's other attributes. When you modify those text fields so the user name doesn't correspond to anything in the list,

Re: [XHTML validation] Rootless AbstractTree outputs empty table table .../table

2008-10-02 Thread Kaspar Fischer
I have filed a JIRA improvement ticket for this: https://issues.apache.org/jira/browse/WICKET-1856 Kaspar On 17.09.2008, at 11:12, Kaspar Fischer wrote: I have a rootless BaseTree and see it output table style=display:none id=tree1f_0/tabletable class=wicket-tree-content

Re: Form submit to bookmarkable page

2008-10-02 Thread Igor Vaynberg
if anything you can change the form.getmethod() to return GET, but even then it is the browser that will be doing the encoding and construcing the final url. if you really want a clean url like that you will have to use a regular form and in onsubmit construct the url and redirect to it. -igor

Re: How to update ListChoice after form submission?

2008-10-02 Thread Igor Vaynberg
inside the onclick of your ajaxfallbackbutton you have to add the listchoice to the target so wicket rerenders it -igor On Thu, Oct 2, 2008 at 12:49 PM, Seven Corners [EMAIL PROTECTED] wrote: I have a page with a ListChoice of user names that is populated with a call to our server

RE: Form submit to bookmarkable page

2008-10-02 Thread Stefan Lindner
OK. But how to and in onsubmit construct the url and redirect to it. The only methods for redirects I know are the redirectToInterceptPage method or the setResponsePage methods. An each method needs a page class as parameter an not a self constructed url. I did not find a auitable method in

Re: Form submit to bookmarkable page

2008-10-02 Thread Igor Vaynberg
onsubmit() { getRequestCycle().setRequestTarget(new RedirectRequestTarget(myurl)); } -igor On Thu, Oct 2, 2008 at 2:12 PM, Stefan Lindner [EMAIL PROTECTED] wrote: OK. But how to and in onsubmit construct the url and redirect to it. The only methods for redirects I know are the

RE: Form submit to bookmarkable page

2008-10-02 Thread Stefan Lindner
The solution, if anybody else should encounter this problem ist to put the following into the onSubmitMethod PageParameters p = new PageParameters(); p.add(myParameterName, getModelObjectOfFormComponent()); getResponse().redirect(urlFor(MyTargetPage.class, p).toString());

RE: Form submit to bookmarkable page

2008-10-02 Thread Stefan Lindner
Thank you Igor for your patience and your code fragments. Stefan -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 2. Oktober 2008 23:20 An: users@wicket.apache.org Betreff: Re: Form submit to bookmarkable page onsubmit() {

URL to fetch one component

2008-10-02 Thread metalotus
Hi, I would like to return the markup of a rendered wicket component when accessing a certain URL. I do not want to return a page, only one single component in that page (like how AJAX works, kinda). Here is my plan: - Handle the Request - Create a new component - Add it to the page -

Re: URL to fetch one component

2008-10-02 Thread Igor Vaynberg
much easier to create a generic page that can contain any component, add it to there, and render the page -igor On Thu, Oct 2, 2008 at 6:11 PM, metalotus [EMAIL PROTECTED] wrote: Hi, I would like to return the markup of a rendered wicket component when accessing a certain URL. I do not want

Re: URL to fetch one component

2008-10-02 Thread metalotus
ok, thanks for the tip igor.vaynberg wrote: much easier to create a generic page that can contain any component, add it to there, and render the page -igor On Thu, Oct 2, 2008 at 6:11 PM, metalotus [EMAIL PROTECTED] wrote: Hi, I would like to return the markup of a rendered wicket

Re: wicket and hibernate

2008-10-02 Thread Flavius
You said you were using annotations. Just read chapter 1 of the hibernate annotations docs http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#setup-configuration create a class called HibernateUtil.class (or you can call it Fluffy.class, but that's not as descriptive) and

Client side validation behaviors - already started?

2008-10-02 Thread Jeremy Thomerson
I've been thinking of trying to create some behaviors that combine the standard server-side validation with client-side validation. I just wanted to check to see if anyone knew of something like this already started. I don't want to duplicate work already done. Thanks, -- Jeremy Thomerson

DefaultDataTable attached to a model in a form

2008-10-02 Thread Pablo S.
Hi, I have a form with some fields attached to some properties of a model, so when I change the model all the fields also changes. Up to that everything goes perfect, the problem I'm having is that I need to maintain a DefaultDataTable in the form with the data of a list that the model has. I