Re: How to localise the ${type} in error messages

2012-01-30 Thread Steve Mactaggart
Excellent, exactly what I needed. Thanks. On Tue, Jan 31, 2012 at 11:16 AM, Igor Vaynberg wrote: > use a more specific key, such as IConverter.Integer=... > > -igor > > On Mon, Jan 30, 2012 at 4:12 PM, Steve Mactaggart > wrote: > > Hi all, > > > > We have e

How to localise the ${type} in error messages

2012-01-30 Thread Steve Mactaggart
Hi all, We have extensively localised our application using XML resource bundles, but have just run into a few last corner cases. We have error messages that come from the TextField's when the user enters the wrong data type. If we had a text field that is setup as an Integer type, and the user t

Re: Internationalisation issue with WiQuery

2011-11-29 Thread Steve Mactaggart
Seems it may have been a known bug in wiQuery, I was wrong in thinking we were running the latest wiQuery, and now post the update the generated JS files have the correctly localised text strings. 2011/11/30 Steve Mactaggart > I'm pretty sure its all UTF-8, as the actual page HTML retu

Re: Internationalisation issue with WiQuery

2011-11-29 Thread Steve Mactaggart
I'm pretty sure its all UTF-8, as the actual page HTML returns fine with the Russian text, and the static js files for localising the calendars and such work, its just the dynamic JS files generated by WiQuery. On Tue, Nov 29, 2011 at 11:26 PM, Martin Grigorov wrote: > Hi, > > 20

Internationalisation issue with WiQuery

2011-11-29 Thread Steve Mactaggart
Hi All, We have completed a pretty extensive localisation of our large wicket application with great success, just about every string in the application is now happily served from our language xml files. But we have noticed some places our language conversions are not coping. Our issue is with Wi

Re: Need a CodingStrategy to parse parameter from prefix

2011-03-17 Thread Steve Mactaggart
/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?view=markup > > < > http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?view=markup > >It > is much more simpler in 1.5. > &g

Need a CodingStrategy to parse parameter from prefix

2011-03-17 Thread Steve Mactaggart
Hi guys, I am porting an existing application over to wicket, and while most of it is plain sailing I have an issue where I need to be able to specify a set of pages to have a common parameter supplied "before" the mount path. An example of what I'm talking about would be: http://localhost/person

Re: How to determine previous value in select after user change

2010-08-27 Thread Steve Mactaggart
emodel() { > last=getmodelobject(); > super.updatemodel(); > } > > -igor > > On Thu, Aug 26, 2010 at 6:39 PM, Steve Mactaggart > wrote: > > Hi All, > > > > I'm not sure if there is a wicket way to do this, or if I have to mange > the > > data myself, b

How to determine previous value in select after user change

2010-08-26 Thread Steve Mactaggart
Hi All, I'm not sure if there is a wicket way to do this, or if I have to mange the data myself, but we have a screen that has a select on it and need to detect the user changing the value. This is simply achieved with a AjaxFormComponentUpdatingBehavior, and works well. My problem is that by the

Re: Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Steve Mactaggart
> > When i want to maintain bookmarkable pages, i normally pass the record > primary key in the PageParameters map . Once i have the primary key on the > next page, i can use my dao to retrieve the object and may be "float a div" > to display the record. > > On Tue,

Best Practice passing data between Bookmarkable pages

2010-08-17 Thread Steve Mactaggart
Hi all, I have a simple problem that I wanted to cast out to the wider Wicket community for a best practice. We try and use BookmarkablePageLinks for as much as we can, obviously so that pages can be bookmarked. Therefore nearly every page is constructed via the PageParameters method. We have a

Re: Forms in a base class

2010-08-01 Thread Steve Mactaggart
I have found that you only need to add items directly in the child class to the form. We have other panels and components that can be added to each other as you would normally its just the elements directly inside the sub-class that need to be added to the form. Not sure if that helps, or even ma

Re: AjaxFormComponentUpdatingBehavior is not called when the textfield is set as required field.

2010-06-22 Thread Steve Mactaggart
The form will be validated first, and if there is no information entered the "Required" validation will fail and so the form will not be updated. Wicket ensures that the model object is always consistent by ensuring that the components are Validated before their value is pushed into the model. In

Re: FormComponentPanel's components onblur can't call validate?

2010-06-02 Thread Steve Mactaggart
Sorry to dredge up this thread again,but I have the same issue. I have a form that has a hidden id and a text field that is a "search" box for elements. I have got all the client side javascript working so that the name and Id are updated in the page, and also have it doing the convertInput corre

Changing the page class of a BookmarkablePageLink

2010-05-25 Thread Steve Mactaggart
Hi all, I have just run into a situation where I want to create a BookmarkablePageLink that changes its class based on some data thats supplied to it. For example lets say I had a Customer object that had an "enabled" flag on it, and we want to have 2 different pages shown for enabled/disabled cu

Re: Scheduling the 1.4.8 and 1.4.9 wicketstuff-core releases

