URL encryption of a single page
Hi all, I want to encrypt the URL parameters for a single page of my application. I already have found the CryptedUrlWebRequestCodingStrategy inside Wicket, which pretty much does what I want. However, it seems that I can only use this crypted strategy to encrypt either all the URLs in my application, or none. Is there an easy way to only encrypt the URL to a single page? Can I somehow tell Wicket, when I mount the page, that the URL to this page should be encrypted? But to none of my other pages? I appreciate your help, Andy -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-encryption-of-a-single-page-tp4649843.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: URL encryption of a single page
Hi, I'm not sure whether there is an easy way to do this in Wicket 1.4.x. With 1.5.x it is quite easy: webApp.mount(new CryptoMapper(new MountedMapper(/mountPoint, YourPage.class))) On Mon, Jun 11, 2012 at 10:38 AM, Andreas Maly andreasrmaly-wic...@yahoo.de wrote: Hi all, I want to encrypt the URL parameters for a single page of my application. I already have found the CryptedUrlWebRequestCodingStrategy inside Wicket, which pretty much does what I want. However, it seems that I can only use this crypted strategy to encrypt either all the URLs in my application, or none. Is there an easy way to only encrypt the URL to a single page? Can I somehow tell Wicket, when I mount the page, that the URL to this page should be encrypted? But to none of my other pages? I appreciate your help, Andy -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-encryption-of-a-single-page-tp4649843.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: call to Wicket.Ajax.get gives object is undefined
Hi martin-g, no i can't reproduce on examples but i have attached a quickstart here,please see if the attachment works here . On Mon, Jun 11, 2012 at 11:03 AM, Martin Grigorov mgrigo...@apache.org wrote: Can you reproduce this on http://www.wicket-library.com/wicket-examples-6.0.x/ajax ? On Mon, Jun 11, 2012 at 8:24 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi, in wicket 6.x, call to Wicket.Ajax.get method gives me undefined object inn firefox and in chrome it gives Ajax request:TypeError: Cannot read property 'length' of undefined. -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal wag.jar Description: application/java-archive - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: call to Wicket.Ajax.get gives object is undefined
Hi Vineet, You don't use the new Wicket.Ajax.get() method syntax. You use: Wicket.Ajax.get(url, function() {}, function() {}); which is the 1.5.x way. The new is: Wicket.Ajax.get({ 'u': url }); See the generated scripts for the wicket-example pages. At the Wiki page you can see the names of the keys of the JSON object that is used to configure the Ajax call, aka Ajax attributes. On Mon, Jun 11, 2012 at 10:44 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi martin-g, no i can't reproduce on examples but i have attached a quickstart here,please see if the attachment works here . On Mon, Jun 11, 2012 at 11:03 AM, Martin Grigorov mgrigo...@apache.org wrote: Can you reproduce this on http://www.wicket-library.com/wicket-examples-6.0.x/ajax ? On Mon, Jun 11, 2012 at 8:24 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi, in wicket 6.x, call to Wicket.Ajax.get method gives me undefined object inn firefox and in chrome it gives Ajax request:TypeError: Cannot read property 'length' of undefined. -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal - 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: URL encryption of a single page
Thanks for your reply, Martin. Sadly I'm currently stuck with Wicket 1.4.x (on second though, I SHOULD have mentioned that in my first post *g*), so I currently can not user the CryptoMapper. If anybody can suggest a solution as easy as that (it may also be a little more complicated if it does the job), I'd be very thankful. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/URL-encryption-of-a-single-page-tp4649843p4649847.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: call to Wicket.Ajax.get gives object is undefined
thanks martin,i initially assumed both are supported now :) ,i looked at wiki ajax page again ,also i had a look at how ajaxlink is generating script so i have now improved my js function ,now i am not getting any error but i still can't pass value from javascript ,here is the improved js code, function acall(id,url){ url = url + + id + = + 'test'; Wicket.Ajax.get({u:url, e: onkeyup, c:id}); } On Mon, Jun 11, 2012 at 1:20 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Vineet, You don't use the new Wicket.Ajax.get() method syntax. You use: Wicket.Ajax.get(url, function() {}, function() {}); which is the 1.5.x way. The new is: Wicket.Ajax.get({ 'u': url }); See the generated scripts for the wicket-example pages. At the Wiki page you can see the names of the keys of the JSON object that is used to configure the Ajax call, aka Ajax attributes. On Mon, Jun 11, 2012 at 10:44 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi martin-g, no i can't reproduce on examples but i have attached a quickstart here,please see if the attachment works here . On Mon, Jun 11, 2012 at 11:03 AM, Martin Grigorov mgrigo...@apache.org wrote: Can you reproduce this on http://www.wicket-library.com/wicket-examples-6.0.x/ajax ? On Mon, Jun 11, 2012 at 8:24 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi, in wicket 6.x, call to Wicket.Ajax.get method gives me undefined object inn firefox and in chrome it gives Ajax request:TypeError: Cannot read property 'length' of undefined. -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making Autocomplete Form Stateless
So, did somebody manage to do have an auto complete behavior into an stateless wicket page? Maybe an integration of jquery ? Any examples, ideas? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Making-Autocomplete-Form-Stateless-tp4455817p4649849.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: call to Wicket.Ajax.get gives object is undefined
You need 'dep' - dynamic extra parameter. These are parameters which are evaluated when the Ajax call is about to be made. On Mon, Jun 11, 2012 at 12:16 PM, vineet semwal vineetsemwa...@gmail.com wrote: thanks martin,i initially assumed both are supported now :) ,i looked at wiki ajax page again ,also i had a look at how ajaxlink is generating script so i have now improved my js function ,now i am not getting any error but i still can't pass value from javascript ,here is the improved js code, function acall(id,url){ url = url + + id + = + 'test'; Wicket.Ajax.get({u:url, e: onkeyup, c:id}); } On Mon, Jun 11, 2012 at 1:20 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Vineet, You don't use the new Wicket.Ajax.get() method syntax. You use: Wicket.Ajax.get(url, function() {}, function() {}); which is the 1.5.x way. The new is: Wicket.Ajax.get({ 'u': url }); See the generated scripts for the wicket-example pages. At the Wiki page you can see the names of the keys of the JSON object that is used to configure the Ajax call, aka Ajax attributes. On Mon, Jun 11, 2012 at 10:44 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi martin-g, no i can't reproduce on examples but i have attached a quickstart here,please see if the attachment works here . On Mon, Jun 11, 2012 at 11:03 AM, Martin Grigorov mgrigo...@apache.org wrote: Can you reproduce this on http://www.wicket-library.com/wicket-examples-6.0.x/ajax ? On Mon, Jun 11, 2012 at 8:24 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi, in wicket 6.x, call to Wicket.Ajax.get method gives me undefined object inn firefox and in chrome it gives Ajax request:TypeError: Cannot read property 'length' of undefined. -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal - 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: call to Wicket.Ajax.get gives object is undefined
thank you martin !,i was able to do that with dynamic extra parameter .. On Mon, Jun 11, 2012 at 6:09 PM, Martin Grigorov mgrigo...@apache.org wrote: You need 'dep' - dynamic extra parameter. These are parameters which are evaluated when the Ajax call is about to be made. On Mon, Jun 11, 2012 at 12:16 PM, vineet semwal vineetsemwa...@gmail.com wrote: thanks martin,i initially assumed both are supported now :) ,i looked at wiki ajax page again ,also i had a look at how ajaxlink is generating script so i have now improved my js function ,now i am not getting any error but i still can't pass value from javascript ,here is the improved js code, function acall(id,url){ url = url + + id + = + 'test'; Wicket.Ajax.get({u:url, e: onkeyup, c:id}); } On Mon, Jun 11, 2012 at 1:20 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Vineet, You don't use the new Wicket.Ajax.get() method syntax. You use: Wicket.Ajax.get(url, function() {}, function() {}); which is the 1.5.x way. The new is: Wicket.Ajax.get({ 'u': url }); See the generated scripts for the wicket-example pages. At the Wiki page you can see the names of the keys of the JSON object that is used to configure the Ajax call, aka Ajax attributes. On Mon, Jun 11, 2012 at 10:44 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi martin-g, no i can't reproduce on examples but i have attached a quickstart here,please see if the attachment works here . On Mon, Jun 11, 2012 at 11:03 AM, Martin Grigorov mgrigo...@apache.org wrote: Can you reproduce this on http://www.wicket-library.com/wicket-examples-6.0.x/ajax ? On Mon, Jun 11, 2012 at 8:24 AM, vineet semwal vineetsemwa...@gmail.com wrote: Hi, in wicket 6.x, call to Wicket.Ajax.get method gives me undefined object inn firefox and in chrome it gives Ajax request:TypeError: Cannot read property 'length' of undefined. -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal - 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 -- thanks, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making Autocomplete Form Stateless
I think Martin was pretty explicit with the fact that you could use as endpoint an AbstractResource or even a plain servlet as your data source url, you don't need explicitly an ajax behaviour(although just setting the stateless hint to true on the ajaxbehaviour might work without any problems). You can add http://thewicketevangelist.blogspot.de/2011/12/marrying-wicket-and-jquery-ui.html but any implementation would work, and use the url of your mountResource(IResource) on where you return a JSON based on the query parameters. You don't even need to add the ajax behaviour to contribute the autocomplete JS(which is a static string if the data url is not dynamic) to your panel so your page is stateless. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Making-Autocomplete-Form-Stateless-tp4455817p4649853.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-simile-timeline (1.5.5) Access denied to resource error..
Hi, Check http://wicket.apache.org/2012/03/22/wicket-cve-2012-1089.html On Mon, Jun 11, 2012 at 7:23 PM, chrome1235 kemal.m...@gmail.com wrote: Hi, I want to use wicketstuff-simile-timeline. Bu it gives an error. is this a bug, or what is my mistake? thanks.. Kemal, my code is: private TimelineModel timelineModel; public HomePage(final PageParameters parameters) { super(); timelineModel= new TimelineModel(); Date t2= new Date(); Date t1= DateUtils.addWeeks(t2, -7); timelineModel.addEvent(new TimelineEventModel(T1, C1, t1, t2,www.google.com,true)); Timeline panel1= new Timeline(panel1, new IModelTimelineModel(){ public TimelineModel getObject() { return timelineModel; //To change body of implemented methods use File | Settings | File Templates. } public void setObject(TimelineModel timelineModel) { //To change body of implemented methods use File | Settings | File Templates. } public void detach() { //To change body of implemented methods use File | Settings | File Templates. } }); add(panel1); } ERROR - DefaultExceptionMapper - Unexpected error occurred org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException: Access denied to (static) package resource org/wicketstuff/simile/timeline/./timeline_js/timeline-api.js?timeline-use-local-resources=truebundle=true. See IPackageResourceGuard at org.apache.wicket.request.resource.PackageResource.internalGetResourceStream(PackageResource.java:418) at org.apache.wicket.request.resource.PackageResource.getCacheableResourceStream(PackageResource.java:338) at org.apache.wicket.request.resource.PackageResource.getCacheKey(PackageResource.java:170) at org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion.getVersion(RequestCycleCachedResourceVersion.java:80) at org.apache.wicket.request.resource.caching.FilenameWithVersionResourceCachingStrategy.decorateUrl(FilenameWithVersionResourceCachingStrategy.java:96) at org.apache.wicket.request.mapper.BasicResourceReferenceMapper.mapHandler(BasicResourceReferenceMapper.java:219) at org.apache.wicket.request.mapper.ParentPathReferenceRewriter.mapHandler(ParentPathReferenceRewriter.java:89) at org.apache.wicket.request.mapper.CompoundRequestMapper.mapHandler(CompoundRequestMapper.java:157) at org.apache.wicket.request.cycle.RequestCycle.mapUrlFor(RequestCycle.java:404) at org.apache.wicket.request.cycle.RequestCycle.urlFor(RequestCycle.java:491) at org.apache.wicket.markup.html.internal.HeaderResponse.renderJavaScriptReference(HeaderResponse.java:203) at org.apache.wicket.markup.html.internal.HeaderResponse.renderJavaScriptReference(HeaderResponse.java:192) at org.apache.wicket.markup.html.internal.HeaderResponse.renderJavaScriptReference(HeaderResponse.java:186) at org.apache.wicket.markup.html.internal.HeaderResponse.renderJavaScriptReference(HeaderResponse.java:180) at org.apache.wicket.markup.html.internal.HeaderResponse.renderJavaScriptReference(HeaderResponse.java:171) at org.wicketstuff.simile.timeline.Timeline.renderHead(Timeline.java:137) at org.apache.wicket.Component.renderHead(Component.java:4459) at org.apache.wicket.Component.renderHead(Component.java:2678) at org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy$1.component(ChildFirstHeaderRenderStrategy.java:82) at org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:96) at org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:87) at org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:51) at org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy.renderChildHeaders(ChildFirstHeaderRenderStrategy.java:77) at org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy.renderHeader(ChildFirstHeaderRenderStrategy.java:56) at org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:134) at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) at org.apache.wicket.Component.internalRenderComponent(Component.java:2539) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1534) at org.apache.wicket.Component.internalRender(Component.java:2369) at
Re: Panel not getting refreshed...
Please help me I am really not able to understand why it is happeningThe form is really simple now: public Search(final PageParameters pageParameters) { super(pageParameters); FormSearchDomain searchForm = new FormSearchDomain(searchForm, new CompoundPropertyModelSearchDomain(searchDomain)); * final SearchResultPanel searchResultPanel = new SearchResultPanel( searchResultPanel, searchDomain); searchResultPanel.setOutputMarkupId(true); searchResultPanel.setOutputMarkupPlaceholderTag(true); * searchForm.setModelObject(searchDomain); // defining text field for user to search final RequiredTextFieldString searchTextField = new RequiredTextFieldString( search, Model.of(searchDomain.getSearch())); AjaxFallbackButton ajaxSearchButton = new AjaxFallbackButton( searchButton, searchForm) { @Override public void onSubmit(AjaxRequestTarget target, final Form? form) { if (target != null) { try { * target.add(searchResultPanel);* } catch (Exception exception) { error(exception.getMessage()); } } } }; * searchForm.add(searchTextField); searchForm.add(searchResultPanel); searchForm.add(ajaxSearchButton); add(searchForm); * } And SearchResultPanel is: *public SearchResultPanel(String id, final SearchDomain searchDomain) { super(id); Label label = new Label(temp, new LoadableDetachableModel() { @Override protected Object load() { return searchDomain.getSearch(); }}); add(label); } * /But still, resultPanel is not displaying search text after being refreshed..that is the panel is not getting refreshed...!!! In every example I have seen in forums, it is done in the same manner...then why it is not happening..!!! I am using wicket 1.5... / -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-not-getting-refreshed-tp4649807p4649857.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-simile-timeline (1.5.5) Access denied to resource error..
Martin, thanks for your reply. But I could not succeed. I tried all of these lines. But I have same error.:( --- public void init() { super.init(); SecurePackageResourceGuard guard = new SecurePackageResourceGuard(); guard.addPattern(+*.js); guard.addPattern(+timeline-api.js?timeline-use-local-resources=truebundle=true); guard.addPattern(+org/wicketstuff/simile/timeline/./timeline_js/timeline-api.js?timeline-use-local-resources=truebundle=true); getResourceSettings().setPackageResourceGuard(guard); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-simile-timeline-1-5-5-Access-denied-to-resource-error-tp4649855p4649858.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-simile-timeline (1.5.5) Access denied to resource error..
guard.addPattern(+*timeline-api.js*); On Mon, Jun 11, 2012 at 9:34 PM, chrome1235 kemal.m...@gmail.com wrote: Martin, thanks for your reply. But I could not succeed. I tried all of these lines. But I have same error.:( --- public void init() { super.init(); SecurePackageResourceGuard guard = new SecurePackageResourceGuard(); guard.addPattern(+*.js); guard.addPattern(+timeline-api.js?timeline-use-local-resources=truebundle=true); guard.addPattern(+org/wicketstuff/simile/timeline/./timeline_js/timeline-api.js?timeline-use-local-resources=truebundle=true); getResourceSettings().setPackageResourceGuard(guard); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-simile-timeline-1-5-5-Access-denied-to-resource-error-tp4649855p4649858.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketstuff-simile-timeline (1.5.5) Access denied to resource error..
Security problem was solved by your response. But, I could not see timeline output. When I look source of html, it gives this error. body HTTP ERROR 404 pProblem accessing /wicket/resource/org.wicketstuff.simile.timeline.Timeline/timeline_js/timeline-api.js%3Ftimeline-use-local-resources=trueamp;bundle=true. Reason: preNot Found/pre/phr //smallPowered by Jetty:///small/br/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-simile-timeline-1-5-5-Access-denied-to-resource-error-tp4649855p4649860.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-simile-timeline (1.5.5) Access denied to resource error..
I mean, when I click this link. It gives 404 error.. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-simile-timeline-1-5-5-Access-denied-to-resource-error-tp4649855p4649861.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-simile-timeline (1.5.5) Access denied to resource error..
I could solve the wicket problem. original code like this. (org.wicketstuff.simile.timeline.Timeline.java) // response.renderJavaScriptReference(new PackageResourceReference(getClass(), // ./timeline_js/timeline-api.js?timeline-use-local-resources=truebundle=true)); I changed by this code. So, that problem was solved. PageParameters pp= new PageParameters(); pp.add(timeline-use-local-resources, true); pp.add(bundle, true); response.renderJavaScriptReference(new PackageResourceReference(getClass(), ./timeline_js/timeline-api.js),pp,MY_JS); -- But my problem was not solved:( I think, the problem is about simile.mit.edu.. Now, it gives this error: Error: Failed to derive URL prefix for Timeline API code files -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-simile-timeline-1-5-5-Access-denied-to-resource-error-tp4649855p4649862.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: Panel not getting refreshed...
Hi, I see some problem/inconsistencies in your code. 1/ Model.of(searchDomain.getSearch()) is not accurate. You better have to use 'new PropertyModelString(searchDomain, search)'. You already defined the getSearch() method, be sure to also have setSearch(String text) method for the property model to work as expected (so it can set the value!). This is the most important point I think. 2/ In the same way, it is not needed - in your case - to have a LDM in your SearchResultPanel/Label. I would have changed the panel by: public SearchResultPanel(String id, final ModelSearchDomain model) { super(id); add(new Label(temp, new PropertyModelString(model.getObject(), search)) } 3/ As I changed the Panel constructor above, we need to change to call. But, I will prefer to pass the form's model. Thus, a CompoundPropertyModel is not (yet?) needed. So: FormSearchDomain searchForm = new FormSearchDomain(searchForm, new ModelSearchDomain(searchDomain)); final SearchResultPanel searchResultPanel = new SearchResultPanel(searchResultPanel, form.getModel()); 4/ searchResultPanel.setOutputMarkupId(true); searchResultPanel.setOutputMarkupPlaceholderTag(true); setOutputMarkupPlaceholderTag already sets the outputMarkupId to true. So, use the one or the other. setOutputMarkupPlaceholderTag is needed if the panel start in a not visible state. It will create an anchor for the ajax call to be able to attach the visible component. 5/ searchForm.setModelObject(searchDomain); Also not needed, you already sets the model object at the form's creation. That's about all I see. Hope this helps. Sebastien. On Mon, Jun 11, 2012 at 8:29 PM, kshitiz k.agarw...@gmail.com wrote: Please help me I am really not able to understand why it is happeningThe form is really simple now: public Search(final PageParameters pageParameters) { super(pageParameters); FormSearchDomain searchForm = new FormSearchDomain(searchForm, new CompoundPropertyModelSearchDomain(searchDomain)); * final SearchResultPanel searchResultPanel = new SearchResultPanel( searchResultPanel, searchDomain); searchResultPanel.setOutputMarkupId(true); searchResultPanel.setOutputMarkupPlaceholderTag(true); * searchForm.setModelObject(searchDomain); // defining text field for user to search final RequiredTextFieldString searchTextField = new RequiredTextFieldString( search, Model.of(searchDomain.getSearch())); AjaxFallbackButton ajaxSearchButton = new AjaxFallbackButton( searchButton, searchForm) { @Override public void onSubmit(AjaxRequestTarget target, final Form? form) { if (target != null) { try { * target.add(searchResultPanel);* } catch (Exception exception) { error(exception.getMessage()); } } } }; * searchForm.add(searchTextField); searchForm.add(searchResultPanel); searchForm.add(ajaxSearchButton); add(searchForm); * } And SearchResultPanel is: *public SearchResultPanel(String id, final SearchDomain searchDomain) { super(id); Label label = new Label(temp, new LoadableDetachableModel() { @Override protected Object load() { return searchDomain.getSearch(); }}); add(label); } * /But still, resultPanel is not displaying search text after being refreshed..that is the panel is not getting refreshed...!!! In every example I have seen in forums, it is done in the same manner...then why it is not happening..!!! I am using wicket 1.5... / -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-not-getting-refreshed-tp4649807p4649857.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
References not loading correctly. Wicket 1.5.7
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 loading. The actual markup has a link to the JS and CSS files, yet they do not link to the actual files. Here is the basic setup of my 'BasePage.class' code public abstract class BasePage extends WebPage implements IHeaderContributor{ protected BasePage() { initPage(); } private void initPage() { this.setStatelessHint(true); //add a bunch of components Add(some new Component); //end of my adding component code }//end of initPage public void renderHead(IHeaderResponse response) { response.renderCSSReference(new CssResourceReference(WebDummy.class, css/wicketIsAwesome.css), screen); response.renderJavaScriptReference(new JavaScriptResourceReference(WebDummy.class, js/javascriptRocks.js)); response.renderJavaScriptReference(new JavaScriptResourceReference(WebDummy.class, js/lightbox.js)); response.renderCSSReference(new CssResourceReference(WebDummy.class, css/commonCss.css)); //add to some page if (this instanceof AwesomeWicketPage) { response.renderCSSReference(new CssResourceReference(WebDummy.class, css/jqu.jqz.css)); response.renderJavaScriptReference(new JavaScriptResourceReference(WebDummy.class, js/libjs-1.6.js)); response.renderJavaScriptReference(new JavaScriptResourceReference(WebDummy.class, js/mylibsJs-core.js)); } }//end of renderHead }//end of class /code This is my Directory Structure (hopefully this makes sense): -src (directory) ---main (directory) --java (directory) com.company (directory) ---com.company.common (directory) ---BasePage.class ---BasePage.html ---com.company.web (directory) ---WebDummy.class ---com.company.web.js (directory) ---javascriptRocks.js ---lightbox.js ---libjs-1.6.js ---mylibsJs-core.js ---com.company.web.css (directory) ---wicketIsAwesome.css ---commonCss.css ---jqu.jqz.css Anyone?
Re: Panel not getting refreshed...
This is the new code now: public class Search extends WebPage { public Search(final PageParameters pageParameters) { super(pageParameters); final SearchDomain searchDomain = new SearchDomain(); *FormSearchDomain searchForm = new FormSearchDomain(searchForm, new ModelSearchDomain(searchDomain)); * final SearchResultPanel searchResultPanel = new SearchResultPanel( searchResultPanel, *(Model)searchForm.getModel()*, true); searchResultPanel.setOutputMarkupId(true); final RequiredTextFieldString searchTextField = new RequiredTextFieldString( search, *new PropertyModelString(searchDomain, search)*); AjaxFallbackButton ajaxSearchButton = new AjaxFallbackButton( searchButton, searchForm) { @Override public void onSubmit(AjaxRequestTarget target, final Form? form) { if (target != null) { try { target.add(searchResultPanel); } catch (Exception exception) { error(exception.getMessage()); error = true; } } } searchForm.add(searchTextField); searchForm.add(searchResultPanel); searchForm.add(ajaxSearchButton); add(searchForm); } And resulTPanel is: public SearchResultPanel(String id, final ModelSearchDomain model, final boolean error) { super(id); System.out.println(temp is + temp); * Label label = new Label(temp, new PropertyModelString(model.getObject(), search)); * temp++; add(label); } My SearchDomain is: public class SearchDomain implements Serializable { /** * */ private static final long serialVersionUID = 1L; private String search; public String getSearch() { return search; } public void setSearch(String search) { this.search = search; } } I am going to search page directly. Now again the problem is there...even sysout is not getting printed which is inside the result panel. What can be the other issues? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Panel-not-getting-refreshed-tp4649807p4649865.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