Hi,
 
when creating a new container,
you can set versionID to 0 and workflow = EntryLoadRequest.STAGING_WORKFLOW_STATE
 
'ctndefid' is the container definition id with which you want to create the container.
You can retrieve it from the containerlist in which you want to create the container
 
ctndefid = myContainerList.getctndefid(); // have the container list created first
 
Regards
Khue Nguyen
 
----- Original Message -----
Sent: Wednesday, October 27, 2004 12:04 PM
Subject: Container creation by API, setting parameters...

Hello,

Context :
  • Jahia Version : 4.0.4 build 5822 (bundle with packaged Tomcat)
  • OS : Linux Fedora Core 2
  • JDK : 1.4.2_05
  • DB : mySQL

I'm trying to build a JSP page to dynamically insert a new Container in a ContainerList (importing content from external data).

I start from the list message : http://list.jahia.org/template_list/msg00125.html.

But after compilation error, and after checking the JavaDoc API, the constructor of JahiaContainer need a versionID and a Workflow state. How can I generate thoose parameters ???


P.S : what is the 'ctndefid' paramter in this constructor  ?

Thank's a lot

Reply via email to