2010-05-25 Thread Steve Mactaggart
Michael, Was wicketstuff-core 1.4.7 built against wicket 1.4.7? or against 1.4.8/9? (whatever was released at the time). I'm guessing 1.4.7. If the current wicketstuff code compiles against 8 and 9, I agree with Jeremy in getting it released now, and any fixes or issues to roll into the 1.4.10.

Re: Wicket Dynamic Navigation

2010-05-25 Thread Steve Mactaggart
} That way you can have more that 2 levels too. Also please forgive the code, it is rushed in the gmail editor and has not been even close to compiled. Steve On Tue, May 25, 2010 at 10:24 PM, Steve Mactaggart < st...@whitesquaresoft.com> wrote: > I guess the other issue is what is th

Re: Wicket Dynamic Navigation

2010-05-25 Thread Steve Mactaggart
I guess the other issue is what is the data like? If you had a class called MenuItem that had a name and a List as children then you could create a panel MenuItemPanel extends Panel { public MenuItemPanel(String id, IModel model) { { super(id, model); add(new Label("category", model

Re: [announce] wicketstuff-core 1.4.7 released

2010-05-25 Thread Steve Mactaggart
Hi all, On a wicketstuff related note, do you think there is any benefit of trying to keep the release cycles of the wicketstuff inline with the core wicket projects? I do understand that there is a wide variety of modules under the wicketstuff banner, and ensuring it is all compatible is not rea

Re: [announce] wicketstuff-core 1.4.7 released

2010-05-25 Thread Steve Mactaggart
Thanks for doing the work. Steve On Tue, May 25, 2010 at 1:48 AM, Michael O'Cleirigh < michael.ocleir...@rivulet.ca> wrote: > Hello, > > Based on the positive reception for a 1.4.7 wicketstuff-core release, 4 > positive votes (3 + mine) and no negative, I promoted the staged release > into the

Re: [Vote] Release wicketstuff-core 1.4.7

2010-05-23 Thread Steve Mactaggart
My vote probably counts for nothing, but anyway +1 release wicketstuff-core 1.4.7 we are using the gmap2 component, not sure if there are any changes, but worthwhile to keep up with the latest. On Sun, May 23, 2010 at 3:55 PM, Michael O'Cleirigh < michael.ocleir...@rivulet.ca> wrote: > Hello, >

Re: Another Behaviour Question

2010-05-20 Thread Steve Mactaggart
rk.min.js")); > >} > > > >@Override > >public JsStatement statement() { > >JsQuery query = new JsQuery(getComponent()); > >query.$().append(".watermark('"+text+"')"); > > return query.getStatement(); &g

Re: Another Behaviour Question

2010-05-20 Thread Steve Mactaggart
hy not just use all javascript to manipulate the value of the text > box? Don't worry about the model. > > On Thu, May 20, 2010 at 9:36 PM, Steve Mactaggart > wrote: > > Hi All, > > > > I want to do something really simple, have a text box that has a default > >

Another Behaviour Question

2010-05-20 Thread Steve Mactaggart
Hi All, I want to do something really simple, have a text box that has a default text in it (for example search) that when the user puts focus in the box the text gets removed, and if they exit without typing the "search" text is put back. I've got all the client side javascript, but my issue is

Re: Forms in a base class

2010-04-07 Thread Steve Mactaggart
rson > > > wrote: > > >> Sorry, override isTransparentResolver. The set method is only on > > Border. > > >> > > >> -- > > >> Jeremy Thomerson > > >> http://www.wickettraining.com > > >> > > >> >

Re: Forms in a base class

2010-03-21 Thread Steve Mactaggart
aining.com > > > > On Sun, Mar 21, 2010 at 7:35 PM, Steve Mactaggart > wrote: > >> Hi all, >> >> Before I go to far trying to prove I have a bug, I thought i'd crowd >> source an answer. >> >> We have a lot of "Edit" pages that ha

Forms in a base class

2010-03-21 Thread Steve Mactaggart
Hi all, Before I go to far trying to prove I have a bug, I thought i'd crowd source an answer. We have a lot of "Edit" pages that have a lot of simmilar structure, and what I wanted to do is create a BaseEditPage that contains the form, the save/cancel buttons, some layout stuff and a FeedbackPan

Re: Links and labels

2010-03-21 Thread Steve Mactaggart
The other way I have implemented that in our local code is to create a LabeledBookmakableLink. This link takes a 4th parameter that is the label to display. Then override the onComponentTagBody to rewrite the contents of the tag to put in the content. Code looks like: public LabeledBookmarka

Can you attach multiple AjaxFormComponentUpdatingBehavior to the same component?

2009-12-13 Thread Steve Mactaggart
Hi all, First up must say that I love wicket, and hope to have some elements to contribute back to the community soon. I'm working on building a set of enhanced components, but have run into a problem. I am building a FormComponentPanel that has an a DropDownChoice within it. I want the panel t