You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Elias Neri <el...@custodix.com> on 2006/10/30 09:52:07 UTC

f:param name-value pair not passed as request parameter with the latest trinidad daily builds.

Hello,

Passing request parameters through "f:param" as child of a command 
button worked the 11th october and on previous builds. But with builds a 
few days later up to the most recent one I'm not able to provide request 
parameters anymore. Did something change I should be aware of?

I've tried it with the demo application. I've updated 
components\commandButton.jsp to pass a request parameter:
<tr:commandButton binding="#{editor.component}"
                  text="Go to breadCrumbs demo" action="guide.breadCrumbs">
        <f:param name="myParameter" value="myValue"/>
</tr:commandButton>

On the latest demo build, when sniffing the request, the parameter isn't 
passed. (See the first sniff I pasted below).
When i update the trinidad jars of the demo with the daily build of the 
11th october, the parameter is passed (See the second sniff below).

Best regards,

Elias

POST /trinidad-demo/faces/components/commandButton.jspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, */*
Referer: 
http://10.32.2.91:8080/trinidad-demo/faces/components/commandButton.jspx
Accept-Language: nl
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
CLR 1.1.4322)
Host: 10.32.2.91:8080
Content-Length: 331
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=0FA89E2321C6AE420B1ADCAEA6E14D38; oracle.uix=0^^GMT+1:00

_idJsp8%3A4%3A_idJsp14=&_idJsp8%3A6%3A_idJsp18=t&_idJsp8%3A8%3A_idJsp14=&_idJsp8%3A9%3A_idJsp14=&_idJsp8%3A10%3A_idJsp14=Go+to+breadCrumbs+demo&_idJsp8%3A13%3A_idJsp15=&_idJsp8%3A14%3A_idJsp15=&_idJsp8%3ArangeStart=0&org.apache.myfaces.trinidad.faces.FORM=_idJsp1&org.apache.myfaces.trinidad.faces.STATE=%21-4d970374&source=_idJsp6





POST /trinidad-demo/faces/components/commandButton.jspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/x-shockwave-flash, */*
Referer: 
http://10.32.2.91:8080/trinidad-demo/faces/components/commandButton.jspx
Accept-Language: nl
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
CLR 1.1.4322)
Host: 10.32.2.91:8080
Content-Length: 358
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=C3DCB4B2FB95932DB3B665FC8A1EF6E9; oracle.uix=0^^GMT+1:00

_idJsp8%3A4%3A_idJsp14=&_idJsp8%3A6%3A_idJsp18=t&_idJsp8%3A8%3A_idJsp14=&_idJsp8%3A9%3A_idJsp14=&_idJsp8%3A10%3A_idJsp14=Go+to+breadCrumbs+demo&_idJsp8%3A13%3A_idJsp15=&_idJsp8%3A14%3A_idJsp15=&_idJsp8%3ArangeStart=0&org.apache.myfaces.trinidad.faces.FORM=_idJsp1&org.apache.myfaces.trinidad.faces.STATE=%21-11f407dd&source=_idJsp6&event=&myParameter=myValue

Re: f:param name-value pair not passed as request parameter with the latest trinidad daily builds.

Posted by Adam Winer <aw...@gmail.com>.
Hrm;  I wasn't aware that we ever supported f:param on commandButtons,
just on commandLinks - but this might have been an accidental feature.
I redid the commandButton renderers recently, getting rid of the
ancient, inefficient renderers for the newer architecture.

But in general, f:param is not the best approach for using any "command"
component. You're much better off using tr:setActionListener (or any of the
equivalent action listeners out there).

-- Adam


On 10/30/06, Elias Neri <el...@custodix.com> wrote:
>
> Hello,
>
> Passing request parameters through "f:param" as child of a command
> button worked the 11th october and on previous builds. But with builds a
> few days later up to the most recent one I'm not able to provide request
> parameters anymore. Did something change I should be aware of?
>
> I've tried it with the demo application. I've updated
> components\commandButton.jsp to pass a request parameter:
> <tr:commandButton binding="#{editor.component}"
>                   text="Go to breadCrumbs demo" action="guide.breadCrumbs
> ">
>         <f:param name="myParameter" value="myValue"/>
> </tr:commandButton>
>
> On the latest demo build, when sniffing the request, the parameter isn't
> passed. (See the first sniff I pasted below).
> When i update the trinidad jars of the demo with the daily build of the
> 11th october, the parameter is passed (See the second sniff below).
>
> Best regards,
>
> Elias
>
> POST /trinidad-demo/faces/components/commandButton.jspx HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, */*
> Referer:
> http://10.32.2.91:8080/trinidad-demo/faces/components/commandButton.jspx
> Accept-Language: nl
> Content-Type: application/x-www-form-urlencoded
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
> CLR 1.1.4322)
> Host: 10.32.2.91:8080
> Content-Length: 331
> Connection: Keep-Alive
> Cache-Control: no-cache
> Cookie: JSESSIONID=0FA89E2321C6AE420B1ADCAEA6E14D38;
> oracle.uix=0^^GMT+1:00
>
>
> _idJsp8%3A4%3A_idJsp14=&_idJsp8%3A6%3A_idJsp18=t&_idJsp8%3A8%3A_idJsp14=&_idJsp8%3A9%3A_idJsp14=&_idJsp8%3A10%3A_idJsp14=Go+to+breadCrumbs+demo&_idJsp8%3A13%3A_idJsp15=&_idJsp8%3A14%3A_idJsp15=&_idJsp8%3ArangeStart=0&org.apache.myfaces.trinidad.faces.FORM=_idJsp1&org.apache.myfaces.trinidad.faces.STATE=%21-4d970374&source=_idJsp6
>
>
>
>
>
> POST /trinidad-demo/faces/components/commandButton.jspx HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, */*
> Referer:
> http://10.32.2.91:8080/trinidad-demo/faces/components/commandButton.jspx
> Accept-Language: nl
> Content-Type: application/x-www-form-urlencoded
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
> CLR 1.1.4322)
> Host: 10.32.2.91:8080
> Content-Length: 358
> Connection: Keep-Alive
> Cache-Control: no-cache
> Cookie: JSESSIONID=C3DCB4B2FB95932DB3B665FC8A1EF6E9;
> oracle.uix=0^^GMT+1:00
>
>
> _idJsp8%3A4%3A_idJsp14=&_idJsp8%3A6%3A_idJsp18=t&_idJsp8%3A8%3A_idJsp14=&_idJsp8%3A9%3A_idJsp14=&_idJsp8%3A10%3A_idJsp14=Go+to+breadCrumbs+demo&_idJsp8%3A13%3A_idJsp15=&_idJsp8%3A14%3A_idJsp15=&_idJsp8%3ArangeStart=0&org.apache.myfaces.trinidad.faces.FORM=_idJsp1&org.apache.myfaces.trinidad.faces.STATE=%21-11f407dd&source=_idJsp6&event=&myParameter=myValue
>