Re: ListView not updating when changed

2008-03-27 Thread Igor Vaynberg
i suppose you can try issuing a window.opener.wicket.ajax.get request to trigger an ajax request, but i am not sure how and if xmlhttprequest works across windows... -igor On Thu, Mar 27, 2008 at 7:56 AM, taygolf [EMAIL PROTECTED] wrote: I would have thought there was another way to do this.

Re: ListView not updating when changed

2008-03-27 Thread taygolf
Can I change my popup window from a standard popup window to a modal window. would that allow me to do what I am wanting to do. All I want to do is have a main page. on that main page click a link. the link will bring up a popup or a modal window, or a hidden div or what ever that will allow me

Re: ListView not updating when changed

2008-03-27 Thread Igor Vaynberg
yes, that way in modal window's close callback you have access to the ajax request target -igor On Thu, Mar 27, 2008 at 1:39 PM, taygolf [EMAIL PROTECTED] wrote: Can I change my popup window from a standard popup window to a modal window. would that allow me to do what I am wanting to do.

RE: ListView not updating when changed

2008-03-26 Thread taygolf
that worked prefect Thanks for the help. I decided to go with the Model example. I do have a few more questions though. First why cant I use a PropertyModel instead of a AbstractReadOnlyModel. I tried to do this: New Label(kmname, new PropertyModel(kmd, name); but that did not work. I am

Re: ListView not updating when changed

2008-03-26 Thread Igor Vaynberg
On Wed, Mar 26, 2008 at 6:57 AM, taygolf [EMAIL PROTECTED] wrote: that worked prefect Thanks for the help. I decided to go with the Model example. I do have a few more questions though. First why cant I use a PropertyModel instead of a AbstractReadOnlyModel. I tried to do this: New

Re: ListView not updating when changed

2008-03-26 Thread taygolf
THanks for explaining it to me igor. I have been doing some searching about my other problem. Again my new problem is that I really do not want this listview to refresh on a timer. Here is the process of my app. The user can click on a link that says add member. that link inturn creates a popup

Re: ListView not updating when changed

2008-03-26 Thread Igor Vaynberg
your popup is a different page or a div inside the current page? do you submit the form in it via ajax or a regular post? -igor On Wed, Mar 26, 2008 at 3:00 PM, taygolf [EMAIL PROTECTED] wrote: THanks for explaining it to me igor. I have been doing some searching about my other problem.

Re: ListView not updating when changed

2008-03-26 Thread taygolf
The popup is a different page. Just a simple page with 2 textfields and a few check boxes and a submit button and I submit it via a regular post right now but I can change that to ajax if that is what I need to do. igor.vaynberg wrote: your popup is a different page or a div inside the

Re: ListView not updating when changed

2008-03-26 Thread Igor Vaynberg
since its in a different page there isnt much you can do except something like outputting head script window.opener.refresh(); window.close(); /script /head after the form has been submitted -igor On Wed, Mar 26, 2008 at 6:39 PM, taygolf [EMAIL PROTECTED] wrote: The popup is a different

Re: ListView not updating when changed

2008-03-25 Thread Johan Compagner
what happens if you set: lv.setReuseItems(true); to false? and what do you mean with go back and edit ? browser back? johan On Tue, Mar 25, 2008 at 3:02 PM, taygolf [EMAIL PROTECTED] wrote: ok here is what I have. i have a listview that I want to update on the fly. The user clicks a

RE: ListView not updating when changed

2008-03-25 Thread Maeder Thomas
If memory serves, the ListView will not repopulate already existing items. I see two options: 1) setReuseItems(false) 2) instead of creating the label with a fixed String (I assume that kmd.getName() returns a String) pass an IModel to the label like so: New Label(kmname, new

Re: ListView not updating when changed

2008-03-25 Thread Igor Vaynberg
ListView lv = new PropertyListView(rows, kmList) { public void populateItem(final ListItem item) { item.add(new Label(kmname)); item.add(new Label(kmsec)); item.add(new Label(kmroles));