Details
Description
<script type="text/javascript">Ice.FCKeditor.register ('_id2:_id4', new Ice.FCKeditor('_id2:_id4', '','da', '', '/icetest-portlet/block/resource/LTQ5MTYyMDg1Mw==/','100%', '200'));</script>
The error is "Ice.FCKeditor has no properties"
I've attached a sample portlet that will enable you to reproduce the error. To install, simply copy the attached file to your Liferay "Hot Deploy" folder, and then startup Liferay 4.3.3. The portlet can be found under the "Add Content" menu in the "Sample" category. It is named "ICEfaces Test"
-
Hide
- icetest-portlet-4.3.3.1.war
- 3.93 MB
- Neil Griffin
-
- META-INF/MANIFEST.MF 0.0 kB
- META-INF/context.xml 0.2 kB
- View.xhtml 0.4 kB
- WEB-INF/classes/icetest/View.class 0.9 kB
- WEB-INF/classes/log4j.properties 0.2 kB
- WEB-INF/classes/log4j.xml 0.7 kB
- WEB-INF/faces-config.xml 0.5 kB
- WEB-INF/lib/backport-util-concurrent.jar 343 kB
- WEB-INF/lib/el-api.jar 24 kB
- WEB-INF/lib/el-ri.jar 97 kB
- WEB-INF/lib/icefaces-comps.jar 1.45 MB
- WEB-INF/lib/icefaces-facelets.jar 593 kB
- WEB-INF/lib/icefaces.jar 704 kB
- WEB-INF/lib/jsf-api.jar 356 kB
- WEB-INF/lib/jsf-impl.jar 778 kB
- WEB-INF/liferay-display.xml 0.2 kB
- WEB-INF/liferay-plugin-package.properties 0.5 kB
- WEB-INF/liferay-portlet.xml 0.8 kB
- WEB-INF/portlet.xml 1 kB
- WEB-INF/src/icetest/View.java 0.3 kB
- WEB-INF/src/log4j.xml 0.7 kB
- WEB-INF/web.xml 3 kB
Issue Links
- depends on
-
ICE-2542 Portlet-friendly injection of 3rd party JavaScript
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Adnan,
Although a portlet is packaged like any other webapp, the portal will prevent you from trying to run it directly from a URL like that. Instead, visit http://localhost:8080 and login to the portal first. The username is test@liferay.com and the password is test. Then, click the "Add Page" button to add a new portal page. Then, under the "Welcome Joe Bloggs" menu, click on "Add Content". You can add the portlet to your portal page by clicking the "Add" button next to it. You'll find it it under the the "Sample" category. It is named "ICEfaces Test".
Neil
As of trunk revision 15355 on 12/12/2007 I'm now seeing a new error. When I have an <ice:inputRichText /> on the .xhtml page, I get the message "URI CREATED JUST ONE" in the console and the Facelet doesn't render at all.
I've just had an initial look at this. It appears that the InputRichText component registers the FCKEditor JavaScript files that need to be served up with BridgeFacesContext using the loadJavascriptCode() methods. These methods add the locations of the resources to be served when the component is rendered. However, these resources are actually written into the page in the DOMResponseWriter.enhanceHead() method which does not look like it gets executed in a portlet environment. It's likely we need a different mechanism so that the script resources are written into the portlet content directly.
The problem with this is more general and affects any component that depends on injecting 3rd party JavaScript while running in a portlet environment.
The common issue of injecting component-specific JavaScript has been fixed. The Rich Text Editor now works in a portlet environment. Resolving as fixed.
Forgot to mention that the JARs included in WEB-INF/lib were built from the trunk with JDK 1.5 on 10/31/2007.