Issue Details (XML | Word | Printable)

Key: SHALE-328
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Gary VanMatre
Reporter: Gary VanMatre
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Shale

Clay is not recognizing the converterId attribute when using the generic f:converter

Created: 08/Nov/06 07:02 PM   Updated: 23/Jan/07 04:40 PM
Return to search
Component/s: Clay
Affects Version/s: 1.0.4-SNAPSHOT
Fix Version/s: 1.0.4


 Description  « Hide
There are several way to associated a converter with a component that is a value holder. The converter can be defined as a top-level component where the component type corresponds to the converter-id. Or, the generic f:converter can be associated to a converter using the converterId attribute.

Consider:

<component jsfid="f:convertBoolean" componentType="javax.faces.Boolean"/>

<component jsfid="testlabel1" extends="h:outputLabel">
<attributes>
<set name="value" value="true" />
</attributes>
<converter jsfid="f:convertBoolean"/>
</component>

This scenario doesn't work:

<component jsfid="testlabel2" extends="h:outputLabel">
   <attributes>
      <set name="value" value="true" />
   </attributes>
   <converter jsfid="f:converter">
      <attributes>
          <set name="converterId" value="javax.faces.Boolean"/>
       </attributes>
    </converter>
</component>

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #472598 Wed Nov 08 19:13:12 UTC 2006 gvanmatre Clay is not recognizing the converterId attribute when using the generic f:converter (SHALE-328).
Files Changed
MODIFY /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/component/chain/PropertyValueCommand.java
ADD /shale/framework/trunk/shale-clay/src/test/java/org/apache/shale/clay/config/ConverterTestCase.java
MODIFY /shale/framework/trunk/shale-clay/src/main/resources/META-INF/clay-config.xml
MODIFY /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/component/chain/CreateConverterCommand.java
ADD /shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/converter-config.xml
ADD /shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/converter.html

Gary VanMatre added a comment - 08/Nov/06 07:14 PM
This bug was reported by Torsten Krah. Thanks for the help.

Gary VanMatre made changes - 08/Nov/06 07:14 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Rahul Akolkar made changes - 23/Jan/07 04:40 PM
Fix Version/s 1.0.4 [ 21790 ]
Fix Version/s 1.0.4-SNAPSHOT [ 21740 ]
Jeff Turner made changes - 09/Aug/07 07:15 AM
Workflow Struts [ 38908 ] Struts - editable closed status [ 41689 ]
Antonio Petrelli made changes - 08/Jan/09 08:56 AM
Workflow Struts - editable closed status [ 41689 ] Struts - editable closed status (temporary) [ 46029 ]
Antonio Petrelli made changes - 08/Jan/09 09:08 AM
Workflow Struts - editable closed status (temporary) [ 46029 ] Struts - editable closed status [ 53052 ]