Re: ListView Problem (contains varying number of components inside)

2008-03-17 Thread Martijn Dashorst
, March 17, 2008 9:32 PM To: 'users@wicket.apache.org' Subject: RE: ListView Problem (contains varying number of components inside) Hi Michael, Thanks for your reply. I have looked closer just after sending the email found the problem and fixed it same as you have told. The new problem I

Re: ListView: if my entry is one component, can I not have it nested inside the entry?

2008-03-14 Thread Maurice Marrink
you should use item.setRenderBodyOnly(true) if you want to remove span wicket:id=entry and label.setrenderBodyOnly(true) to remove the span wicket:id=label By what you are describing you want item.add(new Label(label).setRenderBodyOnly(true)); Maurice On Fri, Mar 14, 2008 at 5:57 AM,

RE: ListView#isVisible dilemma

2008-03-07 Thread Maeder Thomas
Hi Igor, it is called that way for security reasons, eg so you cannot click a link that is not visible just because you know its url... Yes, but shouldn't the visibility be reevaluated anyway after the link is clicked? The clicking of the link, button, etc. usually changes the state of

Re: ListView#isVisible dilemma

2008-03-07 Thread Edvin Syse
Maeder Thomas skrev: what he should do is follow the delete call with a listview.detach() call Probably just being thick here, but how does calling listview.detach() hide the listview? The point is not to hide the listview, but to refresh the content. I think Igor meant model.detach(),

RE: ListView#isVisible dilemma

2008-03-07 Thread Maeder Thomas
But wasn't hiding the listview the original point of the question? Thomas -Original Message- From: Edvin Syse [mailto:[EMAIL PROTECTED] Sent: Freitag, 7. März 2008 10:15 To: users@wicket.apache.org Subject: Re: ListView#isVisible dilemma Maeder Thomas skrev: what he should do

Re: ListView#isVisible dilemma

