Re: [Wicket-user] ListView class cast exception

2007-05-24 Thread eddmosphere
Well...DUH to me! :/ Appart from the getUsers method, I was also trying a wrong query to the database.. Anyway, my method has to be something like this.. ... public List getUsers(ResultSet rs) { List retval = new ArrayList(); try { while(rs.next()) { retval.add(

Re: [Wicket-user] ListView class cast exception

2007-05-24 Thread Robert Novotny
Hello, your getUsers() method looks suspicious - it seems to create list of strings (not Users). Particularly, you add Strings retrieved from the resultset into the list. retval.add(rs.getString(1)); Therefore the ListView component gets passed the list of Strings retrieved from the first co

Re: [Wicket-user] Listview listitem onchange

2007-04-18 Thread Igor Vaynberg
you can call component.setoutputmarkupid(true); this will add a unique id="foo" attr to the component's tag. then somewhere in the code that generates javascript you can get the id by calling component.getoutputmarkupid() -igor On 4/18/07, wicketmarsh <[EMAIL PROTECTED]> wrote: I fully agre

Re: [Wicket-user] Listview listitem onchange

2007-04-18 Thread wicketmarsh
I fully agree that I need to do it on client side, can somebody tell me how to access wicket id compoent (in my case it is addresscomponent which is not html element ) inside javascript. thanks, pradip igor.vaynberg wrote: > > however/whatever he wants to do it needs to be done on the client.

Re: [Wicket-user] Listview listitem onchange

2007-04-17 Thread Igor Vaynberg
however/whatever he wants to do it needs to be done on the client. having a roundtrip to the server will not really work for something like this. -igor On 4/17/07, wicketmarsh <[EMAIL PROTECTED]> wrote: I have address component added to form . this addresscompoent has address details field.

Re: [Wicket-user] Listview listitem onchange

2007-04-17 Thread wicketmarsh
I have address component added to form . this addresscompoent has address details field. onchange of listview's textbox I want to hide the address component. since address component has only wicket id and it is not html element , how do i access this address compoent inside the script ? thanks

Re: [Wicket-user] Listview listitem onchange

2007-04-17 Thread Robbert Vergeten
As far as I can tell he did not want to hide just all other textfields but other form parts. Oh and the nulled/duplicated id's is only if you forget to add .setOutputMarkupId(*true*); to the individual components within the listview... (like me) On 4/17/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote

Re: [Wicket-user] Listview listitem onchange

2007-04-17 Thread Igor Vaynberg
why would all the ids be the same? and why would you use the id. i would add a special class to the textfields, and then using something like prototype do onchange=hideothers(this); function hideothers (t) { var textfields=$$(class:myclass); // or whatever prototype syntax is textfields.forea

Re: [Wicket-user] Listview listitem onchange

2007-04-17 Thread Robbert Vergeten
Because id's will be all the same for a listview's generated textfields and you want to read out the value I suppose try using "this" in the event. function test(x){ alert(x.value); } On 4/17/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: you should do this through javascript, it would be kind

Re: [Wicket-user] Listview listitem onchange

2007-04-16 Thread Igor Vaynberg
you should do this through javascript, it would be kinda insane to do a roundtrip in textfield.onchange to do something like this. -igor On 4/16/07, wicketmarsh <[EMAIL PROTECTED]> wrote: Hi I am using Listview to render a list of TextField. I would like to add onchnage event on textfield

Re: [Wicket-user] ListView

2007-01-05 Thread Johan Compagner
try: *new* CheckGroup("sectorCheckGroup", new Model()); the check group doesn't have a model where it can store the values in. johan On 1/5/07, Lost Still Lost <[EMAIL PROTECTED]> wrote: Hello I'm Yuri. I was trying to make use of a ListView instance to get checkboxes for strings that I hav

Re: [Wicket-user] ListView

2007-01-05 Thread Lost Still Lost
Hello I'm Yuri. I was trying to make use of a ListView instance to get checkboxes for strings that I have stored in a database But I get this error when trying to access the page containing the ListView instance. WicketMessage: CheckGroup [4:searchform:sectorCheckGroup] contains a null model o

Re: [Wicket-user] ListView

2006-12-16 Thread Igor Vaynberg
if you use a detachable model in both lists then you dont need to tell it the model has changed, it will be refreshed when the listview is redrawn -igor On 12/16/06, Roman Mandeleil <[EMAIL PROTECTED]> wrote: Do you mean that if I have two lists and one want's to update another from the onPos

Re: [Wicket-user] ListView

2006-12-16 Thread Roman Mandeleil
Do you mean that if I have two lists and one want's to update another from the onPostProcessTarget it can just indicate on the webmarkupcontainer that data model has changed. igor.vaynberg wrote: > > yes, repeaters dont have their own markup so the way to update them is to > put them into a we

Re: [Wicket-user] ListView

2006-12-16 Thread Igor Vaynberg
yes, repeaters dont have their own markup so the way to update them is to put them into a webmarkupcontainer and update the container instead of the repeater -igor On 12/16/06, Roman Mandeleil <[EMAIL PROTECTED]> wrote: Hi Wicket team, Can I update the ListView with AjaxSelfUpdatingTimer

Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-15 Thread Igor Vaynberg
thank you for writing it up and the wiki as well-igorOn 11/15/06, Erik van Oosten <[EMAIL PROTECTED] > wrote:Hi Igor,To ease your life a bit :) I wrote WICKET-71 and updated the wiki (http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html).Thanks for solving WICKET-71 so quickly :)Regards

Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-15 Thread Erik van Oosten
Hi Igor, To ease your life a bit :) I wrote WICKET-71 and updated the wiki (http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html). Thanks for solving WICKET-71 so quickly :) Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ ---

Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Igor Vaynberg
override newitem() :)-igorOn 11/14/06, Johan Compagner <[EMAIL PROTECTED]> wrote: ok fine by me by not doing that.it was just an idea. But maybe it would be nice to configure the listview once and list items inherit it (which property it is :)) johan On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]>

Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Johan Compagner
ok fine by me by not doing that.it was just an idea. But maybe it would be nice to configure the listview once and list items inherit it (which property it is :)) johan On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 11/14/06, Erik van Oosten < [EMAIL PROTECTED]> wrote: Thanks Ingram.I can

Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Igor Vaynberg
On 11/14/06, Erik van Oosten <[EMAIL PROTECTED]> wrote: Thanks Ingram.I can not find it on the Wiki. It is also not included in the ListViewjavadoc. I could have searched the maillists, sorry.Johan Compagner wrote:> this is asked more.> Maybe we can set it through on all the items we create? > Or c

Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Ingram Chen
FAQ.you should use item.setRenderBodyOnly(true) insteadOn 11/14/06, Erik van Oosten <[EMAIL PROTECTED] > wrote:Hello,Is there a particular reason why ListView does not respect the RenderBodyOnly flag?I have something like this: I want it to render as: item 1 item

Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Erik van Oosten
Thanks Ingram. I can not find it on the Wiki. It is also not included in the ListView javadoc. I could have searched the maillists, sorry. Johan Compagner wrote: > this is asked more. > Maybe we can set it through on all the items we create? > Or can that be confusing in other situations? I thi

Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Johan Compagner
this is asked more.Maybe we can set it through on all the items we create?Or can that be confusing in other situations?johanOn 11/14/06, Ingram Chen <[EMAIL PROTECTED]> wrote: FAQ.you should use item.setRenderBodyOnly(true) insteadOn 11/14/06, Erik van Oosten < [EMAIL PROTECTED] > wrote:Hello,Is t

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-21 Thread Gwyn Evans
Now added to the Wiki's ListView page - http://www.wicket-wiki.org.uk/wiki/index.php/ListView#FAQ /Gwyn On 21/08/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > if you search the list you will see a ton of messages that explain this, > thats why i didnt bother doing it here for the hundredth time

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-21 Thread Igor Vaynberg
if you search the list you will see a ton of messages that explain this, thats why i didnt bother doing it here for the hundredth time :)-IgorOn 8/20/06, Roman Mandeleil <[EMAIL PROTECTED]> wrote: Ok, thanks, now it works fine, but do you have some good explanation to thatbehaviourit is not intuit

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-21 Thread Martijn Dashorst
However, if you take a closer look at the markup, and the markup that gets generated, you can clearly see the problem for a listview: In the server side markup: some value In the client side markup: foo bar foobar What you typically want to do is to redraw the complete part, because most br

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-20 Thread Roman Mandeleil
Ok, thanks, now it works fine, but do you have some good explanation to that behaviour it is not intuitive to put a ListView into some WebMarkupContainer just for Ajax update, because ListView itself is a WebMarkupContainer Scott Swank wrote: > > I can vouch for it's common-ness. > > On 8/20

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-20 Thread Scott Swank
I can vouch for it's common-ness. On 8/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you cannot repaint listview directly via ajax - this is a common mistake. > try putting it into a webmarkup container and repainting that container > instead. > > -Igor > > > > On 8/20/06, Roman Mandeleil <[EM

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-20 Thread Igor Vaynberg
you cannot repaint listview directly via ajax - this is a common mistake. try putting it into a webmarkup container and repainting that container instead.-IgorOn 8/20/06, Roman Mandeleil <[EMAIL PROTECTED]> wrote: Check some problem in the attached file (some notes in the source)http://www.nabble.

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-20 Thread Roman Mandeleil
Check some problem in the attached file (some notes in the source) http://www.nabble.com/user-files/235691/ListPage.java ListPage.java igor.vaynberg wrote: > > yes, it shouldnt be happening thats why i wanted to see your code/markup. > > have you tried in ffox and ie? sometimes when ajax u

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-19 Thread Igor Vaynberg
yes, it shouldnt be happening thats why i wanted to see your code/markup.have you tried in ffox and ie? sometimes when ajax updating trs you end up with duplicates - so it may just be a case of crappy outerhtml support in the browser. -IgorOn 8/19/06, Roman Mandeleil <[EMAIL PROTECTED]> wrote: I ca

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-19 Thread Roman Mandeleil
I can provide you some sample but I think it will complicate the situation , I want to understand the principle of how it works, I thought the model should be full synchronized with the html on the screen, but maybe the idea is something else ? igor.vaynberg wrote: > > how about some code of t

