2 Replies Latest reply on Apr 7, 2008 9:31 AM by David Reed

    inplaceinput can't contain HTML mark-up type characters

    David Reed Newbie

      In creating a page that is similar to that which is on http://livedemo.exadel.com/richfaces-demo/richfaces/inplaceInput.jsf?c=inplaceInput.

      I ran into an issue that if the data that is filling a dataTable that has inplaceinput's in the columns contains HTML mark-up characters like & and such. It errors out like the following:

      XML Parsing Error: not well-formed
      Location: https://mostldr3342lt01.swbt.itservices.sbc.com/ECSC/GuestIds.seam?cid=2
      Line Number 3310, Column 27:
      </script></div>SNFC01 (M&P Guest)</div></td><td class="dr-table-cell rich-table-cell alignCenter" id="j_id24:guestidTable:78:j_id39"><div class="rich-inplace rich-inplace-view " id="j_id24:guestidTable:78:inplaceClientLinkLabel"><input id="j_id24:guestidTable:78:inplaceClientLinkLabeltabber" style="width: 1px; position: absolute; left: -32767px;" type="button" /><input autocomplete="off" class="rich-inplace-field" id="j_id24:guestidTable:78:inplaceClientLinkLabeltempValue" style="display:none;" type="text" value="Methods" /><input id="j_id24:guestidTable:78:inplaceClientLinkLabelvalue" name="j_id24:guestidTable:78:inplaceClientLinkLabelvalue" type="hidden" value="Methods" /><div class="rich-inplace-input-controls-set" id="j_id24:guestidTable:78:inplaceClientLinkLabelbar" style="display:none;"><div class="rich-inplace-shadow" id="j_id24:guestidTable:78:inplaceClientLinkLabelbtns_shadow"><table border="0" cellpadding="0" cellspacing="0" class="rich-inplace-shadow-size"><tbody><tr><td class="rich-inplace-shadow-tl"><img border="0" height="1" src="/ECSC/a4j_3_2_0-SNAPSHOTimages/spacer.gif" width="10" /></td><td class="rich-inplace-shadow-tr"><img border="0" height="10" src="/ECSC/a4j_3_2_0-SNAPSHOTimages/spacer.gif" width="1" /></td></tr><tr><td class="rich-inplace-shadow-bl"><img border="0" height="10" src="/ECSC/a4j_3_2_0-SNAPSHOTimages/spacer.gif" width="1" /></td><td class="rich-inplace-shadow-br"><img border="0" height="1" src="/ECSC/a4j_3_2_0-SNAPSHOTimages/spacer.gif" width="10" /></td></tr></tbody></table></div><div id="j_id24:guestidTable:78:inplaceClientLinkLabelbuttons" style="position:relative;"><input class="rich-inplace-control " id="j_id24:guestidTable:78:inplaceClientLinkLabelok" onmousedown="this.className='rich-inplace-control-press '" onmouseout="this.className='rich-inplace-control '" onmouseover="this.className='rich-inplace-control '" onmouseup="this.className='rich-inplace-control '" src="/ECSC/a4j_3_2_0-SNAPSHOTorg.richfaces.renderkit.html.images.SaveControlIcon/DATB/eAHzOBTNlsLw..9.ABMwBM0_" type="image" /><input class="rich-inplace-control " id="j_id24:guestidTable:78:inplaceClientLinkLabelcancel" onmousedown="this.className='rich-inplace-control-press '" onmouseout="this.className='rich-inplace-control '" onmouseover="this.className='rich-inplace-control '" onmouseup="this.className='rich-inplace-control '" src="/ECSC/a4j_3_2_0-SNAPSHOTorg.richfaces.renderkit.html.images.CancelControlIcon/DATB/eAETFZ.-..9.AAlNA8E_" type="image" /></div><script type="text/javascript">


      And it points to the space right after "SNFC01 (M&P".

      Any ideas or suggestions on how to handle this? Or can this even be handled short of putting something like and escape attribute on inplaceinput?

      Thanks,
      Dave