I haven't seen this anywhere, and I need to know how to do it. I've got
a bean that has two lists with the same type of object in each list.
For example:
CountryHotTopics
-------------------
tags
hotTopics
Both lists (tags and hotTopics) are filled with Tag objects. I'm trying
to have CForms manage the relationship. In essence, a "Hot Topic" is a
tag that is marked as being important so a link to a list of items
marked with the tag is displayed on the front page. The Tag object has
four attributes:
Tag
-------------
id
name
isHotTopic
longName
(the last one is for how the hot topic is displayed).
I've got the CForm displaying the information in the database--even
though the <fd:booleanfield/> doesn't display checked if Tag.isHotTopic
is true.
I need the CForm to add a reference to the Tag object to the
CountryHotTopics.hotTopics list when it is checked. But before I can
get there, I'm still struggling with basic binding.
When I click the submit button for the form, I get an exception in the
part where CForms is supposed to save back to the object:
Factory
[EMAIL PROTECTED]
could not create an object for path: /terms
How do I control/specify the same type to convert the form results to?
I'm using the binding protocol defined by the CForms Binding XML
standard. There just doesn't seem to be a suitable example to pull any
kind of experience from. Anybody have some clues/tips/suggestions?
--
*Berin Loritsch*
Owner
*Work:* 571-215-7708
*Email:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*IM:* [EMAIL PROTECTED] (MSN)
*http://www.linkedin.com/in/bloritsch
*
* * *D-Haven* <http://d-haven.org>
20044 Great Falls Forest Dr.
<http://maps.google.com/maps?q=20044+Great+Falls+Forest+Dr.%2CGreat+Falls%2CVA+22066%2CUSA&hl=en>
Great Falls, VA 22066
USA
See who we know in common <http://www.linkedin.com/e/wwk/5678360/> Want
a signature like this? <http://www.linkedin.com/e/sig/5678360/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]