Re: [Wicket-user] ListView and AjaxSelfUpdatingTimerBehavior

2006-08-18 Thread Igor Vaynberg
how about some code of that page?-IgorOn 8/18/06, Roman Mandeleil <[EMAIL PROTECTED] > wrote:I really don't understand how it should works, I have a ListView and some model attached to it with two elements , some how every self updating cycleI got one element added to the list on the screen, any id

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-11 Thread Igor Vaynberg
yes, we can ditch : as the default separator and use something else like an underscore.-IgorOn 8/11/06, Johan Compagner < [EMAIL PROTECTED]> wrote:can wicket do something to improve this? On 8/11/06, Pierre-Yves Saumont < [EMAIL PROTECTED]> wrote: I finally find what caused the problem: I knew that

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-11 Thread Johan Compagner
can wicket do something to improve this?On 8/11/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote: I finally find what caused the problem: I knew that for the example towork as standalone, one must call setOutputMarkup(true) on the ListViewcontainer. What I did not know is that if the example is em

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-11 Thread Pierre-Yves Saumont
I finally find what caused the problem: I knew that for the example to work as standalone, one must call setOutputMarkup(true) on the ListView container. What I did not know is that if the example is embeded in an Ajax TabbedPanel, the Form used to update the ListView must also have setOutputMa

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Igor Vaynberg
if there is nothing in the ajax debug window then a request is never made so the _javascript_ doesnt execute. are there _javascript_ errors?is the update performed by a self updating timer behavior?  if so it will not be executed if the listview itself is shown as a result of ajax update unless you

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
I am sorry, I just hit reply and although sometimes it goes to the list, sometimes not :-( I tried to use the enclosing tab as the target, as well as the panel that was used in the standalone version. In either case, absolutely nothing happens. And nothing is displayed in the Ajax Debug Windows

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Igor Vaynberg
> b) you cannot update tr/tbody/etc tags via outerhtml which is what we do> and when you try you get the very helpful runtime error I do not get any error in Firefox although I update tbody !not all browsers are born equal. have you tried safari? opera? konqueror? :)-Igor --

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
> you cannot update listview directly because > a) listview itself has no markup - it lets the children use its markup I know this because I made some research on the list archive and found one of your post where you explained this problem ;-) > b) you cannot update tr/tbody/etc tags via outerht

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Igor Vaynberg
you cannot update listview directly because a) listview itself has no markup - it lets the children use its markupb) you cannot update tr/tbody/etc tags via outerhtml which is what we do and when you try you get the very helpful runtime error you have to create a markupcontainer around the listview

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
I eventually could not reproduce the problem in a test case. However, I have been able (??) to produce another problem of the same kind, ie something that does not work the same in IE6 and Firefox. In fact, it works fine in FireFox and produces an error in IE6. The example is a ListView that is

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Johan Compagner
do you have a simple test case in a quickstart project?On 8/10/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote: Hello,After spending the night testing, it appears that there are twodifferent problems : 1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form form) - isnot called and Wicket d

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
Hello, After spending the night testing, it appears that there are two different problems : 1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form form) - is not called and Wicket default to onSubmit() if is is present. I can't see why Ajax does not work for this form, since it works fo

