Re: wicketstuff-simile-timeline (1.5.5) Access denied to resource error..

2012-06-12 Thread chrome1235
I created. This was my first report, I hope, I didnt make any mistake. :) https://issues.apache.org/jira/browse/WICKET-4602 I think, org.wicketstuff.simile.timeline.Timeline class has a bug. I solved the Timeline problem by replacing this line at renderHead. // PageParameters pp=

Re: wicketstuff-simile-timeline (1.5.5) Access denied to resource error..

2012-06-12 Thread Martin Grigorov
On Tue, Jun 12, 2012 at 10:42 AM, chrome1235 wrote: > I created. This was my first report, I hope, I didnt make any mistake. :) Thanks! And sorry, you filed it at the wrong Issue tracker :-) Details are in the ticket. > > https://issues.apache.org/jira/browse/WICKET-4602 > > > I think, org.wicke

Re: wicketstuff-simile-timeline (1.5.5) Access denied to resource error..

2012-06-12 Thread chrome1235
You are right, Thanks for your reminding. :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-simile-timeline-1-5-5-Access-denied-to-resource-error-tp4649855p4649872.html Sent from the Users forum mailing list archive at Nabble.com.

Captcha cookbook example - image not refreshing on wicket 1.5.7

2012-06-12 Thread lucast
Dear forum, Reading the "Protecting against spam with a CAPTCHA" section on chapter 2, Apache Wicket cookbook, I noticed that the captcha picture gets refreshed every time one clicks on the submit button and that no AJAX is involved. the example, uses wicket 1.4.9 but when I test the very same cod

Re: Captcha cookbook example - image not refreshing on wicket 1.5.7

2012-06-12 Thread Martin Grigorov
Hi, Do you see ?pageId in the url ? If yes, then remove the pageId and load again See http://www.wicket-library.com/wicket-examples/captcha and org.apache.wicket.extensions.markup.html.captcha.CaptchaImageResource#invalidate() On Tue, Jun 12, 2012 at 3:49 PM, lucast wrote: > Dear forum, > Read

Nested form model refresh

2012-06-12 Thread Sandor Feher
Hi, I have the following form. It has a nested form which is for a simple file uploading. After the upload finished I would like to get some information from the uploaded file (eg. name, size and so one) and pass it's parent form. Later if the parent form get submitted I will persist these data an

Re: Nested form model refresh

2012-06-12 Thread Andrea Del Bene
Hi, looking at your code I've noticed these two lines at the end of onSubmit of AjaxButton: setModel(new CompoundPropertyModel(e)); modelChanged(); here you are changing the button's model and not the one of the parent form (the variable cmodeldefined above ), hence its components won't dis

Re: Panel not getting refreshed...

2012-06-12 Thread kshitiz
It is working Thank you very much for your continuous help As I compared mine with urs...what I was doing wrong in initializing resultPanel...Instead of : final SearchResultPanel searchResultPanel = new SearchResultPanel( "searchResultPanel", *searchForm.

Re: Captcha cookbook example - image not refreshing on wicket 1.5.7

2012-06-12 Thread lucast
Thanks for the answer Martin. But the example from wicket-library is not quite the same. Your answer, however, has help me find the solution that works on wicket 1.5. I wanted to keep the captcha functionality independent of the form, much as it is on the book. So I only changed three lines: First

Re: Building wicket-stuff

2012-06-12 Thread Sven Meier
Thanks! I've fixed some compile errors, but ScalaEngineTest#test_returnValue() still fails because of a null return value. Any Scala expert around who can explain what's going wrong there? Sven On 06/10/2012 03:26 PM, Martin Grigorov wrote: Hi Sven, I fixed this by fixing scala-maven-plugi

Re: Building wicket-stuff

2012-06-12 Thread Martin Grigorov
Uh. I had this test fixed here since the other day but apparently I forgot to commit it... Fixed! On Tue, Jun 12, 2012 at 7:59 PM, Sven Meier wrote: > Thanks! > > I've fixed some compile errors, but ScalaEngineTest#test_returnValue() still > fails because of a null return value. > > Any Scala ex

Re: "wicketAjaxGet is not defined" javascript error }

2012-06-12 Thread vaibhav2012
I was able to resolve it. Actually javascript was getting loaded because of my security settings. I bypassed the security settings for javascripts and it worked :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-is-not-defined-javascript-error-tp4649869p4

"wicketAjaxGet is not defined" javascript error }

2012-06-12 Thread vaibhav2012
Hi, I am new to apache wicket. I have added an ajaxLink to my wicket page. But i am not able to capture the onClick event of this link. The problem is coming because of JS error "wicketAjaxGet is not defined" as monitored from firebug. Please help me where i am getting wrong. I am attaching the

Exception when Session expired

