Sunday, July 27, 2014

Re: Text markup (XML) parser in GWT?

Then override onBrowserEvent() 
Yes, I could change it. You mean overriding the onBrowserEvent() of the parent of the anchor element I suppose?
I would have to dig a bit deeper to see if it would cover all my requirements, but sure a good idea. I remember doing this in the past but without overriding the onBrowser event which didn't work well..

Yeah the parent panel should do that. 


 I would parse it using GWT xml parser
​But how can I use the gwt xml parser to specify the opening/closing tags as they are different then the xml tags ([, ] vs <, >)..

Oh right. You have to replace them with <> and probably fix attributes (wrap values with quotes).

If you still want to write a parser then maybe take a look at JavaCC 6.1.0+ which has a "modern" output style which is compatible to GWT.

http://consoliii.blogspot.co.uk/2014/05/configuring-javacc-maven-plugin-for.html
http://consoliii.blogspot.co.uk/2014/04/creating-gwt-compatible-parser-using.html
http://consoliii.blogspot.co.uk/2014/04/creating-gwt-compatible-parser-using_15.html

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment