InlineFrame: IPageLink object looses reference to page after deserialiations

2009-01-25 Thread Ittay Dror
Hi, I'm trying to use the InlineFrame component. I create an IPageLink object to it. The object holds a reference to a page. By placing breakpoints, I can see that the IPageLink object is created once. InlineFrame#onLinkClicked is called twice. On the first time, the page reference is fine

Re: Performance question

2009-01-25 Thread Johan Compagner
I guess wicket should dump the page serialized size in development mode. So that users see them when developing. On 21/01/2009, Michael O'Cleirigh wrote: > Hello, > > A big delay in refreshing can be a sign that your pages are serializing > your domain object graph as part of the page serializati

Re: Observation and page (map) eviction

2009-01-25 Thread Johan Compagner
Maybe if you want listeners then only the session listen to those? And pages/components when they render pull the changes out of the session? On 25/01/2009, Frank van Lankvelt wrote: > But how is a view to know if its model (object) has changed in the pull > model? One way that I see this workin

Re: Observation and page (map) eviction

2009-01-25 Thread Johan Compagner
What we doe is pretty simple Just remeber the last rendered value of a component. Then you can compare this to something and you know if it is changed ore not. On 25/01/2009, Frank van Lankvelt wrote: > But how is a view to know if its model (object) has changed in the pull > model? One way that

Re: Access last page

2009-01-25 Thread Johan Compagner
You should hold that info yourself Not the page itself but just the id and the version number (and pagemap) Then through session.get(x,y,z) you can get the page On 25/01/2009, Per Newgro wrote: > Hi, > > can i easily access the page from which another page is called? I would > like to share the

Re: Panel in List, remove extra div

2009-01-25 Thread Prag
Perfect, thanks! igor.vaynberg wrote: > > > > > > -igor > -- View this message in context: http://www.nabble.com/Panel-in-List%2C-remove-extra-div-tp21656188p21656303.html Sent from the Wicket - User mailing list archive at Nabble.com. -

Re: Panel in List, remove extra div

2009-01-25 Thread Igor Vaynberg
-igor On Sun, Jan 25, 2009 at 12:19 PM, Prag wrote: > > I have a page on which I want to show products. Because I want to also want > to show products on otherpages in the same way, I've made a ProductPanel. > I'm also using ListView to show multiple ProductPanels on each page. > > I'm

Panel in List, remove extra div

2009-01-25 Thread Prag
I have a page on which I want to show products. Because I want to also want to show products on otherpages in the same way, I've made a ProductPanel. I'm also using ListView to show multiple ProductPanels on each page. I'm using a panel in a list, but this gives an extra div. I don't see how I ca

Re: Embedding html from an external application

2009-01-25 Thread Erik van Oosten
Hi Farhan, Yes, indeed. After so many years Wicket can still surprise me. Anyway, the problems you have with this are identical as you would have with the c:import tag. What you want is not simply feasible. It would be wise to consider alternatives. For example moving the JSPs into the same cont

Access last page

2009-01-25 Thread Per Newgro
Hi, can i easily access the page from which another page is called? I would like to share the navigational infos of one page with the next page. That should be achieved by pulling the NaviModel of the last page (if present). If i debug i can see that there is a pagemap - (SecondLevel) whic

Popup new Window after Wizard:onFinish()

2009-01-25 Thread simonm
Guys, I’m writing a Wizard using DynamicWizardModel such that each step is of DynamicWizardStep kind. Question number 1: I would like to popup a success message to the user (better a new popup window, a small one) after the last step, i.e. overriding the onFinish() Wizard event and then show the W

Re: svn beyond 1.4

2009-01-25 Thread Igor Vaynberg
no, even what matej has is still a prototype. when we release 1.4.2 we will branch it off and trunk will become 1.5. -igor On Sat, Jan 24, 2009 at 7:26 PM, Martin Voigt wrote: > Hey *, > > is any code available yet for stuff that is past 1.4? So far the only > thing I've found is Matej's ajax re

Re: Refreshing DataView with new dataset

2009-01-25 Thread cbchhaya
I think I may have resolved the issue although I still feel it's a bit hacky. On the data provider implementation, I set a searchString property every time a new search is entered and then clear out the cached list and reload new data (slight optimization - don't refresh is string is same as old

Re: Refreshing DataView with new dataset

2009-01-25 Thread cbchhaya
Or should I replace the dataview itself (this would be very inefficient)? In the data provider, in the constructor I call out into the DAO and retrieve results that are collected in a transient list. Iterations occurs over this list (the dataset is small so holding the list in memory isn't a prob

Re: Refreshing DataView with new dataset

2009-01-25 Thread cbchhaya
Hi, That's right. How do I replace the dataProvider? It doesn't have an ID so I can't use replaceWith... Any suggestions? Thanks! Newgro wrote: > > I don't see the complete process, but if i'm not completely wrong you is > creating the DataProvider instance twice. Once in constructor and onc

RE: Observation and page (map) eviction

2009-01-25 Thread Frank van Lankvelt
But how is a view to know if its model (object) has changed in the pull model? One way that I see this working is if views extract all state that they need to do the rendering into a separate object. This object is then recalculated from the model that is used by the view on each request. Is thi

Getting an error when trying to install via Maven

2009-01-25 Thread HHB
Hey, I created a Wicket skeleton project via Maven. When trying to install the project, I got this error: java.lang.ClassCastException: wicket.Initializer cannot be cast to org.apache.wicket.IInitializer at org.apache.wicket.Application.addInitializer(Application.java:755)

Re: Refreshing DataView with new dataset

2009-01-25 Thread Per Newgro
I don't see the complete process, but if i'm not completely wrong you is creating the DataProvider instance twice. Once in constructor and once in the AjaxButton.onSubmit method. But you is not assign this new instance to the dataview. Hit me if i'm wrong. Cheers Per -

Re: Refreshing DataView with new dataset

2009-01-25 Thread cbchhaya
Please read MyDataProvider as DomainDataProvider cbchhaya wrote: > > Hi, > > Thanks for your response. Here's some code, if this helps. > > For the WMC: > WMC wmc = new WMC("data"); > wmc.setOutputMarkupId(true); > add(wmc); > > On the form: > > form.add(new AjaxButton("searchBtn"){ >

Re: Refreshing DataView with new dataset

2009-01-25 Thread cbchhaya
Hi, Thanks for your response. Here's some code, if this helps. For the WMC: WMC wmc = new WMC("data"); wmc.setOutputMarkupId(true); add(wmc); On the form: form.add(new AjaxButton("searchBtn"){ @Override protected void onSubmit(AjaxRequest

Re: Refreshing DataView with new dataset

2009-01-25 Thread Per Newgro
cbchhaya schrieb: Hi all, Apologies if this has been answered elsewhere - I could not find a relevant thread. I have a Panel containing a form, with a textfield and button, and a WebMarkupContainer containing a dataview. The provider for the dataview sources data from a database based on the st

Refreshing DataView with new dataset

2009-01-25 Thread cbchhaya
Hi all, Apologies if this has been answered elsewhere - I could not find a relevant thread. I have a Panel containing a form, with a textfield and button, and a WebMarkupContainer containing a dataview. The provider for the dataview sources data from a database based on the string entered in the

svn beyond 1.4

2009-01-25 Thread Martin Voigt
Hey *, is any code available yet for stuff that is past 1.4? So far the only thing I've found is Matej's ajax rewrite in http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/. Since some issues targeted at 1.5-M1 in jira have received patches, I was wondering what these patches where