Re: UTF-8 Byte Order Marks in .html files
On Thu, Jun 26, 2008 at 4:25 AM, Sven Meier <[EMAIL PROTECTED]> wrote: > Hi, > > if your editor prefixes your templates with a BOM(1), Wicket is not able to > recognize the encoding in your xml declaration, see > org.apache.wicket.util.io.XmlReader#xmlDecl . > > You might want to create a JIRA request, that Wicket should skip a leading > BOM in the encoding detection. Hi Sven, Thanks for pointing this out! I do not need to file a JIRA request - I just wanted to know the behavior, since it's not documented in the Wicket internationalization wikis/blogs I found. I'm using Notepad++ (on Windows) which has the choices "UTF-8" and "UTF-8 without BOM," which to a newbie like me makes it appear that having the BOM is the default. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Refresh component from non-wicket js
Mats Norén wrote: Hi, I've been searching the archives on a simple way to repaint a component from a non-wicket javascript, ie the javascript is not attached or associated with a wicket component. The usecase: 1. A user updates data in the browser (non wicket) 2. Presses save (could be a wicket component) 3. An ajax-call is made to update a datasource (non wicket call) 4. Success-handler should repaint a wicket component In 2 I tried with an AjaxButton and requestTarget.prependJavascript("doAjaxSaveInOtherLibrary()").. The problem with that is the timing. The prepended javascript function returns and then the wicket ajaxcall gets executed before the success-handler in the non wicket library... I guess what I'm looking for is a simple way to add a markupcontainer with an AbstractDefaultAjaxBehavior that I can reference from my non wicket javascript. Hi Mats, how about this (pseudo code): componentYouWantToPressOnForSave.add(new AjaxEventBehavior("onclick") { protected CharSequence getCallbackScript(boolean onlyTargetActivePage) { return generateCallbackScript("doAjaxSaveInOtherLibrary('" + getCallbackUrl(onlyTargetActivePage) + "'"); } ); than you can decide if you want to initiate the AjaxCall to the AjaxEventBehavior or not. Just call wicketAjaxGet(callbackUrl) somewhere in your JavaScript on success-handler. mf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having a base url parameter for the whole application?
Thanks, could have been though there were something there already.. I'll roll my own then:) Igor Vaynberg wrote: write your own webrequestcodingstrategy? -igor On Wed, Jun 25, 2008 at 11:29 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hi I've tried like a crazy mad man to get apache to set a special header depending on which domain my requests comes from, I just cant get it to work(sets the same header no matter which domain). So I thought that wicket could come to the rescue again.. Instead of setting a header I could get apache to forward to special urls depending on domain, like this: http://domain/applicationcontext/mydomain , that way I can get wicket to pickup which domain the request comes from... But how can it be done? Because the parameter will be there in every request... -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having a base url parameter for the whole application?
write your own webrequestcodingstrategy? -igor On Wed, Jun 25, 2008 at 11:29 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > I've tried like a crazy mad man to get apache to set a special header > depending on which domain my requests comes from, I just cant get it to > work(sets the same header no matter which domain). So I thought that wicket > could come to the rescue again.. > > Instead of setting a header I could get apache to forward to special urls > depending on domain, like this: http://domain/applicationcontext/mydomain , > that way I can get wicket to pickup which domain the request comes from... > But how can it be done? Because the parameter will be there in every > request... > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having a base url parameter for the whole application?
Hi I've tried like a crazy mad man to get apache to set a special header depending on which domain my requests comes from, I just cant get it to work(sets the same header no matter which domain). So I thought that wicket could come to the rescue again.. Instead of setting a header I could get apache to forward to special urls depending on domain, like this: http://domain/applicationcontext/mydomain , that way I can get wicket to pickup which domain the request comes from... But how can it be done? Because the parameter will be there in every request... -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Must I settle for bookmarkable pages?
i dont know, i might got the multi-wicket-app in the same webapp way, just like wicket-examples. that way you dont have any of these goofy issues. every bundle provides its own application instance and registers its own url slice. -igor On Wed, Jun 25, 2008 at 10:59 PM, David Leangen <[EMAIL PROTECTED]> wrote: > >> > The thing is that I'm in an OSGi environment, and I have >> > a WicketService that provides my Wicket instance. I attach >> > "Applications" as bundles to the Wicket instance and "mount" >> > them on a certain path. >> >> >> so why are the /?wicket:interface urls interfering with that? > > He he... that goes back to the proxy issue. For what I'm doing, it's > important that the single Wicket instance be mounted on "/", which means > that "top" pages become inaccessible from outside of the firewall. > > The only way all this will work for me is if the url becomes something > like /app/?wicket:interface, (or even > better /app/pageName?wicket:interface) where "app" is the "mount > point" (not in the pure Wicket sense) of the Application bundle I attach > to the Wicket instance. > > This way: > - only one wicket instance mounted on "/" > - have a path accessible via proxying > - can determine the Application bundle based on the URL path > > Cheers, > David > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Must I settle for bookmarkable pages?
> > The thing is that I'm in an OSGi environment, and I have > > a WicketService that provides my Wicket instance. I attach > > "Applications" as bundles to the Wicket instance and "mount" > > them on a certain path. > > > so why are the /?wicket:interface urls interfering with that? He he... that goes back to the proxy issue. For what I'm doing, it's important that the single Wicket instance be mounted on "/", which means that "top" pages become inaccessible from outside of the firewall. The only way all this will work for me is if the url becomes something like /app/?wicket:interface, (or even better /app/pageName?wicket:interface) where "app" is the "mount point" (not in the pure Wicket sense) of the Application bundle I attach to the Wicket instance. This way: - only one wicket instance mounted on "/" - have a path accessible via proxying - can determine the Application bundle based on the URL path Cheers, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Must I settle for bookmarkable pages?
so why are the /?wicket:interface urls interfering with that? -igor On Wed, Jun 25, 2008 at 8:27 PM, David Leangen <[EMAIL PROTECTED]> wrote: > >> you can roll your own webrequest coding strategy. But then you are on your >> own. > > Cool. Thanks! > >> The problem here is that you map wicket to a URL space but then don't >> want it to use that space...doesn't make sense to me. > > The thing is that I'm in an OSGi environment, and I have a WicketService > that provides my Wicket instance. I attach "Applications" as bundles to > the Wicket instance and "mount" them on a certain path. > > It would be possible to create a new Wicket instance for each > Application bundle, but that's not really the ideal way to work. Rather, > I'm trying to have one single Wicket instance that can "host" my various > Application bundles. > > Generally, this is working fine, except for this form bump I hit along > the way. If I can get this part working, then it seems that the setup > should be working almost exactly as I'd hoped. > > > Cheers, > David > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Refresh component from non-wicket js
Hi, I've been searching the archives on a simple way to repaint a component from a non-wicket javascript, ie the javascript is not attached or associated with a wicket component. The usecase: 1. A user updates data in the browser (non wicket) 2. Presses save (could be a wicket component) 3. An ajax-call is made to update a datasource (non wicket call) 4. Success-handler should repaint a wicket component In 2 I tried with an AjaxButton and requestTarget.prependJavascript("doAjaxSaveInOtherLibrary()").. The problem with that is the timing. The prepended javascript function returns and then the wicket ajaxcall gets executed before the success-handler in the non wicket library... I guess what I'm looking for is a simple way to add a markupcontainer with an AbstractDefaultAjaxBehavior that I can reference from my non wicket javascript. Any suggestions? /Mats - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Must I settle for bookmarkable pages?
> you can roll your own webrequest coding strategy. But then you are on your > own. Cool. Thanks! > The problem here is that you map wicket to a URL space but then don't > want it to use that space...doesn't make sense to me. The thing is that I'm in an OSGi environment, and I have a WicketService that provides my Wicket instance. I attach "Applications" as bundles to the Wicket instance and "mount" them on a certain path. It would be possible to create a new Wicket instance for each Application bundle, but that's not really the ideal way to work. Rather, I'm trying to have one single Wicket instance that can "host" my various Application bundles. Generally, this is working fine, except for this form bump I hit along the way. If I can get this part working, then it seems that the setup should be working almost exactly as I'd hoped. Cheers, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Must I settle for bookmarkable pages?
you can roll your own webrequest coding strategy. But then you are on your own. The problem here is that you map wicket to a URL space but then don't want it to use that space...doesn't make sense to me. -igor On 6/25/08, David Leangen <[EMAIL PROTECTED]> wrote: > > Hey, Igor, > >> > Problem: when submitting a form, the URL shows up as something like: >> > >> > http://localhost:8080/?wicket:interface=:0:1::: >> > >> > This works behind the firewall, but will not work from outside. >> > >> > >> > Is my only solution to use bookmarkable pages (with all the implications >> > of parsing parameters manually)? > >> solution is to either fix the firewall or use a /foo/* mapping > > Well, that would be difficult for various reasons. I assume you mean > a /foo/* mapping for the servlet filter, right? > > So, you are saying that the only possible solutions are: > > 1. Allow proxying on null path (not possible for me) > > 2. Change the wicket instance mapping to /foo/* from /* > (possible, but not what I want) > > 3. Use bookmarkable pages with all the trouble of parsing > (want to avoid if possible) > > > And there are no other possible solutions? Or is there something > somewhere I can fiddle with so I can change the way the URL is rendered > for the form, in the spirit of MixedURLParamCodingStrategy or something? > > > Cheers, > David > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Must I settle for bookmarkable pages?
Hey, Igor, > > Problem: when submitting a form, the URL shows up as something like: > > > > http://localhost:8080/?wicket:interface=:0:1::: > > > > This works behind the firewall, but will not work from outside. > > > > > > Is my only solution to use bookmarkable pages (with all the implications > > of parsing parameters manually)? > solution is to either fix the firewall or use a /foo/* mapping Well, that would be difficult for various reasons. I assume you mean a /foo/* mapping for the servlet filter, right? So, you are saying that the only possible solutions are: 1. Allow proxying on null path (not possible for me) 2. Change the wicket instance mapping to /foo/* from /* (possible, but not what I want) 3. Use bookmarkable pages with all the trouble of parsing (want to avoid if possible) And there are no other possible solutions? Or is there something somewhere I can fiddle with so I can change the way the URL is rendered for the form, in the spirit of MixedURLParamCodingStrategy or something? Cheers, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Must I settle for bookmarkable pages?
solution is to either fix the firewall or use a /foo/* mapping -igor On Wed, Jun 25, 2008 at 5:22 PM, David Leangen <[EMAIL PROTECTED]> wrote: > > My wicket app is mounted on "/" (for various reasons). However, my > server is behind a proxy, which means that from the outside, I can only > view pages that have a certain path (also desired behaviour for various > reasons). > > Problem: when submitting a form, the URL shows up as something like: > > http://localhost:8080/?wicket:interface=:0:1::: > > This works behind the firewall, but will not work from outside. > > > Is my only solution to use bookmarkable pages (with all the implications > of parsing parameters manually)? > > > Thanks! > David > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Must I settle for bookmarkable pages?
My wicket app is mounted on "/" (for various reasons). However, my server is behind a proxy, which means that from the outside, I can only view pages that have a certain path (also desired behaviour for various reasons). Problem: when submitting a form, the URL shows up as something like: http://localhost:8080/?wicket:interface=:0:1::: This works behind the firewall, but will not work from outside. Is my only solution to use bookmarkable pages (with all the implications of parsing parameters manually)? Thanks! David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to make bookmarkablelink
No, I'm not sure. I just want to make my urls google friendly. And tried some strategies. Do you have a better solution for making urls google friendly? -- View this message in context: http://www.nabble.com/Trying-to-make-bookmarkablelink-tp18115889p18124088.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multipart form throws exception
Yes, I knew that - the response type was wrong. Problem was figuring out which JSON response type would work on all three browsers. We finally fixed it by setting it to text/plain - we previously had it set to text/javascript which for some reason worked fine for a while. BTW, text/html is what we started out with back when and that one never worked. It's possible that something has changed in the default mime settings on the server - probably wasn't wicket that broke that. Thanks for trying to help though... Cheers, Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 4:09 PM To: users@wicket.apache.org Subject: Re: Multipart form throws exception that is because this is a response to a regular request. i do not see how that could have ever worked. you cant just write text/javascript into the browser and expect it to do anything, that is the same as putting foo.com/bar.js link in the address bar, what happens? you just view the file. what you need to do is set the response as text/html and spit out html that in body onload executes some javascript. -igor On Wed, Jun 25, 2008 at 3:02 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Yes, that's true - it IS using a dynamic iFrame. Again, the *submition* > process works just fine and I get the data on the backend. What's > causing the problem is the data being returned and the IE/Safari for > some reason not liking 'text/javascript' as a content type anymore. > Something has changed from 1.3.2 to 1.3.3-SNAPSHOT that causes this. > > Michael > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 2:10 PM > To: users@wicket.apache.org > Subject: Re: Multipart form throws exception > > doesnt jquery use an iframe? so it is not submitted via ajax... > > -igor > > On Wed, Jun 25, 2008 at 1:27 PM, Michael Mehrle <[EMAIL PROTECTED]> > wrote: >> Yeah, remember I build it around jQuery according to that link you > sent >> me - not using Wicket for the upload only for bouncing back the >> response. >> >> Thing is that this worked until 1.3.2 and somehow since updating to >> 1.3.3 it's broken again. The issue seems to be the content type - had > it >> working with 'text/javascript' on all three browsers but now it won't. >> >> M. >> >> -Original Message- >> From: Igor Vaynberg [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, June 25, 2008 1:22 PM >> To: users@wicket.apache.org >> Subject: Re: Multipart form throws exception >> >> are you submitting the form via ajax? >> >> -igor >> >> On Wed, Jun 25, 2008 at 12:09 PM, Michael Mehrle >> <[EMAIL PROTECTED]> wrote: >>> Just ran into the exception again: >>> >>> java.lang.IllegalStateException: ServletRequest does not contain >>> multipart content >>>at >>> >> > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.>>>(MultipartServletWebRequest.java:90) >>>at >>> >> > com.evite.event.web.create.MainImageUpload.receiveUpload(MainImageUpload >>> .java:66) >>>at >>> >> > com.evite.event.web.create.MainImageUpload.(MainImageUpload.java:3 >>> 8) >>> >>> >>> Sorry, I meant to say 'request' >>> >>> MainImageUpload is what the file uploader points to. >>> >>> Michael >>> >>> -Original Message- >>> From: Igor Vaynberg [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, June 25, 2008 11:34 AM >>> To: users@wicket.apache.org >>> Subject: Re: Multipart form throws exception >>> >>> response not being multipart? wasnt aware there was such a thing... >>> >>> -igor >>> >>> On Wed, Jun 25, 2008 at 11:24 AM, Michael Mehrle >>> <[EMAIL PROTECTED]> wrote: I'm on Wicket 1.3.3 and am experiencing problems with multipart >>> content on Safari and IE. The backend page receiving the image processes it >>> just fine and returns a response like this: RequestCycle.get().setRequestTarget(new IRequestTarget() { public void detach(RequestCycle requestCycle) { } public void respond(RequestCycle requestCycle) { // formulate the JSON response StringBuffer response >> = new StringBuffer("{\n"); if (StringUtils.isNotEmpty(error)) { response.append("\"error\": \"").append(getString(error)).append("\""); } else { response.append("\"msg\": >>> >> > \"").append(getString("successfulFileUploadNotification")).append("\",\n "); response.append("\"photoId\": \"").append(photo.getId()).append("\",\n"); response.append("\"uri\": \"").append(photoService.getPhotoSrc(photo)).append("\""); }
Re: Multipart form throws exception
that is because this is a response to a regular request. i do not see how that could have ever worked. you cant just write text/javascript into the browser and expect it to do anything, that is the same as putting foo.com/bar.js link in the address bar, what happens? you just view the file. what you need to do is set the response as text/html and spit out html that in body onload executes some javascript. -igor On Wed, Jun 25, 2008 at 3:02 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Yes, that's true - it IS using a dynamic iFrame. Again, the *submition* > process works just fine and I get the data on the backend. What's > causing the problem is the data being returned and the IE/Safari for > some reason not liking 'text/javascript' as a content type anymore. > Something has changed from 1.3.2 to 1.3.3-SNAPSHOT that causes this. > > Michael > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 2:10 PM > To: users@wicket.apache.org > Subject: Re: Multipart form throws exception > > doesnt jquery use an iframe? so it is not submitted via ajax... > > -igor > > On Wed, Jun 25, 2008 at 1:27 PM, Michael Mehrle <[EMAIL PROTECTED]> > wrote: >> Yeah, remember I build it around jQuery according to that link you > sent >> me - not using Wicket for the upload only for bouncing back the >> response. >> >> Thing is that this worked until 1.3.2 and somehow since updating to >> 1.3.3 it's broken again. The issue seems to be the content type - had > it >> working with 'text/javascript' on all three browsers but now it won't. >> >> M. >> >> -Original Message- >> From: Igor Vaynberg [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, June 25, 2008 1:22 PM >> To: users@wicket.apache.org >> Subject: Re: Multipart form throws exception >> >> are you submitting the form via ajax? >> >> -igor >> >> On Wed, Jun 25, 2008 at 12:09 PM, Michael Mehrle >> <[EMAIL PROTECTED]> wrote: >>> Just ran into the exception again: >>> >>> java.lang.IllegalStateException: ServletRequest does not contain >>> multipart content >>>at >>> >> > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.>>>(MultipartServletWebRequest.java:90) >>>at >>> >> > com.evite.event.web.create.MainImageUpload.receiveUpload(MainImageUpload >>> .java:66) >>>at >>> >> > com.evite.event.web.create.MainImageUpload.(MainImageUpload.java:3 >>> 8) >>> >>> >>> Sorry, I meant to say 'request' >>> >>> MainImageUpload is what the file uploader points to. >>> >>> Michael >>> >>> -Original Message- >>> From: Igor Vaynberg [mailto:[EMAIL PROTECTED] >>> Sent: Wednesday, June 25, 2008 11:34 AM >>> To: users@wicket.apache.org >>> Subject: Re: Multipart form throws exception >>> >>> response not being multipart? wasnt aware there was such a thing... >>> >>> -igor >>> >>> On Wed, Jun 25, 2008 at 11:24 AM, Michael Mehrle >>> <[EMAIL PROTECTED]> wrote: I'm on Wicket 1.3.3 and am experiencing problems with multipart >>> content on Safari and IE. The backend page receiving the image processes it >>> just fine and returns a response like this: RequestCycle.get().setRequestTarget(new IRequestTarget() { public void detach(RequestCycle requestCycle) { } public void respond(RequestCycle requestCycle) { // formulate the JSON response StringBuffer response >> = new StringBuffer("{\n"); if (StringUtils.isNotEmpty(error)) { response.append("\"error\": \"").append(getString(error)).append("\""); } else { response.append("\"msg\": >>> >> > \"").append(getString("successfulFileUploadNotification")).append("\",\n "); response.append("\"photoId\": \"").append(photo.getId()).append("\",\n"); response.append("\"uri\": \"").append(photoService.getPhotoSrc(photo)).append("\""); } response.append("\n}"); Response rep = requestCycle.getResponse(); rep.setContentType("text/javascript"); rep.write(response); } }); As you can see I'm bouncing a JSON response back, which is received >>> and handled on my front end. It works in Firefox but fails in Safari and >>> IE with an error message which I would love to post but I'm not getting every time. I do remember however that it complained about the >>> response not being 'multipart'. There is a similar bug rep
Re: Trying to make bookmarkablelink
I think that MixedParamUrlCodingStrategy is expecting you to specify at least one parameter - Are you sure you don't want HybridUrlCodingStrategy? /Gwyn On Wed, Jun 25, 2008 at 5:18 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > I get this error when trying to make a bookmarkable page. > > java.lang.IllegalArgumentException: Too many path parts, please provide > sufficient number of path parameter names > > This is my mouting, mount(new > MixedParamUrlCodingStrategy("ItemInterceptor", > ItemInterceptor.class,new String[]{""})); > > This is the code for making the link > > Brand brand = (Brand) item.getModelObject(); >PageParameters params = new > PageParameters(); >params.add( "Brand", > brand.getId().toString() ); >Link brandLink = new BookmarkablePageLink( > "brandLink" > ,ItemInterceptor.class, params ); > > And it generates this url... I don't know why the slash is there. Anyone > > https://localhost/hairless-web/ItemInterceptor/?Brand=76 > -- > View this message in context: > http://www.nabble.com/Trying-to-make-bookmarkablelink-tp18115889p18115889.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: Multipart form throws exception
Yes, that's true - it IS using a dynamic iFrame. Again, the *submition* process works just fine and I get the data on the backend. What's causing the problem is the data being returned and the IE/Safari for some reason not liking 'text/javascript' as a content type anymore. Something has changed from 1.3.2 to 1.3.3-SNAPSHOT that causes this. Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 2:10 PM To: users@wicket.apache.org Subject: Re: Multipart form throws exception doesnt jquery use an iframe? so it is not submitted via ajax... -igor On Wed, Jun 25, 2008 at 1:27 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Yeah, remember I build it around jQuery according to that link you sent > me - not using Wicket for the upload only for bouncing back the > response. > > Thing is that this worked until 1.3.2 and somehow since updating to > 1.3.3 it's broken again. The issue seems to be the content type - had it > working with 'text/javascript' on all three browsers but now it won't. > > M. > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 1:22 PM > To: users@wicket.apache.org > Subject: Re: Multipart form throws exception > > are you submitting the form via ajax? > > -igor > > On Wed, Jun 25, 2008 at 12:09 PM, Michael Mehrle > <[EMAIL PROTECTED]> wrote: >> Just ran into the exception again: >> >> java.lang.IllegalStateException: ServletRequest does not contain >> multipart content >>at >> > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.>>(MultipartServletWebRequest.java:90) >>at >> > com.evite.event.web.create.MainImageUpload.receiveUpload(MainImageUpload >> .java:66) >>at >> > com.evite.event.web.create.MainImageUpload.(MainImageUpload.java:3 >> 8) >> >> >> Sorry, I meant to say 'request' >> >> MainImageUpload is what the file uploader points to. >> >> Michael >> >> -Original Message- >> From: Igor Vaynberg [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, June 25, 2008 11:34 AM >> To: users@wicket.apache.org >> Subject: Re: Multipart form throws exception >> >> response not being multipart? wasnt aware there was such a thing... >> >> -igor >> >> On Wed, Jun 25, 2008 at 11:24 AM, Michael Mehrle >> <[EMAIL PROTECTED]> wrote: >>> I'm on Wicket 1.3.3 and am experiencing problems with multipart >> content >>> on Safari and IE. The backend page receiving the image processes it >> just >>> fine and returns a response like this: >>> >>> >>> >>> RequestCycle.get().setRequestTarget(new IRequestTarget() { >>> >>>public void detach(RequestCycle >>> requestCycle) { >>> >>>} >>> >>>public void respond(RequestCycle >>> requestCycle) { >>> >>>// formulate the JSON >>> response >>> >>>StringBuffer response > = >>> new StringBuffer("{\n"); >>> >>>if (StringUtils.isNotEmpty(error)) { >>> >>>response.append("\"error\": >>> \"").append(getString(error)).append("\""); >>> >>>} else { >>> >>>response.append("\"msg\": >>> >> > \"").append(getString("successfulFileUploadNotification")).append("\",\n >>> "); >>> >>>response.append("\"photoId\": >>> \"").append(photo.getId()).append("\",\n"); >>> >>>response.append("\"uri\": >>> \"").append(photoService.getPhotoSrc(photo)).append("\""); >>> >>>} >>> >>>response.append("\n}"); >>> >>>Response rep = >>> requestCycle.getResponse(); >>> >>> >>> rep.setContentType("text/javascript"); >>> >>>rep.write(response); >>> >>>} >>> >>>}); >>> >>> >>> >>> As you can see I'm bouncing a JSON response back, which is received >> and >>> handled on my front end. It works in Firefox but fails in Safari and >> IE >>> with an error message which I would love to post but I'm not getting >>> every time. I do remember however that it complained about the >> response >>> not being 'multipart'. >>> >>> >>> >>> There is a similar bug report that was posted a while ago and claimed >>> this to be fixed in 1.3.3. >>> >>> >>> >>> >> > http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-excepti >>> on-in-1.3.1-td15975693.html >>> >>> >>> >>> Any suggestions would be welcome. >>> >>> >>> >>> Thanks! >>> >>> >>> >>> Michael >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -
Re: Multipart form throws exception
doesnt jquery use an iframe? so it is not submitted via ajax... -igor On Wed, Jun 25, 2008 at 1:27 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Yeah, remember I build it around jQuery according to that link you sent > me - not using Wicket for the upload only for bouncing back the > response. > > Thing is that this worked until 1.3.2 and somehow since updating to > 1.3.3 it's broken again. The issue seems to be the content type - had it > working with 'text/javascript' on all three browsers but now it won't. > > M. > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 1:22 PM > To: users@wicket.apache.org > Subject: Re: Multipart form throws exception > > are you submitting the form via ajax? > > -igor > > On Wed, Jun 25, 2008 at 12:09 PM, Michael Mehrle > <[EMAIL PROTECTED]> wrote: >> Just ran into the exception again: >> >> java.lang.IllegalStateException: ServletRequest does not contain >> multipart content >>at >> > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.>>(MultipartServletWebRequest.java:90) >>at >> > com.evite.event.web.create.MainImageUpload.receiveUpload(MainImageUpload >> .java:66) >>at >> > com.evite.event.web.create.MainImageUpload.(MainImageUpload.java:3 >> 8) >> >> >> Sorry, I meant to say 'request' >> >> MainImageUpload is what the file uploader points to. >> >> Michael >> >> -Original Message- >> From: Igor Vaynberg [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, June 25, 2008 11:34 AM >> To: users@wicket.apache.org >> Subject: Re: Multipart form throws exception >> >> response not being multipart? wasnt aware there was such a thing... >> >> -igor >> >> On Wed, Jun 25, 2008 at 11:24 AM, Michael Mehrle >> <[EMAIL PROTECTED]> wrote: >>> I'm on Wicket 1.3.3 and am experiencing problems with multipart >> content >>> on Safari and IE. The backend page receiving the image processes it >> just >>> fine and returns a response like this: >>> >>> >>> >>> RequestCycle.get().setRequestTarget(new IRequestTarget() { >>> >>>public void detach(RequestCycle >>> requestCycle) { >>> >>>} >>> >>>public void respond(RequestCycle >>> requestCycle) { >>> >>>// formulate the JSON >>> response >>> >>>StringBuffer response > = >>> new StringBuffer("{\n"); >>> >>>if (StringUtils.isNotEmpty(error)) { >>> >>>response.append("\"error\": >>> \"").append(getString(error)).append("\""); >>> >>>} else { >>> >>>response.append("\"msg\": >>> >> > \"").append(getString("successfulFileUploadNotification")).append("\",\n >>> "); >>> >>>response.append("\"photoId\": >>> \"").append(photo.getId()).append("\",\n"); >>> >>>response.append("\"uri\": >>> \"").append(photoService.getPhotoSrc(photo)).append("\""); >>> >>>} >>> >>>response.append("\n}"); >>> >>>Response rep = >>> requestCycle.getResponse(); >>> >>> >>> rep.setContentType("text/javascript"); >>> >>>rep.write(response); >>> >>>} >>> >>>}); >>> >>> >>> >>> As you can see I'm bouncing a JSON response back, which is received >> and >>> handled on my front end. It works in Firefox but fails in Safari and >> IE >>> with an error message which I would love to post but I'm not getting >>> every time. I do remember however that it complained about the >> response >>> not being 'multipart'. >>> >>> >>> >>> There is a similar bug report that was posted a while ago and claimed >>> this to be fixed in 1.3.3. >>> >>> >>> >>> >> > http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-excepti >>> on-in-1.3.1-td15975693.html >>> >>> >>> >>> Any suggestions would be welcome. >>> >>> >>> >>> Thanks! >>> >>> >>> >>> Michael >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Style implementation for Round Cornered Tabbed Panels
Thanks guys, I follow the leads and got it done. Great link about the sliding doors, thanks, f(t) On Tue, Jun 24, 2008 at 10:20 PM, Matthew Young <[EMAIL PROTECTED]> wrote: > The wicket tab panel example does exactly this > > http://www.wicket-library.com/wicket-examples/ajax/tabbed-panel.1 > > It uses the sliding door technique describe here: > > http://www.alistapart.com/articles/slidingdoors/ > > On Tue, Jun 24, 2008 at 5:02 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: > > > I've seen this done pretty much how you describe (in fact I think there > is > > a demo inthe wicket examples) That use two images (left and right). > > the left one is narrow, just enough to contain the rounded corners, the > > right side however is extra long; long enough to fit pretty much any text > > you put in. > > > > As the tab expands, the right side move to the right and simply clips to > > the left as needed. > > > > > > - Brill Pappin > > > > > > > > On 24-Jun-08, at 6:01 PM, Francisco Diaz Trepat - gmail wrote: > > > > Hi all, > >> > >> I need to make each tab on an AjaxTabbedPanel have round corners. No big > >> deal so far: > >> > >> *div.tabpanel div.tab-row li* { > >> background:url("my-round-corner-tab-background.png") no-repeat left > top; > >> } > >> > >> But what if I want to have a "resizable" round cornered tab. Therefore > if > >> i > >> have a tab title "hi" and another "good bye and have a wonderful > >> weekend!!!" > >> I wouldn't need to have two different background images: one for small > >> normal titles and another background for huge horrible ones. > >> > >> I believe the technique is to have the two corners edges (left and > right) > >> and have the middle space with the same colored background. > >> > >> so, any ideas on how, and if I could implement that without touching so > >> much > >> the AjaxTabbedPanel implementation (extending). > >> > >> I think I might be able to put the left corner background image on the > >> *div.tabpanel > >> div.tab-row li a *and the right one on the *div.tabpanel div.tab-row li > a > >> span > >> > >> *This would be, uggly even if I could do it. > >> > >> So, any better way of doing this without having to extend the current > >> AjaxTabbedPanel? > >> > >> thanks, > >> f(t) > >> > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
RE: Multipart form throws exception
Yeah, remember I build it around jQuery according to that link you sent me - not using Wicket for the upload only for bouncing back the response. Thing is that this worked until 1.3.2 and somehow since updating to 1.3.3 it's broken again. The issue seems to be the content type - had it working with 'text/javascript' on all three browsers but now it won't. M. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 1:22 PM To: users@wicket.apache.org Subject: Re: Multipart form throws exception are you submitting the form via ajax? -igor On Wed, Jun 25, 2008 at 12:09 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Just ran into the exception again: > > java.lang.IllegalStateException: ServletRequest does not contain > multipart content >at > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.>(MultipartServletWebRequest.java:90) >at > com.evite.event.web.create.MainImageUpload.receiveUpload(MainImageUpload > .java:66) >at > com.evite.event.web.create.MainImageUpload.(MainImageUpload.java:3 > 8) > > > Sorry, I meant to say 'request' > > MainImageUpload is what the file uploader points to. > > Michael > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 11:34 AM > To: users@wicket.apache.org > Subject: Re: Multipart form throws exception > > response not being multipart? wasnt aware there was such a thing... > > -igor > > On Wed, Jun 25, 2008 at 11:24 AM, Michael Mehrle > <[EMAIL PROTECTED]> wrote: >> I'm on Wicket 1.3.3 and am experiencing problems with multipart > content >> on Safari and IE. The backend page receiving the image processes it > just >> fine and returns a response like this: >> >> >> >> RequestCycle.get().setRequestTarget(new IRequestTarget() { >> >>public void detach(RequestCycle >> requestCycle) { >> >>} >> >>public void respond(RequestCycle >> requestCycle) { >> >>// formulate the JSON >> response >> >>StringBuffer response = >> new StringBuffer("{\n"); >> >>if (StringUtils.isNotEmpty(error)) { >> >>response.append("\"error\": >> \"").append(getString(error)).append("\""); >> >>} else { >> >>response.append("\"msg\": >> > \"").append(getString("successfulFileUploadNotification")).append("\",\n >> "); >> >>response.append("\"photoId\": >> \"").append(photo.getId()).append("\",\n"); >> >>response.append("\"uri\": >> \"").append(photoService.getPhotoSrc(photo)).append("\""); >> >>} >> >>response.append("\n}"); >> >>Response rep = >> requestCycle.getResponse(); >> >> >> rep.setContentType("text/javascript"); >> >>rep.write(response); >> >>} >> >>}); >> >> >> >> As you can see I'm bouncing a JSON response back, which is received > and >> handled on my front end. It works in Firefox but fails in Safari and > IE >> with an error message which I would love to post but I'm not getting >> every time. I do remember however that it complained about the > response >> not being 'multipart'. >> >> >> >> There is a similar bug report that was posted a while ago and claimed >> this to be fixed in 1.3.3. >> >> >> >> > http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-excepti >> on-in-1.3.1-td15975693.html >> >> >> >> Any suggestions would be welcome. >> >> >> >> Thanks! >> >> >> >> Michael >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to use spring with wicket
It actually uses JPA for annotations, which then forwards the actual implementation to hibernate in this case. Im not sure if you can easly switch from JPA to .hbm . Since JPA are annotation driven.. Are there many mapping files? You could perhaps try to fiddle with this setting, in persistence.xml :
Re: UTF-8 Byte Order Marks in .html files
Hi, if your editor prefixes your templates with a BOM(1), Wicket is not able to recognize the encoding in your xml declaration, see org.apache.wicket.util.io.XmlReader#xmlDecl . You might want to create a JIRA request, that Wicket should skip a leading BOM in the encoding detection. Regards Sven 1 - http://de.wikipedia.org/wiki/Byte_Order_Mark Brill Pappin schrieb: Not sure what you mean by BOM (Bill Of Materials?) However I have seen something odd with documents there were generated on a Mac with little "?" in various places. - Brill Pappin On 25-Jun-08, at 2:22 PM, Miguel Paraz wrote: On Wed, Jun 25, 2008 at 9:51 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: I think it might be your browser that is not displaying the unicode chars. That you see the odd symbols at all means that the made it to the client side. Are you on a Mac? Hi! Thanks for the reply. No, I'm on Firefox 3 on Windows. Do you have an idea why removing the BOM fixes it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multipart form throws exception
are you submitting the form via ajax? -igor On Wed, Jun 25, 2008 at 12:09 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Just ran into the exception again: > > java.lang.IllegalStateException: ServletRequest does not contain > multipart content >at > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.>(MultipartServletWebRequest.java:90) >at > com.evite.event.web.create.MainImageUpload.receiveUpload(MainImageUpload > .java:66) >at > com.evite.event.web.create.MainImageUpload.(MainImageUpload.java:3 > 8) > > > Sorry, I meant to say 'request' > > MainImageUpload is what the file uploader points to. > > Michael > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 11:34 AM > To: users@wicket.apache.org > Subject: Re: Multipart form throws exception > > response not being multipart? wasnt aware there was such a thing... > > -igor > > On Wed, Jun 25, 2008 at 11:24 AM, Michael Mehrle > <[EMAIL PROTECTED]> wrote: >> I'm on Wicket 1.3.3 and am experiencing problems with multipart > content >> on Safari and IE. The backend page receiving the image processes it > just >> fine and returns a response like this: >> >> >> >> RequestCycle.get().setRequestTarget(new IRequestTarget() { >> >>public void detach(RequestCycle >> requestCycle) { >> >>} >> >>public void respond(RequestCycle >> requestCycle) { >> >>// formulate the JSON >> response >> >>StringBuffer response = >> new StringBuffer("{\n"); >> >>if (StringUtils.isNotEmpty(error)) { >> >>response.append("\"error\": >> \"").append(getString(error)).append("\""); >> >>} else { >> >>response.append("\"msg\": >> > \"").append(getString("successfulFileUploadNotification")).append("\",\n >> "); >> >>response.append("\"photoId\": >> \"").append(photo.getId()).append("\",\n"); >> >>response.append("\"uri\": >> \"").append(photoService.getPhotoSrc(photo)).append("\""); >> >>} >> >>response.append("\n}"); >> >>Response rep = >> requestCycle.getResponse(); >> >> >> rep.setContentType("text/javascript"); >> >>rep.write(response); >> >>} >> >>}); >> >> >> >> As you can see I'm bouncing a JSON response back, which is received > and >> handled on my front end. It works in Firefox but fails in Safari and > IE >> with an error message which I would love to post but I'm not getting >> every time. I do remember however that it complained about the > response >> not being 'multipart'. >> >> >> >> There is a similar bug report that was posted a while ago and claimed >> this to be fixed in 1.3.3. >> >> >> >> > http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-excepti >> on-in-1.3.1-td15975693.html >> >> >> >> Any suggestions would be welcome. >> >> >> >> Thanks! >> >> >> >> Michael >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to use spring with wicket
One little question: why isn't there some *.hbm.xml? How is the mapping between pojo and db done? Is it possible to use *.hbm.xml with this exemple? They are already writted, and I would like to use them? Could you point me to a direction? Thanks! Nino Saturnino Martinez Vazquez Wael a écrit : No problem, please say if you have any RFE's:) I know that packages arent being generated but dont know howto do it any better when doing a multi project archetype... Piller Sébastien wrote: It works very well, thanks ;) Igor Vaynberg a écrit : i think this maven archetype might be what you are looking for http://www.wicketstuff.org/teamcity/viewType.html?buildTypeId=bt17 -igor On Tue, Jun 24, 2008 at 8:29 AM, Piller Sébastien <[EMAIL PROTECTED]> wrote: Hello guys, I'm trying to get Wicket use Spring & Hibernate correctly. I don't know Spring very well, so I probably made some great errors. I have some question for the beginning: - I saw a "SpringWebApplication" in wicket. Does my app must extends this class or is it possible to use spring & an AuthenticatedWebApplication? - Is it possible to use spring with filters or do I need to use servlets? - Does anybody have a quickstart project that runs with Spring 2.5, Hibernate 3.2 and Wicket 1.3.1? Thanks you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multipart form throws exception
Just ran into the exception again: java.lang.IllegalStateException: ServletRequest does not contain multipart content at org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.(MultipartServletWebRequest.java:90) at com.evite.event.web.create.MainImageUpload.receiveUpload(MainImageUpload .java:66) at com.evite.event.web.create.MainImageUpload.(MainImageUpload.java:3 8) Sorry, I meant to say 'request' MainImageUpload is what the file uploader points to. Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 11:34 AM To: users@wicket.apache.org Subject: Re: Multipart form throws exception response not being multipart? wasnt aware there was such a thing... -igor On Wed, Jun 25, 2008 at 11:24 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I'm on Wicket 1.3.3 and am experiencing problems with multipart content > on Safari and IE. The backend page receiving the image processes it just > fine and returns a response like this: > > > > RequestCycle.get().setRequestTarget(new IRequestTarget() { > >public void detach(RequestCycle > requestCycle) { > >} > >public void respond(RequestCycle > requestCycle) { > >// formulate the JSON > response > >StringBuffer response = > new StringBuffer("{\n"); > >if (StringUtils.isNotEmpty(error)) { > >response.append("\"error\": > \"").append(getString(error)).append("\""); > >} else { > >response.append("\"msg\": > \"").append(getString("successfulFileUploadNotification")).append("\",\n > "); > >response.append("\"photoId\": > \"").append(photo.getId()).append("\",\n"); > >response.append("\"uri\": > \"").append(photoService.getPhotoSrc(photo)).append("\""); > >} > >response.append("\n}"); > >Response rep = > requestCycle.getResponse(); > > > rep.setContentType("text/javascript"); > >rep.write(response); > >} > >}); > > > > As you can see I'm bouncing a JSON response back, which is received and > handled on my front end. It works in Firefox but fails in Safari and IE > with an error message which I would love to post but I'm not getting > every time. I do remember however that it complained about the response > not being 'multipart'. > > > > There is a similar bug report that was posted a while ago and claimed > this to be fixed in 1.3.3. > > > > http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-excepti > on-in-1.3.1-td15975693.html > > > > Any suggestions would be welcome. > > > > Thanks! > > > > Michael > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UTF-8 Byte Order Marks in .html files
Not sure what you mean by BOM (Bill Of Materials?) However I have seen something odd with documents there were generated on a Mac with little "?" in various places. - Brill Pappin On 25-Jun-08, at 2:22 PM, Miguel Paraz wrote: On Wed, Jun 25, 2008 at 9:51 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: I think it might be your browser that is not displaying the unicode chars. That you see the odd symbols at all means that the made it to the client side. Are you on a Mac? Hi! Thanks for the reply. No, I'm on Firefox 3 on Windows. Do you have an idea why removing the BOM fixes it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multipart form throws exception
response not being multipart? wasnt aware there was such a thing... -igor On Wed, Jun 25, 2008 at 11:24 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I'm on Wicket 1.3.3 and am experiencing problems with multipart content > on Safari and IE. The backend page receiving the image processes it just > fine and returns a response like this: > > > > RequestCycle.get().setRequestTarget(new IRequestTarget() { > >public void detach(RequestCycle > requestCycle) { > >} > >public void respond(RequestCycle > requestCycle) { > >// formulate the JSON > response > >StringBuffer response = > new StringBuffer("{\n"); > >if (StringUtils.isNotEmpty(error)) { > >response.append("\"error\": > \"").append(getString(error)).append("\""); > >} else { > >response.append("\"msg\": > \"").append(getString("successfulFileUploadNotification")).append("\",\n > "); > >response.append("\"photoId\": > \"").append(photo.getId()).append("\",\n"); > >response.append("\"uri\": > \"").append(photoService.getPhotoSrc(photo)).append("\""); > >} > >response.append("\n}"); > >Response rep = > requestCycle.getResponse(); > > > rep.setContentType("text/javascript"); > >rep.write(response); > >} > >}); > > > > As you can see I'm bouncing a JSON response back, which is received and > handled on my front end. It works in Firefox but fails in Safari and IE > with an error message which I would love to post but I'm not getting > every time. I do remember however that it complained about the response > not being 'multipart'. > > > > There is a similar bug report that was posted a while ago and claimed > this to be fixed in 1.3.3. > > > > http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-excepti > on-in-1.3.1-td15975693.html > > > > Any suggestions would be welcome. > > > > Thanks! > > > > Michael > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multipart form throws exception
I'm on Wicket 1.3.3 and am experiencing problems with multipart content on Safari and IE. The backend page receiving the image processes it just fine and returns a response like this: RequestCycle.get().setRequestTarget(new IRequestTarget() { public void detach(RequestCycle requestCycle) { } public void respond(RequestCycle requestCycle) { // formulate the JSON response StringBuffer response = new StringBuffer("{\n"); if (StringUtils.isNotEmpty(error)) { response.append("\"error\": \"").append(getString(error)).append("\""); } else { response.append("\"msg\": \"").append(getString("successfulFileUploadNotification")).append("\",\n "); response.append("\"photoId\": \"").append(photo.getId()).append("\",\n"); response.append("\"uri\": \"").append(photoService.getPhotoSrc(photo)).append("\""); } response.append("\n}"); Response rep = requestCycle.getResponse(); rep.setContentType("text/javascript"); rep.write(response); } }); As you can see I'm bouncing a JSON response back, which is received and handled on my front end. It works in Firefox but fails in Safari and IE with an error message which I would love to post but I'm not getting every time. I do remember however that it complained about the response not being 'multipart'. There is a similar bug report that was posted a while ago and claimed this to be fixed in 1.3.3. http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-excepti on-in-1.3.1-td15975693.html Any suggestions would be welcome. Thanks! Michael
Re: UTF-8 Byte Order Marks in .html files
On Wed, Jun 25, 2008 at 9:51 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: > I think it might be your browser that is not displaying the unicode chars. > That you see the odd symbols at all means that the made it to the client > side. > > Are you on a Mac? Hi! Thanks for the reply. No, I'm on Firefox 3 on Windows. Do you have an idea why removing the BOM fixes it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PackagedTextTemplate does not load resource from application resource stream locator? - BUG??
I did some investigation and seems like there is a bug. PackagedTextTemplate @line:92 is creating a new ResourceStreamLocator() instead of using the one from the application. This is causing resources to be not found if you have custom resource stream loader registered with the application. line 92: private static final IResourceStreamLocator streamLocator = new ResourceStreamLocator(); Can Wicket dev confirm? Ritz123 wrote: > > Hi, > > I am trying to use PackagedTextTemplate to load the template, but seems > like its not looking for the resource in the application registered > resource stream locator. I get resource not found exception. > > HeaderContributor.forCss and forJavascript has worked fine and has found > resource in the folders for application stream location without any > issues. > > > -- View this message in context: http://www.nabble.com/PackagedTextTemplate-does-not-load-resource-from-application-resource-stream-locator--tp18103510p18116383.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to use spring with wicket
No problem, please say if you have any RFE's:) I know that packages arent being generated but dont know howto do it any better when doing a multi project archetype... Piller Sébastien wrote: It works very well, thanks ;) Igor Vaynberg a écrit : i think this maven archetype might be what you are looking for http://www.wicketstuff.org/teamcity/viewType.html?buildTypeId=bt17 -igor On Tue, Jun 24, 2008 at 8:29 AM, Piller Sébastien <[EMAIL PROTECTED]> wrote: Hello guys, I'm trying to get Wicket use Spring & Hibernate correctly. I don't know Spring very well, so I probably made some great errors. I have some question for the beginning: - I saw a "SpringWebApplication" in wicket. Does my app must extends this class or is it possible to use spring & an AuthenticatedWebApplication? - Is it possible to use spring with filters or do I need to use servlets? - Does anybody have a quickstart project that runs with Spring 2.5, Hibernate 3.2 and Wicket 1.3.1? Thanks you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions
map a form to a bean and apply the changes to the entity yourself or do all validation via I(Form)Validators -igor On Wed, Jun 25, 2008 at 8:51 AM, cretzel <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm using Wicket together with Spring and Hibernate. And it's quite common, > I think, to use an OpenSessionInViewFilter and a LoadableDetachableModel > which wraps the domain objects loaded with Hibernate, so that when the model > is detached it only holds the ID of the domain object and when its > load()-method is called it uses the ID to load the entity again from the > database (see > http://www.nabble.com/How-to-avoid-Lazy-loading-exception-td17040941.html#a17041351 > this post for an example). So one advantage of this pattern is that you > mainly never get into problems with detached entities > (LazyInitializingException and so on). > > I only got one issue with this when using Spring's transaction support. > Suppose you are editing a domain object in a form and you submit the form > and it passes conversion and validation. Actually the changes you've made > have been written into the domain object when you are in onSubmit() for > example. Then in this situation these changes could easily get persistet to > the DB, even if you don't want them to at this point, e.g. because you want > to do some backend validation first. This can happen when Hibernate flushes > the session, for example before another query. The problem is that the > changes on the domain object are made outside of a transaction > [OpenSessionInViewFilter just opens a Session but doesn't start a > transaction]. > > An example: > Suppose you are editing an entity User, changing the username for example. > The onSubmit()-method could look like this: > > onSubmit() { > // User with changed username, attached to the Session > User user = (User) getModelObject(); > // Do a query. This will cause the changes made to user > // to be flushed to the DB > userService.getUsers(); > // This method does some backend validation, possibly > // fails and the transaction is rolled back so that the > // changes should not be persisted > userService.saveUser(user); > } > > After this, the changes could be persistent in the DB, although they > shouldn't because the validation in the backend failed which should have > rolled back the changes. > > I hope I made clear the point. > > What do you think? > > -- > View this message in context: > http://www.nabble.com/OpenSessionInView-%28OSIV%29%2C-LoadableDetachableModel-and-Transactions-tp18115802p18115802.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Contextual autoCompleteTextField
Ok I will try that but I am not sure that model object will be updated with the new data entered by the when I want to populate the list of my AutoCompleteTextField. Oh may be i can update it in the onChange of all my fields (this will add network traffic but i don't know how to make it better). 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > If you need the components: > > final List yourViewFormComponents = new > ArrayList(); > final Iterator items = yourView.iterator(); > if (items != null) { >while (items.hasNext()) { >items.next().visitChildren(new Component.IVisitor() { >public final Object component(final Component > component) { >if (component instanceof FormComponent) > { > > yourViewFormComponents.add((FormComponent) component); >} >return CONTINUE_TRAVERSAL; >} >}); >} > } > > If you only need the model objects: > > final List yourViewModelObjects = new > ArrayList(); > final Iterator items = yourView.iterator(); > if (items != null) { >while (items.hasNext()) { >yourViewModelObjects.add((YourModelObject) > items.next().getModelObject()); > } > } > > > -Original Message- > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 10:25 AM > To: users@wicket.apache.org > Subject: Re: Contextual autoCompleteTextField > > yes i could do like that but my field are generated in a listview so how > can I retrieve them ?? > > > 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > > > What is stopping you from using the models from the other fields when > > constructing your list? > > > > -Original Message- > > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 25, 2008 8:05 AM > > To: users@wicket.apache.org > > Subject: Re: Contextual autoCompleteTextField > > > > Not really because i dont want to use the onselect of this component > > but to use the content of two other fields to construct the list that > > will be displayed in my AutoCompleteTextField. > > > > 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > > > > > Are you referring to something like > > > http://issues.apache.org/jira/browse/WICKET-488? > > > > > > -Original Message- > > > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, June 25, 2008 4:21 AM > > > To: users@wicket.apache.org > > > Subject: Contextual autoCompleteTextField > > > > > > Hello everybody, > > > > > > Do you know if there is a way to make contextual the list of > > > autocompletTextfield that is to say to make it relative to other > > > fields that are in the form ? > > > Actually i have two Fields, Town and ZipCode and when there are > > > filled, my autoCompleteTextField must display the list of the > > > streets available for this Town and ZipCode. > > > > > > Do you have any trick for making this ?? > > > > > > Thanks > > > > > > Bertrand Datas > > > > > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions
you could take a look at blog tutorial(wiki) or wicket iolite(wicket stuff)... cretzel wrote: Hi, I'm using Wicket together with Spring and Hibernate. And it's quite common, I think, to use an OpenSessionInViewFilter and a LoadableDetachableModel which wraps the domain objects loaded with Hibernate, so that when the model is detached it only holds the ID of the domain object and when its load()-method is called it uses the ID to load the entity again from the database (see http://www.nabble.com/How-to-avoid-Lazy-loading-exception-td17040941.html#a17041351 this post for an example). So one advantage of this pattern is that you mainly never get into problems with detached entities (LazyInitializingException and so on). I only got one issue with this when using Spring's transaction support. Suppose you are editing a domain object in a form and you submit the form and it passes conversion and validation. Actually the changes you've made have been written into the domain object when you are in onSubmit() for example. Then in this situation these changes could easily get persistet to the DB, even if you don't want them to at this point, e.g. because you want to do some backend validation first. This can happen when Hibernate flushes the session, for example before another query. The problem is that the changes on the domain object are made outside of a transaction [OpenSessionInViewFilter just opens a Session but doesn't start a transaction]. An example: Suppose you are editing an entity User, changing the username for example. The onSubmit()-method could look like this: onSubmit() { // User with changed username, attached to the Session User user = (User) getModelObject(); // Do a query. This will cause the changes made to user // to be flushed to the DB userService.getUsers(); // This method does some backend validation, possibly // fails and the transaction is rolled back so that the // changes should not be persisted userService.saveUser(user); } After this, the changes could be persistent in the DB, although they shouldn't because the validation in the backend failed which should have rolled back the changes. I hope I made clear the point. What do you think? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More issues w/ external images and DynamicWebResource
I believe there was a post on this not too many weeks ago, you can use nabble to search for it. Something about serving images or something along those lines... ps I didnt realize that the source you posted were the same...Was a quick mail.. V. Jenks wrote: Thanks Igor, I'll look into this - not something I've tried yet. I was hoping there'd be a short-term tweak to what I already have in place because there are references to that imageResource lookup URL in several spots in my code that I'd now have to go and swap out. igor.vaynberg wrote: why not just create a dead simple servlet that streams images? in fact there are tons of them online you can just take. it is a much simpler solution then dealing with wicket's resources for this particular usecase. -igor On Wed, Jun 25, 2008 at 7:59 AM, V. Jenks <[EMAIL PROTECTED]> wrote: I'm having non-stop issues w/ DynamicWebResource and trying to load images external to my .ear deployment now that I've moved to 1.3. First off, I'm hoping someone can suggest an easier way to do it because what I have now is code that someone was nice enough to give me, here on the Wicket mailing list. However, I don't entirely understand how it works and while it worked for 2 years in Wicket 1.2, it is now causing me problem after problem in Wicket 1.3.x - for whatever reason. First what I've got is a class called ImageResource which extends DynamicWebResource: /*/ public class ImageResource extends DynamicWebResource { private ImageService imgSrv; public ImageResource() { super(); imgSrv = new ImageServiceEngine(); } public String getImage(String image) { String retImg = null; try { retImg = imgSrv.getImage(image).toString(); } catch (IOException exp) { LogProxy.saveEntry(exp); } return retImg; } protected ResourceState getResourceState() { ImageResourceState state = null; try { ValueMap params = getParameters(); byte[] data = null; String imageId = params.getString("file"); //Date lastModified = getImageLastMod(imageId); state = new ImageResourceState(Time.valueOf(new Date())); state.setContentType("image/jpeg"); //SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT IMAGES! if (imageId.contains(PropertyProxy.getExternalImagesRoot()) || imageId.contains(PropertyProxy.getExternalImagesAltRoot())) { data = imgSrv.getImage(imageId); } else { //change image to "not found" warning image data = imgSrv.getImage(PropertyProxy.getImageNotFound()); //TODO: send email to notify of inappropriate access } state.setData(data); } catch (FileNotFoundException exp) { LogProxy.saveEntry(exp); } catch (IOException exp) { LogProxy.saveEntry(exp); } catch (NullPointerException exp) { LogProxy.saveEntry(exp); } return state; } /** * * @author vjenks * */ protected class ImageResourceState extends ResourceState { private String contentType; private byte[] data; private Time lastModified; ImageResourceState(Time lastModified) { super(); this.lastModified = lastModified; } public String getContentType() { return contentType; } void setContentType(String contentType) { this.contentType = contentType; } public byte[] getData() { return data; } void setData(byte[] data) { this.data = data; } public int getLength() { if (data != null) return data.length; else return 0; } public Time lastMo
Trying to make bookmarkablelink
Hi! I get this error when trying to make a bookmarkable page. java.lang.IllegalArgumentException: Too many path parts, please provide sufficient number of path parameter names This is my mouting, mount(new MixedParamUrlCodingStrategy("ItemInterceptor", ItemInterceptor.class,new String[]{""})); This is the code for making the link Brand brand = (Brand) item.getModelObject(); PageParameters params = new PageParameters(); params.add( "Brand", brand.getId().toString() ); Link brandLink = new BookmarkablePageLink( "brandLink" ,ItemInterceptor.class, params ); And it generates this url... I don't know why the slash is there. Anyone https://localhost/hairless-web/ItemInterceptor/?Brand=76 -- View this message in context: http://www.nabble.com/Trying-to-make-bookmarkablelink-tp18115889p18115889.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions
I'd say either enable transactions only for write operations or put all together in one transaction (i.e. don't let hibernate flush the session before you did your backend checks) ... cretzel wrote: > > Hi, > > I'm using Wicket together with Spring and Hibernate. And it's quite > common, I think, to use an OpenSessionInViewFilter and a > LoadableDetachableModel which wraps the domain objects loaded with > Hibernate, so that when the model is detached it only holds the ID of the > domain object and when its load()-method is called it uses the ID to load > the entity again from the database (see > http://www.nabble.com/How-to-avoid-Lazy-loading-exception-td17040941.html#a17041351 > this post for an example). So one advantage of this pattern is that you > mainly never get into problems with detached entities > (LazyInitializingException and so on). > > I only got one issue with this when using Spring's transaction support. > Suppose you are editing a domain object in a form and you submit the form > and it passes conversion and validation. Actually the changes you've made > have been written into the domain object when you are in onSubmit() for > example. Then in this situation these changes could easily get persistet > to the DB, even if you don't want them to at this point, e.g. because you > want to do some backend validation first. This can happen when Hibernate > flushes the session, for example before another query. The problem is that > the changes on the domain object are made outside of a transaction > [OpenSessionInViewFilter just opens a Session but doesn't start a > transaction]. > > An example: > Suppose you are editing an entity User, changing the username for example. > The onSubmit()-method could look like this: > > onSubmit() { >// User with changed username, attached to the Session >User user = (User) getModelObject(); >// Do a query. This will cause the changes made to user >// to be flushed to the DB >userService.getUsers(); >// This method does some backend validation, possibly >// fails and the transaction is rolled back so that the >// changes should not be persisted >userService.saveUser(user); > } > > After this, the changes could be persistent in the DB, although they > shouldn't because the validation in the backend failed which should have > rolled back the changes. > > I hope I made clear the point. > > What do you think? > > - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/OpenSessionInView-%28OSIV%29%2C-LoadableDetachableModel-and-Transactions-tp18115802p18115882.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OpenSessionInView (OSIV), LoadableDetachableModel and Transactions
Hi, I'm using Wicket together with Spring and Hibernate. And it's quite common, I think, to use an OpenSessionInViewFilter and a LoadableDetachableModel which wraps the domain objects loaded with Hibernate, so that when the model is detached it only holds the ID of the domain object and when its load()-method is called it uses the ID to load the entity again from the database (see http://www.nabble.com/How-to-avoid-Lazy-loading-exception-td17040941.html#a17041351 this post for an example). So one advantage of this pattern is that you mainly never get into problems with detached entities (LazyInitializingException and so on). I only got one issue with this when using Spring's transaction support. Suppose you are editing a domain object in a form and you submit the form and it passes conversion and validation. Actually the changes you've made have been written into the domain object when you are in onSubmit() for example. Then in this situation these changes could easily get persistet to the DB, even if you don't want them to at this point, e.g. because you want to do some backend validation first. This can happen when Hibernate flushes the session, for example before another query. The problem is that the changes on the domain object are made outside of a transaction [OpenSessionInViewFilter just opens a Session but doesn't start a transaction]. An example: Suppose you are editing an entity User, changing the username for example. The onSubmit()-method could look like this: onSubmit() { // User with changed username, attached to the Session User user = (User) getModelObject(); // Do a query. This will cause the changes made to user // to be flushed to the DB userService.getUsers(); // This method does some backend validation, possibly // fails and the transaction is rolled back so that the // changes should not be persisted userService.saveUser(user); } After this, the changes could be persistent in the DB, although they shouldn't because the validation in the backend failed which should have rolled back the changes. I hope I made clear the point. What do you think? -- View this message in context: http://www.nabble.com/OpenSessionInView-%28OSIV%29%2C-LoadableDetachableModel-and-Transactions-tp18115802p18115802.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Contextual autoCompleteTextField
If you need the components: final List yourViewFormComponents = new ArrayList(); final Iterator items = yourView.iterator(); if (items != null) { while (items.hasNext()) { items.next().visitChildren(new Component.IVisitor() { public final Object component(final Component component) { if (component instanceof FormComponent) { yourViewFormComponents.add((FormComponent) component); } return CONTINUE_TRAVERSAL; } }); } } If you only need the model objects: final List yourViewModelObjects = new ArrayList(); final Iterator items = yourView.iterator(); if (items != null) { while (items.hasNext()) { yourViewModelObjects.add((YourModelObject) items.next().getModelObject()); } } -Original Message- From: Bertrand DATAS [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 10:25 AM To: users@wicket.apache.org Subject: Re: Contextual autoCompleteTextField yes i could do like that but my field are generated in a listview so how can I retrieve them ?? 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > What is stopping you from using the models from the other fields when > constructing your list? > > -Original Message- > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 8:05 AM > To: users@wicket.apache.org > Subject: Re: Contextual autoCompleteTextField > > Not really because i dont want to use the onselect of this component > but to use the content of two other fields to construct the list that > will be displayed in my AutoCompleteTextField. > > 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > > > Are you referring to something like > > http://issues.apache.org/jira/browse/WICKET-488? > > > > -Original Message- > > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 25, 2008 4:21 AM > > To: users@wicket.apache.org > > Subject: Contextual autoCompleteTextField > > > > Hello everybody, > > > > Do you know if there is a way to make contextual the list of > > autocompletTextfield that is to say to make it relative to other > > fields that are in the form ? > > Actually i have two Fields, Town and ZipCode and when there are > > filled, my autoCompleteTextField must display the list of the > > streets available for this Town and ZipCode. > > > > Do you have any trick for making this ?? > > > > Thanks > > > > Bertrand Datas > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More issues w/ external images and DynamicWebResource
you can always create a very simple ServletImage component that generates the url based on the servlet mapping. imho you should always go for the simplest solution first, and that is a simple servlet. shared resources are great when you need to resources for reusable components, i assume this is in your application so no need for reusability and having to add something to web.xml isnt a problem... -igor On Wed, Jun 25, 2008 at 8:32 AM, V. Jenks <[EMAIL PROTECTED]> wrote: > > Thanks Igor, I'll look into this - not something I've tried yet. I was > hoping there'd be a short-term tweak to what I already have in place because > there are references to that imageResource lookup URL in several spots in my > code that I'd now have to go and swap out. > > > igor.vaynberg wrote: >> >> why not just create a dead simple servlet that streams images? in fact >> there are tons of them online you can just take. it is a much simpler >> solution then dealing with wicket's resources for this particular >> usecase. >> >> -igor >> >> On Wed, Jun 25, 2008 at 7:59 AM, V. Jenks <[EMAIL PROTECTED]> wrote: >>> >>> I'm having non-stop issues w/ DynamicWebResource and trying to load >>> images >>> external to my .ear deployment now that I've moved to 1.3. First off, >>> I'm >>> hoping someone can suggest an easier way to do it because what I have now >>> is >>> code that someone was nice enough to give me, here on the Wicket mailing >>> list. However, I don't entirely understand how it works and while it >>> worked >>> for 2 years in Wicket 1.2, it is now causing me problem after problem in >>> Wicket 1.3.x - for whatever reason. >>> >>> First what I've got is a class called ImageResource which extends >>> DynamicWebResource: >>> >>> /*/ >>> public class ImageResource extends DynamicWebResource >>> { >>>private ImageService imgSrv; >>> >>>public ImageResource() >>>{ >>>super(); >>>imgSrv = new ImageServiceEngine(); >>>} >>> >>>public String getImage(String image) >>>{ >>>String retImg = null; >>> >>>try >>>{ >>>retImg = imgSrv.getImage(image).toString(); >>>} >>>catch (IOException exp) >>>{ >>>LogProxy.saveEntry(exp); >>>} >>> >>>return retImg; >>>} >>> >>>protected ResourceState getResourceState() >>>{ >>>ImageResourceState state = null; >>> >>>try >>>{ >>>ValueMap params = getParameters(); >>> >>>byte[] data = null; >>>String imageId = params.getString("file"); >>> >>>//Date lastModified = getImageLastMod(imageId); >>>state = new ImageResourceState(Time.valueOf(new >>> Date())); >>>state.setContentType("image/jpeg"); >>> >>>//SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT >>> IMAGES! >>>if >>> (imageId.contains(PropertyProxy.getExternalImagesRoot()) || >>> >>> imageId.contains(PropertyProxy.getExternalImagesAltRoot())) >>>{ >>>data = imgSrv.getImage(imageId); >>>} >>>else >>>{ >>>//change image to "not found" warning >>> image >>>data = >>> imgSrv.getImage(PropertyProxy.getImageNotFound()); >>> >>>//TODO: send email to notify of >>> inappropriate access >>>} >>> >>>state.setData(data); >>>} >>>catch (FileNotFoundException exp) >>>{ >>>LogProxy.saveEntry(exp); >>>} >>>catch (IOException exp) >>>{ >>>LogProxy.saveEntry(exp); >>>} >>>catch (NullPointerException exp) >>>{ >>>LogProxy.saveEntry(exp); >>>} >>> >>>return state; >>>} >>> >>>/** >>> * >>> * @author vjenks >>> * >>> */ >>>protected class ImageResourceState extends ResourceState >>>{ >>>private String contentType; >>>private byte[] data; >>>private Time lastModified; >>> >>>ImageResourceState(Time lastModified) >>>{ >>>super(); >>>this.lastModified = lastModified; >>>} >>> >>>public String getContentType() >>>{ >>>return contentType; >>>
Re: More issues w/ external images and DynamicWebResource
Thanks Igor, I'll look into this - not something I've tried yet. I was hoping there'd be a short-term tweak to what I already have in place because there are references to that imageResource lookup URL in several spots in my code that I'd now have to go and swap out. igor.vaynberg wrote: > > why not just create a dead simple servlet that streams images? in fact > there are tons of them online you can just take. it is a much simpler > solution then dealing with wicket's resources for this particular > usecase. > > -igor > > On Wed, Jun 25, 2008 at 7:59 AM, V. Jenks <[EMAIL PROTECTED]> wrote: >> >> I'm having non-stop issues w/ DynamicWebResource and trying to load >> images >> external to my .ear deployment now that I've moved to 1.3. First off, >> I'm >> hoping someone can suggest an easier way to do it because what I have now >> is >> code that someone was nice enough to give me, here on the Wicket mailing >> list. However, I don't entirely understand how it works and while it >> worked >> for 2 years in Wicket 1.2, it is now causing me problem after problem in >> Wicket 1.3.x - for whatever reason. >> >> First what I've got is a class called ImageResource which extends >> DynamicWebResource: >> >> /*/ >> public class ImageResource extends DynamicWebResource >> { >>private ImageService imgSrv; >> >>public ImageResource() >>{ >>super(); >>imgSrv = new ImageServiceEngine(); >>} >> >>public String getImage(String image) >>{ >>String retImg = null; >> >>try >>{ >>retImg = imgSrv.getImage(image).toString(); >>} >>catch (IOException exp) >>{ >>LogProxy.saveEntry(exp); >>} >> >>return retImg; >>} >> >>protected ResourceState getResourceState() >>{ >>ImageResourceState state = null; >> >>try >>{ >>ValueMap params = getParameters(); >> >>byte[] data = null; >>String imageId = params.getString("file"); >> >>//Date lastModified = getImageLastMod(imageId); >>state = new ImageResourceState(Time.valueOf(new >> Date())); >>state.setContentType("image/jpeg"); >> >>//SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT >> IMAGES! >>if >> (imageId.contains(PropertyProxy.getExternalImagesRoot()) || >> >> imageId.contains(PropertyProxy.getExternalImagesAltRoot())) >>{ >>data = imgSrv.getImage(imageId); >>} >>else >>{ >>//change image to "not found" warning >> image >>data = >> imgSrv.getImage(PropertyProxy.getImageNotFound()); >> >>//TODO: send email to notify of >> inappropriate access >>} >> >>state.setData(data); >>} >>catch (FileNotFoundException exp) >>{ >>LogProxy.saveEntry(exp); >>} >>catch (IOException exp) >>{ >>LogProxy.saveEntry(exp); >>} >>catch (NullPointerException exp) >>{ >>LogProxy.saveEntry(exp); >>} >> >>return state; >>} >> >>/** >> * >> * @author vjenks >> * >> */ >>protected class ImageResourceState extends ResourceState >>{ >>private String contentType; >>private byte[] data; >>private Time lastModified; >> >>ImageResourceState(Time lastModified) >>{ >>super(); >>this.lastModified = lastModified; >>} >> >>public String getContentType() >>{ >>return contentType; >>} >> >>void setContentType(String contentType) >>{ >>this.contentType = contentType; >>} >> >>public byte[] getData() >>{ >>return data; >>} >> >>void setData(byte[] data) >>{ >>this.data = data; >>} >> >>public int getLength() >>{ >>if (data != null) >>retu
Re: More issues w/ external images and DynamicWebResource
Ha! The author of that article is the guy who gave me that very same code here on the mailing list. Look through the code I posted and you'll see the similarities - it's literally unchanged. However, as I described - it's not working now that I have to use a Wicket Filter in 1.3. Nino.Martinez wrote: > > Did you try searching the wiki about this? > > http://cwiki.apache.org/WICKET/uploaddownload.html > > There might be more... > > V. Jenks wrote: >> I'm having non-stop issues w/ DynamicWebResource and trying to load >> images >> external to my .ear deployment now that I've moved to 1.3. First off, >> I'm >> hoping someone can suggest an easier way to do it because what I have now >> is >> code that someone was nice enough to give me, here on the Wicket mailing >> list. However, I don't entirely understand how it works and while it >> worked >> for 2 years in Wicket 1.2, it is now causing me problem after problem in >> Wicket 1.3.x - for whatever reason. >> >> First what I've got is a class called ImageResource which extends >> DynamicWebResource: >> >> /*/ >> public class ImageResource extends DynamicWebResource >> { >> private ImageService imgSrv; >> >> public ImageResource() >> { >> super(); >> imgSrv = new ImageServiceEngine(); >> } >> >> public String getImage(String image) >> { >> String retImg = null; >> >> try >> { >> retImg = imgSrv.getImage(image).toString(); >> } >> catch (IOException exp) >> { >> LogProxy.saveEntry(exp); >> } >> >> return retImg; >> } >> >> protected ResourceState getResourceState() >> { >> ImageResourceState state = null; >> >> try >> { >> ValueMap params = getParameters(); >> >> byte[] data = null; >> String imageId = params.getString("file"); >> >> //Date lastModified = getImageLastMod(imageId); >> state = new ImageResourceState(Time.valueOf(new >> Date())); >> state.setContentType("image/jpeg"); >> >> //SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT >> IMAGES! >> if >> (imageId.contains(PropertyProxy.getExternalImagesRoot()) || >> >> imageId.contains(PropertyProxy.getExternalImagesAltRoot())) >> { >> data = imgSrv.getImage(imageId); >> } >> else >> { >> //change image to "not found" warning image >> data = >> imgSrv.getImage(PropertyProxy.getImageNotFound()); >> >> //TODO: send email to notify of inappropriate >> access >> } >> >> state.setData(data); >> } >> catch (FileNotFoundException exp) >> { >> LogProxy.saveEntry(exp); >> } >> catch (IOException exp) >> { >> LogProxy.saveEntry(exp); >> } >> catch (NullPointerException exp) >> { >> LogProxy.saveEntry(exp); >> } >> >> return state; >> } >> >> /** >> * >> * @author vjenks >> * >> */ >> protected class ImageResourceState extends ResourceState >> { >> private String contentType; >> private byte[] data; >> private Time lastModified; >> >> ImageResourceState(Time lastModified) >> { >> super(); >> this.lastModified = lastModified; >> } >> >> public String getContentType() >> { >> return contentType; >> } >> >> void setContentType(String contentType) >> { >> this.contentType = contentType; >> } >> >> public byte[] getData() >> { >> return data; >> } >> >> void setData(byte[] data) >> { >> this.data = data; >> } >> >> public int getLength() >> { >> if (data != null) >> return data.length; >> else >> return 0; >> } >> >> public Time lastModifiedTime() >> { >> return lastModifie
Re: More issues w/ external images and DynamicWebResource
why not just create a dead simple servlet that streams images? in fact there are tons of them online you can just take. it is a much simpler solution then dealing with wicket's resources for this particular usecase. -igor On Wed, Jun 25, 2008 at 7:59 AM, V. Jenks <[EMAIL PROTECTED]> wrote: > > I'm having non-stop issues w/ DynamicWebResource and trying to load images > external to my .ear deployment now that I've moved to 1.3. First off, I'm > hoping someone can suggest an easier way to do it because what I have now is > code that someone was nice enough to give me, here on the Wicket mailing > list. However, I don't entirely understand how it works and while it worked > for 2 years in Wicket 1.2, it is now causing me problem after problem in > Wicket 1.3.x - for whatever reason. > > First what I've got is a class called ImageResource which extends > DynamicWebResource: > > /*/ > public class ImageResource extends DynamicWebResource > { >private ImageService imgSrv; > >public ImageResource() >{ >super(); >imgSrv = new ImageServiceEngine(); >} > >public String getImage(String image) >{ >String retImg = null; > >try >{ >retImg = imgSrv.getImage(image).toString(); >} >catch (IOException exp) >{ >LogProxy.saveEntry(exp); >} > >return retImg; >} > >protected ResourceState getResourceState() >{ >ImageResourceState state = null; > >try >{ >ValueMap params = getParameters(); > >byte[] data = null; >String imageId = params.getString("file"); > >//Date lastModified = getImageLastMod(imageId); >state = new ImageResourceState(Time.valueOf(new > Date())); >state.setContentType("image/jpeg"); > >//SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT > IMAGES! >if > (imageId.contains(PropertyProxy.getExternalImagesRoot()) || > > imageId.contains(PropertyProxy.getExternalImagesAltRoot())) >{ >data = imgSrv.getImage(imageId); >} >else >{ >//change image to "not found" warning image >data = > imgSrv.getImage(PropertyProxy.getImageNotFound()); > >//TODO: send email to notify of inappropriate > access >} > >state.setData(data); >} >catch (FileNotFoundException exp) >{ >LogProxy.saveEntry(exp); >} >catch (IOException exp) >{ >LogProxy.saveEntry(exp); >} >catch (NullPointerException exp) >{ >LogProxy.saveEntry(exp); >} > >return state; >} > >/** > * > * @author vjenks > * > */ >protected class ImageResourceState extends ResourceState >{ >private String contentType; >private byte[] data; >private Time lastModified; > >ImageResourceState(Time lastModified) >{ >super(); >this.lastModified = lastModified; >} > >public String getContentType() >{ >return contentType; >} > >void setContentType(String contentType) >{ >this.contentType = contentType; >} > >public byte[] getData() >{ >return data; >} > >void setData(byte[] data) >{ >this.data = data; >} > >public int getLength() >{ >if (data != null) >return data.length; >else >return 0; >} > >public Time lastModifiedTime() >{ >return lastModified; >} >} > } > /*/ > > > You can see that it uses a class called ImageServiceEngine: > > /*/ > public clas
Re: More issues w/ external images and DynamicWebResource
Did you try searching the wiki about this? http://cwiki.apache.org/WICKET/uploaddownload.html There might be more... V. Jenks wrote: I'm having non-stop issues w/ DynamicWebResource and trying to load images external to my .ear deployment now that I've moved to 1.3. First off, I'm hoping someone can suggest an easier way to do it because what I have now is code that someone was nice enough to give me, here on the Wicket mailing list. However, I don't entirely understand how it works and while it worked for 2 years in Wicket 1.2, it is now causing me problem after problem in Wicket 1.3.x - for whatever reason. First what I've got is a class called ImageResource which extends DynamicWebResource: /*/ public class ImageResource extends DynamicWebResource { private ImageService imgSrv; public ImageResource() { super(); imgSrv = new ImageServiceEngine(); } public String getImage(String image) { String retImg = null; try { retImg = imgSrv.getImage(image).toString(); } catch (IOException exp) { LogProxy.saveEntry(exp); } return retImg; } protected ResourceState getResourceState() { ImageResourceState state = null; try { ValueMap params = getParameters(); byte[] data = null; String imageId = params.getString("file"); //Date lastModified = getImageLastMod(imageId); state = new ImageResourceState(Time.valueOf(new Date())); state.setContentType("image/jpeg"); //SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT IMAGES! if (imageId.contains(PropertyProxy.getExternalImagesRoot()) || imageId.contains(PropertyProxy.getExternalImagesAltRoot())) { data = imgSrv.getImage(imageId); } else { //change image to "not found" warning image data = imgSrv.getImage(PropertyProxy.getImageNotFound()); //TODO: send email to notify of inappropriate access } state.setData(data); } catch (FileNotFoundException exp) { LogProxy.saveEntry(exp); } catch (IOException exp) { LogProxy.saveEntry(exp); } catch (NullPointerException exp) { LogProxy.saveEntry(exp); } return state; } /** * * @author vjenks * */ protected class ImageResourceState extends ResourceState { private String contentType; private byte[] data; private Time lastModified; ImageResourceState(Time lastModified) { super(); this.lastModified = lastModified; } public String getContentType() { return contentType; } void setContentType(String contentType) { this.contentType = contentType; } public byte[] getData() { return data; } void setData(byte[] data) { this.data = data; } public int getLength() { if (data != null) return data.length; else return 0; } public Time lastModifiedTime() { return lastModified; } } } /*/ You can see that it uses a class called ImageServiceEngine: /*/ public class ImageServiceEngine implements ImageService, Serializable { private int thumbnailSize; public ImageServiceEngine() { super(); } public int getThumbnailSize() { return this.thumbnailSize; }
Re: Updating ListView via AJAX
Thanks, again, Igor. I'm certain that getGroupMemberships() is returning good data, so it seems the listview isn't refreshing. I'll play around with it some more. Thanks for the help. I'll let you know if/when I find a solution. Ryan On Jun 24, 2008, at 5:01 PM, Igor Vaynberg wrote: is it that the listview doesnt refresh or that your getGroupMemberships() returns stale data? why dont you set up a breakpoint and see what its doing -igor On Tue, Jun 24, 2008 at 1:08 PM, Ryan O'Hara <[EMAIL PROTECTED]> wrote: Thanks for the quick response, Igor. Unfortunately, the ListView is still not updating after making those changes. Any other ideas? Thanks again, Ryan On Jun 24, 2008, at 3:46 PM, Igor Vaynberg wrote: protected void populateItem(final ListItem item) { GroupMembership groupMembership = (GroupMembership) item.getModelObject(); item.add(new Label("group", new PropertyModel(item.getmodel(), "group")); item.add(new CheckBox("member", new PropertyModel(item.getmodel(), "selected"))); } -igor On Tue, Jun 24, 2008 at 10:28 AM, Ryan O'Hara <[EMAIL PROTECTED]> wrote: Also, tried using a LoadableDetachableModel in the ListView: ListView groupMemberRows = new ListView("groupMemberRow", new LoadableDetachableModel(){ protected Object load(){ return getGroupMemberships(); } }) { protected void populateItem(final ListItem item) { GroupMembership groupMembership = (GroupMembership) item.getModelObject(); item.add(new Label("group", groupMembership.getGroup())); item.add(new CheckBox("member", new PropertyModel(groupMembership, "selected"))); } }; Still no luck. Ryan On Jun 24, 2008, at 1:21 PM, Ryan O'Hara wrote: I'm trying to update a ListView via AJAX. I've looked over a bunch of examples in the archives, but I'm still having some trouble. I'm trying to wrap the ListView with a WebMarkupContainer and then update that WebMarkupContainer. I also created a GroupMembership object, which is passed into the ListView. When the form is submitted, the List is populated fine, it's just not rendering. Below is the Java and HTML. Any help would be greatly appreciated. Thanks! -Ryan Java: groupManager = new WebMarkupContainer("groupManager"); groupManager.setOutputMarkupId(true); form.add(groupManager); AjaxSubmitLink submit = new AjaxSubmitLink("submit") { public void onSubmit(AjaxRequestTarget target, Form form) { try { setGroupMemberships(); target.addComponent(groupManager); } catch (Exception e) { error("Unable to get groups for user " + email + "."); } target.addComponent(feedbackPanel); } }; form.add(submit); ListView groupMemberRows = new ListView("groupMemberRow", getGroupMemberships()) { protected void populateItem(final ListItem item) { GroupMembership groupMembership = (GroupMembership) item.getModelObject(); item.add(new Label("group", groupMembership.getGroup())); item.add(new CheckBox("member", new PropertyModel(groupMembership, "selected"))); } }; groupManager.add(groupMemberRows); public void setGroupMemberships() { groupMemberships.clear(); List userGroups = groupQuery.getGroupsByUser (getEmail()); List allGroups = groupQuery.getGroups("*"); GroupMembership groupMembership; for (String group : allGroups) { groupMembership = new GroupMembership(); if (userGroups.contains(group)) { groupMembership.setGroup(group); groupMembership.setSelected(true); } else { groupMembership.setGroup(group); groupMembership.setSelected(false); } groupMemberships.add(groupMembership); } } public List getGroupMemberships() { return groupMemberships; } HTML: Group Member Save - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
More issues w/ external images and DynamicWebResource
I'm having non-stop issues w/ DynamicWebResource and trying to load images external to my .ear deployment now that I've moved to 1.3. First off, I'm hoping someone can suggest an easier way to do it because what I have now is code that someone was nice enough to give me, here on the Wicket mailing list. However, I don't entirely understand how it works and while it worked for 2 years in Wicket 1.2, it is now causing me problem after problem in Wicket 1.3.x - for whatever reason. First what I've got is a class called ImageResource which extends DynamicWebResource: /*/ public class ImageResource extends DynamicWebResource { private ImageService imgSrv; public ImageResource() { super(); imgSrv = new ImageServiceEngine(); } public String getImage(String image) { String retImg = null; try { retImg = imgSrv.getImage(image).toString(); } catch (IOException exp) { LogProxy.saveEntry(exp); } return retImg; } protected ResourceState getResourceState() { ImageResourceState state = null; try { ValueMap params = getParameters(); byte[] data = null; String imageId = params.getString("file"); //Date lastModified = getImageLastMod(imageId); state = new ImageResourceState(Time.valueOf(new Date())); state.setContentType("image/jpeg"); //SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT IMAGES! if (imageId.contains(PropertyProxy.getExternalImagesRoot()) || imageId.contains(PropertyProxy.getExternalImagesAltRoot())) { data = imgSrv.getImage(imageId); } else { //change image to "not found" warning image data = imgSrv.getImage(PropertyProxy.getImageNotFound()); //TODO: send email to notify of inappropriate access } state.setData(data); } catch (FileNotFoundException exp) { LogProxy.saveEntry(exp); } catch (IOException exp) { LogProxy.saveEntry(exp); } catch (NullPointerException exp) { LogProxy.saveEntry(exp); } return state; } /** * * @author vjenks * */ protected class ImageResourceState extends ResourceState { private String contentType; private byte[] data; private Time lastModified; ImageResourceState(Time lastModified) { super(); this.lastModified = lastModified; } public String getContentType() { return contentType; } void setContentType(String contentType) { this.contentType = contentType; } public byte[] getData() { return data; } void setData(byte[] data) { this.data = data; } public int getLength() { if (data != null) return data.length; else return 0; } public Time lastModifiedTime() { return lastModified; } } } /*/ You can see that it uses a class called ImageServiceEngine: /*/ public class ImageServiceEngine implements ImageService, Serializable { private int thumbnailSize; public ImageServiceEngine() { super(); } public int getThumbnailSize() { return this.thumbnailSize; } public void setThumbnailSize(in
Re: lossing form data on ajax repaint
either dont repaint them, or pass their values to the server along with that ajax request like AjaxFormComponentUpdatingBehavior does. -igor On Wed, Jun 25, 2008 at 7:46 AM, taygolf <[EMAIL PROTECTED]> wrote: > > Hey guys. I have a small problem. I have a group of textfields that are > created on the fly from the database by using a panel. All of the textfields > use modal windows as popups to populate them with data except for 2. These 2 > are manually filled in my the user. All of the textfields are in a > WebMarkupContainer. The reason I have them in a WebMarkupContainer is > because I need to default some fields based on what is selected in another > field and I use ajax to repaint the WebMarkupContainer to show my changes. > > The problem is when I repaint the WebMarkupContainer the 2 testfields that > have data that was manually entered by the users are completely erased and > set back to blank. > > How can I keep the data from being cleared on an ajax repaint? > > Thanks > > T > -- > View this message in context: > http://www.nabble.com/lossing-form-data-on-ajax-repaint-tp18114293p18114293.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
lossing form data on ajax repaint
Hey guys. I have a small problem. I have a group of textfields that are created on the fly from the database by using a panel. All of the textfields use modal windows as popups to populate them with data except for 2. These 2 are manually filled in my the user. All of the textfields are in a WebMarkupContainer. The reason I have them in a WebMarkupContainer is because I need to default some fields based on what is selected in another field and I use ajax to repaint the WebMarkupContainer to show my changes. The problem is when I repaint the WebMarkupContainer the 2 testfields that have data that was manually entered by the users are completely erased and set back to blank. How can I keep the data from being cleared on an ajax repaint? Thanks T -- View this message in context: http://www.nabble.com/lossing-form-data-on-ajax-repaint-tp18114293p18114293.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 clustering problem
Just tested you suggestion - it works like a charm! Thanks for your help! Artem. lzappaterrini wrote: > > Well in a production situation there would be one host name used and > failover would just change which server the requests to that host name > get routed to. In that scenario the same cookies would be used so no > problem. > > You should be able to use some trickery in your hosts file to mimic > this. Add a host name (clustertest perhaps) that points to the first > server's IP address, access the site, switch the IP address in the hosts > file to the second server, verify that the second server is indeed hit > and that the behavior is correct. > > I'm not sure if you are familiar with working with a hosts file so just > know that on all Unix-like systems I have encountered it is found at > /etc/hosts and on all Windows systems I have encountered it is found at > C:\WINDOWS\system32\drivers\etc\hosts > > Larry > > -Original Message- > From: Artem D. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 10:05 AM > To: users@wicket.apache.org > Subject: RE: Tomcat 6 clustering problem > > > Disabling cookies in browser made it work! > Servers are configured with jvmRoutes jvm1 and jvm2, i.e. for the first > server: > > > > jsessionid request parameter while requesting the first server looks > like > jsessionid=3E526DD2214AEA5B5C2DAB9C6713AF26.jvm1 > > When switching to the second server jvm2 suffix is used. > > What's the correct way to make it work with enabled cookies? > > -Artem. > > > lzappaterrini wrote: >> >> Are you sure that the same JSESSIONID cookie is being sent to both >> servers? Cookies only get sent when the host value matches the host in >> the URL. Might that be your issue? >> >> -Original Message- >> From: Artem D. [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, June 25, 2008 9:18 AM >> To: users@wicket.apache.org >> Subject: Tomcat 6 clustering problem >> >> >> Hi all, >> I've got wicket 1.4-m2 based application running on two different >> network >> hosts configured as Tomcat 6 Simple TCP cluster. >> I try to simulate failover with session replication using the > following >> schema: >> 1) Log into the first server, store some info in HTTP session >> 2) Access mounted page on the first server, i.e. >> http://first.server/mounted/page >> 3) Try to access the same page on the second server, i.e. >> http://second.server/mounted/page >> >> I assume that HTTP session should replicate between Tomcat's and I > want >> to >> get immediate reply from the second server, but all I get is > forwarding >> me >> to the login screen and the following entries in log: >> >> Jun 25, 2008 5:10:39 PM org.apache.catalina.ha.session.DeltaManager >> messageReceived >> SEVERE: Manager [localhost#/mas]: Unable to receive message through > TCP >> channel >> java.lang.IllegalArgumentException: Unknown object type null >> at >> > org.apache.wicket.protocol.http.pagestore.DiskPageStore.restoreAfterSeri >> alization(DiskPageStore.java:1211) >> at >> > org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevel >> CachePageMap.readObject(SecondLevelCacheSessionStore.java:403) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav >> a:39) >> at >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor >> Impl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) >> at >> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) >> at >> > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753 >> ) >> at >> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) >> at >> java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) >> at >> > org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(D >> eltaRequest.java:361) >> at >> > org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.ja >> va:255) >> at >> > org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(Delt >> aManager.java:619) >> at >> > org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaMan >> ager.java:1363) >> at >> > org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager >> .java:1320) >> at >> > org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaMan >> ager.java:1083) >> at >> > org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(Cl >> usterSessionListener.java:87) >> at >> > org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpClu >> ster.java:899) >> at >> > org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpClu >> ster.java:880) >>
Re: Trying to use spring with wicket
It works very well, thanks ;) Igor Vaynberg a écrit : i think this maven archetype might be what you are looking for http://www.wicketstuff.org/teamcity/viewType.html?buildTypeId=bt17 -igor On Tue, Jun 24, 2008 at 8:29 AM, Piller Sébastien <[EMAIL PROTECTED]> wrote: Hello guys, I'm trying to get Wicket use Spring & Hibernate correctly. I don't know Spring very well, so I probably made some great errors. I have some question for the beginning: - I saw a "SpringWebApplication" in wicket. Does my app must extends this class or is it possible to use spring & an AuthenticatedWebApplication? - Is it possible to use spring with filters or do I need to use servlets? - Does anybody have a quickstart project that runs with Spring 2.5, Hibernate 3.2 and Wicket 1.3.1? Thanks you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Contextual autoCompleteTextField
yes i could do like that but my field are generated in a listview so how can I retrieve them ?? 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > What is stopping you from using the models from the other fields when > constructing your list? > > -Original Message- > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 8:05 AM > To: users@wicket.apache.org > Subject: Re: Contextual autoCompleteTextField > > Not really because i dont want to use the onselect of this component but > to use the content of two other fields to construct the list that will > be displayed in my AutoCompleteTextField. > > 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > > > Are you referring to something like > > http://issues.apache.org/jira/browse/WICKET-488? > > > > -Original Message- > > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 25, 2008 4:21 AM > > To: users@wicket.apache.org > > Subject: Contextual autoCompleteTextField > > > > Hello everybody, > > > > Do you know if there is a way to make contextual the list of > > autocompletTextfield that is to say to make it relative to other > > fields that are in the form ? > > Actually i have two Fields, Town and ZipCode and when there are > > filled, my autoCompleteTextField must display the list of the streets > > available for this Town and ZipCode. > > > > Do you have any trick for making this ?? > > > > Thanks > > > > Bertrand Datas > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: Tomcat 6 clustering problem
Well in a production situation there would be one host name used and failover would just change which server the requests to that host name get routed to. In that scenario the same cookies would be used so no problem. You should be able to use some trickery in your hosts file to mimic this. Add a host name (clustertest perhaps) that points to the first server's IP address, access the site, switch the IP address in the hosts file to the second server, verify that the second server is indeed hit and that the behavior is correct. I'm not sure if you are familiar with working with a hosts file so just know that on all Unix-like systems I have encountered it is found at /etc/hosts and on all Windows systems I have encountered it is found at C:\WINDOWS\system32\drivers\etc\hosts Larry -Original Message- From: Artem D. [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 10:05 AM To: users@wicket.apache.org Subject: RE: Tomcat 6 clustering problem Disabling cookies in browser made it work! Servers are configured with jvmRoutes jvm1 and jvm2, i.e. for the first server: jsessionid request parameter while requesting the first server looks like jsessionid=3E526DD2214AEA5B5C2DAB9C6713AF26.jvm1 When switching to the second server jvm2 suffix is used. What's the correct way to make it work with enabled cookies? -Artem. lzappaterrini wrote: > > Are you sure that the same JSESSIONID cookie is being sent to both > servers? Cookies only get sent when the host value matches the host in > the URL. Might that be your issue? > > -Original Message- > From: Artem D. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 9:18 AM > To: users@wicket.apache.org > Subject: Tomcat 6 clustering problem > > > Hi all, > I've got wicket 1.4-m2 based application running on two different > network > hosts configured as Tomcat 6 Simple TCP cluster. > I try to simulate failover with session replication using the following > schema: > 1) Log into the first server, store some info in HTTP session > 2) Access mounted page on the first server, i.e. > http://first.server/mounted/page > 3) Try to access the same page on the second server, i.e. > http://second.server/mounted/page > > I assume that HTTP session should replicate between Tomcat's and I want > to > get immediate reply from the second server, but all I get is forwarding > me > to the login screen and the following entries in log: > > Jun 25, 2008 5:10:39 PM org.apache.catalina.ha.session.DeltaManager > messageReceived > SEVERE: Manager [localhost#/mas]: Unable to receive message through TCP > channel > java.lang.IllegalArgumentException: Unknown object type null > at > org.apache.wicket.protocol.http.pagestore.DiskPageStore.restoreAfterSeri > alization(DiskPageStore.java:1211) > at > org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevel > CachePageMap.readObject(SecondLevelCacheSessionStore.java:403) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) > at > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753 > ) > at > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) > at > java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) > at > org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(D > eltaRequest.java:361) > at > org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.ja > va:255) > at > org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(Delt > aManager.java:619) > at > org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaMan > ager.java:1363) > at > org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager > .java:1320) > at > org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaMan > ager.java:1083) > at > org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(Cl > usterSessionListener.java:87) > at > org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpClu > ster.java:899) > at > org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpClu > ster.java:880) > at > org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChann > el.java:269) > at > org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived( > ChannelInterceptorBase.java:79) > at > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.message > Receive
Re: redirect page in the constructor
use restartresponseexception instead -igor On Wed, Jun 25, 2008 at 5:36 AM, Eyal Golan <[EMAIL PROTECTED]> wrote: > Hi, > After reviewing some discussion regarding the issue. > http://issues.apache.org/jira/browse/WICKET-696 > > and > http://www.mail-archive.com/[EMAIL PROTECTED]/msg30288.html > > What is the conclusion? > Is the original page being mapped or no? > > thanks > > -- > Eyal Golan > [EMAIL PROTECTED] > > Visit: http://jvdrums.sourceforge.net/ > LinkedIn: http://www.linkedin.com/in/egolan74 > > P Save a tree. Please don't print this e-mail unless it's really necessary > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 clustering problem
Disabling cookies in browser made it work! Servers are configured with jvmRoutes jvm1 and jvm2, i.e. for the first server: jsessionid request parameter while requesting the first server looks like jsessionid=3E526DD2214AEA5B5C2DAB9C6713AF26.jvm1 When switching to the second server jvm2 suffix is used. What's the correct way to make it work with enabled cookies? -Artem. lzappaterrini wrote: > > Are you sure that the same JSESSIONID cookie is being sent to both > servers? Cookies only get sent when the host value matches the host in > the URL. Might that be your issue? > > -Original Message- > From: Artem D. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 9:18 AM > To: users@wicket.apache.org > Subject: Tomcat 6 clustering problem > > > Hi all, > I've got wicket 1.4-m2 based application running on two different > network > hosts configured as Tomcat 6 Simple TCP cluster. > I try to simulate failover with session replication using the following > schema: > 1) Log into the first server, store some info in HTTP session > 2) Access mounted page on the first server, i.e. > http://first.server/mounted/page > 3) Try to access the same page on the second server, i.e. > http://second.server/mounted/page > > I assume that HTTP session should replicate between Tomcat's and I want > to > get immediate reply from the second server, but all I get is forwarding > me > to the login screen and the following entries in log: > > Jun 25, 2008 5:10:39 PM org.apache.catalina.ha.session.DeltaManager > messageReceived > SEVERE: Manager [localhost#/mas]: Unable to receive message through TCP > channel > java.lang.IllegalArgumentException: Unknown object type null > at > org.apache.wicket.protocol.http.pagestore.DiskPageStore.restoreAfterSeri > alization(DiskPageStore.java:1211) > at > org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevel > CachePageMap.readObject(SecondLevelCacheSessionStore.java:403) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) > at > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753 > ) > at > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) > at > java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) > at > org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(D > eltaRequest.java:361) > at > org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.ja > va:255) > at > org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(Delt > aManager.java:619) > at > org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaMan > ager.java:1363) > at > org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager > .java:1320) > at > org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaMan > ager.java:1083) > at > org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(Cl > usterSessionListener.java:87) > at > org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpClu > ster.java:899) > at > org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpClu > ster.java:880) > at > org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChann > el.java:269) > at > org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived( > ChannelInterceptorBase.java:79) > at > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.message > Received(TcpFailureDetector.java:110) > at > org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived( > ChannelInterceptorBase.java:79) > at > org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived( > ChannelInterceptorBase.java:79) > at > org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(Chan > nelCoordinator.java:241) > at > org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(Re > ceiverBase.java:225) > at > org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel > (NioReplicationTask.java:188) > at > org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioRepli > cationTask.java:91) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto > r.java:885) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja > va:907) > at java.lang.Thread.run(Thread.ja
Re: Tomcat 6 clustering problem
Just tried with 1.4-SNAPSHOT. Same exception but different line in the DiskPageStore.java SEVERE: Manager [localhost#/mas]: Unable to receive message through TCP channel java.lang.IllegalArgumentException: Unknown object type null at org.apache.wicket.protocol.http.pagestore.DiskPageStore.restoreAfterSerialization(DiskPageStore.java:1215) Matej Knopp-2 wrote: > > Any chance you can try it with latest trunk? > > -Matej > > On Wed, Jun 25, 2008 at 3:18 PM, Artem D. <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> I've got wicket 1.4-m2 based application running on two different network >> hosts configured as Tomcat 6 Simple TCP cluster. >> I try to simulate failover with session replication using the following >> schema: >> 1) Log into the first server, store some info in HTTP session >> 2) Access mounted page on the first server, i.e. >> http://first.server/mounted/page >> 3) Try to access the same page on the second server, i.e. >> http://second.server/mounted/page >> >> I assume that HTTP session should replicate between Tomcat's and I want >> to >> get immediate reply from the second server, but all I get is forwarding >> me >> to the login screen and the following entries in log: >> >> Jun 25, 2008 5:10:39 PM org.apache.catalina.ha.session.DeltaManager >> messageReceived >> SEVERE: Manager [localhost#/mas]: Unable to receive message through TCP >> channel >> java.lang.IllegalArgumentException: Unknown object type null >>at >> org.apache.wicket.protocol.http.pagestore.DiskPageStore.restoreAfterSerialization(DiskPageStore.java:1211) >>at >> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:403) >>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>at java.lang.reflect.Method.invoke(Method.java:597) >>at >> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) >>at >> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) >>at >> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) >>at >> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) >>at >> java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) >>at >> org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(DeltaRequest.java:361) >>at >> org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.java:255) >>at >> org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(DeltaManager.java:619) >>at >> org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1363) >>at >> org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1320) >>at >> org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1083) >>at >> org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:87) >>at >> org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:899) >>at >> org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:880) >>at >> org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:269) >>at >> org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) >>at >> org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:110) >>at >> org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) >>at >> org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) >>at >> org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:241) >>at >> org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:225) >>at >> org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:188) >>at >> org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:91) >>at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) >>at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) >>at java.lang.Thread.run(Thread.java:619) >> >> Is there a way to resolve this issue? >> -- >> View this message in context: >> http://www.nabble.com/Tomcat-6-clustering-problem-tp18112263p18112263.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >>
RE: Contextual autoCompleteTextField
What is stopping you from using the models from the other fields when constructing your list? -Original Message- From: Bertrand DATAS [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 8:05 AM To: users@wicket.apache.org Subject: Re: Contextual autoCompleteTextField Not really because i dont want to use the onselect of this component but to use the content of two other fields to construct the list that will be displayed in my AutoCompleteTextField. 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > Are you referring to something like > http://issues.apache.org/jira/browse/WICKET-488? > > -Original Message- > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 4:21 AM > To: users@wicket.apache.org > Subject: Contextual autoCompleteTextField > > Hello everybody, > > Do you know if there is a way to make contextual the list of > autocompletTextfield that is to say to make it relative to other > fields that are in the form ? > Actually i have two Fields, Town and ZipCode and when there are > filled, my autoCompleteTextField must display the list of the streets > available for this Town and ZipCode. > > Do you have any trick for making this ?? > > Thanks > > Bertrand Datas > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UTF-8 Byte Order Marks in .html files
I think it might be your browser that is not displaying the unicode chars. That you see the odd symbols at all means that the made it to the client side. Are you on a Mac? - Brill Pappin On 25-Jun-08, at 9:37 AM, Miguel Paraz wrote: Hi, I found out - through a lot of trial and error - that if your .html file has a Byte Order Mark, the at the top of the document is ignored. The document is treated as something else - I'm not sure what. The effect is that the special output characters become the unknown characters. Is this a known issue? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 clustering problem
Are you sure that the same JSESSIONID cookie is being sent to both servers? Cookies only get sent when the host value matches the host in the URL. Might that be your issue? -Original Message- From: Artem D. [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 9:18 AM To: users@wicket.apache.org Subject: Tomcat 6 clustering problem Hi all, I've got wicket 1.4-m2 based application running on two different network hosts configured as Tomcat 6 Simple TCP cluster. I try to simulate failover with session replication using the following schema: 1) Log into the first server, store some info in HTTP session 2) Access mounted page on the first server, i.e. http://first.server/mounted/page 3) Try to access the same page on the second server, i.e. http://second.server/mounted/page I assume that HTTP session should replicate between Tomcat's and I want to get immediate reply from the second server, but all I get is forwarding me to the login screen and the following entries in log: Jun 25, 2008 5:10:39 PM org.apache.catalina.ha.session.DeltaManager messageReceived SEVERE: Manager [localhost#/mas]: Unable to receive message through TCP channel java.lang.IllegalArgumentException: Unknown object type null at org.apache.wicket.protocol.http.pagestore.DiskPageStore.restoreAfterSeri alization(DiskPageStore.java:1211) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevel CachePageMap.readObject(SecondLevelCacheSessionStore.java:403) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753 ) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(D eltaRequest.java:361) at org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.ja va:255) at org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(Delt aManager.java:619) at org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaMan ager.java:1363) at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager .java:1320) at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaMan ager.java:1083) at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(Cl usterSessionListener.java:87) at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpClu ster.java:899) at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpClu ster.java:880) at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChann el.java:269) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived( ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.message Received(TcpFailureDetector.java:110) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived( ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived( ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(Chan nelCoordinator.java:241) at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(Re ceiverBase.java:225) at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel (NioReplicationTask.java:188) at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioRepli cationTask.java:91) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto r.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja va:907) at java.lang.Thread.run(Thread.java:619) Is there a way to resolve this issue? -- View this message in context: http://www.nabble.com/Tomcat-6-clustering-problem-tp18112263p18112263.ht ml Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (ii
UTF-8 Byte Order Marks in .html files
Hi, I found out - through a lot of trial and error - that if your .html file has a Byte Order Mark, the at the top of the document is ignored. The document is treated as something else - I'm not sure what. The effect is that the special output characters become the unknown characters. Is this a known issue? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with RadioGroup in Table
Hi Thomas, Using the row model worked. I changed the value of the text box with data from the domain object in the row model, and set that as the target and bingo! Thank you for your help. Jim -- View this message in context: http://www.nabble.com/help-with-RadioGroup-in-Table-tp18036005p18112563.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 clustering problem
Any chance you can try it with latest trunk? -Matej On Wed, Jun 25, 2008 at 3:18 PM, Artem D. <[EMAIL PROTECTED]> wrote: > > Hi all, > I've got wicket 1.4-m2 based application running on two different network > hosts configured as Tomcat 6 Simple TCP cluster. > I try to simulate failover with session replication using the following > schema: > 1) Log into the first server, store some info in HTTP session > 2) Access mounted page on the first server, i.e. > http://first.server/mounted/page > 3) Try to access the same page on the second server, i.e. > http://second.server/mounted/page > > I assume that HTTP session should replicate between Tomcat's and I want to > get immediate reply from the second server, but all I get is forwarding me > to the login screen and the following entries in log: > > Jun 25, 2008 5:10:39 PM org.apache.catalina.ha.session.DeltaManager > messageReceived > SEVERE: Manager [localhost#/mas]: Unable to receive message through TCP > channel > java.lang.IllegalArgumentException: Unknown object type null >at > org.apache.wicket.protocol.http.pagestore.DiskPageStore.restoreAfterSerialization(DiskPageStore.java:1211) >at > org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:403) >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >at java.lang.reflect.Method.invoke(Method.java:597) >at > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) >at > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) >at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) >at > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) >at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) >at > org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(DeltaRequest.java:361) >at > org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.java:255) >at > org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(DeltaManager.java:619) >at > org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1363) >at > org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1320) >at > org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1083) >at > org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:87) >at > org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:899) >at > org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:880) >at > org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:269) >at > org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) >at > org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:110) >at > org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) >at > org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) >at > org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:241) >at > org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:225) >at > org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:188) >at > org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:91) >at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) >at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) >at java.lang.Thread.run(Thread.java:619) > > Is there a way to resolve this issue? > -- > View this message in context: > http://www.nabble.com/Tomcat-6-clustering-problem-tp18112263p18112263.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 clustering problem
Hi all, I've got wicket 1.4-m2 based application running on two different network hosts configured as Tomcat 6 Simple TCP cluster. I try to simulate failover with session replication using the following schema: 1) Log into the first server, store some info in HTTP session 2) Access mounted page on the first server, i.e. http://first.server/mounted/page 3) Try to access the same page on the second server, i.e. http://second.server/mounted/page I assume that HTTP session should replicate between Tomcat's and I want to get immediate reply from the second server, but all I get is forwarding me to the login screen and the following entries in log: Jun 25, 2008 5:10:39 PM org.apache.catalina.ha.session.DeltaManager messageReceived SEVERE: Manager [localhost#/mas]: Unable to receive message through TCP channel java.lang.IllegalArgumentException: Unknown object type null at org.apache.wicket.protocol.http.pagestore.DiskPageStore.restoreAfterSerialization(DiskPageStore.java:1211) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:403) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(DeltaRequest.java:361) at org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.java:255) at org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(DeltaManager.java:619) at org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1363) at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1320) at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1083) at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:87) at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:899) at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:880) at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:269) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:110) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79) at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:241) at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:225) at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:188) at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:91) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Is there a way to resolve this issue? -- View this message in context: http://www.nabble.com/Tomcat-6-clustering-problem-tp18112263p18112263.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
redirect page in the constructor
Hi, After reviewing some discussion regarding the issue. http://issues.apache.org/jira/browse/WICKET-696 and http://www.mail-archive.com/[EMAIL PROTECTED]/msg30288.html What is the conclusion? Is the original page being mapped or no? thanks -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Contextual autoCompleteTextField
Not really because i dont want to use the onselect of this component but to use the content of two other fields to construct the list that will be displayed in my AutoCompleteTextField. 2008/6/25 Hoover, William <[EMAIL PROTECTED]>: > Are you referring to something like > http://issues.apache.org/jira/browse/WICKET-488? > > -Original Message- > From: Bertrand DATAS [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 4:21 AM > To: users@wicket.apache.org > Subject: Contextual autoCompleteTextField > > Hello everybody, > > Do you know if there is a way to make contextual the list of > autocompletTextfield that is to say to make it relative to other fields > that are in the form ? > Actually i have two Fields, Town and ZipCode and when there are filled, > my autoCompleteTextField must display the list of the streets available > for this Town and ZipCode. > > Do you have any trick for making this ?? > > Thanks > > Bertrand Datas > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: POST or GET Request
TH Lim wrote: > > Hi, > > Is there a way to know if a request is a POST or GET in WebPage? > > TQ > is a post? return "POST".equals(((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getMethod()); Artur -- View this message in context: http://www.nabble.com/POST-or-GET-Request-tp18108556p18110501.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange Error - ModalWindow from ModalWindow - error when closing
More info: - Error appears only once in a session - When it appears it never happen again in the same session - Only appear when the pageMapName was not set for the second ModalWindow I thought that setPageMapName is not a mandatory, isn't it? Artur -- View this message in context: http://www.nabble.com/Strange-Error---ModalWindow-from-ModalWindow---error-when-closing-tp18109667p18110239.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Contextual autoCompleteTextField
Are you referring to something like http://issues.apache.org/jira/browse/WICKET-488? -Original Message- From: Bertrand DATAS [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 4:21 AM To: users@wicket.apache.org Subject: Contextual autoCompleteTextField Hello everybody, Do you know if there is a way to make contextual the list of autocompletTextfield that is to say to make it relative to other fields that are in the form ? Actually i have two Fields, Town and ZipCode and when there are filled, my autoCompleteTextField must display the list of the streets available for this Town and ZipCode. Do you have any trick for making this ?? Thanks Bertrand Datas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange Error - ModalWindow from ModalWindow - error when closing
Hi! I click on a link that open ModalWindow. In this window I click on another link that open another ModalWindow. And now when I close the second ModalWindow by clicking on X on the top-right corner the window doesn't close but there error appear in the FIRST ModalWindow: wicket.RequestCycle - component editOrderForm:editClientWindowLinkPanel:clientWindow not found on page com.testapp.wicket.admin.page.CreateOrderModalPage[id = 0], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] org.apache.wicket.WicketRuntimeException: component editOrderForm:editClientWindowLinkPanel:clientWindow not found on page com.testapp.wicket.admin.page.CreateOrderModalPage[id = 0], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:416) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:461) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) What is strange I cannot create a test case for it because the error appears very very seldom. It works correct most of the time! I use Wicket 1.3.2 and FF 2 and 3. Thanks for help, Artur -- View this message in context: http://www.nabble.com/Strange-Error---ModalWindow-from-ModalWindow---error-when-closing-tp18109667p18109667.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POST or GET Request
Hi, Is there a way to know if a request is a POST or GET in WebPage? TQ -- View this message in context: http://www.nabble.com/POST-or-GET-Request-tp18108556p18108556.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Contextual autoCompleteTextField
Hello everybody, Do you know if there is a way to make contextual the list of autocompletTextfield that is to say to make it relative to other fields that are in the form ? Actually i have two Fields, Town and ZipCode and when there are filled, my autoCompleteTextField must display the list of the streets available for this Town and ZipCode. Do you have any trick for making this ?? Thanks Bertrand Datas
Re: AjaxLink in a DataView causing issues when loading multiple instance of the page
To me the problem seems to be related to the hybridUrlCoding strategy (where the same page instance is reloaded when the user tries to open up a new tab/window by doing right-click on AjaxLink) and the DataView which gets re-rendered everytime (irrespective of the urlcodingstrategy), resulting in a new instance of each items in it and similarly a new ajaxlink for each item, so with that the page-component heirarchy for that version changes, whereas the first-tab/window is still displaying the dataview-items which are not in the component-heirarchy anymore and hence the "Component Not Found on Page" exception. Am looking for some feedback from the experts, i am in a bit of time crunch here, and have a release coming pretty soon.. Thanks in advance... mfs wrote: > > Let me add a couple of things here, > > 1) Page-Versioning has not been turned off. > 2) Using HybridURLCodingStrategy to render the page. > > Opinions please.. > > > > > mfs wrote: >> >> Hi Guys, >> >> I am facing a problem with the usage of AjaxLink within a DataView. The >> dataview is contained in a container since the DataView is updated on >> ajaxform.submit. The AjaxLink is on each Item of the DataView, which >> opens up a modal window (with a panel as the content) with further >> details of each item listed in the DV. >> >> Everything works fine, unless the user tries to open up the same Page >> (containing the above components) in another window/tab, which apparently >> results in the wicket component tree getting out of sync with the actual >> DOM, and hence clicking the ajaxlink on the first window/tab results in >> the following exception...(must be obvious but just for info, if i do a >> refresh of the same page in the first tab/window, the ajaxlink would work >> fine) >> >> org.apache.wicket.WicketRuntimeException: component >> certificateDataViewContainer:certificateList:2:certificateSummaryLink not >> found on page company.wicket.product.page.CertificateSearchPage[id = 0], >> listener interface = [RequestListenerInterface name=IBehaviorListener, >> method=public abstract void >> org.apache.wicket.behavior.IBehaviorListener.onRequest()] >> at >> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:416) >> at >> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:461) >> at >> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) >> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246) >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366) >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) >> at >> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387) >> at >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199) >> at >> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623) >> at >> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) >> at >> com.evermind.server.http.HttpRequestHandler.handleNotFound(HttpRequestHandler.java:1041) >> at >> com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) >> at >> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) >> at >> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) >> at >> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) >> at >> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) >> at >> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java >> >> >> Waiting for followup.. >> >> Thanks in advance >> >> > > -- View this message in context: http://www.nabble.com/AjaxLink-in-a-DataView-causing-issues-when-loading-multiple-instance-of-the-page-tp18099619p18106617.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Output streams from external servlet
I think this can be achived most easily with two requests. Create a class called ExternalPanel that displays a page that redirects to the servlet. Like this: public class ExternalPanel extends Panel { public ExternalPanel(String id, String url) { super(id); add(new InlineFrame("include", new RedirectPage(url))); } } Hope this works for you. // Daniel Frisk jalbum.net On 2008-06-25, at 01:28, krisNog wrote: Hello everyone! I have a question regarding external servlets. I have a panel that I would like to stream content into from an external servlet. The overridden onRender method I'm using for the Panel is shown below where "/ whatever" is the servlet that is outputting some arbitrary HTML that I would like rendered in my wicket panel. I know this isn't the "proper" way of doing things but I have no control over the external servlet and need to incorporate its output into my wicket panel... My problem the code below dispatches to the servlet and the servlet begins streaming out of sequence from the wicket panel. So the html from the servlet starts streaming then the wicket page starts streaming and the servlet html isn't within my wicket panel and then I start getting errors (shown after the onRender method)... Please let me know if I'm not being clear enough I'd be happy to elaborate! protected void onRender(MarkupStream markupStream) { ServletWebRequest servletWebRequest = (ServletWebRequest) getRequest(); HttpServletRequest request = servletWebRequest.getHttpServletRequest(); WebResponse webResponse = (WebResponse) getResponse(); HttpServletResponse response = webResponse.getHttpServletResponse(); RequestDispatcher dispatcher = request.getRequestDispatcher("/whatever"); try { dispatcher.include(request, response); response.flushBuffer(); } catch (ServletException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } Error stack trace: ERROR - WicketFilter - closing the buffer error java.lang.IllegalStateException: getWriter can't be used after getOutputStream was invoked at org .apache .jetspeed .aggregator .impl.HttpBufferedResponse.getWriter(HttpBufferedResponse.java:68) at javax .servlet .ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112) at org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java: 355) at org .apache .wicket .protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 391) at org .apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java: 199) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 215) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org .apache .catalina .core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691) at org .apache .catalina .core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594) at org .apache .catalina .core.ApplicationDispatcher.include(ApplicationDispatcher.java:505) at org .apache .jetspeed .dispatcher .JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:73) at org .apache .wicket .protocol .http.portlet.WicketPortlet.processRequest(WicketPortlet.java:519) at org .apache .wicket .protocol.http.portlet.WicketPortlet.doView(WicketPortlet.java:416) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247) at javax.portlet.GenericPortlet.render(GenericPortlet.java:175) at org .apache .jetspeed .factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java: 103) at org .apache .jetspeed .container .JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:277) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org .apache .catalina .core .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 269) at org .apache .catalina .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org .apache .catalina .core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691) at org .apache .catalina .core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594) at org .apache .catalina .core.ApplicationDispatcher.include(Application