title: Why is my fileDownload control showing the trashcan even in read mode?
body: <p>This is a rather strange one I think, and I'm sure I made a mistake here myself:</p>
  
  <p>in one of my applications I'm showing a fileDownload control bound to a Richtext field in my underlying NotesDocument. The control's properties a are set to <em>Hide if no attachments</em>, show <em>size</em>, <em>type</em> and <em>created</em> as well as <em>allow delete</em>. The control itself sits inside a custom control, being part of another custom control, similar to this:</p>
  
  <p>Xpage.xsp<br>
   - ccContainer<br>
   - - ccInnerDoc</p>
  
  <p>Document datasources for both the container and the "inner" doc are defined at the root of ccContainer and passed into the inner doc.
  The inner doc's datasource is comnputed based on a document selection, and it's igenoreRequestParams property is set to <strong>false</strong> so that I can display the contents of the selected datasource in a given panel etc.</p>
  
  <p>The selected doc is first opened in read mode, and I can set it to edit mode using a button.</p>
  
  <p>Problem now is that my file download control <strong>always</strong> is showing the delete icon (trashcan) no matter which mode the doc is opened in. And it's not only the icon showing, it also pretends to work by asking me whether I really want to delete and then really removes the file attachment. Only that this change of course cannot be stored into the datasource because it's only open in read mode.</p>
  
  <p>I'm sure that this behaviour is some side-effect of something else in my application (to a certain extent I rebuilt this in a plain new db and until now cannot reproduce it), but I'm at the end of my knowledge of what this could be.</p>
  
  <p>Any hint of what could be causing this is more than welcome.</p>