RE: ListView

2018-06-18 Thread Chris Colman
detachment of these model objects was nor occuring. Thanks for your help Sven. > -Original Message- > From: Sven Meier [mailto:s...@meiers.net] > Sent: Tuesday, 19 June 2018 6:25 AM > To: users@wicket.apache.org > Subject: Re: ListView > > Adding the outer one should be suff

RE: ListView

2018-06-18 Thread Chris Colman
model persistence and not an issue with the best Java UI framework in the world! Regards, Chris > -Original Message- > From: Sven Meier [mailto:s...@meiers.net] > Sent: Tuesday, 19 June 2018 5:42 AM > To: users@wicket.apache.org > Subject: Re: ListView > > Hi Chris, >

Re: ListView

2018-06-18 Thread Sven Meier
: Sven Meier [mailto:s...@meiers.net] Sent: Tuesday, 19 June 2018 5:42 AM To: users@wicket.apache.org Subject: Re: ListView Hi Chris, I don't see a reason why your challenge shouldn't work. What happens if you reload the page (F5) after adding via Ajax? Do the missing cells show up? Have fun Sven

RE: ListView

2018-06-18 Thread Chris Colman
esday, 19 June 2018 5:42 AM > To: users@wicket.apache.org > Subject: Re: ListView > > Hi Chris, > > I don't see a reason why your challenge shouldn't work. > > What happens if you reload the page (F5) after adding via > Ajax? Do the missing cells show up? > > Have

RE: ListView

2018-06-18 Thread Chris Colman
Yes, the missing cells show up fine after an F5 page reload. > -Original Message- > From: Sven Meier [mailto:s...@meiers.net] > Sent: Tuesday, 19 June 2018 5:42 AM > To: users@wicket.apache.org > Subject: Re: ListView > > Hi Chris, > > I don't see a reason w

Re: ListView

2018-06-18 Thread Sven Meier
...@apache.org] Sent: Friday, 25 May 2018 8:12 AM To: users@wicket.apache.org Subject: Re: ListView On Thu, May 24, 2018 at 2:01 PM, JavaTraveler wrote: Quickstart ? a mini application showing the problem https://wicket.apache.org/start/quickstart.html -- Sent from: http://apache-wicket.1842946.n4

RE: ListView

2018-06-18 Thread Chris Colman
this? > -Original Message- > From: Martin Grigorov [mailto:mgrigo...@apache.org] > Sent: Friday, 25 May 2018 8:12 AM > To: users@wicket.apache.org > Subject: Re: ListView > > On Thu, May 24, 2018 at 2:01 PM, JavaTraveler > wrote: > > > Quickstart ? > > >

Re: ListView

2018-05-24 Thread Martin Grigorov
On Thu, May 24, 2018 at 2:01 PM, JavaTraveler wrote: > Quickstart ? > a mini application showing the problem https://wicket.apache.org/start/quickstart.html > > -- > Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- > f1842947.html > >

Re: ListView

2018-05-24 Thread JavaTraveler
Quickstart ? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: ListView

2018-05-24 Thread Maxim Solodovnik
Could you share quickstart? WBR, Maxim (from mobile, sorry for the typos) On Thu, May 24, 2018, 17:28 JavaTraveler wrote: > Hello ! > > So no sorry, it does not work. > The solution of Maxim does nothing different. > And the one from Sven makes a mistake since my

Re: ListView

2018-05-24 Thread JavaTraveler
Hello ! So no sorry, it does not work. The solution of Maxim does nothing different. And the one from Sven makes a mistake since my ListView needs a list of pieces, and pieceModel is just a Piece. Any other solutions ? -- Sent from:

Re: ListView

2018-05-24 Thread JavaTraveler
Ok, so I managed to pass the piecesModel ! Thank you, it seems to be working :) -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: ListView

2018-05-23 Thread Sven Meier
Hi, pass a model with the pieces to the listView, this way it will always renderContexrRelative an up-to-date list. new ListView("pieceView", piecesModel) Have fun Sven Am 23. Mai 2018 16:19:11 MESZ schrieb JavaTraveler : >Hello, > >Does anyone know how to update a

Re: ListView

