Re: How to change the properties file location in Wicket

2012-05-31 Thread oliver.stef
Hi Tom, my usecase is: I wan't wicket to search for the key=value in particular order, i.e: let's say i have those propertis files: 1. ...\java\com\mycompany*\external\*WicketApplication_en.properties 2. ...\java\com\mycompany\WicketApplication_en.properties 3.

Re: How to change the properties file location in Wicket

2012-05-31 Thread oliver.stef
Please change the sentence so i want Wicket to load the wicket:messag in the following order: to so i want Wicket to load the wicket:messag from the following files: Thanks! -- View this message in context:

Re: Loop.populateItem() while migrating from Wicket 1.4 to 1.5

2012-05-31 Thread Thomas Götz
Could you please provide a quickstart? -Tom On 31.05.2012, 00:32 paulstar wrote: in Wicket 1.4, this works fine: this.form.add(new Loop(ccformfields, ccformfields.size()) { @Override protected void

Re: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Thomas Götz
What about using Javascript? e.g. jQuery: $('input:radio').attr('checked', false); or $('input[name=myRadio]:radio').attr('checked', false); -Tom On 31.05.2012 at 08:20 Chris Colman wrote: We have a button that, when clicked, should deselect ALL radio buttons in a separate radio

Re: handling user agent

2012-05-31 Thread Martin Grigorov
Hi, By using custom root request mapper this should be easy to achieve. On Wed, May 30, 2012 at 7:23 PM, wicket user samd...@live.com wrote: Question was how to handle user agent on the application level , i dont wanna write same code on each page to check the user agent then render the

Re: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Martin Grigorov
Hi, On Thu, May 31, 2012 at 10:04 AM, Thomas Götz t...@decoded.de wrote: What about using Javascript? e.g. jQuery: $('input:radio').attr('checked', false); or $('input[name=myRadio]:radio').attr('checked', false); I guess he will need to update the server state as well. @Chris: Can't

RE: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Chris Colman
@Chris: Can't you reset the RadioGroup's model so that none of the Radios models match and re-render the whole group ? That's what I tried first but it didn't work for some reason.   -Tom On 31.05.2012 at 08:20 Chris Colman wrote: We have a button that, when clicked, should deselect

RE: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Chris Colman
@Chris: Can't you reset the RadioGroup's model so that none of the Radios models match and re-render the whole group ? Bingo! I got it working. I wasn't adding the radio button to the target in the event handler. This is what works: group2Choice1Radio.add(new AjaxEventBehavior(onclick)

Re: Access to Page from LoadableDetachableModel

2012-05-31 Thread Sebastien
Hi, I added the panel in the onInitialize method to keep the way you did and because I don't know the rest of the code. But, for the specific part of code we exchanged, the panel could be added in the constructor (or best, in an init() method called by the constructor to be clean). There is also

Re: wicket ajax push

2012-05-31 Thread heapifyman
If you are looking for examples, wicketstuff has a push module ( https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/push-parent), atmosphere examples also contain a wicket example ( https://github.com/Atmosphere/atmosphere/tree/master/samples) and the just released wicket 6 beta2 comes

RE: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Chris Colman
Doh! That approach fails when I target.add a second radio button. I needed to create a new MarkupContainer to wrap the group in and then I target.add() that div and deselection of all items works well. So it looks like this: span wicket:id=radioGroup1 div wicket:id=radioGroup1Div

Apache Wicket 6.0.0-beta2 has been released

2012-05-31 Thread Martijn Dashorst
The Wicket team is proud to announce the second beta release of the Wicket 6.x series. This release brings over many improvements over the 1.5.x series. There are no more planned API breaks but if you find something that can be made better now it the time to discuss it! We will try to avoid

Re: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Martin Grigorov
On Thu, May 31, 2012 at 11:48 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Doh! That approach fails when I target.add a second radio button. I needed to create a new MarkupContainer to wrap the group in and then I target.add() that div and deselection of all items works well. So it

Filtercolumn and bigdecimal formatter

2012-05-31 Thread lang
Hi, I spent hours and hours but can't find any solution: I have a datatable with a filter. I want to filter on a BigDecimal field. However the output is presented as is. For example euro 1 instead of 1,00 euro. I always want to show the amount with two decimals. Who can help? -- View this

Filtercolumn and bigdecimal formatter

2012-05-31 Thread lang
Hi, I spent hours and hours but can't find any solution: I have a datatable with a filter. I want to filter on a BigDecimal field. However the output is presented as is. For example euro 1 instead of 1,00 euro. I always want to show the amount with two decimals. Who can help? -- View this

Re: Filtercolumn and bigdecimal formatter

2012-05-31 Thread Josh Kamau
Shouldnt the filtering be done when querying the database? On Thu, May 31, 2012 at 3:32 PM, lang delan...@telfort.nl wrote: Hi, I spent hours and hours but can't find any solution: I have a datatable with a filter. I want to filter on a BigDecimal field. However the output is presented as is.

Re: Filtercolumn and bigdecimal formatter

2012-05-31 Thread Sebastien
Hi, FilteredAbstractColumn implements ICellPopulator, which provides #populateItem() Did you already tried something like: public void populateItem(ItemICellPopulatorT item, String componentId, IModelT rowModel) { IModelBigInteger model = (IModelBigInteger)

RE: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Chris Colman
span wicket:id=radioGroup1        div wicket:id=radioGroup1Div                input id=choice1 name=option1 type=radio value=01 wicket:id=choice1                input id=choice2 name=option1 type=radio value=02 wicket:id=choice2        /div /span div inside span is invalid HTML. I know

Re: handling user agent

2012-05-31 Thread wicket user
just wondering how to implement it , i tried the following code not sure am i doing correct, public class MyMapper implements IRequestMapper { private final IRequestMapper delegate; public MyMapper(IRequestMapper delegate) { this.delegate = delegate; } public

Re: Getting more stale page exception in wicket 1.5.6

2012-05-31 Thread sudeivas
Hello Martin I think I found why I see the warning WARN: org.apache.wicket.request.handler.request.WebPageRenderer - The Buffered response should be handled by BufferedResponseRequestHandler. I am having a code like, setResponsePage(ProblemIndexPage.class); inside an Panel (last line). This

RE: Specified expiration page not being shown

2012-05-31 Thread Dale Ogilvie
After more investigation it seems that wicket 1.4.20 is not always displaying the expired page if session expires on a form and the form button link resolves to a url mounted using QueryStringUrlCodingStrategy mount(new QueryStringUrlCodingStrategy(test,HomePage.class)); the relevant bit