users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] [jsr344-experts] Re: [1111-PassThruElements] Proposal second version (was: First commit complete)

From: Frank Caputo <frank_at_frankcaputo.de>
Date: Wed, 26 Sep 2012 19:56:56 +0200

Hi,

Am 17.09.2012 um 10:23 schrieb Frank Caputo:

>> The <jsf:element> tag causes a UIInput with a
>> javax.faces.passthrough.Input Renderer to be placed in the tree. Here
>> is the spec for this renderer.
>>
>> Decode Behavior
>>
>> Define a data structure that represents the following table.
>>
>> localName submittedValueAttributeName renderCurrentValue
>> ========= =========================== ==================
>>
>> keygen name false
>>
>> <other elements to follow>

we should add "submittedValueAttributeName" and "renderCurrentValue" as component properties. This way, we can support new input elements out of the box. E.g.:

<newinputelement jsf:submittedValueAttributeName="name" jsf:renderCurrentValue="false" jsf:value="#{bean.newInputValue}"/>

If there is no existing mapping use the component properties. They should also supersede existing mappings.

Ciao Frank