Bug 103288
Summary: | ItemSearchWidget returns a ContentBundle but expects a ContentPage | ||
---|---|---|---|
Product: | [Retired] Red Hat Enterprise CMS | Reporter: | Randy Graebner <randyg> |
Component: | other | Assignee: | Archit Shah <archit.shah> |
Status: | CLOSED WONTFIX | QA Contact: | Jon Orris <jorris> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | nightly | CC: | sseago |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-11-10 21:02:01 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 108447 |
Description
Randy Graebner
2003-08-28 15:38:50 UTC
I have implemented solution 1 for Carrefour with change 35726. Basically, there are a couple of things that I did 1. Change ItemSearchParamter to accept a ContentItem instead of a ContentPage. 2. Change ItemListModel.java's getKey method. If you map to a bundle the link does not work so you have to return the key of the primary instance or of a negotiated instance. 3. I created a Carrefour specific DomainObjectXMLRenderer that overrode the "walk" method found in DomainObjectTraversal. For CMS, you may want to create a MultiLingualContentItemXMLRenderer that extends DomainObjectXMLRenderer. This required me to cut and paste code from DomainObjectTraversal since the code was not abstracted out enough. I change the section of the "if" block starting with "else if (propValue instanceof DataObject) {" to check for a ContentBundle and if so, negotiate the correct item. This works well for Carrefour's purposes. I then had to change all of the "import" statements to use my new class. Now, I have to go through and fix the visibility problems with the ContentGroup set of forms. |