Re: AjaxButton in Wicket 6.0

2012-06-03 Thread Michal Margiel
Thanks a lot. 2012/6/4 Martin Grigorov > Hi, > > As Vineet said there is a link in the migration page to a more > detailed page about how Ajax works in Wicket 6. > > Since there is no script to decorate (because we don't use inline > attributes anymore but event registration) the old AjaxCallDec

Re: AjaxButton in Wicket 6.0

2012-06-03 Thread Martin Grigorov
Hi, As Vineet said there is a link in the migration page to a more detailed page about how Ajax works in Wicket 6. Since there is no script to decorate (because we don't use inline attributes anymore but event registration) the old AjaxCallDecorator is removed. The new way is: @Override protecte

Re: AjaxButton in Wicket 6.0

2012-06-03 Thread vineet semwal
Hi, decorator is replaced with iajaxcallistener ,take a look at wicket 6 migration , after that override updateAjaxAttributes(AjaxRequestAttributes attributes) in your ajaxbutton and add your ajaxCallListener in attributes.getAjaxCallListeners() On Mon, Jun 4, 2012 at 2:24 AM, Michal Margiel wr

AjaxButton in Wicket 6.0

2012-06-03 Thread Michal Margiel
Hello, Experimentally I tried to move our project[1] to Wicket 6.0.0-beta2 One of the problems is that *getAjaxCallDecorator* method was removed from * AjaxButton*. Neither in migration[2] guid nor in JavaDoc I cannot find how I can replace its functionality. In 1.5 we use this metthod to add Java

Re: Refresh listItem only of listView

2012-06-03 Thread kshitiz
Yes...u r rightit is working in the same manner only...:) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refresh-listItem-only-of-listView-tp4649676p4649694.html Sent from the Users forum mailing list archive at Nabble.com. ---

A good example of numeric based page navigation...

2012-06-03 Thread kshitiz
Hi, Can anyone give me a a link for learning google like pagination in wicket. I am not able to find one. All I see is to add PageNavigator in java class. But how to modify html markup page? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/A-good-example-of-numeric-ba

Re: Need a link in a dataview filter column

2012-06-03 Thread lang
Hi, first; i need the download option for each row in the table, Not in the filter. In my Java program i did: @SuppressWarnings({ "unchecked", "rawtypes", "serial" }) public TextFilteredPropertyColumn getLink(String header,String sort,String field) { return new Tex

Re: Refresh listItem only of listView

2012-06-03 Thread Adam Gray
Remember that the code in the onClick is really just a callback. This code won't be executed until you have an entire listview to work with, because the listview won't show up until it's completely rendered. So in the link callback, you just add the listview's container to the ajaxrequesttarget a

Re: Need a link in a dataview filter column

2012-06-03 Thread Adam Gray
Did you want to put the link in the rows of the datatable or in the header row with the filter column itself? If you're just adding the links to the data rows, I typically use a Fragment when making custom DataTable columns. You could create a new fragment that has the link that will call your se

Need a link in a dataview filter column

2012-06-03 Thread lang
Hi, in my datatable i use different columns with filters. One of those columns contain a invoice number I want to show a pdf if a user click this row Example Order invoice 1001 123401<--- This column must be clicable. After click it must open a pdf with 123401.pdf Who can help? -

Re: any way to refresh listview from inside?

2012-06-03 Thread kshitiz
Thnx...that did it...:) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/any-way-to-refresh-listview-from-inside-tp4649684p4649687.html Sent from the Users forum mailing list archive at Nabble.com. - T

Re: any way to refresh listview from inside?

2012-06-03 Thread Martin Makundi
Hi! Yes, you can refresh anything from anywhere so long as you have a reference to it. For example: listViewContainer = webmarkupcontainer.setOutputMarkupId(true); ... ajaxButton.onClick{ target.addComponent(listViewContainer); } ** Martin 2012/6/3 kshitiz : > Hi, > > Is there any way t

Re: any way to refresh listview from inside?

2012-06-03 Thread Marek Sarnecki
Yes, simple add to the ajaxlink the method onClick(AjaxRequestTarget target){ if(target != null) target.add(container) } To use this u should add your listView to an WebMarkupContainer container Container = new WebMarkupContainer("container"); Container.setOutputMarkupId(true).setOutputMar

any way to refresh listview from inside?

2012-06-03 Thread kshitiz
Hi, Is there any way to refresh listview from inside? Like if every of its item has ajaxlink or ajaxbutton, can the whole view be refreshed from that ajax button? I am not able to find any way in internet regarding this issue... -- View this message in context: http://apache-wicket.1842946.n4.n

Re: Refresh listItem only of listView

2012-06-03 Thread kshitiz
okk..so if ajaxbutton is part of every item of a listview, how can I refresh that view by pressing that button.I am asking because you will not able to add that listview as target in the button as it would not be completely defined by then. -- View this message in context: http://apache-wicket.18