Home > Java for Web > JSF & Icefaces: ByteArrayResource not found

JSF & Icefaces: ByteArrayResource not found

Con le Icefaces 2.0, il download di un file creato a runtime attraverso la risorsa di tipo ByteArrayResource è possibile renderlo disponibile correttamente soltanto aggiungendo la seguente entry nel file web.xml:

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/icefaces/*</url-pattern>
</servlet-mapping>

in caso contrario il server restituirebbe errore 404 di risorsa non trovata.

L’oggetto Resource va collegato ad un tag icefaces della pagina web di tipo <ice:outputResource .../> .

Java for Web , , , , ,

  1. Nessun commento ancora...
  1. Nessun trackback ancora...