2012-06-12 Thread sylvain
Hi, I miragte in wicket 1.5 and I change the run timeException by this code getRequestCycleListeners().add(new CommonRequestCycleListener() { @Override public void onExceptionRequestHandlerResolved(RequestCycle cycle, IRequestHandl

POSTing to an iframe

2012-06-12 Thread Chris Merrill
Evidently what I need to do is not a great fit for Wicket, but it is only a small part of a page in a larger application for which Wicket is a good fit. So I'm trying to force this requirement to fit...please bear with me :> I need to load an external site into an iframe within a Wicket page. Th

Re: POSTing to an iframe

2012-06-12 Thread Igor Vaynberg
override getInputName() on the field and hardcode it to signed_request -igor On Tue, Jun 12, 2012 at 11:23 AM, Chris Merrill wrote: > Evidently what I need to do is not a great fit for Wicket, but it is only a > small > part of a page in a larger application for which Wicket is a good fit.  So

Re: Nested form model refresh

2012-06-12 Thread Sandor Feher
Hi, Tried but did not work for me :( . info("saved file: " + uploadedFile.getClientFileName()); HrpFiles e=new HrpFiles(); e.setTitle(uploadedFile.getClientFileName()); cmodel.setObject(e);

Feedback next to each input field on form

2012-06-12 Thread srinash
Hoping someone will guide me through this process. I am looking to display the each error message beside the fields as opposed to the top of the page inside the form . Can you please let me know how i can go about doing this. seen this ComponentFeedbackPanel, any working example will be really hel

Re: POSTing to an iframe

2012-06-12 Thread Chris Merrill
On 6/12/2012 2:27 PM, Igor Vaynberg wrote: > override getInputName() on the field and hardcode it to signed_request That works perfect...I should have figured that out on my own :( I also realized that I could instantiate field as a WebMarkupContainer just like I did with the form: Web

Re: Feedback next to each input field on form

2012-06-12 Thread Sandor Feher
Hi, Have you seen this ? http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-next-to-each-input-field-on-form-tp4649886p4649888.html Sent from the Users forum mailing list archive at Na

Re: Feedback next to each input field on form

2012-06-12 Thread Dan Retzlaff
You might find my wiki post on application-wide validation error styling helpful: https://cwiki.apache.org/confluence/display/WICKET/Automatic+styling+of+form+errors Putting the actual validation text next to the form component is trickier since it affects layout. If you can't make an application

Re: Exception when Session expired

2012-06-12 Thread Martin Grigorov
Hi, On Mon, Jun 11, 2012 at 6:01 PM, sylvain wrote: > Hi, > > I miragte in wicket 1.5 and I change the run timeException by this code > >                getRequestCycleListeners().add(new > CommonRequestCycleListener() { >                        @Override >                        public void >

Wicket as Jboss Modules

2012-06-12 Thread Илья Нарыжный
Hello, I have several projects which use wicket and various wicket sun-modules. Every project (*.ear file) took about 10Mb and about 8Mb is for wicket libraries. Recently I have move my projects to Jboss AS 7 and now I'm thinking about putting all wicket related jars to /modules. Have anyone trie

Re: Feedback next to each input field on form

2012-06-12 Thread srinash
Thank you both for the inputs. I will take a look and get back with my progress i guess. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-next-to-each-input-field-on-form-tp4649886p4649892.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket as Jboss Modules

2012-06-12 Thread Martin Sachs
Hello, i think that is in general not a good idea. If you deploy the wicket-lib outside the war and run multiple Wicket-Applications, then you could not use all applications, because wicket stores (as far as i know) e.g. the application instance in a static field. There is one application per

how to implement a decorator

2012-06-12 Thread Jonathan Tougas
I'm trying to figure out how to implement a decorator tag. Here's what I mean: I want: to render to: FOO! with nothing more than the usual "add( new Label( "modBoxText", "FOO!" ) )" in the panel class. Note that this is different than a border since there is no add() for the decorator

Re: Nested form model refresh

2012-06-12 Thread Andrea Del Bene
Sorry, I've missed an important step. You should call clearInput() on the outer form. You could try with something like this: cmodel.setObject(e); ((Form)form.getParent()).clearInput(); art.add(cont); Hi, Tried but did not work for me :( . info("saved file: " + uploa

Re: References not loading correctly. Wicket 1.5.7

2012-06-12 Thread Sean Kendall - NASource Imports
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 my styles are not showing up. The other weird thing is that if I shutdown my app, re-create the artifacts and basically redeploy; the first time I open my 'HomePag

Re: Feedback next to each input field on form

2012-06-12 Thread Andrew Geery
Another great resource is _Apache Wicket Cookbook_ by Igor: http://www.amazon.com/Apache-Wicket-Cookbook-Igor-Vaynberg/dp/1849511608. Chapter three has a good discussion around what you're trying to do. Andrew On Tue, Jun 12, 2012 at 3:23 PM, srinash wrote: > Thank you both for the inputs. I wi

Re: References not loading correctly. Wicket 1.5.7

2012-06-12 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 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 my styles ar

Re: References not loading correctly. Wicket 1.5.7

2012-06-12 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 wrote: > I wish it as that easy.   :p > > I did add i

Re: Wicket as Jboss Modules

2012-06-12 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 provid

PageExpiredErrorPage not working.

2012-06-12 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?? I

Re: how to implement a decorator

2012-06-12 Thread Martin Grigorov
Hi, This is possible but I'd recommend to stay away from IComponentResolvers. You need IMarkupFilter that will register 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 the component

Re: Wicket as Jboss Modules

2012-06-12 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, 201

Re: PageExpiredErrorPage not working.

2012-06-12 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 wrote: > Hi all, > > I am trying to server a particular error page when session t

Re: Wicket as Jboss Modules

2012-06-12 Thread Martin Grigorov
Good point! https://issues.apache.org/jira/browse/WICKET-4604 On Wed, Jun 13, 2012 at 9:31 AM, Igor Vaynberg 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 to be shared across a