2018-05-23 Thread Maxim Solodovnik
You need to change your code a little: 1) pieceView.setOutputMarkupId(true); is not necessary 2) target.add(wmc); instead of target.add(wmc.add(pieceView)); should work as expected :) On Wed, May 23, 2018 at 9:19 PM, JavaTraveler wrote: > Hello, > > Does anyone know how

Re: ListView Add/Remove via AJAX...

2018-03-28 Thread Carl-Eric Menzel
Hi James, Some time ago I wrote this: https://github.com/duesenklipper/wicket-appendablerepeater It should work with forms. If not, let me know. Best regards Carl-Eric On 27.03.2018 14:42, James Carman wrote: It has been a while since I've used Wicket and man, I really forgot how much I

Re: ListView Add/Remove via AJAX...

2018-03-27 Thread Ernesto Reinaldo Barreiro
Hi James, Welcome back... Still remember you from old times in list :-) On Tue, Mar 27, 2018 at 2:42 PM, James Carman wrote: > It has been a while since I've used Wicket and man, I really forgot how > much I love this framework! It may be that I'm rusty, but I've

Re: ListView Add/Remove via AJAX...

2018-03-27 Thread Martin Grigorov
Hi James, The best explanation for adding items via Ajax you could read at http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ Removing an item should be easier if the ListItems have id. On Tue, Mar 27, 2018 at 3:42 PM, James Carman

Re: ListView color background lineitem dinamically not working

2017-03-17 Thread ganea iulia
Thank you, it's great! On Thu, Mar 16, 2017 at 1:05 PM, Sven Meier wrote: > Hi, > > you'll have to add two MarkupContainers and style both : > > > > ... > ... > > > protected void populateItem(ListItem item) { > WebMarkupContainer firstRow = new

Re: ListView color background lineitem dinamically not working

2017-03-16 Thread Sven Meier
Hi, you'll have to add two MarkupContainers and style both : ... ... protected void populateItem(ListItem item) { WebMarkupContainer firstRow = new WebMarkupContainer("firstRow") { @Override protected void onComponentTag(final ComponentTag tag) {

Re: ListView color background lineitem dinamically not working

2017-03-16 Thread ganea iulia
Thank you so much for you explanation. I had to put the two inside the because I need to repeat every two rows. Do you have any hint on how to do it and still be able to change the color? On Thu, Mar 16, 2017 at 12:36 PM, ganea iulia wrote: > Thank you so much for

Re: ListView color background lineitem dinamically not working

2017-03-16 Thread ganea iulia
Thank you so much for you explanation. I had to put the two inside the because I need to repeat every two rows. On Thu, Mar 16, 2017 at 11:26 AM, Sven Meier wrote: > Hi, > > it seems your ListView is bound to the wicket:id="forEachItem"> tag, which cannot be styled. > >

Re: ListView color background lineitem dinamically not working

2017-03-16 Thread Sven Meier
Hi, it seems your ListView is bound to the wicket:id="forEachItem"> tag, which cannot be styled. Change your markup to: Have fun Sven On 16.03.2017 09:58, ganea iulia wrote: Hello, I have a listview and I want to dinamically color some of the rows (items). But it is not working,

Re: ListView color background lineitem dinamically not working

2017-03-16 Thread Martin Grigorov
Hi, The problem is at: You need the to be Wicket component. is not rendered at Production mode. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Mar 16, 2017 at 9:58 AM, ganea iulia wrote: > Hello, > > I have a listview and I

Re: ListView vs. RefreshingView and the meaning of the word 'refreshing'

2016-08-09 Thread Sven Meier
Hi, yes, ListView and RefreshingView are quite similar. ListView is a repeater implementation from Wicket's very early days: it works on a list of objects - wrapped in a model of course, as you'd expect it from a proper Wicket component. RefreshingView doesn't care where the objects to

Re: listview with check box does not update model when checked

2016-06-21 Thread Sven Meier
Hi, sorry but I don't understand your problem. You'll have to simplify your code, or it will be difficult to give you any advice. Creating a quickstart would be a good way to show what you want to achieve. Regards Sven -- View this message in context:

Re: ListView - onComponentTag

2014-03-10 Thread Sven Meier
Hi, ListView uses its markup tag to render each of its items and is not visible in the output by itself - thus it doesn't contribute anything to the component tag. Sven On 03/10/2014 07:19 PM, Nick Pratt wrote: Is there any reason why onComponentTag() wouldn't be invoked on a ListView:

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread always_rick
Sven, I forgot. code: - ListView listView = new ListView( users, users ) { @Override protected void populateItem( final ListItem item ) { item.setDefaultModel(

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread Sven Meier
First of all don't pull something out of a model and put it into another model: item.setDefaultModel(new CompoundPropertyModel( item.getModelObject() ) ); Do this instead: item.setDefaultModel(new CompoundPropertyModel( item.getModel() ) ); Perhaps this is the reason: the textfields

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread always_rick
Thank you for quick response. I tried what you suggested, no luck. What I think is clicking remove link (SubmitLink), form memorizes input data, then remove row. -- View this message in context:

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread Sven Meier
Sorry, I'm out of ideas. If you can create a quickstart, I'll debug the problem. Sven On 06/28/2013 12:43 PM, always_rick wrote: Thank you for quick response. I tried what you suggested, no luck. What I think is clicking remove link (SubmitLink), form memorizes input data, then remove row.

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread always_rick
ListPage.html http://apache-wicket.1842946.n4.nabble.com/file/n4659905/ListPage.html ListPage.java http://apache-wicket.1842946.n4.nabble.com/file/n4659905/ListPage.java User.java http://apache-wicket.1842946.n4.nabble.com/file/n4659905/User.java Hi Sven, it is odd. When I was building the

Re: ListView remove a row by SubmitLink always move the last one

2013-06-28 Thread always_rick
Hi Sven, I review my code and api. I misunderstood the setDefaultFormProcessing( false ). Simply removing that method, then it works. Now I am thinking of a way to skip validation, and process form updating. -- View this message in context:

Re: ListView remove a row by SubmitLink always move the last one

2013-06-26 Thread Sven Meier
You'll have to show us some code. Sven On 06/26/2013 08:33 AM, always_rick wrote: Hi all, I have a form of inputs (ListView). I firstly tried the removeLink, it was working. Because it is a normal link, it simply don't keep the other rows inputs. Obviously, it does not meet the requirement.

Re: ListView does not repaint inside WebMarcupContainer using AjaxLink

2013-03-17 Thread vineet semwal
ajax repainting will not work with wicket:container or setrenderbodyonly(true) as in that case component tag is not rendered in html.another way is repainting grand(er) parent which doesn't have setrenderbodyonly(true) or wicket:container On Sun, Mar 17, 2013 at 3:22 PM, meduolis

Re: Listview Checkbox checked by default and disapearing after submit

2012-12-08 Thread Pat
Thank you so much, I would never have found that! Everything works perfectly now cheers -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Listview-Checkbox-checked-by-default-and-disapearing-after-submit-tp4654605p4654610.html Sent from the Users forum mailing list

Re: Listview Checkbox checked by default and disapearing after submit

2012-12-07 Thread Sven Meier
this.checkGroup = new CheckGroup(checkgroup, new CompoundPropertyModel(this.someList)); ... this.listView = new ListViewString[](someList, new CompoundPropertyModel(this.someList)) Do you really want the list to iterate over the checked items only? I'd expect these components to use different

Re: Listview containing links not working, when created through AJAX update

2012-10-09 Thread Martin Grigorov
Hi, On Tue, Oct 9, 2012 at 4:26 PM, Anders Sørensen aisz...@gmail.com wrote: I have an application which worked in Wicket 1.5.x, but something seems to be broken, after updating to 6.1.1. I have a table listing machines on the left side. When an item is clicked, I update a table on the

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 10:25:21 -0700 (PDT) cmagnollay cmagnol...@gmail.com wrote: So essentially I want to use Wicket 1.5 to display an item and its associated quantity. The data structure I am using to back this is a Map (new HashMap()) where Item is a POJ whose details are of no consequence.

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread cmagnollay
if the map is called something like MapItem, Integer itemMap = new HashMapItem, Integer(); Hmm, so I would instantiate the ListView like so? ListViewListlt;Map.Entrylt;Item, Integer lv = new ListViewListlt;Map.Entrylt;Item, Integer(id, new PropertyModelListlt;Map.Entrylt;Item, Integer(this,

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 10:43:30 -0700 (PDT) cmagnollay cmagnol...@gmail.com wrote: if the map is called something like MapItem, Integer itemMap = new HashMapItem, Integer(); Hmm, so I would instantiate the ListView like so? [...] Is this what you are implying somewhat? Thanks for the

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread cmagnollay
And I can force the model to update, via AJAX, or in other words, how I force the list view to update after a user action? onUpdate(AjaxRequestTarget target) { target.add(theListView) ?? } or is it something I do with the model itself? Sorry, I have no experience with LoadableDetachable,

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Dan Retzlaff
You can call LDM#detach() after the modification, but since this particular implementation is so light, I'd just use AbstractReadyOnlyModel instead. It doesn't cache, so detach is not required. On Mon, Apr 30, 2012 at 11:36 AM, cmagnollay cmagnol...@gmail.com wrote: And I can force the model to

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 11:38:36 -0700 Dan Retzlaff dretzl...@gmail.com wrote: You can call LDM#detach() after the modification, but since this particular implementation is so light, I'd just use AbstractReadyOnlyModel instead. It doesn't cache, so detach is not required. Actually, getObject()

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Dan Retzlaff
I assumed the action phase would dereference the ListItemModel (e.g. to remove it from the map), hence dereference the LDM, and then require the explicit detach() before rendering. Agreed that LDM is the way to go if you're concerned about the ArrayList constructions. On Mon, Apr 30, 2012 at

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread cmagnollay
Thank for you all for the response. I am trying to test that code but am having a different separate issue at the moment. Your solutions however worked exactly as intended. Thank you for all the help! -- View this message in context:

Re: ListView (or other Repeater) with backing map

2012-04-30 Thread Carl-Eric Menzel
On Mon, 30 Apr 2012 12:15:20 -0700 Dan Retzlaff dretzl...@gmail.com wrote: I assumed the action phase would dereference the ListItemModel (e.g. to remove it from the map), hence dereference the LDM, and then require the explicit detach() before rendering. Agreed that LDM is the way to go if

Re: ListView not refreshed after a new row is inserted with EJB3 as its backend data

2012-01-19 Thread Per Newgro
Use a LoadableDetachableModelListUser in the ListView Constructor. Put all the load loading into the load method and see what happens. Cheers Per Am 19.01.2012 07:49, schrieb x.yang: Hello, Everyone, I am trying to build a web app with Wicket, EJB3, and MySQL. My IDE is Netbeans 6.9.1 and the

Re: ListView inside a ListView

2011-05-25 Thread Peter Karich
add(new ListViewAllocation(allocation, allocationListModel) { shouldn't this be item.add ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: ListView inside a ListView

2011-05-25 Thread Scott Swank
For clarity, I would rename the ListItems: protected void populateItem(final ListItemAsset assetItem) { assetItem.add(new Label(...)); assetItem.add(new ListViewAllocation(...) { protected void populateItem(ListItemAllocation allocationItem) { allocationItem.add(new

Re: ListView inside a ListView

2011-05-25 Thread kinnu410
Thank you so much!!! It worked Silly mistakes cost a lot!!! Thanks again!! On Wed, May 25, 2011 at 1:40 PM, Peter Karich [via Apache Wicket] ml-node+3550472-1465528180-240...@n4.nabble.com wrote: add(new ListViewAllocation(allocation, allocationListModel) { shouldn't this be item.add ?

Re: ListView inside a ListView

2011-05-25 Thread kinnu410
Will do that now!! Got it worked!!! Thanks a lot!!! On Wed, May 25, 2011 at 1:47 PM, scott.swank [via Apache Wicket] ml-node+3550491-1122803921-240...@n4.nabble.com wrote: For clarity, I would rename the ListItems: protected void populateItem(final ListItemAsset assetItem) {

Re: Listview gives mysterious log info

2011-03-30 Thread Bas Gooren
Sounds like you are calling setOutputMarkupId on a container. So I googled your error message and founr WICKET-3237 (https://issues.apache.org/jira/browse/WICKET-3237) Bas Op 30-3-2011 8:54, nino martinez wael schreef: Listview gives mysterious log info what does it mean? This feels a bit

Re: Listview gives mysterious log info

2011-03-30 Thread nino martinez wael
Ahh yes, I was diving a bit too deep in my ajax, to notice the html side:) Nice that wicket is that way, I mean that you actually can forget about js/html when doing ajax :) 2011/3/30 Bas Gooren b...@iswd.nl: Sounds like you are calling setOutputMarkupId on a container. So I googled your error

Re: ListView magic

2010-11-14 Thread Martin Makundi
You can set row hidden if you want, no problem: ajaxRequestTarget.addComponent(listItem.setVisible(false)); ** Martin 2010/11/14 meduolis meduol...@gmail.com: Hello, I want to do with listview some things, like after removing one item, don't repaint other items. Or maby this component is

Re: Listview remove columns on the fly

2010-08-31 Thread Martin Makundi
Re-render it before going to excel.. 2010/8/31 Altuğ Bilgin Altıntaş alt...@gmail.com: Hi all; How can i disable Listview's column/s while post it to excel on the fly. I mean i don't want to post all columns into excel. Link linkExcel = new Link(linkExcel) {            private static final

Re: Listview remove columns on the fly

2010-08-31 Thread Altuğ Bilgin Altıntaş
Any code example ? Thanks. 2010/8/31 Martin Makundi martin.maku...@koodaripalvelut.com Re-render it before going to excel.. 2010/8/31 Altuğ Bilgin Altıntaş alt...@gmail.com: Hi all; How can i disable Listview's column/s while post it to excel on the fly. I mean i don't want to post

Re: Listview remove columns on the fly

2010-08-31 Thread Martin Makundi
Any button will re-render the page. Just make your column in visible: listview() { onpopulate (item) { item.add(column.setVisible(if-you-want-to-show-it-now)); } } form.add(listview); button=new button() { onsubmit() { if-you-want-to-show-it-now = false; } } form.add(button);

Re: [BULK] Re: Listview remove columns on the fly

2010-08-31 Thread Benedikt Schlegel
If you want to modify your data on a column-base, you should consider using a DataTable instead of DataView/ListView. So long, Benedikt Save Paper: Think Before You Print Beta Systems Email Disclaimer and Email Impressum Beta Systems email messages are confidential. They may also be

Re: Listview excel

2010-08-30 Thread Martin Makundi
Hi! Just change the mime type of the page to application/vnd.ms-excel. ** Martin 2010/8/30 Altuğ Bilgin Altıntaş alt...@gmail.com: Hi all; Is it possible to export a ListView to excel. Should i use always Datatable ? Thanks.

Re: Listview excel

2010-08-30 Thread Altuğ Bilgin Altıntaş
Thanks; I added table in to WebMarkupContainer and WebMarkupContainer in to getRequestCycle().setRequestTarget( new ComponentRequestTarget(table)); It works. 2010/8/30 Martin Makundi martin.maku...@koodaripalvelut.com Hi! Just change the mime type of the page to

Re: ListView in a Form -- issue with properties

2010-07-08 Thread always_rick
hi, just add the form wicket id in property file. e.g. wicket:id=xxxForm -wicket:id=valueListView -wicket:id=value xxxForm.valueListView.value.Required=please enter the value Trevor Baker-2 wrote: Hi, I have a form that has an ListView (wicket:id=”valueListView”) of a bunch of

Re: ListView in a Form -- issue with properties

2010-07-07 Thread Jeremy Thomerson
Try with just value.Required On Wed, Jul 7, 2010 at 11:57 AM, Trevor Baker amoebawo...@gmail.com wrote: Hi, I have a form that has an ListView (wicket:id=”valueListView”) of a bunch of required text fields (wicket:id=”value”). In my WebApplication.properties, I have:

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
How are you managing transactions? On Fri, Jun 25, 2010 at 7:27 AM, pieter claassen pieter.claas...@gmail.com wrote: I find that when I delete objects from my ListView, my model object for the ListView still contains a reference to the object. When the view tries to render, the object is

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
No, my DAO's inherit from HibernateDaoSupport and I just go with the defaults. Regards, Pieter On Fri, Jun 25, 2010 at 2:22 PM, James Carman ja...@carmanconsulting.comwrote: How are you managing transactions? On Fri, Jun 25, 2010 at 7:27 AM, pieter claassen pieter.claas...@gmail.com wrote:

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread nino martinez wael
are you using a loadable detachable model or? 2010/6/25 pieter claassen pieter.claas...@gmail.com I find that when I delete objects from my ListView, my model object for the ListView still contains a reference to the object. When the view tries to render, the object is already removed from

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread pieter claassen
Yes, I reload the objects using my DAOs but, I have 2 MySQL databases on the backend and so far have not been using @Transactional. This might be the problem. Now I just have to figure out to configure tx:annotation-driven transaction-manager=txManager / for more than one transaction manager

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
These discussions might be of interest to you: https://jira.springsource.org/browse/SPR-3955 http://forum.springsource.org/showthread.php?t=27754 On Fri, Jun 25, 2010 at 9:34 AM, pieter claassen pieter.claas...@gmail.com wrote: Yes, I reload the objects using my DAOs but, I have 2 MySQL

Re: Listview and hibernate question: Objects don't get deleted before the listview getObject() is called

2010-06-25 Thread James Carman
Looks like if you use Spring 3.x, you can do it. You have to use the value of the @Transactional annotation to figure out which tx manager to use. On Fri, Jun 25, 2010 at 9:58 AM, James Carman ja...@carmanconsulting.com wrote: These discussions might be of interest to you:

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread jOki
Even Im trying to implement the remove link as: - item.add(removeLink(removeKeyword, item)); and it doesnt work... always remove the last row... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-dynamic-rows-always-remove-last-row-tp2260480p2261045.html

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread Erik van Oosten
Try to use the RemoveLink that is available as inner class of ListView. Regards, Erik. Op 18-06-10 18:29, jOki wrote: Hi!! Im trying to implement a dynamic Form, where you can add textfields and remove as you want. The add button works fine, but the remove button always remove the last

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread James Carman
Just as a test, turn off the reuseItems property. See what happens. On Sat, Jun 19, 2010 at 5:04 AM, jOki joa...@gmail.com wrote: Even Im trying to implement the remove link as:  - item.add(removeLink(removeKeyword, item)); and it doesnt work... always remove the last row... -- View

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread Jeremy Thomerson
Also, is the item you're trying to remove a null in the list? Or, is it a problem with equals/hashcode not being implemented correctly? I just fixed a bug in ListView this week with the remove link and move up/down links. It was relying on the equals of the model object of the item to find

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread jOki
Hi, I tried with/without setReuseItems and the behaviour is the same. I think you can be right with equals/hashcode not being implemented correctly... I tried another time with a ListString with different values and its working... I tried as well to implement these methods (equals/hashcode)

Re: ListView + dynamic rows: always remove last row...

2010-06-19 Thread James Carman
What kind of objects are they? For entities, I use a uuid for the primary key and it's assigned when the object is created. That way you make equals/hashcode based on the uuid so that everything stays consistent On Jun 19, 2010 1:42 PM, jOki joa...@gmail.com wrote: Hi, I tried with/without

Re: ListView highlight selected row

2010-05-20 Thread JeroenWolff
Igor, you are right. It is still not rendered when i do the super.onComponentTag after the tag.put. This is the markup for the listview. zoekresultaat is the id for the listview. When the page is rendered the first time it works fine, but not in Ajax updates. In the debugger is see that on the

Re: ListView highlight selected row

2010-05-20 Thread Igor Vaynberg
so its not rendered in markup? or its rendered in markup but you dont see the effect? if latter its most likely a css issue, if former create a quickstart and attach it to a jira issue. -igor On 5/20/10, JeroenWolff jeroen.wo...@gmail.com wrote: Igor, you are right. It is still not rendered

Re: ListView highlight selected row

2010-05-20 Thread JeroenWolff
thanks, it is not rendered in the html (view source in browser) when i disable Javascript it works fine! I will put it in the quickstart and report it in Jira thanks -- View this message in context:

Re: ListView highlight selected row

2010-05-20 Thread Igor Vaynberg
maybe your javascript is overriding it -igor On Thu, May 20, 2010 at 12:04 PM, JeroenWolff jeroen.wo...@gmail.com wrote: thanks, it is not rendered in the html (view source in browser) when i disable Javascript it works fine! I will put it in the quickstart and report it in Jira thanks --

Re: ListView highlight selected row

2010-05-20 Thread JeroenWolff
Now i've got it working with the quickstart and a simple ListView. Now i have to find out the difference and why it is now working..,now working on jetty...tomorrow i test it on Websphere... Thanks! public class HomePage extends WebPage { private Contact selected = new Contact();

Re: ListView highlight selected row

2010-05-20 Thread Jeremy Thomerson
Ah - the beauty of creating a quickstart. It almost always makes us go back and see what other weird combination of things is actually creating the issue :) -- Jeremy Thomerson http://www.wickettraining.com On Thu, May 20, 2010 at 3:18 PM, JeroenWolff jeroen.wo...@gmail.com wrote: Now i've

Re: ListView highlight selected row

2010-05-19 Thread JeroenWolff
Igor, thanks you've helped me a lot...but now i repaint the whole table and on every onComponentTag i update the class if the item is selected or not. I see in the debugger that onComponentTag and the tag.put(class, selected) but it is not rendered. What do i do wrong?? Thanks!! This is my

Re: ListView highlight selected row

2010-05-19 Thread Jeremy Thomerson
try doing the tag.put(class, foo) BEFORE the super.onComponentTag - which is where the tag is rendered -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 19, 2010 at 1:48 AM, JeroenWolff jeroen.wo...@gmail.com wrote: Igor, thanks you've helped me a lot...but now i repaint the

Re: ListView highlight selected row

2010-05-19 Thread Igor Vaynberg
no, i dont think its rendered in the super called, only prepared for rendering so his code should work just fine. set a breakpoint and see if its being called. also what markup is the listview attached to? -igor On Tue, May 18, 2010 at 11:51 PM, Jeremy Thomerson jer...@wickettraining.com wrote:

Re: ListView highlight selected row

2010-05-17 Thread JeroenWolff
Thanks Igor... But i forgot to tell...my app is a single page app with only Ajax replacements. Is it possible to click on a (Ajax) link in de (Pageable)ListView and replace the ListView with a changed style on the selected Item? now in my Ajax onClick i have target.addChildren(listView,

Re: ListView highlight selected row

2010-05-17 Thread Igor Vaynberg
repaint the item, eg add it to the target -igor On Mon, May 17, 2010 at 1:30 PM, JeroenWolff jeroen.wo...@gmail.com wrote: Thanks Igor... But i forgot to tell...my app is a single page app with only Ajax replacements. Is it possible to click on a (Ajax) link in de (Pageable)ListView and

Re: ListView highlight selected row

2010-05-13 Thread Igor Vaynberg
add(new listview() { item newitem(...) { return new item(..) { oncomponenttag(tag) { super.oncomponenttag(tag); if (getmodelobject().equals(selectedobject) { tag.put(class, selected); -igor On Thu, May 13, 2010 at 5:47 AM,

Re: ListView and Serialization

2010-03-26 Thread Sven Meier
Hi Michael, there's no requirement for components inside ListView to be stateless - I wonder were you got that from. You can have Links, Buttons or anything else in there so removing all on detach is a recipe for disaster for the next incoming request. Sven Michael Gottschalk wrote: Hi, I

Re: ListView and Serialization

2010-03-26 Thread Michael Gottschalk
Hi Sven, you wrote: there's no requirement for components inside ListView to be stateless - I wonder were you got that from. I got that from the ListView class comment and from studying the code. The comment says: By default, setReuseItems is false, which has the effect that ListView

Re: ListView and Serialization

2010-03-26 Thread Sven Meier
Hi Michael, the only difference in my proposal is to call removeAll earlier: not in onBeforeRender of the next request cycle, but in onDetach of the current request cycle. it makes a huge difference: If you call removeAll in onDetach, the next request to a component inside the ListView will

Re: ListView and Serialization

2010-03-26 Thread Michael Gottschalk
Hi Sven, Am Freitag, 26. März 2010 schrieb Sven Meier: the only difference in my proposal is to call removeAll earlier: not in onBeforeRender of the next request cycle, but in onDetach of the current request cycle. it makes a huge difference: If you call removeAll in onDetach, the next

Re: ListView + dynamic database Model

2010-03-02 Thread Thomas Kappler
On 03/02/10 11:55, marioosh.net wrote: Sorry for my poor english ;) I have ListView and model like below. I need tabs to reload sometimes, so my model is dynamic and get tabs from database. But i see that something is wrong. When i want to get Tab object by getModelObject() in populateItem

Re: ListView + dynamic database Model

2010-03-02 Thread marioosh.net
Thomas Kappler-3 wrote: On 03/02/10 11:55, marioosh.net wrote: Sorry for my poor english ;) I have ListView and model like below. I need tabs to reload sometimes, so my model is dynamic and get tabs from database. But i see that something is wrong. When i want to get Tab object by

Re: ListView and DropDownChoice reset all form fields ..

2010-02-24 Thread Arnaud Garcia
Hi and many thanks Martin ! just setting the setReuseItems is enough ... later, Arnaud 2010/2/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! Yeah...try  setReuseItems for your listView. If you use ajax, you can use also AjaxFormSubmittingChangeListenerBehavior

Re: ListView and DropDownChoice reset all form fields ..

2010-02-22 Thread Martin Makundi
Hi! Yeah...try setReuseItems for your listView. If you use ajax, you can use also AjaxFormSubmittingChangeListenerBehavior http://old.nabble.com/New-behavior:-AjaxFormSubmittingChangeListenerBehavior-td26201382.html ** Martin 2010/2/22 Arnaud Garcia arn...@imagemed-87.com: Hi List, If you

Re: ListView Behavior

2010-01-04 Thread Martin Makundi
Hi! Why do you need to count items? You can refer to different components using their markupid. ** Martin 2010/1/4 wic...@geofflancaster.com wic...@geofflancaster.com: Due to Wicket handling things in a weird order, would anyone mind giving me a hand in solving this issue? When I create a

Re: ListView Behavior

2010-01-04 Thread wic...@geofflancaster.com
Very good point. Didn't think about that. Thanks, I've solved my problem! Original Message: - From: Martin Makundi martin.maku...@koodaripalvelut.com Date: Mon, 4 Jan 2010 18:19:46 +0200 To: users@wicket.apache.org Subject: Re: ListView Behavior Hi! Why do you need to count

Re: Listview clears all the data in the textfileds after adding new element in the List

2009-12-25 Thread Martin Makundi
ListView always popupates rows with new elements. That's why their state is cleared. You have two options: 1. call listview.setReuseItems - this will keep the old rows 2. if you need something more fancy and want to repopulate the rows, you will need to use a reusemanager that can copy the

Re: Listview clears all the data in the textfileds after adding new element in the List

2009-12-25 Thread Sven Meier
Hi, if you're using a Link, the browser won't send the edited values back to your application. Use a SubmitLink instead. Sven ayman elwany wrote: Hi All , I'm new to Apache Wicket , I started working with it from 2 weeks and I'm really enjoying it .but I have a little problem that I don't

Re: Listview clears all the data in the textfileds after adding new element in the List

2009-12-25 Thread ayman elwany
Thanks Sven , it is working now , In the beginning it wasn't working at all but after that I put the ListView and submitLink in a form and then worked. Thanks again.. form wicket:id=ListForm tr tdstrongfont size=4Employer :/font/strong/td /tr tr wicket:id=employersList tdinput type=text

Re: Listview clears all the data in the textfileds after adding new element in the List

2009-12-25 Thread ayman elwany
Hi Martin , thanks for your answer ,I add it the setReuseItems(true); but no effect , but the problem solved by changing the Link to submitLink and putting the Listview and the link in a form so by clicking the link all the fields in the form will be sent to the application.thanks to Sven for

  1   2   3   >