You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Sharath Reddy (JIRA)" <de...@myfaces.apache.org> on 2006/04/27 22:44:38 UTC

[jira] Created: (TOMAHAWK-396) InputParam component maps a parameter from the request to a managed bean property.

InputParam component maps a parameter from the request to a managed bean property.
----------------------------------------------------------------------------------

         Key: TOMAHAWK-396
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-396
     Project: MyFaces Tomahawk
        Type: New Feature

    Reporter: Sharath Reddy
    Priority: Minor



While this can also be accomplised by declaring a managed bean property with the following syntax:

<managed-property>
 	<property-name>id</property-name>
 	<property-class>java.lang.String</property-class>
 	<value>#{param.id}</value>
 </managed-property>

the advantage of using this component is that it can support a converter and validators. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TOMAHAWK-396) InputParam component maps a parameter from the request to a managed bean property.

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-396?page=comments#action_12376885 ] 

Martin Marinschek commented on TOMAHAWK-396:
--------------------------------------------

Adam,

this is the first step for our mini-controller for applying GET-params. Do you remember?

It's nothing got to do with t:updateActionListener at all.

regards,

Martin

> InputParam component maps a parameter from the request to a managed bean property.
> ----------------------------------------------------------------------------------
>
>          Key: TOMAHAWK-396
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-396
>      Project: MyFaces Tomahawk
>         Type: New Feature

>   Components: New Component
>     Reporter: Sharath Reddy
>     Priority: Minor
>  Attachments: inputParam.patch
>
> While this can also be accomplised by declaring a managed bean property with the following syntax:
> <managed-property>
>  	<property-name>id</property-name>
>  	<property-class>java.lang.String</property-class>
>  	<value>#{param.id}</value>
>  </managed-property>
> the advantage of using this component is that it can support a converter and validators. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TOMAHAWK-396) InputParam component maps a parameter from the request to a managed bean property.

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-396?page=comments#action_12376860 ] 

Adam Winer commented on TOMAHAWK-396:
-------------------------------------

I'd vote against adding this component;  updateActionListener is almost invariably a better choice;  this also breaks the contract of an "input" component by not really being an input component at all.

> InputParam component maps a parameter from the request to a managed bean property.
> ----------------------------------------------------------------------------------
>
>          Key: TOMAHAWK-396
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-396
>      Project: MyFaces Tomahawk
>         Type: New Feature

>   Components: New Component
>     Reporter: Sharath Reddy
>     Priority: Minor
>  Attachments: inputParam.patch
>
> While this can also be accomplised by declaring a managed bean property with the following syntax:
> <managed-property>
>  	<property-name>id</property-name>
>  	<property-class>java.lang.String</property-class>
>  	<value>#{param.id}</value>
>  </managed-property>
> the advantage of using this component is that it can support a converter and validators. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TOMAHAWK-396) InputParam component maps a parameter from the request to a managed bean property.

Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-396?page=comments#action_12376876 ] 

Mario Ivankovits commented on TOMAHAWK-396:
-------------------------------------------

This comonent isnt meant as a replacement nor a competitor to updateActionListener, but as a way how to deal with GET request parameter (aka RESTful - bookmarkable pages).
IMHO this component isnt finished yet (no way to invoke a "action").

I do not know what the specification says about the contract of an "input" component, but it is arguable that an INPUT has not always come from an form control, even in the view of http, get and post are equal (beside their technical reservations).
So I feel fine to say that data from an bookmark link is some sort of INPUT.

We diskussed alot on the ML and - I guess -  in the end we had 3 ways how to deal with GET.
This is the first working example and there should be no problem adding it to the sandbox - this is why we have it.

So lets finish this component, time will tell if we were wrong.

> InputParam component maps a parameter from the request to a managed bean property.
> ----------------------------------------------------------------------------------
>
>          Key: TOMAHAWK-396
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-396
>      Project: MyFaces Tomahawk
>         Type: New Feature

>   Components: New Component
>     Reporter: Sharath Reddy
>     Priority: Minor
>  Attachments: inputParam.patch
>
> While this can also be accomplised by declaring a managed bean property with the following syntax:
> <managed-property>
>  	<property-name>id</property-name>
>  	<property-class>java.lang.String</property-class>
>  	<value>#{param.id}</value>
>  </managed-property>
> the advantage of using this component is that it can support a converter and validators. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (TOMAHAWK-396) InputParam component maps a parameter from the request to a managed bean property.

Posted by "Sharath Reddy (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/TOMAHAWK-396?page=all ]

Sharath Reddy updated TOMAHAWK-396:
-----------------------------------

    Status: Patch Available  (was: Open)

> InputParam component maps a parameter from the request to a managed bean property.
> ----------------------------------------------------------------------------------
>
>          Key: TOMAHAWK-396
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-396
>      Project: MyFaces Tomahawk
>         Type: New Feature

>     Reporter: Sharath Reddy
>     Priority: Minor

>
> While this can also be accomplised by declaring a managed bean property with the following syntax:
> <managed-property>
>  	<property-name>id</property-name>
>  	<property-class>java.lang.String</property-class>
>  	<value>#{param.id}</value>
>  </managed-property>
> the advantage of using this component is that it can support a converter and validators. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira