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 bi

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: 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 IR

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

2012-05-31 Thread Chris Colman
>> >>         >>                > value="01" wicket:id="choice1"> >>                > value="02" wicket:id="choice2"> >> >> >>         >> > > inside is invalid HTML. I know that one of those is not >rendered at all because it is attached to the RadioGroup but ... >can't you do radioGroup.setRend

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(Item> item, String componentId, IModel rowModel) { IModel model = (IModel) super.createLabelModel(rowModel); item.add(new My

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 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. For example eu

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 mes

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 mes

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 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 looks like this: > > >

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 making

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:

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: 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 n

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("onclic

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

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 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 you reset

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 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 > appropriate page >

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 gr