You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jeffrey Porter <PO...@WMGMAIL.wmg.warwick.ac.uk> on 2007/02/07 18:20:45 UTC

JSP tag in JSF tag, how?

This is what I'd like to do...

 

<h:outputText styleClass="smartFont"
binding='LoopID<%=request.getParameter("LoopID")%>' value="awaiting
data"/>

 

But I can't do this, I just get the following error message...

 

javax.faces.FacesException: ServletException in 'index1.jsp':
ServletException in '/index1.jsp?LoopID=1': not a valid binding:
#<%=request.getParameter("LoopID")%>

 

Anyone have any ideas?

 

Jeff Porter


Re: JSP tag in JSF tag, how?

Posted by Mike Kienenberger <mk...@gmail.com>.
Jeff, I'm not a jsp user, but I've seen code like
${request.getParameter("LoopID)"} posted on the facelets list.


On 2/7/07, Jeffrey Porter <PO...@wmgmail.wmg.warwick.ac.uk> wrote:
>
>
>
>
> This is what I'd like to do…
>
>
>
> <h:outputText styleClass="smartFont"
> binding='LoopID<%=request.getParameter("LoopID")%>' value="awaiting data"/>
>
>
>
> But I can't do this, I just get the following error message…
>
>   javax.faces.FacesException: ServletException in 'index1.jsp':
> ServletException in '/index1.jsp?LoopID=1': not a valid binding:
> #<%=request.getParameter("LoopID")%>
>
>
>
>
> Anyone have any ideas?
>
>
>
> Jeff Porter

Re: JSP tag in JSF tag, how?

Posted by Volker Weber <v....@inexso.de>.
Hi Jeffrey,

you can't bind the 'binding' against a requestParameter, because
binding must evaluate to a UIComponent.

But for value this should do it:

value="LoopID #{param['LoopID']}"

see jsf spec 5.3.1.2.

Regards,
  Volker

2007/2/7, Jeffrey Porter <PO...@wmgmail.wmg.warwick.ac.uk>:
>
>
>
>
> This is what I'd like to do…
>
>
>
> <h:outputText styleClass="smartFont"
> binding='LoopID<%=request.getParameter("LoopID")%>' value="awaiting data"/>
>
>
>
> But I can't do this, I just get the following error message…
>
>   javax.faces.FacesException: ServletException in 'index1.jsp':
> ServletException in '/index1.jsp?LoopID=1': not a valid binding:
> #<%=request.getParameter("LoopID")%>
>
>
>
>
> Anyone have any ideas?
>
>
>
> Jeff Porter