This content has been marked as final. Show 8 replies
have a look here: http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_inputColor.html
This tells me that the color's RGB value is returned as a String (component value property). Just bind the value property e.g. to
"atributeName" is a attribute binding you create in the Pagedef file for a view, pointing to a View Object (iterator) attribute
Let me know if there still is a problem getting this to work. Should be straight forward though
Thanks for the response. May be I am doing something wrong on my page. Can you plz review the following and let me know what else should be done to make it work ?
- DB COLUMN for the saving the color is of VARCHAR2(50)
- Code snippet of the table column is :
<af:column sortProperty="DisplayColor" sortable="false"
<af:convertColor patterns="RRGGBB #RRGGBB"/>
- Value that is being upon selecting a color from af:inputColor is of the format *java.awt.Color[r=210,g=180,b=140]*
- After committing the changes, the saved color doesnt show up.
- I also need to show the saved color in another place inside af:iterator
I already reviewed that post and replied to it asking for more details about the solution. Let know if you have a working copy or add some code snippets plz.
Last post by Steve in [this post|https://forums.oracle.com/forums/thread.jspa?threadID=578024&tstart=0] has some code snippet, you may try this.
I reviewed that but Jdev doesnt allow me to create a transient variable of type java.awt.Color.
You can update ViewObject source and create a transient attribute with name AwtColor and then follow Steve code, it shoudl work.
Here is the sample code to add transient attribute of type java.awt.Color from view object source:
<ViewAttribute Name="AwtColor" IsSelected="false" IsPersistent="false" PrecisionRule="true" Precision="255" Type="java.awt.Color" ColumnType="VARCHAR2" AliasName="VIEW_ATTR" SQLType="VARCHAR"/>
Thanks, it worked. I never knew that we can edit the source and create a variable of any type.