Re: example to avoid pagemap locks

2012-06-13 Thread Bert
Hi, You can put the search result (and the start of the search process) into a Panel and wrap this with a AjaxLazyLoadPanel. Not sure about the cancel thing. At least you can have a look at the AjaxLazyLoadPanel for inspiration. Regards Bert On Thu, Jun 14, 2012 at 7:34 AM, fachhoch wrote: > On

Re: stateless resources vs. no cookies

2012-06-13 Thread Martin Grigorov
Hi, Wicket creates temporary o.a.w.Session object only if Session.get() is called during the request lifecycle. Until you call Session().get().bind() no javax.servlet.HttpSession will be created and Wicket's Session will be garbage collected at the end of the request processing. On Wed, Jun 13, 2

Re: PackageResourceBlockedException after migration to 6.0.0-beta2

2012-06-13 Thread Martin Grigorov
Hi, Please create a quickstart and attach it to Jira. Both 1.5.7 and 6.0.0-beta2 should behave the same way. For some reason the mounted page doesn't match and Wicket tries to serve this url with Resource mapper and thus it makes the security check ... On Thu, Jun 14, 2012 at 4:08 AM, Rafał Krupi

Re: using links in feedback panels

2012-06-13 Thread Martin Grigorov
Hi, You can extend FeedbackPanel and add a AttributeModifier("onclick", "...") to the Label that is used for the feedback message. Use plain JavaScript to focus the form component. This will be easier and better for the user experience. On Wed, Jun 13, 2012 at 11:04 PM, Carter, Isaac wrote: > Do

Re: Wicket as Jboss Modules

2012-06-13 Thread Martin Grigorov
Hi, Well done! Let us know if there are any problems with this shared usage. On Thu, Jun 14, 2012 at 4:57 AM, Илья Нарыжный wrote: > Finally I did it! > As jboss module I created 2 modules: wicket and wicketstuff. Configuration: > > > >   >       >       >       >       >       >      

Re: 6.0.0-beta2 IClusterable

2012-06-13 Thread Martin Grigorov
Hi, It is moved from o.a.w.util to o.a.w.core.util package. This was part of the fix for OSGi-friendliness. And yes, it is OK to use java.io.Serializable instead. IClusterable is a special interface for the integration with Terracotta. On Thu, Jun 14, 2012 at 2:52 AM, Rafał Krupiński wrote: > H

example to avoid pagemap locks

2012-06-13 Thread fachhoch
One of my page is a search page this sometimes gets stuck because the users search criteria is time consuming and I get page map is still locked error. To avoid this I want to modify this page to use a job to execute the search in a thread and a timer to check every 5 second 's if search is complet

Re: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi Martin, Thanks alot :). That worked. Just lil bit curious : I didn't see any PageExpiredException in the logs now also. Why is that? - Regards, Vaibhav Gupta -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageExpiredErrorPage-not-working-tp4649905p4649955.ht

Re: Site crashes please help to solve the problem.

2012-06-13 Thread Wiliam Bacchi
I don't know what java object index is, but it should implement Serializable. Hope this help. William Bacchi. Il 14/06/2012 0.43, ikharatin ha scritto: java.io.NotSerializableException: singlepagecrudform.index$GirlInfo at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j

Site crashes please help to solve the problem.

2012-06-13 Thread ikharatin
java.io.NotSerializableException: singlepagecrudform.index$GirlInfo at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at java.util.ArrayList.writeObject(ArrayList.java:570)

Re: Wicket as Jboss Modules

2012-06-13 Thread Илья Нарыжный
Finally I did it! As jboss module I created 2 modules: wicket and wicketstuff. Configuration: and But I found that wickets

PackageResourceBlockedException after migration to 6.0.0-beta2

2012-06-13 Thread Rafał Krupiński
I've just changed wicket dependency from 1.5.6 to 6.0.0-beta2 and s/IClusterable/Serializable/ ...and this is what I got: Unexpected RuntimeException Last cause: Access denied to (static) package resource com/hashnot/nbp. See IPackageResourceGuard Root cause: org.apache.wicket.request.resource.P

