Re: References not loading correctly. Wicket 1.5.7

2012-06-12 Thread Martin Grigorov
Hi, On Tue, Jun 12, 2012 at 4:46 AM, Sean Kendall - NASource Imports s...@nasource.com wrote: I am not sure if this is something I am missing or a bug in wicket (1.5.7) (Tomcat 6) Basically, I am trying to add CSS and JS references to my 'BasePage' (extends WebPage) and my references are not

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

2012-06-12 Thread Martin Grigorov
On Tue, Jun 12, 2012 at 12:11 AM, chrome1235 kemal.m...@gmail.com wrote: I could solve the wicket problem. original code like this. (org.wicketstuff.simile.timeline.Timeline.java) //              response.renderJavaScriptReference(new PackageResourceReference(getClass(), //

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 kemal.m...@gmail.com 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

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 code

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 lucastol...@hotmail.com

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

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

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,

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:

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

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 s...@meiers.net wrote: Thanks! I've fixed some compile errors, but ScalaEngineTest#test_returnValue() still fails because of a null return value.

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:

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,

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.

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 ch...@webperformance.com 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

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

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:

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

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 sylvain.co...@interview-efm.com wrote: Hi, I miragte in wicket 1.5 and I change the run timeException by this code                getRequestCycleListeners().add(new CommonRequestCycleListener() {                        @Override                

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 JBOSS_HOME/modules. Have

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: wicket:modBox style=1 span wicket:id=modBoxText/span /wicket:modBox to render to: div class=mod-style-1 spanFOO!/span /div with nothing more than the usual add( new Label( modBoxText, FOO! ) ) in the

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

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

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 avisrid...@gmail.com wrote: Thank you both