Re: [Wicket-user] ListView#accept() proposal

2006-07-22 Thread Thomas R. Corbin
On Monday, 17 July 2006 08:21 pm, Aaron Hiniker escreveu: > Yes, a List implement that filters on the fly would avoid the copy, but I am not sure if you are talking the Collections api list, but if you are then the Glazedlists stuff provides an implementation of the Collections api list

Re: [Wicket-user] ListView#accept() proposal

2006-07-18 Thread Igor Vaynberg
refreshingview is not pageable so you dont need to know the size upfront -Igor On 7/18/06, Johan Compagner <[EMAIL PROTECTED]> wrote: But then you need to pre filter the list. Because what would size() return??But going with something out of the repeater package would be better.But then still you

Re: [Wicket-user] ListView#accept() proposal

2006-07-18 Thread Johan Compagner
But then you need to pre filter the list. Because what would size() return??But going with something out of the repeater package would be better.But then still you need to filter up front because all those Repeaters do want to know the total size? And filtering on demand doesn't work then.johanOn 7

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
another key reason for list is that the index of the list is used as a primary key to identify the right item on callbacks.-IgorOn 7/17/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote: Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
there is RefreshingView that works off an iterator which is incidentally very wasy to filter in real time. it lives in wicket-extensions. there has been talk of moving that and dataview into core, but nothing concrete. -IgorOn 7/17/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote: Yes, a List

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker
Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance hits than a single List copy (due to the "Linked List" nature of the filtering).  The current ListView implementation only works on lists.. rightfully so because you can extract the active

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.-IgorOn 7/17/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote: Yeah, there's no problem implementing this in the model, other than

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker
Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy. Aaron On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote: the filtering should be performed in the model - it is the perfect place for it. -Igor On 7

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
the filtering should be performed in the model - it is the perfect place for it.-IgorOn 7/17/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:Just out of my head. Paging which is based on windows size and list size would need to take these into consideration. Not sure this changeis trivial.Juergen

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Juergen Donnerstag
Just out of my head. Paging which is based on windows size and list size would need to take these into consideration. Not sure this change is trivial. Juergen On 7/18/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote: > > I frequently have the need to filter the elements in a ListView.. of > course I

