How to manage redirects using rewrite maps
Hello, we use a tomcat behind a apache. we also use mod_rewrite proxy rules to manage requests from the apache to the tomcat. Our wicket application modifies the location header: curl -I http://wicket-application/application-context/login HTTP/1.1 302 Moved Temporarily Date: Wed, 30 May 2012 13:45:15 GMT Server: Apache-Coyote/1.1 Expires: Thu, 01 Jan 1970 00:00:00 GMT Pragma: no-cache Cache-Control: no-cache, no-store Location: http://localhost:8080/application-context/login Set-Cookie: JSESSIONID=5F08FEDBAAABD7F3E83C7EF785C6A688; Path=/application-context Vary: User-Agent Content-Type: text/plain So we get a redirect to localhost. the hint: https://cwiki.apache.org/WICKET/wicket-application-behind-modproxyhttp-and-https.html does not work, because we are using rewrite maps for our mod_rewrite proxy rules. So we have no chance to use ReverseProxy. How can I solve this issue? Best regards, Jan
Refresh listItem only of listView
Hi, I have a scenario like this: ListViewUserTypeDomain userTypeDomainListView = new ListViewUserTypeDomain( userType, userTypeDomainList) { protected void populateItem(final ListItemUserTypeDomain listItem) { listItem.add(new SubmitPostPanel(submitPostPanel, pageParameters, listItem, userDomain)); } } In SubmitPostPanel, I have a ajax button for submitting post. What I want is to refresh that listItem only which is passed in the Panel after submitting post. I have tried out: *listItem.setOutputMarkupId(true);* *listItem.setOutputMarkupPlaceholderTag(true);* AjaxFallbackButton ajaxPostSubmitButton = new AjaxFallbackButton( postSubmitButton, postForm) { @Override public void onSubmit(AjaxRequestTarget target, final Form? form) { *target.add(listItem);* } But the item is not getting refreshed. How can I achieve my purpose? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refresh-listItem-only-of-listView-tp4649676.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: Refresh listItem only of listView
Hi, Well, you do not tell a much about the issue... So, several possible answers are: - You cannot add the listview in the target as it is a repeater, you should add its (or one of its) parent. - If you change the list, is your list a model ? (userTypeDomainList) Regards, Sebastien. On Sat, Jun 2, 2012 at 8:31 PM, kshitiz k.agarw...@gmail.com wrote: Hi, I have a scenario like this: ListViewUserTypeDomain userTypeDomainListView = new ListViewUserTypeDomain( userType, userTypeDomainList) { protected void populateItem(final ListItemUserTypeDomain listItem) { listItem.add(new SubmitPostPanel(submitPostPanel, pageParameters, listItem, userDomain)); } } In SubmitPostPanel, I have a ajax button for submitting post. What I want is to refresh that listItem only which is passed in the Panel after submitting post. I have tried out: *listItem.setOutputMarkupId(true);* *listItem.setOutputMarkupPlaceholderTag(true);* AjaxFallbackButton ajaxPostSubmitButton = new AjaxFallbackButton( postSubmitButton, postForm) { @Override public void onSubmit(AjaxRequestTarget target, final Form? form) { *target.add(listItem);* } But the item is not getting refreshed. How can I achieve my purpose? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refresh-listItem-only-of-listView-tp4649676.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: Refresh listItem only of listView
Hi, Yes...actually userTypeDomainList is a list of domain objects. I am creating view from this list, where each item of the view has saveral components. Now, on updating a component, i want to update its respective item, rather than whole listview. Do I need to put that item in a container to refresh it? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refresh-listItem-only-of-listView-tp4649676p4649678.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: Refresh listItem only of listView
Hi again, Except if I am wrong, you cannot re-render just one listitem. If you are going to change the content of one of the listitem's model object, you will have to re-render the listview (by re-attaching its parent to the target). Now, if the list does not change (meaning, you are not going to add/remove object), you can set ListView#setReuseItems to true so the re-rendering will be more efficient. Also, * If you nest a ListView in a Form, ALLWAYS set this property to true, as otherwise validation will not work properly.* (setReuseItems javadoc) Hope this helps, Sebastien. On Sat, Jun 2, 2012 at 8:47 PM, kshitiz k.agarw...@gmail.com wrote: Hi, Yes...actually userTypeDomainList is a list of domain objects. I am creating view from this list, where each item of the view has saveral components. Now, on updating a component, i want to update its respective item, rather than whole listview. Do I need to put that item in a container to refresh it? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refresh-listItem-only-of-listView-tp4649676p4649678.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: Wicket page has a redirect loop
Hi, I guess 'markupProvider' is null. This is improved in 1.5.7 to not fail with NPE. But even in 1.5.7 your app will fail with : throw new MarkupNotFoundException(No Markup found for Fragment + markupId + in providing markup container + getMarkupProvider(container)); For some reason the Fragment's markup cannot be found. Most probably you have usage of IComponentResolver near by this Fragment... On Fri, Jun 1, 2012 at 9:02 PM, Thomas Götz t...@decoded.de wrote: Hm, put a breakpoint in FragmentMarkupSourcingStrategy.java:143 and see what causes the NullPointerException. -Tom On 01.06.2012 at 19:08 paulstar wrote: Caused by: java.lang.NullPointerException at org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.getMarkup(FragmentMarkupSourcingStrategy.java:143) at org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:448) at org.apache.wicket.Component.getMarkup(Component.java:737) at org.apache.wicket.markup.html.list.ListView.getMarkup(ListView.java:662) at org.apache.wicket.Component.getMarkup(Component.java:737) at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.getMarkup(DefaultMarkupSourcingStrategy.java:83) at org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:448) at org.apache.wicket.Component.getMarkup(Component.java:737) at org.apache.wicket.Component.getMarkupTag(Component.java:1422) at org.apache.wicket.Component.getMarkupIdFromMarkup(Component.java:777) at org.apache.wicket.Component.getMarkupIdImpl(Component.java:1479) at org.apache.wicket.Component.getMarkupId(Component.java:1525) at org.apache.wicket.Component.getMarkupId(Component.java:1587) at org.apache.wicket.markup.html.form.Form.appendDefaultButtonField(Form.java:1096) at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1575) at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72) at org.apache.wicket.Component.internalRenderComponent(Component.java:2551) ... 51 more - 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