|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
[HtmlUnit] [ htmlunit-Bugs-2889345 ] Wicket ajax callBugs item #2889345, was opened at 2009-10-30 10:59
Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2889345&group_id=47038 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Latest code in SVN Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: Wicket ajax call Initial Comment: My project is based on Apache Wicket. Ajax calls generated by wicket contains response where htmlunit tries to escape non word characters like: "^]" to be escaped "\^\[". In class HtmlUnitRegExpProxy, line 96 - replaceAll(replacement) Argument replacement contains "$&" but "&" means in Java regex "group" and java expects number of group after character '&'. As there is no number of group then IllegalArgumentException is thrown. I've fixed it in mine copy of htmlunit like: class HtmlUnitRegExpProxy, line 156, replaced content: String normalizedReplacement = replacement.replaceAll("\\&", "0"); final Matcher m = Pattern.compile(regex).matcher(normalizedReplacement); final int groups = m.groupCount(); int prevIndex = 0; final char[] rep = normalizedReplacement.toCharArray(); take a look on "normalizedReplacement". In my case it does help but I'm not sure If it is OK for you. ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2009-11-02 08:29 Message: I will try to make an example... ---------------------------------------------------------------------- Comment By: Marc Guillemot (mguillem) Date: 2009-10-30 11:02 Message: Can you provide a test case? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2889345&group_id=47038 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ HtmlUnit-develop mailing list HtmlUnit-develop@... https://lists.sourceforge.net/lists/listinfo/htmlunit-develop |
| Free embeddable forum powered by Nabble | Forum Help |