Re: References not loading correctly. Wicket 1.5.7

2012-06-13 Thread Martin Grigorov
Hi, Please create a quickstart and attach it to a ticket in Jira. On Wed, Jun 13, 2012 at 4:12 AM, Sean Kendall - NASource Imports s...@nasource.com wrote: I wish it as that easy.   :p I did add in the super.renderHead(response); call (and I already had it set in child classes). But still

Re: References not loading correctly. Wicket 1.5.7

2012-06-13 Thread vineet semwal
it actually means can't find jquery.myjavascript.js at the path you provided ie. the path relative to WebDummy so do you have that file in com/company/web/jquery/js directory? On Wed, Jun 13, 2012 at 6:42 AM, Sean Kendall - NASource Imports s...@nasource.com wrote: I wish it as that easy.   :p

Re: Wicket as Jboss Modules

2012-06-13 Thread Martin Grigorov
Hi, Wicket uses ThreadLocal for the Application, Session and RequestCycle. There are no JVM singletons. Some people are against putting jars in the shared lib folder. I personally see the benefit and I'd do it if I need to If you use shared jars then make sure that none of the applications

PageExpiredErrorPage not working.

2012-06-13 Thread vaibhav2012
Hi all, I am trying to server a particular error page when session timeouts to my users. For this i configured the error page on my Application's init method. But this thing is not working. *One of my concern :* Does wicket server this PageExpiredErrorPage only in case of PageExpiredException??

Re: how to implement a decorator

2012-06-13 Thread Martin Grigorov
Hi, This is possible but I'd recommend to stay away from IComponentResolvers. You need IMarkupFilter that will register wicket:modBox as an auto component and flag it (either set specific id or userData for the ComponentTag). Then your IComponentResolver impl can use that information and resolve

Re: Wicket as Jboss Modules

2012-06-13 Thread Igor Vaynberg
we have to be sure we do not use any static fields anywhere in the code...it's not just the singletons that break this use case. eg we do not want caches to be shared across applications because it's not performant and can result in cross application object leakage. -igor On Tuesday, June 12,

Re: PageExpiredErrorPage not working.

2012-06-13 Thread Martin Grigorov
Hi, You may need to call application.getPageSettings().setRecreateMountedPagesAfterExpiry(false). See the javadoc of this setter and the respective getter for more info. On Wed, Jun 13, 2012 at 9:14 AM, vaibhav2012 vaibhav.bit2...@gmail.com wrote: Hi all, I am trying to server a particular

Re: Wicket as Jboss Modules

2012-06-13 Thread Martin Grigorov
Good point! https://issues.apache.org/jira/browse/WICKET-4604 On Wed, Jun 13, 2012 at 9:31 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: we have to be sure we do not use any static fields anywhere in the code...it's not just the singletons that break this use case. eg we do not want caches

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.

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

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: 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:

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. -

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 vaibhav.bit2...@gmail.com wrote: Hi Martin, Thanks for clearing my doubt. But after session timeout, when i try to access any mounted page i am not getting

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 sylvain.co...@interview-efm.com wrote: Hi Martin, Yes it's more correct to put this code page = getExpirationPage(). But my problem, when my session expire, I

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: 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.

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 anthony.ric...@gmail.com wrote: Hi,

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 input type=submit / then it shows up. 2. If I try to upload a file

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 sfe...@bluesystem.hu wrote: Hi, I have two problems with my progressbar.

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: atmosphere-handlers atmosphere-handler context-root=/*

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

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

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

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

Re: PageExpiredErrorPage not working.

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

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 +

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 =

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 Default)

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

add a component (submitLink) multiple times?

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

Re: add a component (submitLink) multiple times?

2012-06-13 Thread oliver.stef
How can I add a component (submitLink) multiple times? like this: ListString 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 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: ListString categories = Arrays.asList(English, Japanese, ); for

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 ova...@gmail.com How can I add a component (submitLink) multiple times? like this: ListString categories =

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

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)? --

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: 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 ova...@gmail.com wrote: How can I add a component (submitLink) multiple times? like this: ListString categories = Arrays.asList(English, Japanese, ); for (String str : language) {

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

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

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.

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:

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:

Re: Wicket as Jboss Modules

2012-06-13 Thread Илья Нарыжный
Finally I did it! As jboss module I created 2 modules: wicket and wicketstuff. Configuration: ?xml version=1.0 encoding=UTF-8? module xmlns=urn:jboss:module:1.0 name=org.apache.wicket resources resource-root path=wicket-core-1.5.7.jar/ resource-root path=wicket-request-1.5.7.jar/

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: 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

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:

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