[opencms-dev] Example for including X Elements

Patrick-Emil Zörner paddyez at gmail.com
Mon Feb 13 18:31:20 CET 2006


On Monday 13 February 2006 09:09, Shi Yusen wrote:

Ok,

Problem so far solved code works OK even if not perfekt. Now I just would like 
to know how to get the delete button and the add another element button. If 
someone could point me to the java classes in the documentation I would very 
much appreciate it.

CmsJspActionElement cmsJAE = new CmsJspActionElement(pageContext, request, 
response);

...

			int elementNumber=0;
			String mainContent="mainContent";
			while(cmsJAE.template(mainContent+Integer.toString(elementNumber),true))
			{
				cmsJAE.include(uriString, 
mainContent+Integer.toString(elementNumber),true);
				elementNumber++;
			}

greetings

Paddy



More information about the opencms-dev mailing list