Re: Unable to use wicket tester to simulate ajax behavior

2012-07-24 Thread Martin Grigorov
Hi, File a ticket with a test case. On Tue, Jul 24, 2012 at 9:34 AM, Giovanni Cuccu wrote: > Hi, > sorry for the late response. Should I file a bug for this? > Thanks, > Giovanni > Il 11/07/12 15.13, Giovanni Cuccu ha scritto: > >> Hi Martin, >> I did the change you suggested but th

RE: Wicket jQuery Validator integration

2012-07-24 Thread kbhuvi07
Hi, I am more interested to know about 'Wicket jQuery Validator integration' . Could you please post some more information with example. That would be really great! Thanks in advance! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-jQuery-Validator-integ

Page State not updated via call back from IFrame // AjaxRequestTarget

2012-07-24 Thread sb
Hi, I'm writing a component that uploads an image file and then updates a list (ArrayList) of image files in the containing page. The UploadImageComponent is implemented with an IFrame which contains the form that actually uploads the Image File and then calls back to the UploadImageComponent to

Re: Wicket 1.6 - strange behavior with Fragment, ModalWindow and resources

2012-07-24 Thread Martin Grigorov
Hi, File a ticket please. On Tue, Jul 24, 2012 at 12:14 PM, Dan Simko wrote: > Hi, > > I am not sure if it's a bug but in version 1.5 this code was working: > > > public class HomePage extends WebPage { > private static final long serialVersionUID = 1L; > > > public HomePage(final PagePa

Re: Wicket 1.6 - strange behavior with Fragment, ModalWindow and resources

2012-07-24 Thread Dan Simko
done, WICKET-4669 On Tue, Jul 24, 2012 at 1:38 PM, Martin Grigorov wrote: > Hi, > > File a ticket please. > > On Tue, Jul 24, 2012 at 12:14 PM, Dan Simko wrote: > > Hi, > > > > I am not sure if it's a bug but in version 1.5 this code was working: > > > > > > public class HomePage extends WebPage

Re: Unable to use wicket tester to simulate ajax behavior

2012-07-24 Thread Giovanni Cuccu
Hi, here it is https://issues.apache.org/jira/browse/WICKET-4670 Thanks, Giovanni Il 24/07/12 09.22, Martin Grigorov ha scritto: Hi, File a ticket with a test case. On Tue, Jul 24, 2012 at 9:34 AM, Giovanni Cuccu wrote: Hi, sorry for the late response. Should I file a bug for th

Re: I think it's time for a new book.... Igor and Co ?

2012-07-24 Thread Bertrand Guay-Paquet
Hi Martin (and other devs), Must a Jira issue accompany each pull request? Also, is it ok to use a feature branch (based on the snapshot branch) for the pull request? Bertrand On 23/07/2012 3:15 AM, Martin Grigorov wrote: Hi, You can create tickets in our Jira with attached patches if you d

ajax and browser back button in wicket 6

2012-07-24 Thread Steve Lowery
I did a search in the user list and found several references of various ways to solve the back button using ajax problem, but most were a few years old. I was wondering if wicket 6 does can do this out of the box now. One of the stated goals on the wicket site is that it will "Fully solve back bu

Re: renderHead() / wicket:head page / component order

2012-07-24 Thread Pierre Goiffon
Hello ! Le 22/07/2012 21:39, Martin Grigorov a écrit : For exemple I am just dealing with a problem in a page hierarchy like the one below : pageA : adds mycss.css using renderHead and a ResourceReference pageB : adds 6 lines of css to change the behavior in wicket:head pa

Re: renderHead() / wicket:head page / component order

2012-07-24 Thread Martin Grigorov
I'll let Emond to answer you. On Tue, Jul 24, 2012 at 5:24 PM, Pierre Goiffon wrote: > Hello ! > > Le 22/07/2012 21:39, Martin Grigorov a écrit : > For exemple I am just dealing with a problem in a page hierarchy like > the one below : > pageA : adds mycss.css using renderHead and a R

Re: I think it's time for a new book.... Igor and Co ?

2012-07-24 Thread Martin Grigorov
If it is just a patch for the javadocs then you may skip Jira. No need to explain the same in several tools. It should be easy for you to contribute. On Tue, Jul 24, 2012 at 4:25 PM, Bertrand Guay-Paquet wrote: > Hi Martin (and other devs), > > Must a Jira issue accompany each pull request? Also,

Re: ajax and browser back button in wicket 6

2012-07-24 Thread Martin Grigorov
Hi Steve, There is nothing new about this in Wicket 6. It is as in Wicket 1.5 - back button is not supported out of the box for Ajax. On Tue, Jul 24, 2012 at 4:48 PM, Steve Lowery wrote: > I did a search in the user list and found several references of various > ways to solve the back button usi

Really slow code

2012-07-24 Thread Brown, Berlin [GCG-PFS]
With code like this, I have a model and within the 'load' method, I am making a slower call that I don't want to call to get the data again. I may need the result 'bean' for another part of the UI on that particular page and I don't want to make that call again. How can I do this? 1.

Re: Really slow code

2012-07-24 Thread Igor Vaynberg
cache it in request cycle's metadata -igor On Tue, Jul 24, 2012 at 8:18 PM, Brown, Berlin [GCG-PFS] wrote: > With code like this, I have a model and within the 'load' method, I am > making a slower call that I don't want to call to get the data again. > > > > I may need the result 'bean' for ano

RE: Really slow code

2012-07-24 Thread Brown, Berlin [GCG-PFS]
You have any more specifics or an example? Is there a metadata class? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, July 24, 2012 1:34 PM To: users@wicket.apache.org Subject: Re: Really slow code cache it in request cycle's metadata -igor On Tu

Re: Really slow code

2012-07-24 Thread Igor Vaynberg
static class MetaDataKey MYDATA=new MetaDateKey() {}; ^ thats the type-safe singleton key you use to acces the metadata store checking for metadata MyData data=RequestCycle.get().getMetaData(MYDATA); ^ null means none writing metadata RequestCycle.get().setMetaData(MYDATA, data); -igor On

RE: Really slow code

2012-07-24 Thread Brown, Berlin [GCG-PFS]
Thanks, I just found some code that uses 'session' as opposed to the request cycle for caching. Does that matter? Or is the requestcycle preferred? getSession().setMetaData -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, July 24, 2012 3:20 PM To:

Re: Really slow code

2012-07-24 Thread Dan Retzlaff
Pro: session is a broader scope, so query will happen less often Con: session is serialized so cached value needs to be serializable or transient/detached Con: session is accessed by multiple threads simultaneously, so you need to handle synchronization Your call. :) On Tue, Jul 24, 2012 at 12:46

Re: Getting an instance of page from the session

2012-07-24 Thread Martin Grigorov
pageRef = page.getPageReference(); . page = getSession().getPageManager().getPage(pageRef.getPageId()) On Wed, Jul 25, 2012 at 12:31 AM, Josh Kamau wrote: > Hi there ; > > Is there a way i can pull an instance of a specific page from the session ? > > I have a page that has some information .

Re: Getting an instance of page from the session

2012-07-24 Thread Josh Kamau
THanks Martin. That helps. Josh On Wed, Jul 25, 2012 at 12:37 AM, Martin Grigorov wrote: > pageRef = page.getPageReference(); > . > page = getSession().getPageManager().getPage(pageRef.getPageId()) > > On Wed, Jul 25, 2012 at 12:31 AM, Josh Kamau > wrote: > > Hi there ; > > > > Is there a w