RE: Rendering Html on Ajax Request
Thanks Mauro. That worked woo hoo! -Original Message- From: Mauro Ciancio [mailto:] Sent: Sunday, October 03, 2010 7:48 PM To: users@wicket.apache.org Subject: Re: Rendering Html on Ajax Request Hello, This could help you, org.apache.wicket.Component#setEscapeModelStrings That would disable the escape of strings. Regards. On Sun, Oct 3, 2010 at 11:21 PM, wrote: > Hi All, > > > I have some property define in property file like below > > Myproperty.name = This is bold > > And on some Ajax request I am adding this property to some label like this > > add(new Label("somelable", getLocalizer().getString("Myproperty.name.")) > > > My problem is , html tags are rendered as text and I am not getting bold > effect or any Html formatting. > > > Hope someone know how to fix this. > > Thanks > > > > -- Mauro Ciancio - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Rendering Html on Ajax Request
Hi All, I have some property define in property file like below Myproperty.name = This is bold And on some Ajax request I am adding this property to some label like this add(new Label("somelable", getLocalizer().getString("Myproperty.name.")) My problem is , html tags are rendered as text and I am not getting bold effect or any Html formatting. Hope someone know how to fix this. Thanks
Ajax - response
Hi all, I am getting strange kind of problem and need some expert advice to solve this problem. Below response/code works perfectly fine in Firefox but in IE I am getting element not found. Log from Ajax wicket log window: focus set on btnAddb0 INFO: Using ActiveX transport INFO: INFO: Initiating Ajax GET request on ?x=a9RWGdNtTytEslA3x7Zt2Zf0RKnG6AQIhgKDxsCnv94CTuMAondxa2AasfbIWvyzgNqXPbm3hONkW767sk8h0S6bFDv2vPYw&random=0.9009792103973244 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (256 characters) INFO: ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root element INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... Please help me out with this. Thanks in advance Preet
RE: Session time out for Ajax requests
Somehow below code worked, I thought it be helpful for someone else to. if(httpRequest.getSession(false) == null){ Enumeration headerNames = httpRequest.getHeaderNames(); while(headerNames.hasMoreElements()) { String headerName = (String)headerNames.nextElement(); if(headerName.equalsIgnoreCase("Wicket-Ajax")){ PrintWriter out = httpResponse.getWriter(); out.println(""); return; } } } -Original Message- From: gurpreet.si...@wellsfargo.com [mailto:gurpreet.si...@wellsfargo.com] Sent: Thursday, July 22, 2010 12:49 PM To: users@wicket.apache.org Subject: Session time out for Ajax requests Hi All, Any one tried this : "In your served filter you will have to check for Wicket-Ajax header and if it is present return a properly formatted Ajax-response that contains JavaScript to redirect to your login page. I am not sure what exactly I need to return. I tried with location.href="mypage" And
Session time out for Ajax requests
Hi All, Any one tried this : "In your served filter you will have to check for Wicket-Ajax header and if it is present return a properly formatted Ajax-response that contains JavaScript to redirect to your login page. I am not sure what exactly I need to return. I tried with location.href="mypage" And
CryptedUrlWebRequestCodingStrategy with JMeter
Hi All, I am trying to do use JMeter with Wicket. Our application use CryptedUrlWebRequestCodingStrategy. I looked on Wiki page for JMeter and tried to use regular expression for form id's. But with CryptedUrlWebRequestCodingStrategy it's not working . Any one has idea how to get formId's for JMeter to submit. My JMeter Test Plan is kind of typical web application flow: Home Page - > Login Page - > Welcome Page .. some more tests involved Ajax components Thanks Preet
Grinder with Wicket
Hi All, Just want to know , if anybody tried Grinder with wicket with lots of Ajax widgets. Please share your experience. Thanks Preet
RE: How to make visible all child of WebMarkupContainer
Yeap I am adding both wrappers to AjaxRequesttarget like this target.addComponent(seeRecentWrapper..setVisible(true)); target.addComponent(seeAllWrapper..setVisible(false)); From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 01, 2010 10:59 AM To: Singh, Gurpreet Cc: users@wicket.apache.org Subject: Re: How to make visible all child of WebMarkupContainer On Tue, Jun 1, 2010 at 12:45 PM, mailto:gurpreet.si...@wellsfargo.com>> wrote: Thanks for replying and sorry about typos. Here is the real code See All View Most Recent seeAll and seeRecent links visibility is set to default , which I assume is true. Initialy seeRecentWrapper visibility is set to false and seeAllWrapper visibility is set to true. On click on seeAll Ajax link I am setting seeRecentWrapper.setVisible(true) and seeAllWrapper.setVisble(false) On click on seeRecent Ajax link I am setting seeRecentWrapper.setVisible(false) and seeAllWrapper.setVisble(true) If setting parent component visibility does not affect its child visibility So not sure why links doesn't show up. Any idea? In both links you will need to add both wrappers to the ajax response. Are you doing this? -- Jeremy Thomerson http://www.wickettraining.com
RE: How to make visible all child of WebMarkupContainer
Thanks for replying and sorry about typos. Here is the real code See All View Most Recent seeAll and seeRecent links visibility is set to default , which I assume is true. Initialy seeRecentWrapper visibility is set to false and seeAllWrapper visibility is set to true. On click on seeAll Ajax link I am setting seeRecentWrapper.setVisible(true) and seeAllWrapper.setVisble(false) On click on seeRecent Ajax link I am setting seeRecentWrapper.setVisible(false) and seeAllWrapper.setVisble(true) If setting parent component visibility does not affect its child visibility So not sure why links doesn't show up. Any idea? -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 01, 2010 10:36 AM To: users@wicket.apache.org Subject: Re: How to make visible all child of WebMarkupContainer On Tue, Jun 1, 2010 at 12:25 PM, wrote: > Hi All, > > > I am getting strange problem. Setting WebMarkupContainer.setVisible(true) > is not making all its child visible via Ajax Link. > > My Html code looks like this > > Show All > Show > Recent > > I need to show one of those links at a time. But somehow setting > setVisible(true) is not working , but setVisible(false) works > Is that really your code? There are multiple typos that would stop stuff from working. Please paste real code. Anyway, if you have setVisible(false) on any children, then calling setVisible(true) on the parent will not make the children also visible. However, if the parent (webmarkupcontainer) were not visible, then obviously the children would not be visible, even though their individual isVisible() methods would return true. -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to make visible all child of WebMarkupContainer
Hi All, I am getting strange problem. Setting WebMarkupContainer.setVisible(true) is not making all its child visible via Ajax Link. My Html code looks like this Show All Show Recent I need to show one of those links at a time. But somehow setting setVisible(true) is not working , but setVisible(false) works Thanks in Advance for replying Preet
AjaxFallbackDefaultDataTable turn off Sorting
Hi All, I need to turn off sorting in AjaxFallbackDefaultDataTable initially and then click of a Ajax Link button in need to turn it On. I Thanks in advance.