Re: [Wicket-user] ListView containing BookmarkablePageLink items

2006-03-25 Thread Juergen Donnerstag
wicket tries not to apply any magic. try whatever wicket will not automatically convert into body Juergen On 3/24/06, Matthias Albert <[EMAIL PROTECTED]> wrote: > Trying to create a ListView that shows a dynamically created list of > BookmarkablePageLink items, I first tried a list of labels, w

Re: [Wicket-user] ListView containing BookmarkablePageLink items

2006-03-24 Thread Igor Vaynberg
change to labels work by replacing the body of the tag they are attached to, since doesnt have a body there is no visible output. -IgorOn 3/24/06, Matthias Albert <[EMAIL PROTECTED]> wrote: Trying to create a ListView that shows a dynamically created list ofBookmarkablePageLink items, I first tri

Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Michael K
Title: Re: [Wicket-user] ListView: Rendering table row id attribute Hi Karl,I thought it will be much easier if I use row (or may be I 'm wrong) instead of retrieving 'tr' element. In real situation I 'm going to use it against a nested table and use _javascript_ to toggle (hi

Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Karl-Erik Rønsen
Title: Re: [Wicket-user] ListView: Rendering table row id attribute Why do you need to set an id for each row? Instead you can set an id for the table element and call: var myRow = document.getElementById( “tableId” ).getElementsByTagName( “tr” )[indexOfRowYouWant]; Karl-Erik On 13-03-06

Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Dirk Markert
Well,   actually it is   protected void populateItem(final ListItem listItem) {listItem.add(new AttributeModifier("id", .., new Model("row" + listItem.getIndex() )); }  Dirk  2006/3/13, Dirk Markert <[EMAIL PROTECTED]>: Hi Michael,   you need an AttributeModifier. Something like   protected v

Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Dirk Markert
Hi Michael,   you need an AttributeModifier. Something like   protected void populateItem(final ListItem listItem) {    add(new Label("name","Scooby").new AttributeModifier("id", .., new Model("row" + listItem.getIndex())); }  Dirk   2006/3/13, Michael K <[EMAIL PROTECTED]>: Hi,I want to be

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Eelco Hillenius
Nice Eelco On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote: > Of course, for me, an enforcement aspect does the job :-). > > The following version reflects my current understanding, but over time a > more general purpose selection logic (the pointcut) and more enforcements > can be added.

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Ramnivas Laddad
Of course, for me, an enforcement aspect does the job :-). The following version reflects my current understanding, but over time a more general purpose selection logic (the pointcut) and more enforcements can be added. package com.aspectivity.wicket.policyEnforcement; import wicket.Compone

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Igor Vaynberg
this would be a pain to maintain. we cant just lock out /all/ behaviors from being added to listview, some might make sense.-IgorOn 3/2/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:I second this request (about runtime notification of invalid states) On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrot

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Riyad Kalla
I second this request (about runtime notification of invalid states) On 3/2/06, Ramnivas Laddad <[EMAIL PROTECTED]> wrote: > Thanks, Igor. It works now. > > Would it be possible to throw an exception when someone tries to add an > unacceptable Behavior such as AjaxSelfUpdatingTimerBehavior to a

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Ramnivas Laddad
Thanks, Igor. It works now. Would it be possible to throw an exception when someone tries to add an unacceptable Behavior such as AjaxSelfUpdatingTimerBehavior to a listview (or any other class doesn't produce any markup itself). -Ramnivas Igor Vaynberg wrote: you cannot update a listview it

Re: [Wicket-user] ListView not working with AJAX

2006-03-02 Thread Igor Vaynberg
you cannot update a listview itself directly because it does not produce any markup itself. you need to put it into a webmarkupcontainer and attach the update behavior to that.WebMarkupContainer wmc=new WebMarkupContainer("wmc"); wmcvadd(wmc);wmc.add(new ListView(wmc.add(new AjaxSelfUpdatin

Re: [Wicket-user] Listview: cannot instantiate the type

2006-02-24 Thread Martijn Dashorst
ent: Friday, February 24, 2006 11:37:17 AM Subject: Re: [Wicket-user] Listview: cannot instantiate the typeThe wicket quickstart project I just downloaded contains wicket 1.1.1I vaguely remember that this was the case, and that I updated the release. The current download for wicket-quicksta

Re: [Wicket-user] Listview: cannot instantiate the type

2006-02-24 Thread deshmol-lists
tart-1.0.1-src.zip But I'm new to Wicket, so maybe I was looking at the wrong place? ~ amol - Original Message From: Martijn Dashorst <[EMAIL PROTECTED]> To: wicket-user@lists.sourceforge.net Sent: Friday, February 24, 2006 11:37:17 AM Subject: Re: [Wicket-user] Listvie

Re: [Wicket-user] Listview: cannot instantiate the type

2006-02-24 Thread Martijn Dashorst
___ > > > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf > > Of Igor Vaynberg > > Sent: Friday, February 24, 2006 5:02 PM > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user

Re: [Wicket-user] Listview: cannot instantiate the type

2006-02-24 Thread Martijn Dashorst
> Of Igor Vaynberg > Sent: Friday, February 24, 2006 5:02 PM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] Listview: cannot instantiate the type > > > > all i can tell you isto make sure wicket.jar is on your buildpath under > project propertie

RE: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Nino Wael
: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Listview: cannot instantiate the type   Yep, only attach the listview not to the table, but to the tr. In your current implementation this will render the following: Actuelle forlob fordelt pa varigheddescription antal

Re: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Martijn Dashorst
td wicket:id = "info" > td > tr > table >         From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Martijn Dashorst Sent: Thursday, February 23, 2006 10:22 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-

Re: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Martijn Dashorst
d = "maaling2" >    < tr > < td wicket:id = "radio" > td >< td wicket:id = "info" > td > tr > table >         From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of

RE: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Nino Wael
="maaling2" >    <tr> <td wicket:id="radio"> td><td wicket:id="info"> td> tr> table>         From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst Sent: Thursday, February 23, 2006 10

Re: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Martijn Dashorst
wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Listview: cannot instantiate the type   ListView is abstract.  You must implement the populateItem(...) method: new ListView("list", forklaring) {     public void populateItem(ListItem item) {     // add stuff to it

RE: [Wicket-user] Listview: cannot instantiate the type

2006-02-23 Thread Nino Wael
] On Behalf Of Nick Heudecker Sent: Thursday, February 23, 2006 8:42 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Listview: cannot instantiate the type   ListView is abstract.  You must implement the populateItem(...) method: new ListView("list", forklaring) {

Re: [Wicket-user] Listview: cannot instantiate the type

2006-02-22 Thread Nick Heudecker
ListView is abstract.  You must implement the populateItem(...) method:new ListView("list", forklaring) {    public void populateItem(ListItem item) {     // add stuff to item.    }};On 2/23/06, Nino Wael <[EMAIL PROTECTED]> wrote: Hi Im having trouble instantiateing the Listview co

Re: [Wicket-user] ListView tutorial?

2006-01-23 Thread Igor Vaynberg
s is done in the RadioGroupPage example.   Is this the intuition?     -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Igor Vaynberg Sent: Monday, January 23, 2006 12:45 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ListView

RE: [Wicket-user] ListView tutorial?

2006-01-23 Thread Frank Silbermann
Radio button, as is done in the RadioGroupPage example.   Is this the intuition?     -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Monday, January 23, 2006 12:45 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user

Re: [Wicket-user] ListView tutorial?

2006-01-23 Thread Igor Vaynberg
here is an unrolled listview example using the ordered repeating view from extensions. ORV is like a listview in respect that it lets its immediate children use its markup.OrderedRepeatingView repeater=new OrderedRepeatingView("repeater"); for (int i=0;i  final User user=users.get(i);  WebMarkupCon

Re: [Wicket-user] ListView tutorial?

2006-01-23 Thread Igor Vaynberg
radiogroup asidelets take a simple example, we want to show a table of users:        what we want is everything within ... to repeat once for every user. so we attach listview to the tr tag.what listview does is make its immediate children believe that their markup is that of the listview itself.

Re: [Wicket-user] ListView and multiple items

2006-01-16 Thread Igor Vaynberg
On 1/17/06, Ittay Dror <[EMAIL PROTECTED]> wrote: Igor Vaynberg wrote:> while the css definition of the class is a design issue, i disagree that> the application of it is. in my view the code SHOULD decide what class> to apply if it is decided dynamically. that mens communicating design information

Re: [Wicket-user] ListView and multiple items

2006-01-16 Thread Ittay Dror
Igor Vaynberg wrote: while the css definition of the class is a design issue, i disagree that the application of it is. in my view the code SHOULD decide what class to apply if it is decided dynamically. that mens communicating design information between the web designer and the developer.

Re: [Wicket-user] ListView and multiple items

2006-01-16 Thread Igor Vaynberg
while the css definition of the class is a design issue, i disagree that the application of it is. in my view the code SHOULD decide what class to apply if it is decided dynamically.also look at the markup you want to get working. you replicated everything twice which will make it a pain to maintai

Re: [Wicket-user] ListView for navigation menu?

2005-11-02 Thread Stijn de Witt
Thanks for all your help! I have a basic example working now, and I am trying to fix the last separator as per your suggestions. I put a link object (actually a BookmarkablePageLink) in a list for every page to be in the menu and use those in the populateItem(), like this: <>    public HomePag

Re: [Wicket-user] ListView for navigation menu?

2005-11-02 Thread Phil Kulak
Oh yea, that's much better. On 11/2/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > In that case, better would be to compare the current index of ListItem > (li.getIndex) with the ListView's size (lv.getViewSize()). That way > you won't have to touch the 'internal' model, and it'll work with > si

Re: [Wicket-user] ListView for navigation menu?

2005-11-02 Thread Eelco Hillenius
In that case, better would be to compare the current index of ListItem (li.getIndex) with the ListView's size (lv.getViewSize()). That way you won't have to touch the 'internal' model, and it'll work with sizes that differ from the underlying model. Eelco On 11/2/05, Phil Kulak <[EMAIL PROTECTED

Re: [Wicket-user] ListView for navigation menu?

2005-11-02 Thread Phil Kulak
So you just need to know when the item you're rendering is the last in the list? Well, you have access to the list (getList()) and the item (item.getModelObject()), so it should be pretty straight forward, if not elegant, to find out if the item is the last in the list. On 11/1/05, Eelco Hillenius

Re: [Wicket-user] ListView for navigation menu?

2005-11-01 Thread Eelco Hillenius
Yeah, something like that could work pretty well. I think you should take a look at how paged lists work (package wicket.markup.html.navigation.paging). Eelco On 11/1/05, Stijn de Witt <[EMAIL PROTECTED]> wrote: > <>Hi all, > > > I'm a new user to Wicket. I love what I have seen so far. The Hel

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Matej Knopp
Sorry, my bad. Of course it won't be collected. I guess I just need more caffeine :) -Matej Johan Compagner wrote: why would that customer model be GC'ed? It is the model of the list yes? As long as the list is there with its list items the model won't be garbage collected anyway. johan M

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Johan Compagner
why would that customer model be GC'ed? It is the model of the list yes? As long as the list is there with its list items the model won't be garbage collected anyway. johan Matej Knopp wrote: sure I can have reference to customerModel by making it final. But I want to get as much garbe colle

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Matej Knopp
sure I can have reference to customerModel by making it final. But I want to get as much garbe collected as possible at the end of request and making the reference final wouldn't help it much :) But considering the speed issue, maybe it is better to use redirect_to_buffer after all ;) one lin

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Johan Compagner
hmm because of that i didn't go for redirect_to_render.. The redirect to buffer is by far the fastest approach. And depending on that a redirect does happen and that does the detach and the attach again for you doesn't seem good programming to me ;) can't you just have a reference directly to y

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Matej Knopp
Okay, thank you, this works. Nevertheless putting getParent().getParent().getModel().detach(); to link handler doesn't seem very pretty. Maybe like I'll just stick with Redirect to render. :) -Matej Johan Compagner wrote: detach youre model first. Because a model in redirect_to_buffer

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Johan Compagner
detach youre model first. Because a model in redirect_to_buffer isn't loaded twice because all is done in one request. customersModel.detach() should do the trick or remove the deleted customer specific from that model johan Matej Knopp wrote: Hi. For a long time I was working with rend

Re: [Wicket-user] ListView Question

2005-08-19 Thread Huy Do
okay thanks. understood. Nice work by the way with wicket. Its very nice, and will get so much nicer once things become more second nature. Huy Johan Compagner wrote: you don't have to really subclass that concrete class. You can return any model you want that fits youre needs. johan Huy D

Re: [Wicket-user] ListView Question

2005-08-19 Thread Johan Compagner
you don't have to really subclass that concrete class. You can return any model you want that fits youre needs. johan Huy Do wrote: Thank you for the explanation. I understand it now after reading your explanation and rereading the docs. I was confused with the "ListItemModel implementation"

Re: [Wicket-user] ListView Question

2005-08-18 Thread Huy Do
Thank you for the explanation. I understand it now after reading your explanation and rereading the docs. I was confused with the "ListItemModel implementation" part because I was wasn't subclassing ListItemModel in my code. Huy Johan Compagner wrote: that getListItemModel() method can retu

Re: [Wicket-user] ListView Question

2005-08-18 Thread Johan Compagner
that getListItemModel() method can return a model that is detachable where you only hold the id of the PickDetail object as state. Then on attach you use that id to read youre PickDetail object from somewhere (db) so that you can return it on getModelObject() by default we have a ListItemModel

Re: [Wicket-user] ListView Question

2005-08-18 Thread Huy Do
Thanks for the information. However, I was looking for something along the lines of protected void populateItem(final ListItem item) { final PickDetail pickDet = (PickDetail)item.getModelObject(); *item.addAllBeanProperties(pickDet);*

  1   2   >