Anybody use Google Maps for directions?
I would like to utilize the new Google Maps v3 API for directions. Didn't know if anyone has used this in conjunction with the GMap2 package. If so, any chance of getting an example of how you did it? Thanks - Doug
Re: Wicketstuff updated!
i found thant push component has some problem. after update push compenet to 1.4.7-snapshot, the application throws some error message: 04-02 09:34:55.546[ RequestCycle.java:1521:ERROR] There is no application attached to current thread http-8081-4 org.apache.wicket.WicketRuntimeException: There is no application attached to current thread http-8081-4 at org.apache.wicket.Application.get(Application.java:179) at org.apache.wicket.Component.getMarkupId(Component.java:1542) at org.apache.wicket.Component.getMarkupId(Component.java:1578) at org.apache.wicket.ajax.AbstractAjaxTimerBehavior.getPreconditionScript(AbstractAjaxTimerBehavior.java:140) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.generateCallbackScript(AbstractDefaultAjaxBehavior.java:170) at org.apache.wicket.ajax.AbstractAjaxTimerBehavior.getCallbackScript(AbstractAjaxTimerBehavior.java:127) at org.apache.wicket.ajax.AbstractAjaxTimerBehavior.getJsTimeoutCall(AbstractAjaxTimerBehavior.java:120) at org.apache.wicket.ajax.AbstractAjaxTimerBehavior.respond(AbstractAjaxTimerBehavior.java:163) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:286) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:174) at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) my wicket version is 1.4.7. On Thu, Apr 1, 2010 at 20:50, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Well, one could see that in version x.x.x of wicketstuff core project > x was excluded.. It was just a proposition. As with everything else it > has pro's and con's. > > 2010/4/1 Jeremy Thomerson : > > there's already an attic - why create a new one? it will just generate > more > > emails to the list whining about "i can't find such and such" - by those > who > > can't use the search function well. there's nothing special about an > > ex-core project that means it needs its own attic > > > > -- > > Jeremy Thomerson > > http://www.wickettraining.com > > > > > > > > On Wed, Mar 31, 2010 at 11:57 AM, nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > >> I guess we could start a branch, called wicketstuff-core-attic. Then > >> upgrade them to latest wicket version and see if they work and if not, > >> then remove them. Unless someone wants to fix the errors. > >> > >> 2010/3/28 Major Péter : > >> > JavaEE-Inject is tested, and OK. > >> > > >> > It looks like there are projects, which are depending to a specific > >> > wicket version (1.4-
Re: RE: Hibernate - OSIV
So make a copy of the db object and use that as your prototype. You can use serialization to do a quick "deep" clone of the object On Apr 1, 2010 5:12 PM, "Jeffrey Schneller" wrote: Because the objects have transient properties on them that are set by another process. Basically the object is pulled from the db to create a shell/container and the transient properties are filled in at a later time and may be different. Not a great example but, the object is a survey and the transient properties are the answers that a user will provide. I want to get the same survey twice but allow the transient properties to have different values. If it is the same object, I can't do this. The following setting seems to do the trick. The problem is that after some amount of time, everything locks up. It appears I am out of db connections. opensessioninview org.springframework.orm.hibernate3.support.OpenSessionInViewFilter singleSession false -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Thursday, April 01, 2010 4:37 PM To: users@wicket.apache.org Subject: Re: Hibernate - OSIV Wh...
Re: Hibernate - OSIV
Perhaps you want to use the survey object that you retrieve via Hibernate as a prototype, and never fill in its "transient" members. http://en.wikipedia.org/wiki/Prototype_pattern Scott On Thu, Apr 1, 2010 at 2:11 PM, Jeffrey Schneller wrote: > Because the objects have transient properties on them that are set by another > process. Basically the object is pulled from the db to create a > shell/container and the transient properties are filled in at a later time > and may be different. Not a great example but, the object is a survey and > the transient properties are the answers that a user will provide. I want to > get the same survey twice but allow the transient properties to have > different values. If it is the same object, I can't do this. > > The following setting seems to do the trick. The problem is that after some > amount of time, everything locks up. It appears I am out of db connections. > > > opensessioninview > > org.springframework.orm.hibernate3.support.OpenSessionInViewFilter > > singleSession > false > > > > -Original Message- > From: James Carman [mailto:jcar...@carmanconsulting.com] > Sent: Thursday, April 01, 2010 4:37 PM > To: users@wicket.apache.org > Subject: Re: Hibernate - OSIV > > Why do you need different objects? > > On Thu, Apr 1, 2010 at 4:25 PM, Jeffrey Schneller > wrote: >> So by using the OSIV, I am out of luck? Any ideas? >> >> >> >> -Original Message- >> From: James Carman [mailto:jcar...@carmanconsulting.com] >> Sent: Thursday, April 01, 2010 3:59 PM >> To: users@wicket.apache.org >> Subject: Re: Hibernate - OSIV >> >> They have to be different sessions. Hibernate's cache (the first >> level) guarantees that you get the same object for any given entity >> within the same session. >> >> On Thu, Apr 1, 2010 at 3:47 PM, Jeffrey Schneller >> wrote: >>> The issue was the object was being evicted from the Hibernate session. >>> getSession().evict(object). I had forgot that the object was being >>> evicted from the session. >>> >>> If I do not evict the object from the session then lazy loading worked. >>> This is more of a Hibernate question but, how can I get unique object >>> from a hibernate query for each query and have each object be tied to >>> the session? >>> >>> example: >>> select * from Product where sku = ? >>> >>> I want to select the same sku but get two different java objects from >>> Hibernate so the objects are not the same. >>> >>> Thanks. >>> >>> >>> >>> >>> -Original Message- >>> From: Josh Chappelle [mailto:jchappe...@4redi.com] >>> Sent: Wednesday, March 31, 2010 7:01 PM >>> To: users@wicket.apache.org >>> Subject: RE: Hibernate - OSIV >>> >>> What error are you getting? >>> >>> -Original Message- >>> From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] >>> Sent: Wednesday, March 31, 2010 4:47 PM >>> To: users@wicket.apache.org >>> Subject: Hibernate - OSIV >>> >>> I think I have the OSIV filter setup correctly but I can't access any >>> lazy >>> loaded properties of my objects. I am not even between requests when >>> this >>> is happening. Does anyone have any ideas? I can't seem to figure this >>> out. >>> I have looked at OSIV in Spring and OSIV in Wicket. I can't seem to >>> find >>> any examples that will help me to determine the problem. I have >>> included >>> all the code and xml configuration that I believe is relevant. Any help >>> would be appreciated. Also a clean example of how to setup Spring + >>> Hibernate OSIV in the wiki would be a big help. >>> >>> >>> >>> >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Hibernate - OSIV
Because the objects have transient properties on them that are set by another process. Basically the object is pulled from the db to create a shell/container and the transient properties are filled in at a later time and may be different. Not a great example but, the object is a survey and the transient properties are the answers that a user will provide. I want to get the same survey twice but allow the transient properties to have different values. If it is the same object, I can't do this. The following setting seems to do the trick. The problem is that after some amount of time, everything locks up. It appears I am out of db connections. opensessioninview org.springframework.orm.hibernate3.support.OpenSessionInViewFilter singleSession false -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Thursday, April 01, 2010 4:37 PM To: users@wicket.apache.org Subject: Re: Hibernate - OSIV Why do you need different objects? On Thu, Apr 1, 2010 at 4:25 PM, Jeffrey Schneller wrote: > So by using the OSIV, I am out of luck? Any ideas? > > > > -Original Message- > From: James Carman [mailto:jcar...@carmanconsulting.com] > Sent: Thursday, April 01, 2010 3:59 PM > To: users@wicket.apache.org > Subject: Re: Hibernate - OSIV > > They have to be different sessions. Hibernate's cache (the first > level) guarantees that you get the same object for any given entity > within the same session. > > On Thu, Apr 1, 2010 at 3:47 PM, Jeffrey Schneller > wrote: >> The issue was the object was being evicted from the Hibernate session. >> getSession().evict(object). I had forgot that the object was being >> evicted from the session. >> >> If I do not evict the object from the session then lazy loading worked. >> This is more of a Hibernate question but, how can I get unique object >> from a hibernate query for each query and have each object be tied to >> the session? >> >> example: >> select * from Product where sku = ? >> >> I want to select the same sku but get two different java objects from >> Hibernate so the objects are not the same. >> >> Thanks. >> >> >> >> >> -Original Message- >> From: Josh Chappelle [mailto:jchappe...@4redi.com] >> Sent: Wednesday, March 31, 2010 7:01 PM >> To: users@wicket.apache.org >> Subject: RE: Hibernate - OSIV >> >> What error are you getting? >> >> -Original Message- >> From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] >> Sent: Wednesday, March 31, 2010 4:47 PM >> To: users@wicket.apache.org >> Subject: Hibernate - OSIV >> >> I think I have the OSIV filter setup correctly but I can't access any >> lazy >> loaded properties of my objects. I am not even between requests when >> this >> is happening. Does anyone have any ideas? I can't seem to figure this >> out. >> I have looked at OSIV in Spring and OSIV in Wicket. I can't seem to >> find >> any examples that will help me to determine the problem. I have >> included >> all the code and xml configuration that I believe is relevant. Any help >> would be appreciated. Also a clean example of how to setup Spring + >> Hibernate OSIV in the wiki would be a big help. >> >> >> >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Hibernate - OSIV
Why do you need different objects? On Thu, Apr 1, 2010 at 4:25 PM, Jeffrey Schneller wrote: > So by using the OSIV, I am out of luck? Any ideas? > > > > -Original Message- > From: James Carman [mailto:jcar...@carmanconsulting.com] > Sent: Thursday, April 01, 2010 3:59 PM > To: users@wicket.apache.org > Subject: Re: Hibernate - OSIV > > They have to be different sessions. Hibernate's cache (the first > level) guarantees that you get the same object for any given entity > within the same session. > > On Thu, Apr 1, 2010 at 3:47 PM, Jeffrey Schneller > wrote: >> The issue was the object was being evicted from the Hibernate session. >> getSession().evict(object). I had forgot that the object was being >> evicted from the session. >> >> If I do not evict the object from the session then lazy loading worked. >> This is more of a Hibernate question but, how can I get unique object >> from a hibernate query for each query and have each object be tied to >> the session? >> >> example: >> select * from Product where sku = ? >> >> I want to select the same sku but get two different java objects from >> Hibernate so the objects are not the same. >> >> Thanks. >> >> >> >> >> -Original Message- >> From: Josh Chappelle [mailto:jchappe...@4redi.com] >> Sent: Wednesday, March 31, 2010 7:01 PM >> To: users@wicket.apache.org >> Subject: RE: Hibernate - OSIV >> >> What error are you getting? >> >> -Original Message- >> From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] >> Sent: Wednesday, March 31, 2010 4:47 PM >> To: users@wicket.apache.org >> Subject: Hibernate - OSIV >> >> I think I have the OSIV filter setup correctly but I can't access any >> lazy >> loaded properties of my objects. I am not even between requests when >> this >> is happening. Does anyone have any ideas? I can't seem to figure this >> out. >> I have looked at OSIV in Spring and OSIV in Wicket. I can't seem to >> find >> any examples that will help me to determine the problem. I have >> included >> all the code and xml configuration that I believe is relevant. Any help >> would be appreciated. Also a clean example of how to setup Spring + >> Hibernate OSIV in the wiki would be a big help. >> >> >> >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Hibernate - OSIV
So by using the OSIV, I am out of luck? Any ideas? -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Thursday, April 01, 2010 3:59 PM To: users@wicket.apache.org Subject: Re: Hibernate - OSIV They have to be different sessions. Hibernate's cache (the first level) guarantees that you get the same object for any given entity within the same session. On Thu, Apr 1, 2010 at 3:47 PM, Jeffrey Schneller wrote: > The issue was the object was being evicted from the Hibernate session. > getSession().evict(object). I had forgot that the object was being > evicted from the session. > > If I do not evict the object from the session then lazy loading worked. > This is more of a Hibernate question but, how can I get unique object > from a hibernate query for each query and have each object be tied to > the session? > > example: > select * from Product where sku = ? > > I want to select the same sku but get two different java objects from > Hibernate so the objects are not the same. > > Thanks. > > > > > -Original Message- > From: Josh Chappelle [mailto:jchappe...@4redi.com] > Sent: Wednesday, March 31, 2010 7:01 PM > To: users@wicket.apache.org > Subject: RE: Hibernate - OSIV > > What error are you getting? > > -Original Message- > From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] > Sent: Wednesday, March 31, 2010 4:47 PM > To: users@wicket.apache.org > Subject: Hibernate - OSIV > > I think I have the OSIV filter setup correctly but I can't access any > lazy > loaded properties of my objects. I am not even between requests when > this > is happening. Does anyone have any ideas? I can't seem to figure this > out. > I have looked at OSIV in Spring and OSIV in Wicket. I can't seem to > find > any examples that will help me to determine the problem. I have > included > all the code and xml configuration that I believe is relevant. Any help > would be appreciated. Also a clean example of how to setup Spring + > Hibernate OSIV in the wiki would be a big help. > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Hibernate - OSIV
They have to be different sessions. Hibernate's cache (the first level) guarantees that you get the same object for any given entity within the same session. On Thu, Apr 1, 2010 at 3:47 PM, Jeffrey Schneller wrote: > The issue was the object was being evicted from the Hibernate session. > getSession().evict(object). I had forgot that the object was being > evicted from the session. > > If I do not evict the object from the session then lazy loading worked. > This is more of a Hibernate question but, how can I get unique object > from a hibernate query for each query and have each object be tied to > the session? > > example: > select * from Product where sku = ? > > I want to select the same sku but get two different java objects from > Hibernate so the objects are not the same. > > Thanks. > > > > > -Original Message- > From: Josh Chappelle [mailto:jchappe...@4redi.com] > Sent: Wednesday, March 31, 2010 7:01 PM > To: users@wicket.apache.org > Subject: RE: Hibernate - OSIV > > What error are you getting? > > -Original Message- > From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] > Sent: Wednesday, March 31, 2010 4:47 PM > To: users@wicket.apache.org > Subject: Hibernate - OSIV > > I think I have the OSIV filter setup correctly but I can't access any > lazy > loaded properties of my objects. I am not even between requests when > this > is happening. Does anyone have any ideas? I can't seem to figure this > out. > I have looked at OSIV in Spring and OSIV in Wicket. I can't seem to > find > any examples that will help me to determine the problem. I have > included > all the code and xml configuration that I believe is relevant. Any help > would be appreciated. Also a clean example of how to setup Spring + > Hibernate OSIV in the wiki would be a big help. > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Hibernate - OSIV
The issue was the object was being evicted from the Hibernate session. getSession().evict(object). I had forgot that the object was being evicted from the session. If I do not evict the object from the session then lazy loading worked. This is more of a Hibernate question but, how can I get unique object from a hibernate query for each query and have each object be tied to the session? example: select * from Product where sku = ? I want to select the same sku but get two different java objects from Hibernate so the objects are not the same. Thanks. -Original Message- From: Josh Chappelle [mailto:jchappe...@4redi.com] Sent: Wednesday, March 31, 2010 7:01 PM To: users@wicket.apache.org Subject: RE: Hibernate - OSIV What error are you getting? -Original Message- From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] Sent: Wednesday, March 31, 2010 4:47 PM To: users@wicket.apache.org Subject: Hibernate - OSIV I think I have the OSIV filter setup correctly but I can't access any lazy loaded properties of my objects. I am not even between requests when this is happening. Does anyone have any ideas? I can't seem to figure this out. I have looked at OSIV in Spring and OSIV in Wicket. I can't seem to find any examples that will help me to determine the problem. I have included all the code and xml configuration that I believe is relevant. Any help would be appreciated. Also a clean example of how to setup Spring + Hibernate OSIV in the wiki would be a big help. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BookmarkablePageLink auto-generated "name" is no longer there
I've been using BookmarkablePageLink for my site navigation. A month or so ago I remember each BookmarkablePageLink would autogenerate a name="{wicket:id}" in the HTML, and I was using this to hook into functional testing as the locator, etc. For example: .html .java add(new BookmarkablePageLink("enrollNowLink", EnrollmentPage.class)); This USED to output: But now outputs: What would cause the auto generated name={wicket:id} to drop off? It seems like it's random too, as some links still have the autogenerated name and some don't. Any insights? Thanks, Tony
DynamicWizards and Forms
Hello, I am trying to get a dynamic wizard to work with a series of forms. I have the following flow: (1) Select document type -> (2) if document type has embedded audio provide an upload form otherwise skip -> (3) Document editing form. In next() of step 1 I am creating a new Panel with a form of either upload or of document editing based on doc type. The odd thing is that the submit on the form for step 2/3 seems to get called when next is clicked on (1) but before the step (2 or 3) is displayed. Looking through the code the if appears that the next() method gets called before the actual form processing is performed meaning that the form on the next step gets processed as well as the last step. In delegateSubmit(), formToProcess.visitChildren seems to be the actual place that the next step from gets submitted, before the previous step processing is complete. What is the correct way to structure a Dynamic wizard when each step has nested forms to prevent the visitor submitting the form on the next step as well? Thanks Sumit - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Create cookie before redirect
Hi! I need to create a cookie and redirect to page in other app, but when I try redirect the cookie is not send in response: Form loginForm = new StatelessForm("loginForm") { protected void onSubmit() { try { Customer authenticatedCustomer = customerAuthentication.authenticateByLogin( getFormFieldValue("username"), getFormFieldValue("password")); getWebRequestCycle().getWebResponse().addCookie( new CustomerCookie( authenticatedCustomer, getDomainName() ) ); getPage().getResponse().redirect("http://domain.com/myapp";); } catch(CustomerAuthenticationException e) { add( new Label("customerAuthenticationFailure", getString("customerAuthenticationFailure"))); } } protected String getFormFieldValue(String field) { return get(field).getModelObjectAsString(); } }
Re: Wicketstuff updated!
Well, one could see that in version x.x.x of wicketstuff core project x was excluded.. It was just a proposition. As with everything else it has pro's and con's. 2010/4/1 Jeremy Thomerson : > there's already an attic - why create a new one? it will just generate more > emails to the list whining about "i can't find such and such" - by those who > can't use the search function well. there's nothing special about an > ex-core project that means it needs its own attic > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Wed, Mar 31, 2010 at 11:57 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> I guess we could start a branch, called wicketstuff-core-attic. Then >> upgrade them to latest wicket version and see if they work and if not, >> then remove them. Unless someone wants to fix the errors. >> >> 2010/3/28 Major Péter : >> > JavaEE-Inject is tested, and OK. >> > >> > It looks like there are projects, which are depending to a specific >> > wicket version (1.4-rc*, 1.4.5): >> > * multi-text-input-parent >> > * flot-parent/flot >> > * flot-parent/flot-examples >> > * wicket-html5-parent >> > * ddcalendar-parent/ddcalendar >> > * ddcalendar-parent/ddcalendar-examples >> > >> > What's going to happen with them? >> > >> > Regards, >> > Peter >> > >> > 2010-03-24 22:14 keltezéssel, Boris Goldowsky írta: >> >> As discussed, and not hearing any objections, I've updated the >> >> wicketstuff-core project to depend on Wicket 1.4.7. wicketstuff-core's >> >> version number is now 1.4.7-SNAPSHOT, and the idea is that people can >> >> test it, and barring any major problems it can be released as a stable >> >> version 1.4.7 . >> >> >> >> Now, before people can easily test this, the artifacts need to get into >> >> the wicket snapshots maven repository, right? Can someone with the >> >> requisite permissions make this happen? In the meantime of course >> >> people are encouraged to download the projects and build and test them >> >> locally. >> >> >> >> In addition to wicket, the following dependencies were also updated to >> >> the latest stable version within the same major version of the project. >> >> I did not attempt to move Lucene from version 2.4.1 to 3.0.1, for >> >> instance, since more significant changes might be required for this (if >> >> any subproject is actually using it). >> >> >> >> Jetty: 6.1.22 >> >> Lucene: 2.4.1 >> >> slf4j: 1.5.11 >> >> JUnit: 4.8.1 >> >> >> >> I had to make a couple of changes to get everything to build with the >> >> new dependencies (commented out wagon-ssh-external extension from >> >> inmethod-grid; added new required constructor argument to two instances >> >> of SpringComponentInjector). People should test the build and make sure >> >> these changes are ok. But at least for me, I can do a "mvn install" at >> >> the top level and it works. >> >> >> >> Bng >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AJAXIFY Palette: Can't get to the Recorder
Hi, here is a (for me) working code snipplet populated from the example given by Igor: /** SelectedFields may be pojo or so */ /* data */ Selected Fields[] collector; /* list */ List dataList = Arrays.asList(collector); /* model to save selection */ final Model> fieldsModel; /* ichoice renderer */ IChoiceRenderer renderer = new ChoiceRenderer("selectedValue", "selectedValue"); /* palette */ Palette palette = new Palette("palette",saveSelectedFields,Model.of(dataList),renderer,dataList.size(),true) { /** * */ private static final long serialVersionUID=1L; @Override protected Recorder newRecorderComponent() { Recorder c=super.newRecorderComponent(); c.add(new AjaxFormComponentUpdatingBehavior("onchange") { /** * */ private static final long serialVersionUID=1L; /* populate every change in selection to palette model */ @Override protected void onUpdate(AjaxRequestTarget target) { /* init cache */ ArrayList tempList=new ArrayList(); /* foreach selected field.. */ for(int a=0; a0) { /* save it to model */ fieldsModel.setObject(tempList); } } }); return c; } /* publish */ add(palette); Hope this helps. Best regards Christoph On Wed, Mar 31, 2010 at 3:19 AM, wicketnewuser wrote: > > Hi i tried doing this it doesn't like adding > AjaxFormComponentUpdatingBehavior . I thought when you meant > AjaxFormComponentUpdatingBehavior by whateverbehaviour. i even added > onupdate method that didn't help too. still getting null when doing > pallet.getRecorderComponent. Please help >new PropertyModel(model,"allSids"), >renderer, 12, false){ > protected Recorder > newRecorderComponent() { >Recorder > r=super.newRecorderComponent(); >r.add(new > AjaxFormComponentUpdatingBehavior("onchange")); >return r; >} > >}; > > > Edvin Syse wrote: > > > > Thanks! Will you update the javadoc as well? > > > > -- Edvin > > > > Den 28. juli. 2008 kl. 16.37 skrev "Igor Vaynberg" > > > >: > > > >> override newrecorder() { recorder r=super.newrecorder(); r.add(new > >> whateverbehavior()); return r; } > >> > >> -igor > >> > >> On Mon, Jul 28, 2008 at 12:33 AM, Edvin Syse > >> wrote: > >>> The javadocs for the Palette says to add > >>> AjaxFormComponentUpdatingBehaviour > >>> to the Recorder like this: > >>> > >>> Form form=new Form(...); > >>> Palette palette=new Palette(...); > >>> palette.getRecorderComponent().add(new > >>> AjaxFormComponentUpdatingBehavior("onchange") {...}); > >>> > >>> getRecorderComponent() is null, because it isn't populated in the > >>> Palette's > >>> constructor, it is populated > >>> in the private initFactories() method, which is called from > >>> onBeforeRender. > >>> > >>> How am I supposed to get to the Recorder-component from the > >>> constructor of > >>> my pageclass? :) > >>> > >>> > >>> -- Edvin > >>> > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > -- > View this message in context: > http://old.nabble.com/AJAXIFY-Palette%3A-Can%27t-get-to-the-Recorder-tp18685475p28090539.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >