Re: Error during headers validation since migration to 1.5
Hi, Sorry not to have directly submit a quickstart but I was very busy with others projects. Today, I have updated to 1.5 RC5. This trouble doesn't appear any more (with RC4, it still). So good news ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Error-during-headers-validation-since-migration-to-1-5-tp3355890p3650790.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Encrypted URL Redirects To A Css Image
hi, i've found that we have several components implementing Imarkupcacheprovider, however, the id return is null public String getCacheKey(MarkupContainer container, Class containerClass) { return null; } we ahve several components doing this. is this a possible cause as to why the wrong component was rendered ? thanks horacio On Thu, Jul 7, 2011 at 7:30 AM, Horacio Natyural wrote: > hi, > > thanks! i also noticed that it seems to happen on an SSL site rather > than on a non ssl site. > > Thanks! > Horacio > > On Thu, Jul 7, 2011 at 12:37 AM, Martin Grigorov wrote: >> https://issues.apache.org/jira/browse/WICKET-3514 is similar >> but there the problem was that images in .css were broken, i.e. they >> are relative to the .css, but since the .css path is encoded the >> resolved path for the image was invalid >> >> On Wed, Jul 6, 2011 at 6:01 PM, Igor Vaynberg >> wrote: >>> doesnt ring a bell. >>> >>> -igor >>> >>> On Wed, Jul 6, 2011 at 8:32 AM, Horacio Natyural >>> wrote: btw, i just made up the crypted url of course. index is supposed to a wicket page. i also noticed that the image that it downloads is referenced in a css file in the application so it is a resource was there any bug of this nature reported before? i'm trying to find one but i can't seem to. On Wed, Jul 6, 2011 at 11:31 PM, Horacio Natyural wrote: > lol > sorry about that > > anyway here's what happened, > > The link I accessed turned into a css image instead. > > Here's what it looks like in Firefox > > Encrypted URL > > index(PNG Image,256x240 pixels) > > https://ip_addr:port/contextroot/index?x=23423562302982lj;lkjsf73jf;2lkjf;2l3kjf;l2k3fj;lkjf76 > > and then the image appears. > > although the link is supposed to be a link for a page. > > On Wed, Jul 6, 2011 at 11:22 PM, Igor Vaynberg > wrote: >> it is almost impossible to help you when you are so many versions >> behind... >> >> -igor >> >> On Wed, Jul 6, 2011 at 7:17 AM, Horacio Natyural >> wrote: >>> Hi, >>> >>> I'm having this really weird problem and it is intermettent. >>> It seems that when I click a URL wich uses an AjaxFallbackLink and >>> encrypted URL. I am redirected to a css image. >>> My page becomes a png. This is very intermettent though, anyone >>> experienced this before? >>> >>> Instead of getting my desired page, I am redirected to a css image >>> which is a PNG. >>> >>> I'm using wicket 1.4.3 btw, >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> >> -- >> Martin Grigorov >> jWeekend >> Training, Consulting, Development >> http://jWeekend.com >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: inmethod-grid bugs?
I just used DataProviderAdapter to wrap a custom SortableDataProvider with PagingToolbar. As your suggestion, I will try to override AbstractPageableView.wrapQuery() to wrap the current IQuery into IGridQuery. Thanks, Duy On 7/7/2011 5:00 AM, Attila Király wrote: My guess is that you are using a custom DataProviderAdapter with a custom AbstractPageableView. If this is the case, the workaround is to override AbstractPageableView.wrapQuery() to wrap the IQuery into an IGridQuery similar to DataGridBody.Data.wrapQuery(). I am working on a solution to solve this on the 1.5 branch. Attila 2011/7/6 Duy Do Hi all, I'm working on inmethod-grid to add a filter on top of it. Everything works fine if I don't navigate through other pages of the grid. Once I go to other page and filter the results, I get exception: java.lang.ClassCastException: com.inmethod.grid.common.**AbstractPageableView$Query cannot be cast to com.inmethod.grid.datagrid.**DataGrid$IGridQuery at com.chesscom.web.common.**dataprovider.**DataProviderAdapter.query( **DataProviderAdapter.java:82) at com.inmethod.grid.common.**AbstractPageableView.**initialize(** AbstractPageableView.java:222) at com.inmethod.grid.common.**AbstractPageableView.**getItemModels(** AbstractPageableView.java:411) In DataProviderAdapter.java, I found line: DataGrid grid = ((DataGrid.IGridQuery) query).getDataGrid(); The current query can not be cast to IGridQuery. Is it a bug? Thanks, Duy --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketstuff site down
Hi all, The wicketstuff site is down http://wicketstuff.org/wicket/ Safari can’t open the page “http://wicketstuff.org/wicket/” because Safari can’t connect to the server “wicketstuff.org”.
Re: Wicket Encrypted URL Redirects To A Css Image
hi, thanks! i also noticed that it seems to happen on an SSL site rather than on a non ssl site. Thanks! Horacio On Thu, Jul 7, 2011 at 12:37 AM, Martin Grigorov wrote: > https://issues.apache.org/jira/browse/WICKET-3514 is similar > but there the problem was that images in .css were broken, i.e. they > are relative to the .css, but since the .css path is encoded the > resolved path for the image was invalid > > On Wed, Jul 6, 2011 at 6:01 PM, Igor Vaynberg wrote: >> doesnt ring a bell. >> >> -igor >> >> On Wed, Jul 6, 2011 at 8:32 AM, Horacio Natyural >> wrote: >>> btw, i just made up the crypted url of course. >>> index is supposed to a wicket page. >>> i also noticed that the image that it downloads is referenced in a css >>> file in the application so it is a resource >>> >>> was there any bug of this nature reported before? i'm trying to find >>> one but i can't seem to. >>> >>> On Wed, Jul 6, 2011 at 11:31 PM, Horacio Natyural >>> wrote: lol sorry about that anyway here's what happened, The link I accessed turned into a css image instead. Here's what it looks like in Firefox Encrypted URL index(PNG Image,256x240 pixels) https://ip_addr:port/contextroot/index?x=23423562302982lj;lkjsf73jf;2lkjf;2l3kjf;l2k3fj;lkjf76 and then the image appears. although the link is supposed to be a link for a page. On Wed, Jul 6, 2011 at 11:22 PM, Igor Vaynberg wrote: > it is almost impossible to help you when you are so many versions > behind... > > -igor > > On Wed, Jul 6, 2011 at 7:17 AM, Horacio Natyural > wrote: >> Hi, >> >> I'm having this really weird problem and it is intermettent. >> It seems that when I click a URL wich uses an AjaxFallbackLink and >> encrypted URL. I am redirected to a css image. >> My page becomes a png. This is very intermettent though, anyone >> experienced this before? >> >> Instead of getting my desired page, I am redirected to a css image >> which is a PNG. >> >> I'm using wicket 1.4.3 btw, >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Autocomplete - get model object
that's what I did ... used choice provider to store all data it has loaded .. and then I iterate that data when I need it .. and find my object .. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Autocomplete-get-model-object-tp3649960p3650147.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: inmethod-grid bugs?
My guess is that you are using a custom DataProviderAdapter with a custom AbstractPageableView. If this is the case, the workaround is to override AbstractPageableView.wrapQuery() to wrap the IQuery into an IGridQuery similar to DataGridBody.Data.wrapQuery(). I am working on a solution to solve this on the 1.5 branch. Attila 2011/7/6 Duy Do > Hi all, > > I'm working on inmethod-grid to add a filter on top of it. Everything works > fine if I don't navigate through other pages of the grid. Once I go to other > page and filter the results, I get exception: > > java.lang.ClassCastException: > com.inmethod.grid.common.**AbstractPageableView$Query > cannot be cast to com.inmethod.grid.datagrid.**DataGrid$IGridQuery > at com.chesscom.web.common.**dataprovider.**DataProviderAdapter.query( > **DataProviderAdapter.java:82) > at com.inmethod.grid.common.**AbstractPageableView.**initialize(** > AbstractPageableView.java:222) > at com.inmethod.grid.common.**AbstractPageableView.**getItemModels(** > AbstractPageableView.java:411) > > In DataProviderAdapter.java, I found line: DataGrid grid = > ((DataGrid.IGridQuery) query).getDataGrid(); > > The current query can not be cast to IGridQuery. Is it a bug? > > Thanks, > Duy > > > --**--**- > To unsubscribe, e-mail: > users-unsubscribe@wicket.**apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Autocomplete - get model object
Not sure if am understanding your problem correctly but how about this: The main problem is that those objects do not have ids associated with them because your service just does not use ids for the objects. But as far as i understood you have the chance to store the objects you need somewhere after you retreived them from your service, right? So can't you just assign some arbitrary ids to your objects when storing them and then use those ids within the autocomplete component? Of course this would mean that you might end up storing a lot of objects in your page/component/etc which might not be feasible.. Am 06.07.2011 23:38, schrieb armandoxxx: not working .. here's the situation .. I have an Object with address data(street, house number, city, etc) .. so I use Autocomplete to search for streets meanin .. user writes in street name and dropdown shows .. street name and city in wich street is in (meaning same streets can exists in different cities) .. so when choice is selected only street is written to the text box .. and when I wanted to use a converter same street names occur on many choices so equals method is not appropriate for checking .. cause user might have selected the 3rd choice and converter would get me an object with the first one it finds .. and ... NO I cant pust city beside street in text field, cause city is in it's own field ;) .. that's why I'm trying to get the object autocomplete field and not this text autocomplete field .. but hey .. thank you for your help ;) regards Armando PS: cant believe nobody ever needed anything like this :D -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Autocomplete-get-model-object-tp3649960p3650048.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Autocomplete - get model object
not working .. here's the situation .. I have an Object with address data(street, house number, city, etc) .. so I use Autocomplete to search for streets meanin .. user writes in street name and dropdown shows .. street name and city in wich street is in (meaning same streets can exists in different cities) .. so when choice is selected only street is written to the text box .. and when I wanted to use a converter same street names occur on many choices so equals method is not appropriate for checking .. cause user might have selected the 3rd choice and converter would get me an object with the first one it finds .. and ... NO I cant pust city beside street in text field, cause city is in it's own field ;) .. that's why I'm trying to get the object autocomplete field and not this text autocomplete field .. but hey .. thank you for your help ;) regards Armando PS: cant believe nobody ever needed anything like this :D -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Autocomplete-get-model-object-tp3649960p3650048.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Autocomplete - get model object
Hi, use AutoCompleteTextField with a custom converter: getConverter(Class) { return new IConverter() { convertToObject(input, locale) { iterator = getChoices(input); if (iterator.hasNext()) { choice = iterator.next(); if (!iterator.hasNext()) { // unique choice found return choice; } } return null; } } } The texts have to be unique of course. Sven On 07/06/2011 10:50 PM, armandoxxx wrote: Hey guys ... Is there any autocomplete component available that would actually store Beans in models and not ID and or String ... I know id is to identify the object, and Text is for displaying it .. but I've got a situation where backend service returns objects without IDs and I can't ask the service .. can you please load this object by ID when i need it ... so storing selected object (somewhere), (hopefully) in a model of autocomplete component would be great .. but ...from what I searched all autocompletes out there return texts (as AutoCompleteTextField) or IDs (as ObjectAutoCompleteField) .. none can gice you an object :( ... any help would be greatly appreciated ! Regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Autocomplete-get-model-object-tp3649960p3649960.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Autocomplete - get model object
Hey guys ... Is there any autocomplete component available that would actually store Beans in models and not ID and or String ... I know id is to identify the object, and Text is for displaying it .. but I've got a situation where backend service returns objects without IDs and I can't ask the service .. can you please load this object by ID when i need it ... so storing selected object (somewhere), (hopefully) in a model of autocomplete component would be great .. but ...from what I searched all autocompletes out there return texts (as AutoCompleteTextField) or IDs (as ObjectAutoCompleteField) .. none can gice you an object :( ... any help would be greatly appreciated ! Regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Autocomplete-get-model-object-tp3649960p3649960.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WicketStuff artifacts naming strategy
Correct, I don't think it would be nice to rename artifacts for 1.4 branch. There's just too many people relying on old names. What do others think? On 2011 7 6 11:29, "Martin Grigorov" wrote: > The improvement in the naming was done only for 1.5 branch of > wicketstuff/core and will be available with the next release (RC6 ?!). > > On Wed, Jul 6, 2011 at 4:13 PM, gilbertoca wrote: >> Hi, Bruno! >> >> I'm with the same problem: >> >> >>> gilberto@SUGEP-DMASI:~/dev/netbeans-config/snp$ ll >>> target/snp-1.1-SNAPSHOT/WEB-INF/lib/|grep jasper >>> -rw-r--r-- 1 gilberto users 23955 2011-07-04 11:31 >>> jasperreports-1.4.17.2.jar >>> -rw-r--r-- 1 gilberto users 2525996 2011-07-04 11:12 >>> jasperreports-3.5.3.jar >>> >>> >> >> Other thing, the jasperreports(wicketstuff) is tied to jasperreports 3.5.3 >> as you see above - I can't use another version, even using the maven >> exclusion tag. >> >> We are using: >> wicket version 1.4.17 >> wicketstuff version 1.4.17.2 >> >> Where can I get this artefact (wicketstuff-jasperreports) for 1.4 version? >> >> Regards, >> >> Gilberto Caetano de Andrade >> Analista de Sistemas/DBA >> www.secad.to.gov.br >> blog.gilbertoca.com >> >> >> >> Bruno Borges wrote: >>> >>> Hell, it has been merged. >>> >>> pull request #42 merged to master. >>> >>> I've updated the wiki already asking for new JAR modules to follow this >>> naming strategy. >>> >>> Thank you all for the support. >>> >>> *Bruno Borges* >>> www.brunoborges.com.br >>> +55 21 76727099 >>> >>> >>> >>> On Thu, Jun 30, 2011 at 3:14 PM, Bruno Borges >>>wrote: >>> The Pull request #42 is ready to be merged. Please review and vote. https://github.com/wicketstuff/core/pull/42 There's one modification I made that is not related to the repository. It is here: https://github.com/wicketstuff/core/pull/42/files#r55594 *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Jun 30, 2011 at 2:22 PM, Clint Checketts wrote: > I seem to recall the Maven guys recommending against periods in > artifactIds. > Can't find the link for the info though... maybe it was just soething > they > mentioned in the class. > > The purpose was to reduce confusion between artifactIds and groupIds. > > -Clint > > On Thu, Jun 30, 2011 at 11:14 AM, Igor Vaynberg > >> >> >wrote: > > > i think the groupid/artifactid do matter because some containers have > > bundle deployers that pull things from the maven repo...i think > > > > -igor > > > > On Thu, Jun 30, 2011 at 8:38 AM, Martin Grigorov > > > wrote: > > > The Maven artifact id is not important. > > > The name of the produced .jar is what matters, right ? > > > > > > Harald just said that there is a convention in OSGi world to work > with > > > such named .jars (com.acme.blah) > > > > > > On Thu, Jun 30, 2011 at 6:31 PM, James Carman > > > wrote: > > >> And repetitive > > >> > > >> Sent from my Android device. Please excuse typos and brevity. > > >> On Jun 30, 2011 11:12 AM, "Bruno Borges" > > > wrote: > > >>> Yes, me neither. That's why I asked. > > >>> > > >>> The preffix I'm using is "wicketstuff-", but Harald mentioned > > >>> "org.wicketstuff." > > >>> > > >>> I don't want to use that, it's too verbose. > > >>> > > >>> > > >>> *Bruno Borges* > > >>> www.brunoborges.com.br > > >>> +55 21 76727099 > > >>> > > >>> > > >>> > > >>> On Thu, Jun 30, 2011 at 12:06 PM, James Carman > > >>> wrote: > > >>> > > I haven't seen that syntax before of having the group id in the > > artifact id, at least not with the longer group ids (reverse > domain). > > > > On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges < > > bruno.bor...@gmail.com> > > wrote: > > > The preffix is 'wicketstuff-', not 'org.wicketstuff.' > > > > > > Is this ok? > > > > > > *Bruno Borges* > > > www.brunoborges.com.br > > > +55 21 76727099 > > > > > > > > > > > > On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann < > > >> harald.wellm...@gmx.de > > >wrote: > > > > > >> For Maven OSGi bundle artifacts, there is a quasi-convention > to > > have > > >> artifactId = Bundle-Symbolic name, so you would have > > >> > > >> groupId: org.wicketstuff > > >> artifactId: org.wicketstuff.foo.bar > > >> version: 1.5 > > >> > > >> Bundle-Symbolic-Name: org.wicketstuff.foo.bar > > >> JAR name: org.wicketstuff.foo.b
Re: Wicket Encrypted URL Redirects To A Css Image
https://issues.apache.org/jira/browse/WICKET-3514 is similar but there the problem was that images in .css were broken, i.e. they are relative to the .css, but since the .css path is encoded the resolved path for the image was invalid On Wed, Jul 6, 2011 at 6:01 PM, Igor Vaynberg wrote: > doesnt ring a bell. > > -igor > > On Wed, Jul 6, 2011 at 8:32 AM, Horacio Natyural > wrote: >> btw, i just made up the crypted url of course. >> index is supposed to a wicket page. >> i also noticed that the image that it downloads is referenced in a css >> file in the application so it is a resource >> >> was there any bug of this nature reported before? i'm trying to find >> one but i can't seem to. >> >> On Wed, Jul 6, 2011 at 11:31 PM, Horacio Natyural >> wrote: >>> lol >>> sorry about that >>> >>> anyway here's what happened, >>> >>> The link I accessed turned into a css image instead. >>> >>> Here's what it looks like in Firefox >>> >>> Encrypted URL >>> >>> index(PNG Image,256x240 pixels) >>> >>> https://ip_addr:port/contextroot/index?x=23423562302982lj;lkjsf73jf;2lkjf;2l3kjf;l2k3fj;lkjf76 >>> >>> and then the image appears. >>> >>> although the link is supposed to be a link for a page. >>> >>> On Wed, Jul 6, 2011 at 11:22 PM, Igor Vaynberg >>> wrote: it is almost impossible to help you when you are so many versions behind... -igor On Wed, Jul 6, 2011 at 7:17 AM, Horacio Natyural wrote: > Hi, > > I'm having this really weird problem and it is intermettent. > It seems that when I click a URL wich uses an AjaxFallbackLink and > encrypted URL. I am redirected to a css image. > My page becomes a png. This is very intermettent though, anyone > experienced this before? > > Instead of getting my desired page, I am redirected to a css image > which is a PNG. > > I'm using wicket 1.4.3 btw, > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Configure http and https with apache and jboss
it would be awesome if you could make a wiki page out of this... -igor On Wed, Jul 6, 2011 at 8:47 AM, vp143 wrote: > All, > > I think I have this resolved, at least no problems so far. > > There were many things that I needed to add: > 1) Within server.xml, I added proxyName and proxyPort to the 8080 connector. > I found this in the Tomcat documentation "When you are running behind a > proxy server (or a web server that is configured to behave like a proxy > server), you will sometimes prefer to manage the values returned by these > calls. In particular, you will generally want the port number to reflect > that specified in the original request, not the one on which the Connector > itself is listening. You can use the proxyName and proxyPort attributes on > the element to configure these values." > > I also added a NEW connector at 8443 for https support. I found that > request.getScheme and similar code was returning incorrect values. To solve > this, this connector should have the value scheme="https". > > Here are the new connectors: > > connectionTimeout="2" proxyName="myserver.com" proxyPort="80"/> > > connectionTimeout="2" proxyName="myserver.com" proxyPort="443" > scheme="https" /> > > 2) A mistake I made was putting myserver.com within the ProxyPass and > ProxyPassReverse. This was a mistake because this address was not valid for > port 8080 as my firewall was blocking it. My firewall only allows 80 and > 443. I change these values to localhost. Additionally, the VirtualHost for > 443 should point to 8443- the new connector created above. > > Additionally, the myapp is removed entirely (see the next point for the > reasons). > > The httpd.conf I have now is as follows: > > NameVirtualHost *:80 > > ServerName myserver.com:80 > > ProxyPreserveHost On > ProxyPass / http://localhost:8080/ > ProxyPassReverse / http://localhost:8080/ > > > NameVirtualHost *:443 > > ServerName myserver.com:443 > > SSLEngine On > SSLCertificateKeyFile /etc/ssl/private/server.key > SSLCertificateFile /etc/ssl/certs/server.crt > > ProxyPass / http://localhost:8443/ > ProxyPassReverse / http://localhost:8443/ > > #Cookie stuff- untested for now > ProxyPreserveHost On > ProxyPassReverseCookiePath / / > > > 3) Finally, my war file that I deploy needs to be called ROOT.war. From the > Jboss documentation "The only special case to this naming special name ROOT. > To deploy an application under the root context, you simply name it > ROOT.war. JBoss already contains a ROOT.war web application in the > jbossweb.sar directory. You will need to remove or rename that one to create > your own root application." Renaming it ROOT removes the myapp in the url > within wicket. > > I hope this helps any one else trying to setup in a similar way. As I first > thought, it wasnt anything in wicket. Thank you all for your help. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3649180.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Encrypted URL Redirects To A Css Image
doesnt ring a bell. -igor On Wed, Jul 6, 2011 at 8:32 AM, Horacio Natyural wrote: > btw, i just made up the crypted url of course. > index is supposed to a wicket page. > i also noticed that the image that it downloads is referenced in a css > file in the application so it is a resource > > was there any bug of this nature reported before? i'm trying to find > one but i can't seem to. > > On Wed, Jul 6, 2011 at 11:31 PM, Horacio Natyural > wrote: >> lol >> sorry about that >> >> anyway here's what happened, >> >> The link I accessed turned into a css image instead. >> >> Here's what it looks like in Firefox >> >> Encrypted URL >> >> index(PNG Image,256x240 pixels) >> >> https://ip_addr:port/contextroot/index?x=23423562302982lj;lkjsf73jf;2lkjf;2l3kjf;l2k3fj;lkjf76 >> >> and then the image appears. >> >> although the link is supposed to be a link for a page. >> >> On Wed, Jul 6, 2011 at 11:22 PM, Igor Vaynberg >> wrote: >>> it is almost impossible to help you when you are so many versions behind... >>> >>> -igor >>> >>> On Wed, Jul 6, 2011 at 7:17 AM, Horacio Natyural >>> wrote: Hi, I'm having this really weird problem and it is intermettent. It seems that when I click a URL wich uses an AjaxFallbackLink and encrypted URL. I am redirected to a css image. My page becomes a png. This is very intermettent though, anyone experienced this before? Instead of getting my desired page, I am redirected to a css image which is a PNG. I'm using wicket 1.4.3 btw, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Configure http and https with apache and jboss
All, I think I have this resolved, at least no problems so far. There were many things that I needed to add: 1) Within server.xml, I added proxyName and proxyPort to the 8080 connector. I found this in the Tomcat documentation "When you are running behind a proxy server (or a web server that is configured to behave like a proxy server), you will sometimes prefer to manage the values returned by these calls. In particular, you will generally want the port number to reflect that specified in the original request, not the one on which the Connector itself is listening. You can use the proxyName and proxyPort attributes on the element to configure these values." I also added a NEW connector at 8443 for https support. I found that request.getScheme and similar code was returning incorrect values. To solve this, this connector should have the value scheme="https". Here are the new connectors: 2) A mistake I made was putting myserver.com within the ProxyPass and ProxyPassReverse. This was a mistake because this address was not valid for port 8080 as my firewall was blocking it. My firewall only allows 80 and 443. I change these values to localhost. Additionally, the VirtualHost for 443 should point to 8443- the new connector created above. Additionally, the myapp is removed entirely (see the next point for the reasons). The httpd.conf I have now is as follows: NameVirtualHost *:80 ServerName myserver.com:80 ProxyPreserveHost On ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ NameVirtualHost *:443 ServerName myserver.com:443 SSLEngine On SSLCertificateKeyFile /etc/ssl/private/server.key SSLCertificateFile /etc/ssl/certs/server.crt ProxyPass / http://localhost:8443/ ProxyPassReverse / http://localhost:8443/ #Cookie stuff- untested for now ProxyPreserveHost On ProxyPassReverseCookiePath / / 3) Finally, my war file that I deploy needs to be called ROOT.war. From the Jboss documentation "The only special case to this naming special name ROOT. To deploy an application under the root context, you simply name it ROOT.war. JBoss already contains a ROOT.war web application in the jbossweb.sar directory. You will need to remove or rename that one to create your own root application." Renaming it ROOT removes the myapp in the url within wicket. I hope this helps any one else trying to setup in a similar way. As I first thought, it wasnt anything in wicket. Thank you all for your help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3649180.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Encrypted URL Redirects To A Css Image
btw, i just made up the crypted url of course. index is supposed to a wicket page. i also noticed that the image that it downloads is referenced in a css file in the application so it is a resource was there any bug of this nature reported before? i'm trying to find one but i can't seem to. On Wed, Jul 6, 2011 at 11:31 PM, Horacio Natyural wrote: > lol > sorry about that > > anyway here's what happened, > > The link I accessed turned into a css image instead. > > Here's what it looks like in Firefox > > Encrypted URL > > index(PNG Image,256x240 pixels) > > https://ip_addr:port/contextroot/index?x=23423562302982lj;lkjsf73jf;2lkjf;2l3kjf;l2k3fj;lkjf76 > > and then the image appears. > > although the link is supposed to be a link for a page. > > On Wed, Jul 6, 2011 at 11:22 PM, Igor Vaynberg > wrote: >> it is almost impossible to help you when you are so many versions behind... >> >> -igor >> >> On Wed, Jul 6, 2011 at 7:17 AM, Horacio Natyural >> wrote: >>> Hi, >>> >>> I'm having this really weird problem and it is intermettent. >>> It seems that when I click a URL wich uses an AjaxFallbackLink and >>> encrypted URL. I am redirected to a css image. >>> My page becomes a png. This is very intermettent though, anyone >>> experienced this before? >>> >>> Instead of getting my desired page, I am redirected to a css image >>> which is a PNG. >>> >>> I'm using wicket 1.4.3 btw, >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Encrypted URL Redirects To A Css Image
lol sorry about that anyway here's what happened, The link I accessed turned into a css image instead. Here's what it looks like in Firefox Encrypted URL index(PNG Image,256x240 pixels) https://ip_addr:port/contextroot/index?x=23423562302982lj;lkjsf73jf;2lkjf;2l3kjf;l2k3fj;lkjf76 and then the image appears. although the link is supposed to be a link for a page. On Wed, Jul 6, 2011 at 11:22 PM, Igor Vaynberg wrote: > it is almost impossible to help you when you are so many versions behind... > > -igor > > On Wed, Jul 6, 2011 at 7:17 AM, Horacio Natyural > wrote: >> Hi, >> >> I'm having this really weird problem and it is intermettent. >> It seems that when I click a URL wich uses an AjaxFallbackLink and >> encrypted URL. I am redirected to a css image. >> My page becomes a png. This is very intermettent though, anyone >> experienced this before? >> >> Instead of getting my desired page, I am redirected to a css image >> which is a PNG. >> >> I'm using wicket 1.4.3 btw, >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Encrypted URL Redirects To A Css Image
it is almost impossible to help you when you are so many versions behind... -igor On Wed, Jul 6, 2011 at 7:17 AM, Horacio Natyural wrote: > Hi, > > I'm having this really weird problem and it is intermettent. > It seems that when I click a URL wich uses an AjaxFallbackLink and > encrypted URL. I am redirected to a css image. > My page becomes a png. This is very intermettent though, anyone > experienced this before? > > Instead of getting my desired page, I am redirected to a css image > which is a PNG. > > I'm using wicket 1.4.3 btw, > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using iframe external link in wicket
The HTML is like a toggler button (the button is a fallbacklink), the toggler button looks like an arrow, clicking on it would change the direction of the arrow from left to right and vise versa and the direction is diriven by a css class "btn_left" and "btn_right". The webmarkup container would hold the section of html that would show and hide based on the toggle button. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-iframe-external-link-in-wicket-tp3646306p3649045.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Not closing the datepicker upon clicking outside
Hi, Please can you help me, how to configure this in Wicket. I know how to configure with exising YUI widgets, but there is no widget available for "click". Do I need to create widget or is there any way to configure this. Regards, Rambabu -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-closing-the-datepicker-upon-clicking-outside-tp3648593p3648968.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WicketStuff artifacts naming strategy
The improvement in the naming was done only for 1.5 branch of wicketstuff/core and will be available with the next release (RC6 ?!). On Wed, Jul 6, 2011 at 4:13 PM, gilbertoca wrote: > Hi, Bruno! > > I'm with the same problem: > > >> gilberto@SUGEP-DMASI:~/dev/netbeans-config/snp$ ll >> target/snp-1.1-SNAPSHOT/WEB-INF/lib/|grep jasper >> -rw-r--r-- 1 gilberto users 23955 2011-07-04 11:31 >> jasperreports-1.4.17.2.jar >> -rw-r--r-- 1 gilberto users 2525996 2011-07-04 11:12 >> jasperreports-3.5.3.jar >> >> > > Other thing, the jasperreports(wicketstuff) is tied to jasperreports 3.5.3 > as you see above - I can't use another version, even using the maven > exclusion tag. > > We are using: > wicket version 1.4.17 > wicketstuff version 1.4.17.2 > > Where can I get this artefact (wicketstuff-jasperreports) for 1.4 version? > > Regards, > > Gilberto Caetano de Andrade > Analista de Sistemas/DBA > www.secad.to.gov.br > blog.gilbertoca.com > > > > Bruno Borges wrote: >> >> Hell, it has been merged. >> >> pull request #42 merged to master. >> >> I've updated the wiki already asking for new JAR modules to follow this >> naming strategy. >> >> Thank you all for the support. >> >> *Bruno Borges* >> www.brunoborges.com.br >> +55 21 76727099 >> >> >> >> On Thu, Jun 30, 2011 at 3:14 PM, Bruno Borges >>wrote: >> >>> The Pull request #42 is ready to be merged. >>> >>> Please review and vote. >>> >>> https://github.com/wicketstuff/core/pull/42 >>> >>> There's one modification I made that is not related to the repository. It >>> is here: >>> https://github.com/wicketstuff/core/pull/42/files#r55594 >>> >>> >>> >>> *Bruno Borges* >>> www.brunoborges.com.br >>> +55 21 76727099 >>> >>> >>> >>> On Thu, Jun 30, 2011 at 2:22 PM, Clint Checketts >>> wrote: >>> I seem to recall the Maven guys recommending against periods in artifactIds. Can't find the link for the info though... maybe it was just soething they mentioned in the class. The purpose was to reduce confusion between artifactIds and groupIds. -Clint On Thu, Jun 30, 2011 at 11:14 AM, Igor Vaynberg > >> >wrote: > i think the groupid/artifactid do matter because some containers have > bundle deployers that pull things from the maven repo...i think > > -igor > > On Thu, Jun 30, 2011 at 8:38 AM, Martin Grigorov > wrote: > > The Maven artifact id is not important. > > The name of the produced .jar is what matters, right ? > > > > Harald just said that there is a convention in OSGi world to work with > > such named .jars (com.acme.blah) > > > > On Thu, Jun 30, 2011 at 6:31 PM, James Carman > > wrote: > >> And repetitive > >> > >> Sent from my Android device. Please excuse typos and brevity. > >> On Jun 30, 2011 11:12 AM, "Bruno Borges" > wrote: > >>> Yes, me neither. That's why I asked. > >>> > >>> The preffix I'm using is "wicketstuff-", but Harald mentioned > >>> "org.wicketstuff." > >>> > >>> I don't want to use that, it's too verbose. > >>> > >>> > >>> *Bruno Borges* > >>> www.brunoborges.com.br > >>> +55 21 76727099 > >>> > >>> > >>> > >>> On Thu, Jun 30, 2011 at 12:06 PM, James Carman > >>> wrote: > >>> > I haven't seen that syntax before of having the group id in the > artifact id, at least not with the longer group ids (reverse domain). > > On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges < > bruno.bor...@gmail.com> > wrote: > > The preffix is 'wicketstuff-', not 'org.wicketstuff.' > > > > Is this ok? > > > > *Bruno Borges* > > www.brunoborges.com.br > > +55 21 76727099 > > > > > > > > On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann < > >> harald.wellm...@gmx.de > >wrote: > > > >> For Maven OSGi bundle artifacts, there is a quasi-convention to > have > >> artifactId = Bundle-Symbolic name, so you would have > >> > >> groupId: org.wicketstuff > >> artifactId: org.wicketstuff.foo.bar > >> version: 1.5 > >> > >> Bundle-Symbolic-Name: org.wicketstuff.foo.bar > >> JAR name: org.wicketstuff.foo.bar-1.5.**jar > >> > >> Apache Servicemix and Apache Aries use this convention, while > Apache > >> Commons sticks with the old names. > >> > >> Having this naming scheme and the one Bruno suggested in parallel > >> would > >> help to distinguish OSGi bundles from plain old JARs. >
Re: WicketStuff artifacts naming strategy
Hi, Bruno! I'm with the same problem: > gilberto@SUGEP-DMASI:~/dev/netbeans-config/snp$ ll > target/snp-1.1-SNAPSHOT/WEB-INF/lib/|grep jasper > -rw-r--r-- 1 gilberto users 23955 2011-07-04 11:31 > jasperreports-1.4.17.2.jar > -rw-r--r-- 1 gilberto users 2525996 2011-07-04 11:12 > jasperreports-3.5.3.jar > > Other thing, the jasperreports(wicketstuff) is tied to jasperreports 3.5.3 as you see above - I can't use another version, even using the maven exclusion tag. We are using: wicket version 1.4.17 wicketstuff version 1.4.17.2 Where can I get this artefact (wicketstuff-jasperreports) for 1.4 version? Regards, Gilberto Caetano de Andrade Analista de Sistemas/DBA www.secad.to.gov.br blog.gilbertoca.com Bruno Borges wrote: > > Hell, it has been merged. > > pull request #42 merged to master. > > I've updated the wiki already asking for new JAR modules to follow this > naming strategy. > > Thank you all for the support. > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Thu, Jun 30, 2011 at 3:14 PM, Bruno Borges >wrote: > >> The Pull request #42 is ready to be merged. >> >> Please review and vote. >> >> https://github.com/wicketstuff/core/pull/42 >> >> There's one modification I made that is not related to the repository. It >> is here: >> https://github.com/wicketstuff/core/pull/42/files#r55594 >> >> >> >> *Bruno Borges* >> www.brunoborges.com.br >> +55 21 76727099 >> >> >> >> On Thu, Jun 30, 2011 at 2:22 PM, Clint Checketts >> wrote: >> >>> I seem to recall the Maven guys recommending against periods in >>> artifactIds. >>> Can't find the link for the info though... maybe it was just soething >>> they >>> mentioned in the class. >>> >>> The purpose was to reduce confusion between artifactIds and groupIds. >>> >>> -Clint >>> >>> On Thu, Jun 30, 2011 at 11:14 AM, Igor Vaynberg >>> >> >wrote: >>> >>> > i think the groupid/artifactid do matter because some containers have >>> > bundle deployers that pull things from the maven repo...i think >>> > >>> > -igor >>> > >>> > On Thu, Jun 30, 2011 at 8:38 AM, Martin Grigorov >>> >>> > wrote: >>> > > The Maven artifact id is not important. >>> > > The name of the produced .jar is what matters, right ? >>> > > >>> > > Harald just said that there is a convention in OSGi world to work >>> with >>> > > such named .jars (com.acme.blah) >>> > > >>> > > On Thu, Jun 30, 2011 at 6:31 PM, James Carman >>> > > wrote: >>> > >> And repetitive >>> > >> >>> > >> Sent from my Android device. Please excuse typos and brevity. >>> > >> On Jun 30, 2011 11:12 AM, "Bruno Borges" >>> >>> > wrote: >>> > >>> Yes, me neither. That's why I asked. >>> > >>> >>> > >>> The preffix I'm using is "wicketstuff-", but Harald mentioned >>> > >>> "org.wicketstuff." >>> > >>> >>> > >>> I don't want to use that, it's too verbose. >>> > >>> >>> > >>> >>> > >>> *Bruno Borges* >>> > >>> www.brunoborges.com.br >>> > >>> +55 21 76727099 >>> > >>> >>> > >>> >>> > >>> >>> > >>> On Thu, Jun 30, 2011 at 12:06 PM, James Carman >>> > >>> wrote: >>> > >>> >>> > I haven't seen that syntax before of having the group id in the >>> > artifact id, at least not with the longer group ids (reverse >>> domain). >>> > >>> > On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges < >>> > bruno.bor...@gmail.com> >>> > wrote: >>> > > The preffix is 'wicketstuff-', not 'org.wicketstuff.' >>> > > >>> > > Is this ok? >>> > > >>> > > *Bruno Borges* >>> > > www.brunoborges.com.br >>> > > +55 21 76727099 >>> > > >>> > > >>> > > >>> > > On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann < >>> > >> harald.wellm...@gmx.de >>> > >wrote: >>> > > >>> > >> For Maven OSGi bundle artifacts, there is a quasi-convention >>> to >>> > have >>> > >> artifactId = Bundle-Symbolic name, so you would have >>> > >> >>> > >> groupId: org.wicketstuff >>> > >> artifactId: org.wicketstuff.foo.bar >>> > >> version: 1.5 >>> > >> >>> > >> Bundle-Symbolic-Name: org.wicketstuff.foo.bar >>> > >> JAR name: org.wicketstuff.foo.bar-1.5.**jar >>> > >> >>> > >> Apache Servicemix and Apache Aries use this convention, while >>> > Apache >>> > >> Commons sticks with the old names. >>> > >> >>> > >> Having this naming scheme and the one Bruno suggested in >>> parallel >>> > >> would >>> > >> help to distinguish OSGi bundles from plain old JARs. >>> > >> >>> > >> Then again, that would mean you'd have to rename artifacts, >>> once >>> > you >>> > osgify >>> > >> them. >>> > >> >>> > >> Regards, >>> > >> Harald >>> > >> >>> > >> >>> > >> >>> > >> >>> > >>> > >>> --**--**- >>> >
Wicket Encrypted URL Redirects To A Css Image
Hi, I'm having this really weird problem and it is intermettent. It seems that when I click a URL wich uses an AjaxFallbackLink and encrypted URL. I am redirected to a css image. My page becomes a png. This is very intermettent though, anyone experienced this before? Instead of getting my desired page, I am redirected to a css image which is a PNG. I'm using wicket 1.4.3 btw, - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Not closing the datepicker upon clicking outside
Hi, here http://developer.yahoo.com/yui/examples/calendar/calcontainer.html you can find an example of YUI calendar that closes when you click outside its area. You can see how it is configured and using this configuration in your DatePicker overriding configure() method. Hi, I have used the datepicker component in my application and it works great. But currently when I click the icon attached with the datetextfield, it opens up the datepicker, and if I click on a text box or anyother form element outside the calendar, the popup remains opens still open and allows the user to do operations on the background elements in the page. I would seriously like to solve this issue, by either using any functions already available in the jar or by customizing it to a new class. Any pointers on how to achieve this would be greatly appreciated. My requirement would be close the datepicker upon clicking outside it. Please help. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-closing-the-datepicker-upon-clicking-outside-tp3648593p3648593.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to customize LinkTree to use custom node icons?
See the original impl of org.apache.wicket.markup.html.tree.LinkTree.newNodeComponent(String, IModel) On Wed, Jul 6, 2011 at 3:24 PM, Sarah kho wrote: > Hi, > > is there any way to customize the LinkTree to use custom icons for nodes? > > thanks. > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to customize LinkTree to use custom node icons?
Hi, is there any way to customize the LinkTree to use custom icons for nodes? thanks.
Not closing the datepicker upon clicking outside
Hi, I have used the datepicker component in my application and it works great. But currently when I click the icon attached with the datetextfield, it opens up the datepicker, and if I click on a text box or anyother form element outside the calendar, the popup remains opens still open and allows the user to do operations on the background elements in the page. I would seriously like to solve this issue, by either using any functions already available in the jar or by customizing it to a new class. Any pointers on how to achieve this would be greatly appreciated. My requirement would be close the datepicker upon clicking outside it. Please help. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Not-closing-the-datepicker-upon-clicking-outside-tp3648593p3648593.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error - serialization
First of all, don't manage your own DB connection. That is fragile and error-prone. The best solution is to use something like Hibernate, iBatis, JPA or any other such tool. These things manage the connection setup for you, and you don't have to worry about it. Second, in this particular case, get rid of all the static variables. I'm not entirely sure what exactly is causing the "no suitable driver found" issue, but keeping connections and all this stuff around statically is thread-unsafe and can cause all kinds of confusion. If you have to do the DBImage and Database stuff, do it like this (pseudocode, you get the idea): byte[] getRecord { try { Connection c = makeConnection(); Statement s = makeStatement(); } finally { // ...cleanup... } } Basically, move all the static stuff into method-local variables to get rid of threading issues. Carl-Eric www.wicketbuch.de On Tue, 5 Jul 2011 11:35:31 +0200 "Miroslav F." wrote: > Index.java: > public class Index extends WebPage > { > public Index() > { > add(new Image("obrazokzdb", new ImagesIndex())); > } > } > > ImagesIndex.java: > public class ImagesIndex extends LoadableDetachableModel > { > private DBImage myImage; > > @Override > protected Object load() > { > myImage = new DBImage(); > myImage.setImageData(Database.getRecord()); > return myImage; > } > } > > DBImage.java: > public class DBImage extends DynamicImageResource > { > private byte[] imageData; > > @Override > protected byte[] getImageData() > { > return this.imageData; > } > > public void setImageData(byte[] inputImageData) > { > this.imageData = inputImageData; > } > } > > Database.java (poor organisation, at the moment just testing working > with BLOBs): > public class Database > { > private static Connection connection; > private static Statement statement; > private static ResultSet result; > private static LargeObject object; > private static LargeObjectManager manager; > private static String query = "SELECT * FROM > mydatabase.images WHERE id = 8"; > private static byte[] record; > > public static byte[] getRecord() > { > makeConnection(); > makeStatement(); > makeResultSet(); > try > { > result.next(); > Long oid = result.getLong(7); > object = manager.open(oid, > LargeObjectManager.READ); record = new byte[object.size()]; > object.read(record, 0, object.size()); > object.close(); > closeResultSet(); > closeStatement(); > makeCommit(); > } > catch(SQLException e) > { > e.printStackTrace(); > } > return record; > } > > public static void makeConnection() > { > try > { > Class.forName("org.postgresql.Driver"); > connection = > DriverManager.getConnection("jdbc:postgresql://localhost:5432/mydatabase", > "postgres", "postgres"); > connection.setAutoCommit(false); > manager = ((org.postgresql.PGConnection) > connection).getLargeObjectAPI(); > } > catch(ClassNotFoundException e) > { > e.printStackTrace(); > } > catch(SQLException e) > { > e.printStackTrace(); > } > } > > public static void makeStatement() > { > try > { > statement = connection.createStatement(); > } > catch(SQLException e) > { > e.printStackTrace(); > } > } > > public static void setQuery(String inputQuery) > { > query = null; > query = inputQuery; > } > > public static void makeResultSet() > { > try > { > result = statement.executeQuery(query); > } > catch(SQLException e) > { > e.printStackTrace(); > } > } > > public static ResultSet getResultSet() > { > return result; > } > > public static LargeObjectManager getLargeObjectManager() > { > return manager; > } > > public static void closeResultSet() > { > > try > { > result.close(); > } >
RE: error - serialization
Martijn, thanks for pointing me this :-) Problem with JDBC driver still remains :-( > -Original Message- > From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] > Sent: Tuesday, 05. July 2011 12:39 > To: users@wicket.apache.org > Subject: Re: error - serialization > > On Tue, Jul 5, 2011 at 11:35 AM, Miroslav F. wrote: > > ImagesIndex.java: > > public class ImagesIndex extends LoadableDetachableModel { > > private DBImage myImage; > > > > @Override > > protected Object load() > > { > > myImage = new DBImage(); > > myImage.setImageData(Database.getRecord()); > > return myImage; > > } > > } > > Don't do this, LDM already caches the model object for you, > and now you have bound the DBImage to the LDM. > > Instead do: > > public class ImagesIndex extends LoadableDetachableModel { > @Override > protected Object load() > { > DBImage myImage = new DBImage(); > myImage.setImageData(Database.getRecord()); > return myImage; > } > } > > Martijn > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: inmethod-grid bugs?
Please open an issue in wicketstuff issuetracker at github for this. Thanks. On Jul 6, 2011 9:16 AM, "Duy Do" wrote: Hi Martin, I use version 1.4.17. It's same in version 1.5-SNAPSHOT on wicketstuff. Thank you for your quick response. On 7/6/2011 2:07 PM, Martin Grigorov wrote: > > Which version do you use ? > > On Wed, Jul 6, 201...
Re: Saving values of checked checkboxes in list
You need to use CheckGroup which will hold the list. Each checkbox will be responsible for specific index in this list. See http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.CheckGroupPage and its source code On Wed, Jul 6, 2011 at 12:24 PM, NoraBella wrote: > Hi, everybody! > I've read all the posts conserning compoundproperty model and checkboxes, > but didn't get the answer: > > User on my site fullfilling form with diffrent dropdowns, checkboxes etc... > So i got a class for saving results: > > *public class RequestEntity implements > IClusterable > { > private ResortsEntity resort; > private List starsList = new > ArrayList(); > > // getters & setters exist > }* > > in html-page: > * > Level of Hotel > > type="checkbox" class="checkbox"/> > > > > * > > > and java-code: > * Form form = new Form("form", new > CompoundPropertyModel(requestEntity)); > > List stars = new ArrayList(); > for (int i = 1; i < 6; i++) > stars.add(i); > > ListView starsList = new > ListView("starsList", stars) { > protected void populateItem(ListItem > item) { > item.add(new Checkbox("checkbox", > item.getModel())); > item.add(new Label("stars", > item.getModel())); > } > }; > > starsList.setOutputMarkupId(true); > form.add(starsList); > * > > I want the results of checking to be saved in starList array in my compound > model... is it possible? > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Saving-values-of-checked-checkboxes-in-list-tp3648239p3648239.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com
Re: ajax GET stopped because of precondition check
For most of the Ajax requests is used GET method. For ajax form submit for example is used POST. You can check the used method and the headers with Firebug in Firefox. IE may add/remove some header but the method and the url should be the same as in FF. On Wed, Jul 6, 2011 at 12:34 PM, Kurt Sys wrote: > It only worked once in IE (checked only on 1 pc). So, probably a caching > problem of IE? > > I suppose the ajax-requests of wicket are 'GET'-requests and there is no > timestamp or something variable added to the response, or is there? Anyway, > the only thing I can think of so far is caching of ajax-requests somewhere > in IE, so: > http://www.codemiles.com/ajax/solution-to-ajax-cache-problem-with-internet-explorer-t602.html > http://www.codecouch.com/2009/01/how-to-stop-internet-explorer-from-caching-ajax-requests/ > http://weblogs.asp.net/pleloup/archive/2006/06/08/451583.aspx > (and many more of these kind of solutions). > I remember: add some headers to the response. Question now is: how to > customize the response of an ajax-request? Or is there any other solution to > the caching of IE? (In case caching is the problem here). > > Thx, Kurt > > 2011/7/6 Kurt Sys > >> Well, I got a new hosting, and for some reason, it seems to work in IE now, >> except for the iframe. Nothing is loaded in the iframe so far. That'll be a >> IE issue, so I suppose this thread may be closed. >> >> >> 2011/7/5 Kurt Sys >> >>> I found this thread: >>> >>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4m3-AjaxButton-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem-td1893357.html >>> So I checked all wicket:ids, and none of them has a value of 'id' or >>> 'submit' or something similar. IE still fails to load the panels... >>> >>> >>> 2011/7/3 Kurt Sys >>> The lazy loading example seems to work fine (I tried Wicket 1.4.17, the one I'm using too). For some reason 'precondition()' returns false in IE when called from my app. The code loading the panels is really straight forward. I can't think of any reason (for now) why the precondition returns false, only in IE, and even not for all lazyloadpanels. I have actually no idea where precondition is changed or something - I checked the js file (wicket-ajax.js) and there the function of the prototype just returns true (see below). So, precondition it is changed somewhere, for some reason, and probably something in a javascript-file of wicket that is called from my code IE doesn't like (other browsers don't complain). What code can be wrong? Something 'wrong' in the html-files? Style files (which would be very odd, if you ask me)? -- Wicket.Ajax.Request.prototype = { // Creates a new request object. initialize: function(url, loadedCallback, parseResponse, randomURL, failureHandler, channel) { this.url = url; this.loadedCallback = loadedCallback; // whether we should give the loadedCallback parsed response (DOM tree) or the raw string this.parseResponse = parseResponse != null ? parseResponse : true; this.randomURL = randomURL != null ? randomURL : true; this.failureHandler = failureHandler != null ? failureHandler : function() { }; this.async = true; this.channel = channel; this.precondition = function() { return true; } // allow a condition to block request // when suppressDone is set, the loadedCallback is responsible for calling // Ajax.Request.done() to process possibly pendings requests in the channel. this.suppressDone = false; this.instance = Math.random(); this.debugContent = true; }, -- 2011/7/3 Martin Grigorov > Can you check http://wicketstuff.org/wicket/ajax/lazy-loading ? > This is Wicket 1.5-RC5.1 and it works for me with IE8. > > Wicket 1.4.17 at http://wicketstuff.org/wicket14/ajax/lazy-loading > > On Sat, Jul 2, 2011 at 5:16 PM, Kurt Sys wrote: > > Hey all, > > > > In IE, I can't get lazyloadpanels to load. I have a webapp with some > > lazyloadpanels, and none of them loads in IE - in other browsers, > there is > > no problem. (Also, the content of an iframe doesn't load, which seems > to be > > related, since it is also an ajax-request.) I've been trying both IE 8 > and > > IE 9 on three different pc's. Can someone give me a clue why it won't > work > > in IE? (IE security settings are set to low, scripts etc are > > enabled/allowed, so I suppose ajax-requests can be performed... if > not, I > > have no clue how to allow ajax in IE.) You may check it out: > > http://www.tinyleaps.be > > > > I've been checking on similar problems with lazyl
Saving values of checked checkboxes in list
Hi, everybody! I've read all the posts conserning compoundproperty model and checkboxes, but didn't get the answer: User on my site fullfilling form with diffrent dropdowns, checkboxes etc... So i got a class for saving results: *public class RequestEntity implements IClusterable { private ResortsEntity resort; private List starsList = new ArrayList(); // getters & setters exist }* in html-page: * Level of Hotel * and java-code: *Form form = new Form("form", new CompoundPropertyModel(requestEntity)); List stars = new ArrayList(); for (int i = 1; i < 6; i++) stars.add(i); ListView starsList = new ListView("starsList", stars) { protected void populateItem(ListItem item) { item.add(new Checkbox("checkbox", item.getModel())); item.add(new Label("stars", item.getModel())); } }; starsList.setOutputMarkupId(true); form.add(starsList); * I want the results of checking to be saved in starList array in my compound model... is it possible? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Saving-values-of-checked-checkboxes-in-list-tp3648239p3648239.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ajax GET stopped because of precondition check
It only worked once in IE (checked only on 1 pc). So, probably a caching problem of IE? I suppose the ajax-requests of wicket are 'GET'-requests and there is no timestamp or something variable added to the response, or is there? Anyway, the only thing I can think of so far is caching of ajax-requests somewhere in IE, so: http://www.codemiles.com/ajax/solution-to-ajax-cache-problem-with-internet-explorer-t602.html http://www.codecouch.com/2009/01/how-to-stop-internet-explorer-from-caching-ajax-requests/ http://weblogs.asp.net/pleloup/archive/2006/06/08/451583.aspx (and many more of these kind of solutions). I remember: add some headers to the response. Question now is: how to customize the response of an ajax-request? Or is there any other solution to the caching of IE? (In case caching is the problem here). Thx, Kurt 2011/7/6 Kurt Sys > Well, I got a new hosting, and for some reason, it seems to work in IE now, > except for the iframe. Nothing is loaded in the iframe so far. That'll be a > IE issue, so I suppose this thread may be closed. > > > 2011/7/5 Kurt Sys > >> I found this thread: >> >> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4m3-AjaxButton-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem-td1893357.html >> So I checked all wicket:ids, and none of them has a value of 'id' or >> 'submit' or something similar. IE still fails to load the panels... >> >> >> 2011/7/3 Kurt Sys >> >>> The lazy loading example seems to work fine (I tried Wicket 1.4.17, the >>> one I'm using too). >>> >>> For some reason 'precondition()' returns false in IE when called from my >>> app. The code loading the panels is really straight forward. I can't think >>> of any reason (for now) why the precondition returns false, only in IE, and >>> even not for all lazyloadpanels. >>> I have actually no idea where precondition is changed or something - I >>> checked the js file (wicket-ajax.js) and there the function of the prototype >>> just returns true (see below). So, precondition it is changed somewhere, for >>> some reason, and probably something in a javascript-file of wicket that is >>> called from my code IE doesn't like (other browsers don't complain). What >>> code can be wrong? Something 'wrong' in the html-files? Style files (which >>> would be very odd, if you ask me)? >>> >>> -- >>> >>> Wicket.Ajax.Request.prototype = { >>> // Creates a new request object.initialize: function(url, >>> loadedCallback, parseResponse, randomURL, failureHandler, channel) { >>> this.url = url; >>> this.loadedCallback = loadedCallback; >>> // whether we should give the loadedCallback parsed response >>> (DOM tree) or the raw string this.parseResponse = >>> parseResponse != null ? parseResponse : true; >>> this.randomURL = randomURL != null ? randomURL : true; >>> this.failureHandler = failureHandler != null ? failureHandler : >>> function() { }; >>> this.async = true; >>> this.channel = channel; >>> this.precondition = function() { return true; } // allow a >>> condition to block request >>> // when suppressDone is set, the loadedCallback is responsible >>> for calling // Ajax.Request.done() to process possibly >>> pendings requests in the channel.this.suppressDone = false; >>> this.instance = Math.random(); >>> this.debugContent = true; >>> }, >>> -- >>> >>> >>> >>> >>> 2011/7/3 Martin Grigorov >>> Can you check http://wicketstuff.org/wicket/ajax/lazy-loading ? This is Wicket 1.5-RC5.1 and it works for me with IE8. Wicket 1.4.17 at http://wicketstuff.org/wicket14/ajax/lazy-loading On Sat, Jul 2, 2011 at 5:16 PM, Kurt Sys wrote: > Hey all, > > In IE, I can't get lazyloadpanels to load. I have a webapp with some > lazyloadpanels, and none of them loads in IE - in other browsers, there is > no problem. (Also, the content of an iframe doesn't load, which seems to be > related, since it is also an ajax-request.) I've been trying both IE 8 and > IE 9 on three different pc's. Can someone give me a clue why it won't work > in IE? (IE security settings are set to low, scripts etc are > enabled/allowed, so I suppose ajax-requests can be performed... if not, I > have no clue how to allow ajax in IE.) You may check it out: > http://www.tinyleaps.be > > I've been checking on similar problems with lazyloadpanel in ie, and the > problem was known in 2008 (if it's the same, but it looks really similar): > http://www.mail-archive.com/users@wicket.apache.org/msg18815.html > There seems to be a bug report and a 'fixed' status, although it doesn't > seem to work out fine for me - the last comment states that the fix is not > confirmed. Or I am missing something, which wouldn't really surpri
Re: ajax GET stopped because of precondition check
Well, I got a new hosting, and for some reason, it seems to work in IE now, except for the iframe. Nothing is loaded in the iframe so far. That'll be a IE issue, so I suppose this thread may be closed. 2011/7/5 Kurt Sys > I found this thread: > > http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4m3-AjaxButton-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem-td1893357.html > So I checked all wicket:ids, and none of them has a value of 'id' or > 'submit' or something similar. IE still fails to load the panels... > > > 2011/7/3 Kurt Sys > >> The lazy loading example seems to work fine (I tried Wicket 1.4.17, the >> one I'm using too). >> >> For some reason 'precondition()' returns false in IE when called from my >> app. The code loading the panels is really straight forward. I can't think >> of any reason (for now) why the precondition returns false, only in IE, and >> even not for all lazyloadpanels. >> I have actually no idea where precondition is changed or something - I >> checked the js file (wicket-ajax.js) and there the function of the prototype >> just returns true (see below). So, precondition it is changed somewhere, for >> some reason, and probably something in a javascript-file of wicket that is >> called from my code IE doesn't like (other browsers don't complain). What >> code can be wrong? Something 'wrong' in the html-files? Style files (which >> would be very odd, if you ask me)? >> >> -- >> >> Wicket.Ajax.Request.prototype = { >> // Creates a new request object. initialize: function(url, >> loadedCallback, parseResponse, randomURL, failureHandler, channel) { >> this.url = url; >> this.loadedCallback = loadedCallback; >> // whether we should give the loadedCallback parsed response >> (DOM tree) or the raw string this.parseResponse = >> parseResponse != null ? parseResponse : true; >> this.randomURL = randomURL != null ? randomURL : true; >> this.failureHandler = failureHandler != null ? failureHandler : >> function() { }; >> this.async = true; >> this.channel = channel; >> this.precondition = function() { return true; } // allow a >> condition to block request >> // when suppressDone is set, the loadedCallback is responsible >> for calling // Ajax.Request.done() to process possibly pendings >> requests in the channel.this.suppressDone = false; >> this.instance = Math.random(); >> this.debugContent = true; >> }, >> -- >> >> >> >> >> 2011/7/3 Martin Grigorov >> >>> Can you check http://wicketstuff.org/wicket/ajax/lazy-loading ? >>> This is Wicket 1.5-RC5.1 and it works for me with IE8. >>> >>> Wicket 1.4.17 at http://wicketstuff.org/wicket14/ajax/lazy-loading >>> >>> On Sat, Jul 2, 2011 at 5:16 PM, Kurt Sys wrote: >>> > Hey all, >>> > >>> > In IE, I can't get lazyloadpanels to load. I have a webapp with some >>> > lazyloadpanels, and none of them loads in IE - in other browsers, there >>> is >>> > no problem. (Also, the content of an iframe doesn't load, which seems >>> to be >>> > related, since it is also an ajax-request.) I've been trying both IE 8 >>> and >>> > IE 9 on three different pc's. Can someone give me a clue why it won't >>> work >>> > in IE? (IE security settings are set to low, scripts etc are >>> > enabled/allowed, so I suppose ajax-requests can be performed... if not, >>> I >>> > have no clue how to allow ajax in IE.) You may check it out: >>> > http://www.tinyleaps.be >>> > >>> > I've been checking on similar problems with lazyloadpanel in ie, and >>> the >>> > problem was known in 2008 (if it's the same, but it looks really >>> similar): >>> > http://www.mail-archive.com/users@wicket.apache.org/msg18815.html >>> > There seems to be a bug report and a 'fixed' status, although it >>> doesn't >>> > seem to work out fine for me - the last comment states that the fix is >>> not >>> > confirmed. Or I am missing something, which wouldn't really surprise >>> me :), >>> > or there still something wrong with the precondition stuff and loading >>> the >>> > panel in IE: >>> > https://issues.apache.org/jira/browse/WICKET-1653 >>> > >>> > >>> > Ajax debug window (only these three lines): >>> > -- >>> > INFO: Ajax GET stopped because of precondition check, >>> > >>> url:?wicket:interface=:3:mainpanel:bloglist:1:commentaar::IBehaviorListener:0: >>> > INFO: Ajax GET stopped because of precondition check, >>> > >>> url:?wicket:interface=:3:mainpanel:bloglist:2:commentaar::IBehaviorListener:0: >>> > INFO: Ajax GET stopped because of precondition check, >>> > url:?wicket:interface=:3:weer::IBehaviorListener:0: >>> > -- >>> > >>> > HomePage.html: >>> > -- >>> > [...] >>> > >>> > >>> > [...] >>> > >>> > [...] >>> > >>> > [...] >>> > >>> > >>> > [...] >>> > >>> > >>> > >>> > >>> > -- >>> > >>> > HomePage.java: >>> > -- >>> > [...] >>> > >>
Date Picker issue
Hi, Mouse out of any date box, the date picker should disappear, but I used apache wicket date picket, its not closing once the mouse out after opening the date picker. Please help me on this. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Date-Picker-issue-tp3647913p3647913.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: inmethod-grid bugs?
Hi Martin, I use version 1.4.17. It's same in version 1.5-SNAPSHOT on wicketstuff. Thank you for your quick response. On 7/6/2011 2:07 PM, Martin Grigorov wrote: Which version do you use ? On Wed, Jul 6, 2011 at 9:02 AM, Duy Do wrote: Hi all, I'm working on inmethod-grid to add a filter on top of it. Everything works fine if I don't navigate through other pages of the grid. Once I go to other page and filter the results, I get exception: java.lang.ClassCastException: com.inmethod.grid.common.AbstractPageableView$Query cannot be cast to com.inmethod.grid.datagrid.DataGrid$IGridQuery at com.chesscom.web.common.dataprovider.DataProviderAdapter.query(DataProviderAdapter.java:82) at com.inmethod.grid.common.AbstractPageableView.initialize(AbstractPageableView.java:222) at com.inmethod.grid.common.AbstractPageableView.getItemModels(AbstractPageableView.java:411) In DataProviderAdapter.java, I found line: DataGrid grid = ((DataGrid.IGridQuery) query).getDataGrid(); The current query can not be cast to IGridQuery. Is it a bug? Thanks, Duy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Is Not Found In Page Map After Some Time.
all i can see is set maxpagemaps which I think is different maybe in a different setting? i'm also trying to look for it. On Wed, Jul 6, 2011 at 3:06 PM, Martin Grigorov wrote: > See org.apache.wicket.settings.ISessionSettings > > On Wed, Jul 6, 2011 at 8:58 AM, Horacio Natyural > wrote: >> yep, >> >> its because of this >> setResponsePage(getPage().getPageMap().get(pageIDVersion.getId(), >> pageIDVersion.getVersion())); >> >> getPage().getPageMap().get(pageIDVersion.getId(), >> pageIDVersion.getVersion()) -- this returns a null page after some time. >> >> On Wed, Jul 6, 2011 at 2:53 PM, Martin Grigorov wrote: >>> Hi, >>> >>> On Wed, Jul 6, 2011 at 8:44 AM, Horacio Natyural >>> wrote: Hi, we ofen get this error after performing back several times in an application. It happens occassionally, does wicket's page map store have a limitation on the number of times you can store the page? here's the code in our back button. we store the page id and version and use that to track the pages. after a lot of backs in an application, the page disappears from the page map causing a nullpointerexception. Is there anything that I could do to prevent this? what is the limit on the number of pages that a pagemap could store? @Override public void onClick() { if(clazz != null) { setResponsePage(clazz); }else if(pageIDVersion != null && webPage == null) { setResponsePage(getPage().getPageMap().get(pageIDVersion.getId(), pageIDVersion.getVersion())); //SXIBackButton.java:67 } else if(webPage != null && pageIDVersion == null) { setResponsePage(webPage); } } org.apache.wicket.WicketRuntimeException: Method onLinkClicked of interface org.apache.wicket.markup.html.link.ILinkListener targeted at component [MarkupContainer [Component id = backButton]] threw an exception at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193) at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098) at com.hello.world.web.filters.TranslatorFilter.doFilter(TranslatorFilter.java:30) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor415.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java
Re: inmethod-grid bugs?
Which version do you use ? On Wed, Jul 6, 2011 at 9:02 AM, Duy Do wrote: > Hi all, > > I'm working on inmethod-grid to add a filter on top of it. Everything works > fine if I don't navigate through other pages of the grid. Once I go to other > page and filter the results, I get exception: > > java.lang.ClassCastException: > com.inmethod.grid.common.AbstractPageableView$Query cannot be cast to > com.inmethod.grid.datagrid.DataGrid$IGridQuery > at > com.chesscom.web.common.dataprovider.DataProviderAdapter.query(DataProviderAdapter.java:82) > at > com.inmethod.grid.common.AbstractPageableView.initialize(AbstractPageableView.java:222) > at > com.inmethod.grid.common.AbstractPageableView.getItemModels(AbstractPageableView.java:411) > > In DataProviderAdapter.java, I found line: DataGrid grid = > ((DataGrid.IGridQuery) query).getDataGrid(); > > The current query can not be cast to IGridQuery. Is it a bug? > > Thanks, > Duy > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Is Not Found In Page Map After Some Time.
See org.apache.wicket.settings.ISessionSettings On Wed, Jul 6, 2011 at 8:58 AM, Horacio Natyural wrote: > yep, > > its because of this > setResponsePage(getPage().getPageMap().get(pageIDVersion.getId(), > pageIDVersion.getVersion())); > > getPage().getPageMap().get(pageIDVersion.getId(), > pageIDVersion.getVersion()) -- this returns a null page after some time. > > On Wed, Jul 6, 2011 at 2:53 PM, Martin Grigorov wrote: >> Hi, >> >> On Wed, Jul 6, 2011 at 8:44 AM, Horacio Natyural >> wrote: >>> Hi, >>> >>> we ofen get this error after performing back several times in an >>> application. >>> It happens occassionally, does wicket's page map store have a >>> limitation on the number of times you can store the page? >>> >>> >>> here's the code in our back button. >>> we store the page id and version and use that to track the pages. >>> after a lot of backs in an application, the page disappears from the >>> page map causing a nullpointerexception. >>> >>> Is there anything that I could do to prevent this? what is the limit >>> on the number of pages that a pagemap could store? >>> >>> @Override >>> public void onClick() { >>> if(clazz != null) { >>> setResponsePage(clazz); >>> }else if(pageIDVersion != null && webPage == null) { >>> setResponsePage(getPage().getPageMap().get(pageIDVersion.getId(), >>> pageIDVersion.getVersion())); //SXIBackButton.java:67 >>> >>> } else if(webPage != null && pageIDVersion == null) { >>> setResponsePage(webPage); >>> } >>> } >>> >>> org.apache.wicket.WicketRuntimeException: Method onLinkClicked of >>> interface org.apache.wicket.markup.html.link.ILinkListener targeted at >>> component [MarkupContainer [Component id = backButton]] threw an >>> exception >>> at >>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193) >>> at >>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) >>> at >>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) >>> at >>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) >>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) >>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) >>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) >>> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) >>> at >>> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >>> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) >>> at >>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098) >>> at >>> com.hello.world.web.filters.TranslatorFilter.doFilter(TranslatorFilter.java:30) >>> at >>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) >>> at >>> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) >>> at >>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>> at >>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) >>> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) >>> at >>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) >>> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >>> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) >>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) >>> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) >>> at org.mortbay.jetty.Server.handle(Server.java:295) >>> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503) >>> at >>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827) >>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511) >>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) >>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) >>> at >>> org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) >>> at >>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) >>> Caused by: java.lang.reflect.InvocationTargetException >>> at sun.reflect.GeneratedMethodAccessor415.invoke(Unknown Source) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >>> at java.lang.reflect.Method.invoke(Unknown Source) >>> at >>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) >>> ... 31 more >>> Caused by: java.lang.IllegalArgumentException: Argument page must be not >>> null >>> at >>> org.apache.wicket.request.target.c
inmethod-grid bugs?
Hi all, I'm working on inmethod-grid to add a filter on top of it. Everything works fine if I don't navigate through other pages of the grid. Once I go to other page and filter the results, I get exception: java.lang.ClassCastException: com.inmethod.grid.common.AbstractPageableView$Query cannot be cast to com.inmethod.grid.datagrid.DataGrid$IGridQuery at com.chesscom.web.common.dataprovider.DataProviderAdapter.query(DataProviderAdapter.java:82) at com.inmethod.grid.common.AbstractPageableView.initialize(AbstractPageableView.java:222) at com.inmethod.grid.common.AbstractPageableView.getItemModels(AbstractPageableView.java:411) In DataProviderAdapter.java, I found line: DataGrid grid = ((DataGrid.IGridQuery) query).getDataGrid(); The current query can not be cast to IGridQuery. Is it a bug? Thanks, Duy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org