6.0.0-beta2 IClusterable

2012-06-13 Thread Rafał Krupiński
Hi What happened to IClusterable interface? It's missing both from jar and from wiki page on migration :-) Is it OK to simply replace it with Serializable? -- Pozdrawiam / Best Regards Rafal Krupinski - To unsubscribe, e-mail:

Re: guestbook application with database update

2012-06-13 Thread jaffa
The graph database is a kind of NoSQL database that uses graph structures with nodes, edges, and properties to represent and store information. General graph databases that can store any graph are distinct from specialized graph databases such as triplestores and network databases. Thanks. Regards,

stateless resources vs. no cookies

2012-06-13 Thread Jan Loose
Hi, I found this problem in Wicket 1.4.20 if cookies are disabled. If there is used a stateless resource then no jsessionid is rendered. It is removed on the line 390 of the class WebRequestCodingStrategy. I hope this is OK. Once the browser makes a request to this resource, then there is

using links in feedback panels

2012-06-13 Thread Carter, Isaac
Does anyone know if it's possible to have an error message in a feedback panel "link" to the error that caused it? Such as the user has filled in a given number of fields and puts in the wrong data in one field...an error message is presented in a feedback paneluser clicks on the error me

Re: add a component (submitLink) multiple times?

2012-06-13 Thread Martin Grigorov
Hi, Use a repeater like ListView or RepeatingView around them. On Wed, Jun 13, 2012 at 8:23 PM, oliver.stef wrote: > How can I add a component (submitLink) multiple times? > > like this: > > List categories = Arrays.asList("English", "Japanese", ); > > for (String str : language) > { >     form.

Re: AjaxCheckBox inconsistently showing state (value)

2012-06-13 Thread eugenebalt
Problem resolved - there was another large Ajax update from another component that was interfering and hadn't finished yet. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxCheckBox-inconsistently-showing-state-value-tp4649941p4649943.html Sent from the Users forum

Re: AjaxCheckBox inconsistently showing state (value)

2012-06-13 Thread eugenebalt
Actually, the solution I found is to do this in the AjaxCheckBox's onUpdate(): *arg0.addComponent(this);* This works - the checkbox always returns to the correct value after switching it. But what could possibly lead to this? Why would there be a situation where I need to addComponent(this)? --

AjaxCheckBox inconsistently showing state (value)

2012-06-13 Thread eugenebalt
I have an AjaxCheckBox; when selected, several components get hidden, otherwise the extra components are shown. It works, but several times, when selecting the AjaxCheckBox, the extra components go away correctly, but the value of the AjaxCheckBox quickly changes from selected *back* to non-select

Re: add a component (submitLink) multiple times?

2012-06-13 Thread Michal Margiel
Hello, No, your code is not correct. You should use some kind of repeaters, like ListView: https://cwiki.apache.org/WICKET/listview-and-other-repeaters.html 2012/6/13 oliver.stef > How can I add a component (submitLink) multiple times? > > like this: > > List categories = Arrays.asList("Engli

Re: add a component (submitLink) multiple times?

2012-06-13 Thread Thomas Götz
I don't know exactly what you are trying to do, but you could have a look at RepeatingView. -Tom On 13.06.2012 at 19:23 oliver.stef wrote: > How can I add a component (submitLink) multiple times? > > like this: > > List categories = Arrays.asList("English", "Japanese", ); > > for (S

Re: add a component (submitLink) multiple times?

2012-06-13 Thread oliver.stef
How can I add a component (submitLink) multiple times? like this: List categories = Arrays.asList("English", "Japanese", ); for (String str : language) { form.add(new SubmitLink("Name",str) { @Override public void onSubmit() { ...} } } and HTML: #

Re: add a component (submitLink) multiple times?

2012-06-13 Thread oliver.stef
How can I add a component (submitLink) multiple times? like this: List categories = Arrays.asList("English", "Japanese", ); for (String str : language) { form.add(new SubmitLink("Name",str) { @Override public void onSubmit() { ...} } } and HTML: # Any id

add a component (submitLink) multiple times?

2012-06-13 Thread oliver.stef
How can I add a component (submitLink) multiple times? like this: List categories = Arrays.asList("English", "Japanese", ); for (String str : language) { form.add(new SubmitLink("Name",str) { @Override public void onSubmit() { ...} } } and HTML:

Re: Wicket 1.5 and nested forms

2012-06-13 Thread Stefan Moises
Thank you very much, Thomas, I was struggling with exactly this problem for a couple of hours yesterday... I think this should be changed back or at least be configurable in the next versions ! Cheers, Stefan Am 13.06.2012 17:14, schrieb Thomas Heigl: Hello, In case anyone else is encounteri

Re: Wicket 1.5 and nested forms

2012-06-13 Thread Thomas Heigl
Hello, In case anyone else is encountering this problem when migrating from 1.4 to 1.5, I solved it by overriding delegateSubmit in my form: public static enum SubmitOrder { > /** Submit form submitter before forms (1.5 Default) */ > OUTSIDE_IN, > /** Submit form submitter after forms (1.4 Defaul

Re: Progressbar problems

2012-06-13 Thread Martin Grigorov
I see that this indeed is not something easy to achieve ... :-/ See the code in org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadStatusResource#getStatus() It uses: final HttpServletRequest req = (HttpServletRequest)attributes.getRequest().getContainerRequest(); UploadInfo info = Mu

Re: Progressbar problems

2012-06-13 Thread Sandor Feher
Hi, Looks very nice. But how attach my uploadfield to // Get current progress from page field @Override protected Progression getProgression() { return new Progression(progress, "Item " + ite

Re: PageExpiredErrorPage not working.

2012-06-13 Thread Martin Grigorov
Hi, Just replace BookmarkablePageLink with Link: // add(new BookmarkablePageLink("auth2", AuthenticatedPage2.class)); add(new Link("auth2" ) { @Override public void onClick() {

Re: FileUpload temp files never get removed also they get tracked

2012-06-13 Thread brazz
Thanks for your reply Martin! After i declared the commons FileCleaner interface in my web.xml the file was removed after my session timed out. Obviously i was just to impatient. It also went through the breakpoint in the reaper thread. I thin this functionality is enough for my needs. Thank you

Re: wicket-atmosphere NullPointerException at initialization

2012-06-13 Thread Emond Papegaaij
You will need the atmosphere.xml, although I don't think you'll get an NPE when that file is missing. The NPE is probably caused by a misconfiguration in your web.xml. As suggested, the examples are a good starting point. The BroadcasterFactory is setup from the init method of the AtmosphereServ

Re: FileUpload temp files never get removed also they get tracked

2012-06-13 Thread Martin Grigorov
Hi, I don't remember how 1.4.x works exactly in this code but for 1.5 we improved it by creating an interface org.apache.wicket.util.file.IFileCleaner which is configured in org.apache.wicket.settings.IResourceSettings#setFileCleaner(). By default it uses Apache-Commons FileCleaningTracker which

FileUpload temp files never get removed also they get tracked

2012-06-13 Thread brazz
Hi, I'm using the FileUpload Component. The component creates temporary files "uploadtmp". I set some breakpoints to see what happens. In DiskFileItem i can see that the File is added to the FileCleaner: FileCleaner.track(tempFile, this); but the File never gets removed from Disk. I also a

Re: wicket-atmosphere NullPointerException at initialization

2012-06-13 Thread heapifyman
I think I had the same problem and was able to overcome it by adding atmosphere.xml file in src/main/webapp/META-INF and changing the web.xml. Both I took from the wicket examples. atmosphere.xml looks like this: web.xml defines atmosphere servlet instead of default wicket filter: Atmospher

Re: Progressbar problems

2012-06-13 Thread Martin Grigorov
Hi, You may also try https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/progressbar-parent http://repo1.maven.org/maven2/org/wicketstuff/wicketstuff-progressbar/ On Wed, Jun 13, 2012 at 12:59 PM, Sandor Feher wrote: > Hi, > > I have two problems with my progressbar. > > 1. It does no

Progressbar problems

2012-06-13 Thread Sandor Feher
Hi, I have two problems with my progressbar. 1. It does not show up if I use AjaxButton or AjaxSubmitLink. I dig the archives, set setOutputMarkupPlaceholderTag(true) for progressbar but it did not help. If I change it to then it shows up. 2. If I try to upload a file from a shared folder at

Re: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi Martin, I am attaching a quick start sample application related to my scenario. The application is a secured web application. I have mounted a "SignInPage" and two authenticated pages "AuthenticatedPage1" and "AuthenticatedPage2". "AuthenticatedPage1" and "AuthenticatedPage2" can be accessed

Re: wicket-atmosphere NullPointerException at initialization

2012-06-13 Thread Martin Grigorov
Hi, Check what is different between your web.xml and atmosphere.xml and the ones in wicket-examples.war. The NPE is caused by not set org.atmosphere.cpr.BroadcasterFactory but I'm not sure what exactly setups it. On Wed, Jun 13, 2012 at 11:29 AM, theAnthony wrote: > Hi, > > I wanted to play aro

Re: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi, I will try to create a quick start for this and will post soon. - Regards, Vaibhav Gupta -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageExpiredErrorPage-not-working-tp4649905p4649918.html Sent from the Users forum mailing list archive at Nabble.com. ---

wicket-atmosphere NullPointerException at initialization

2012-06-13 Thread theAnthony
Hi, I wanted to play around with wicket 6.0.0-beta2 and wicket-atmosphere, I created a quickstart created a simple page which would display a number and that number would come from a simple bean with a method scheduled to be executed every X seconds which would push the new value to the EventBus.

Re: Exception when Session expired

2012-06-13 Thread Martin Grigorov
Read the conversation in thread "PageExpiredErrorPage not working" we have at the moment. On Wed, Jun 13, 2012 at 10:28 AM, sylvain wrote: > Hi Martin, > > Yes it's more correct to put this code "page = getExpirationPage()". > > But my problem, when my session expire, I never pass in the "onExcep

Re: PageExpiredErrorPage not working.

2012-06-13 Thread Martin Grigorov
Hi, Without seeing some code I'm not able to tell you what is going wrong. On Wed, Jun 13, 2012 at 10:31 AM, vaibhav2012 wrote: > Hi Martin, > > Thanks for clearing my doubt. > But after session timeout, when i try to access any mounted page i am not > getting PageExpiredException. > > I have by

Re: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi Martin, Thanks for clearing my doubt. But after session timeout, when i try to access any mounted page i am not getting PageExpiredException. I have bypassed the error page in my authorization strategy, and i dont feel security settings are blocking this. Please give some info. - Regards

Re: Exception when Session expired

2012-06-13 Thread sylvain
Hi Martin, Yes it's more correct to put this code "page = getExpirationPage()". But my problem, when my session expire, I never pass in the "onException". Have you an idea why? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Exception-when-Session-expired-tp4649854

Re: PageExpiredErrorPage not working.

2012-06-13 Thread Martin Grigorov
Hi, When a session times out Wicket clears the associated data as you noticed from the logs. PageExpiredException is being thrown only if the user tries to use a page after the expiration. For example by clicking on a Link or AjaxLink in such page. On Wed, Jun 13, 2012 at 10:10 AM, vaibhav2012

Re: PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi Martin, I called the function as u said. But, still no success. On session timeout wicket logs following lines: [ContainerBackgroundProcessor[StandardEngine[Catalina]]] DEBUG o.a.wicket.session.HttpSessionStore - Session unbound: 831D6D49C220E621761EC98C3B8943B6 [ContainerBackgroundProcessor[

Re: Nested form model refresh

2012-06-13 Thread Sandor Feher
Hi, Works fine! Thank you so much for your help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-form-model-refresh-tp4649877p4649910.html Sent from the Users forum mailing list archive at Nabble.com. ---