3 Replies Latest reply on Nov 5, 2007 12:18 PM by Juan Ignacio Sánchez Lara

    mediaOutput render html, but image doesn't trigger server re

    Juan Ignacio Sánchez Lara Apprentice

      Hello,

      I'm using mediaOutput as documentation says. This is my code:

      <a4j:mediaOutput element="img" createContent="#{proyectoBean.gantt}" ajaxRendered="true" cacheable="false" session="true" standby="#{mesgCron.generando}" id="diagramaGantt" value="#{proyectoBean.modelo}" mimeType="image/png" />


      It renders the following html:

      <img id="idFormPlantilla:diagramaGantt" src="/gnomos/faces/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.resource.UserResource/n/s/-879258763/DATA/eAGlWn1sW9d1v5SsT9uJHTdusiXrq-06cW2T-nLs1A5iiqIUphSpkFLauAXiK.KJevbje9R7jxKlIFk8pEW2oNuwpSm2dY2D.rW0BtIPbMP2R7MJaLdhabYAAYoBxbwiQDcU2YZt2IABw.Y7532TT5aK6Y8n8r57zz2fv3Puufzmh2LAtsQnTauRltdkZ-qavZK2VNtsWzU1vWSrVsX7cmLJ0makIwX9HTn3sz6xrygO1ixVOmrONBzVcBxxT.GaXJcZXRqNTHn5mlpzLhbFkNppaaC5Jl4QqaIYbpp1bUVT6973gXWpt1X-0mmBl4dqZjNtt430iqypuurYaVVPF9WGrG3Oq86qWZ.WjLpmNJgRIVJ9RDTVdMQv8uadjKpn3In5Tgvb2pppXNyZ8qJsdM.2KR8QomOJ-0mkDjHRPe.bmb965YP.mvr1Pp53JJgX7vv1L.xa9d-uvHeJZpBsH.NlS6BWaLb0H1deuHDgmd.-F9qZNDK0cb-49.hzLcvchC7NaVUa6YaEpp8Xom2JI59jkdOk73TVsaCVi7fee.qn..Tgc3O8JSTpc8RHiLO0ZqbLbafVdjBRldDXIR7mta6tWq3ORkUsZFqyoRnSzvjb2pmaZRpmw5JNmb5mtzrK5fHJsTOPjCkx8z92LJHTY50WiX5GtdPXapt6WnNkumGYTdNOBxuk4ROqbqYXPEE9C4g-8TAcRtL2WtOM-5cnb1Hsk-SE4pNF1c7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7LvuxEZ.YYMnwrHVoHyWmQb-B5o6OoPHrRlkpo2.dCP-0vYrDzrfxzs-9P3sd5OqGgiKKki2a8i18MR2M.1RSAi-NB28k.Y80EP7NQsmAdh0oCEDLpj5gWTtDcqpjLVtCtmI-dWZ59m-ahVXFoTlq17VtSqW6.wT0LXuqVxF0EsCT1IK1b50l-IRyemfbzuAsr0VN0YmMsc5lIUamSOhFfN4ojG44NSECd5KZa6vmrwdpT8bWD-HkL.aImsRmXMsI900RhK3jw6bH7nAw-8GOwZFridMjDJJF5nR9xbkgSUNhZEvG7Ci1jLVyIr91H7QDsjYwynZ0px46Ar77Nc.mM3vs6lQOgBetAP.VYnPSgf.oeRm-julRcjPnGTy4HxJNef3jZEQfR1OAfaiiOyQ2z1GzXDq4JgWXZmfmCe4j1MvRTAe8978Sfv4jGCa8oVBcrJDWhWzGrZBeKhRzXpSRO2XUx93CleD2B.fTmBD1C07o9ARqbpccpekzS4wI9HqNHOegYNKSFpkFTxjsGw-MTU1NT584RLs9LFCwsaK.v37FfkAC3sdvvXZEP93.41QlvfecE3tUD3IkwQZT7u5UY3vUA1S7QJH58FWopnJ45rQGiJvK2065r3AzASVzHLxfUder8Iq3qfl5VVEOpSXT-1.ETCKoFU8N4iDWWzYes-SwKt1I25jefv03zAFlHyAzbtwz0V-dMY2v7DV1123dx1PJp0BartHQn1BrirUPUQl3ckGiFJjTaEFlE6beIpts4CpYN2KvSup64SvzhzWAV37R0ww69TYSPhmouW3Jn-Ej9MlNm-NjsEqNBfRv8em-kWi7O4UIjG0MQEURh4vuUcdsR91ZNXFIgkqkLhMrIpUKyvxANwENeAA6xVugRChkGIN3aYx3chNtzTbotwOVrNNjwbnD7BpxGZ1H2HmMgLdb-D0C-TRs_"/>
      


      Nevertheless, no image is rendered, and createContent method (#{proyectoBean.gantt}, which signature is public void gantt(OutputStream out, Object data) throws IOException) is not invoked.

      Even more, if I cut'n'paste the img src attribute and use it at the browser address bar, server doesn't answer.

      I'm using MF 1.1.5 on SJSAS 8.1, and RF 3.1.1

      Thanks in advance!