You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pedro Santos (JIRA)" <ji...@apache.org> on 2011/01/05 13:46:45 UTC

[jira] Commented: (WICKET-3308) Turn the FormComponent#getConvertedInput method to protected

    [ https://issues.apache.org/jira/browse/WICKET-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977762#action_12977762 ] 

Pedro Santos commented on WICKET-3308:
--------------------------------------

I missed that compounded component usecase that needs the converted input earlier in the form processing.
I improved the getConvertedInput javadoc a bit, if I didn't missed any thing more we can commit:

	/**
	 * Gets the converted input. The converted input is set earlier though the implementation of
	 * {@link #convertInput()}.
	 * 
	 * This method is useful to provide the converted input to {@link FormComponentPanel} components
	 * compounded by this form component. They may need this converted value to compound their own
	 * when requested in earlier form process steps like validation.
	 * 
	 * To access the model object resulted by the full form processing, use
	 * {@link #getModelObject()} instead, that is an generified version of
	 * {@link #getDefaultModelObject()}
	 * 
	 * @return value of input possibly converted into an appropriate type
	 */

> Turn the FormComponent#getConvertedInput method to protected
> ------------------------------------------------------------
>
>                 Key: WICKET-3308
>                 URL: https://issues.apache.org/jira/browse/WICKET-3308
>             Project: Wicket
>          Issue Type: Improvement
>    Affects Versions: 1.5-M3
>            Reporter: Pedro Santos
>            Assignee: Igor Vaynberg
>            Priority: Trivial
>
> Pasting a message from the irc:
> "whats the "right" way of retreiving values from a simple formcomponent such as textfield<String>: youve got getModel, getValue, getInput, getConvertedValue, ......."
> getConvertedInput is mainly used by updateModel and FormComponent subclasses, an protected access modifier would make the API clearer

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