[ 
https://issues.apache.org/jira/browse/MYFACES-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979120#action_12979120
 ] 

Martin Kočí commented on MYFACES-3012:
--------------------------------------

Yes, 
<f:ajax>
    <f:param name="param1" value="value1" />
</f:ajax> 

is nicer and it is that what I  wanted originally but spec says: "<f:param>
Add a child UIParameter component to the UIComponent associated with the 
closest parent UIComponent custom
action." so parametrized is not ajax behaviour but component - my intent was 
not to wait for JSF 2.2  API and make it working now.

Which other options we have if we want pass a parameter to request? 
jsf.ajax.request accept params array but I didn't see any elegant java/facelets 
 API for it. 

Other  (or complementary) solution can be permit attributes wiring for f:ajax 
like:
<f:ajax param1="value1" />
It will popuplate behaviour instance in simililar way as UIComponent's 
getAttributes() and ValueExpressions. 

Similar problem with missing "parameter API" I pointed out for 
converter/validator: 
http://www.mail-archive.com/[email protected]/msg47138.html




> Allow f:param for <h:inputText> <f:ajax>
> ----------------------------------------
>
>                 Key: MYFACES-3012
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3012
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>    Affects Versions: 2.0.4-SNAPSHOT
>         Environment: myfaces trunk, shared svn. rev 1051469
>            Reporter: Martin Kočí
>            Priority: Minor
>         Attachments: MYFACES-3012.patch
>
>
> I don't know what  spec says but following should work:
> <h:inputText>
>   <f:param name="paramName" value="paramValue" />   
>   <f:ajax />
> </h:inputText>
> expected result is paramName = paramValue pair in request.
> For h:command it works already.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to