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(
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
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
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.
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.
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
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
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
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
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
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
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
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
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
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
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
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/
---
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]>
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
> 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
--
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
___
> >
> >
> > 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
> 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
: 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
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-
d
=
"maaling2"
>
<
tr
>
<
td
wicket:id
=
"radio"
>
td
><
td
wicket:id
=
"info"
>
td
>
tr
>
table
>
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
="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
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
] 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) {
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
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
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
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
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.
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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"
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
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
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 - 100 of 108 matches
Mail list logo