On 12/05/2010 01:37, Marco Gattei wrote: > Hi everyone, > i'm trayng to use ClickClick Taconite class to replace a whole > CayenneForm, loading data from DB. > I'm having troblue doing this because when jQuery receives back > Taconite xml containg the form to be replaced, parsing the xml fails. > > I think that's because the taconite xml contains the html of the form > generated by Click which in turn containd unescaped entites > such as . > > Has anybody any advice on how accoplish this ?
A while ago I've updated Click to use valid XML characters instead of HTML entities. So instead of Click should render  . So Forms and Tables should work with Ajax as can be seen here: http://clickclick-jquery.appspot.com/ajax/form-demo.htm http://clickclick-jquery.appspot.com/ajax/table-demo.htm However scanning through the source code, the ClickUtils still escapes HTML characters as HTML entities. Meaning the "values" you put into the Form or Table would still be escaped as HTML instead of XML. Is this the issue you are running into? Can you test by escaping your values as XML before inserting it into the Table/Form eg: field.setValue(StringEscapeUtils.escapeXml(value)); I've started work on integrating Ajax support in Click core so would be great have this issue resolved. Kind regards Bob