2008-03-07 Thread Edvin Syse
But wasn't hiding the listview the original point of the question? No, hiding was not the issue. The issue was that because the model was consulted in the isVisible() method of the ListView, the deletion wouldn't be visible before the page was rerendered using the page-constructor (hence,

RE: ListView#isVisible dilemma

2008-03-07 Thread Maeder Thomas
. what gives? Thomas -Original Message- From: Edvin Syse [mailto:[EMAIL PROTECTED] Sent: Freitag, 7. März 2008 13:26 To: users@wicket.apache.org Subject: Re: ListView#isVisible dilemma But wasn't hiding the listview the original point of the question? No, hiding

Re: ListView#isVisible dilemma

2008-03-07 Thread Igor Vaynberg
i did mean listview.detach(), which will also detach the model...seemed simpler to me -igor On Fri, Mar 7, 2008 at 1:15 AM, Edvin Syse [EMAIL PROTECTED] wrote: Maeder Thomas skrev: what he should do is follow the delete call with a listview.detach() call Probably just being

Re: ListView#isVisible dilemma

2008-03-07 Thread Igor Vaynberg
On Fri, Mar 7, 2008 at 12:31 AM, Maeder Thomas [EMAIL PROTECTED] wrote: Hi Igor, it is called that way for security reasons, eg so you cannot click a link that is not visible just because you know its url... Yes, but shouldn't the visibility be reevaluated anyway after the link is

RE: ListView#isVisible dilemma

2008-03-07 Thread Maeder Thomas
Thanks, now I get it. Probably just being thick here, but how does calling listview.detach() hide the listview? it doesnt hide the listview, but it detaches the model. the problem was: suppose you have one item in the list 1) check listview visibility - loads the detachable model

Re: ListView#isVisible dilemma

2008-03-06 Thread Edvin Syse
to contribute a Wicket page explaining this dilemma and how to get around it, as I'm sure people run into this problem regularily. Sorry, I meant wiki page ofcourse :) -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: ListView#isVisible dilemma

2008-03-06 Thread Igor Vaynberg
it is called that way for security reasons, eg so you cannot click a link that is not visible just because you know its url... what he should do is follow the delete call with a listview.detach() call -igor On Thu, Mar 6, 2008 at 10:56 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I've run

Re: ListView#isVisible dilemma

2008-03-06 Thread Edvin Syse
it is called that way for security reasons, eg so you cannot click a link that is not visible just because you know its url... what he should do is follow the delete call with a listview.detach() call Allright, thanks. Is it worth making a wiki page for this? I'll do it if you think there is

Re: ListView#isVisible dilemma

2008-03-06 Thread Igor Vaynberg
not really sure, maybe add it into the gotchas wiki page -igor On Thu, Mar 6, 2008 at 11:08 AM, Edvin Syse [EMAIL PROTECTED] wrote: it is called that way for security reasons, eg so you cannot click a link that is not visible just because you know its url... what he should do is

Re: ListView#isVisible dilemma

2008-03-06 Thread Edvin Syse
not really sure, maybe add it into the gotchas wiki page OK :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: listView sorting question

2008-01-24 Thread Thomas Kappler
On Jan 23, 2008 10:35 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: The use case is that, I have a page that renders a listview, and I need to add a link that sorts the list when clicked. My listView uses LoadableDetachableModel that retrieves data using hibernate backend. In my current app,

Re: listView sorting question

2008-01-24 Thread Beyonder Unknown
constant in life is change. - Original Message From: Thomas Kappler [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Thursday, January 24, 2008 12:47:35 AM Subject: Re: listView sorting question On Jan 23, 2008 10:35 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: The use case

Re: listView sorting question

2008-01-23 Thread Igor Vaynberg
there are sortable grids examples in wicket-examples under repeaters. wicketstuff.org/wicket13/repeater -igor On Jan 23, 2008 1:35 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: Hi All, I was wondering if there's a better way to sort a list view. The use case is that, I have a page that

Re: listView sorting question

2008-01-23 Thread Beyonder Unknown
Thanks Igor! I appreciate it. Regards, Wen Tong -- The only constant in life is change. - Original Message From: Igor Vaynberg [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Wednesday, January 23, 2008 1:43:06 PM Subject: Re: listView sorting question there are sortable grids

Re: ListView + reusing Items

2008-01-20 Thread Ned Collyer
Martijn Dashorst wrote: And according to me you are the first person in a while to encounter such a thing... Nah, some of us just do workarounds, or begrudgingly add the urgly method call ;). I must admit having something so simple like adding components to a list, and them not working

Re: ListView + reusing Items

2008-01-17 Thread Martijn Dashorst
In my opinion no. Again, what you are doing is a corner case. The default for listview is to show data which updates automatically when refreshed if the model provides an updated list. This is the way it is intended, designed and documented. Martijn On 1/17/08, Jan Kriesten [EMAIL

Re: ListView + reusing Items

2008-01-17 Thread Martijn Dashorst
Then the wording is wrong... in fact it is a reloading list. And as such documented in numerous examples, presentations, books etc. I'm strongly against modifying this behavior, as it would cause a world of hurt for all applications out there where lists suddenly fail to update. Martijn On

Re: ListView + reusing Items

2008-01-17 Thread Martijn Dashorst
The list is not read only, it is reloading. That is the difference! Martijn On 1/17/08, Jan Kriesten [EMAIL PROTECTED] wrote: Hi Martin, Again, what you are doing is a corner case. The default for listview is to show data which updates automatically when refreshed if the model provides

Re: ListView + reusing Items

2008-01-17 Thread Johan Compagner
If we would make another default then the other camp will start complaining, and changing that breaks a lot others Maybe what we could do is trying to detect things, but i dont like that magic to much. Or have a subclass of listview with a very good decriptive name that has the default reuse..

Re: ListView + reusing Items

2008-01-17 Thread Jan Kriesten
Hi Martin, Again, what you are doing is a corner case. The default for listview is to show data which updates automatically when refreshed if the model provides an updated list. This is the way it is intended, designed and documented. I have seen the 'Warning' sign on ListView - no question.

Re: ListView + reusing Items

2008-01-17 Thread Martijn Dashorst
No, the fact that you see some problems with listviews not reusing their components on the user list, is not a sign that it is flawed. I see that as a confirmation that 99% of our users *don't* have problems with the listview the way it is currently setup. And according to me you are the first

Re: ListView + reusing Items

2008-01-17 Thread Jan Kriesten
hi martin, Then the wording is wrong... in fact it is a reloading list. And as such documented in numerous examples, presentations, books etc. I'm strongly against modifying this behavior, as it would cause a world of hurt for all applications out there where lists suddenly fail to update. i

Re: ListView + reusing Items

2008-01-17 Thread Timo Rantalaiho
On Thu, 17 Jan 2008, Jan Kriesten wrote: I just - again - was trapped by the default behavior of ListView not reusing it's list items. My gut feeling is that often RefreshingView or DataView work better than ListView, with or without setting the reuseitems setting :) Best wishes, Timo --

Re: ListView + reusing Items

2008-01-17 Thread Jan Kriesten
hi timo, On Thu, 17 Jan 2008, Jan Kriesten wrote: I just - again - was trapped by the default behavior of ListView not reusing it's list items. My gut feeling is that often RefreshingView or DataView work better than ListView, with or without setting the reuseitems setting :) actually, i

Re: Listview / input components repaint via ajax?

2007-08-28 Thread Nino Saturnino Martinez Vazquez Wael
Hmm just added AjaxFormComponentUpdatingBehavior to my text fields, this works nicely.. But your help pointed me the correct way. regards Nino fero wrote: Of course they are cleared, because data form textfield is transfered to model only if submited with submit button. If u repaint the

Re: Listview / input components repaint via ajax?

2007-08-28 Thread Nino Saturnino Martinez Vazquez Wael
Jep, I sorta thought that it wouldnt make sense for it to call removeAll... regards Nino Eelco Hillenius wrote: I have a listview in a panel. I have a ajax link to add items to the list. When I click the link the listview are repainted, because I have it in the markupcontainer just as it

Re: Listview / input components repaint via ajax?

2007-08-27 Thread Nino Saturnino Martinez Vazquez Wael
Hold for a minute, it might be something internal. I'll get back if it turns out not to be. Nino Saturnino Martinez Vazquez Wael wrote: Hi I have a listview in a panel. I have a ajax link to add items to the list. When I click the link the listview are repainted, because I have it in the

Re: Listview / input components repaint via ajax?

2007-08-27 Thread fero
Of course they are cleared, because data form textfield is transfered to model only if submited with submit button. If u repaint the panel, model is blank. Use AjaxEditableLabel instead of TextField. It will transfer dat to model immediately after editing. Hope it helps, i was solving this issue

Re: Listview / input components repaint via ajax?

2007-08-27 Thread Eelco Hillenius
I have a listview in a panel. I have a ajax link to add items to the list. When I click the link the listview are repainted, because I have it in the markupcontainer just as it should. In the listview there are some textfields, these are cleared when the markupcontainer are repainted, I dont

Re: ListView + AjaxEditableLabel + move down and move up

2007-08-07 Thread anita nichols
Ok. Actually my code already have ajaxrequest target, how do I use this http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListViewcode? Also anyone know where the wicket extension and javadoc go after they move their web site to apache? Anita On 8/3/07, Gerolf Seitz

Re: ListView + AjaxEditableLabel + move down and move up

2007-08-03 Thread Gerolf Seitz
maybe this is something for you: at http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView what you could also do is the following: + add two ajaxbuttons up and down (or images) + change the position of the row-data in the backing list in the onSubmit method of the

Re: ListView + AjaxEditableLabel + move down and move up

2007-08-03 Thread Gerolf Seitz
if the last suggestion is too costly (rendering the whole listview), you could just change the order of the backing list without redrawing it and add some javascript to the requesttarget (target.appendjavascript) which does the dom manipulation... On 8/4/07, Gerolf Seitz [EMAIL PROTECTED] wrote:

<    1   2   3