you can probably user our markupparser... -igor
On Tue, Apr 1, 2008 at 1:26 PM, hjuturu <[EMAIL PROTECTED]> wrote: > > Hi All > I use a class which implements IMarkupResourceStreamProvider, > IMarkupCacheKeyProvider to > generated HTML dynamically and sent it to wicket as a IResourceStream. > //code snippet > public IResourceStream getMarkupResourceStream(MarkupContainer container, > Class containerClass){ return new > StringResourceStream(HTMLString); > } > > If the HTMLString is not properly formed , wicket throws > "java.text.ParseException" and org.apache.wicket.markup.MarkupException. > after i set the responsepage. > > I would like to validate whether this string is correct before it goes to > wicket code and a exception is thrown.Is there anyway to validate this > HTMLString and catch the exception. > > If not in wicket are there any third party packages available to validate > dynamically generated HTML strings . > > Thanks All > Haritha > > > > > > -- > View this message in context: > http://www.nabble.com/Validate-HTML-generated-from-getMarkupResourceStream%28%29-tp16423755p16423755.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]