You can also use DWR with JSF and Spring Integration. Works pretty well for
me.
On 1/23/07, Simon Kitching <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
>
>
> This imagefile.jsf content works, I have tested it with imagefile.
> jsf?filename=C:\temp\chiemgauer.jpg
>
> <jsp:useBean id="image" scope="request" class="org.troedel.bean.
> ImageBean" />
>
> <%
> String filename = request.getParameter("filename");
> image.setFilename(filename);
> image.paintImage();
>
> %>
>
> But what still does not work is the commandLink call in the jsf
> file. Does this work in JSF?
>
>
> <h:form>
> <h:commandLink value="chiemgauer" action="imagefile.jsf?
> filename=C:\temp\chiemgauer.jpg"/>
> </h:form>
>
Try this:
<h:form>
<h:commandLink value="chiemgauer" action="imagefile.jsf">
<f:param name="filename" value="C:/temp/chiemgauer.jpg"/>
</h:commandLink>
</h:form>
Note no backslashes in the value (either that or escape them, eg
"c:\\temp").
Rather than pass parameters encoded in the url, though, it would
probably be more elegant to use <t:updateActionListener> to pass the
data as a bean property.
Regards,
Simon
--
Thanks
DJ MICK
(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com