[opencms-dev] Newbie problem with OpenCMS - New Content Disapears

Filip Kratochvil filip.kratochvil at nelasoft.cz
Fri Feb 12 22:42:32 CET 2016


I think you are right, it seems to be formatter problem. Try to make simplified formatter for test, something like:

 

<%@page buffer="none" session="false" trimDirectiveWhitespaces="true"%>

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

 

<cms:formatter var="content" val="value" rdfa="rdfa">

                <div>

<p>STATIC</p>

<p>${content.value.Title}</p>

</div>

</cms:formatter>

 

And check if it’s working… Don´t forget set-up formatter´s config. Good luckJ

 

--
S pozdravem / Kind regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail: filip.kratochvil at nelasoft.cz
Web: www.nelasoft.cz <http://www.nelasoft.cz/> 

Twitter: @NELASOFT <https://twitter.com/NELASOFT> 

 

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Dr. John A. Kassebaum PhD, PE
Sent: Friday, February 12, 2016 10:25 PM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Newbie problem with OpenCMS - New Content Disapears

 

Hi Filip!

 

I’m using the Safari web developer plugin … so I can see the code delivered for the rendered page and any errors in it. The HTML delivered does NOT have any errors, but there is NO html to render the missing content. If I open the OpenCMS edit tools then I can see the XML content for page - and it looks correct (has all my new content). But its like there is a missing or broken formatter (or something) which does not pass through that XML content to generate proper HTML for rendering. 

 

FWIW - I can add Dynamic Content -> OpenCMS Info or Dynamic Content -> Login Panel …. and both of these will be displayed and seem persistent, but the seem to render without any properties or format - like they are passed through as draw HTML.

 

-John

 

On Feb 12, 2016, at 4:05 PM, Filip Kratochvil <filip.kratochvil at nelasoft.cz> wrote:

 

Hi,

 

try to check browser console or source code on the page (if the content is present). I think it can he hidden by GWT (= javascript) due to some JS error or html formatting (unbalanced html tag or…).

 

--
S pozdravem / Kind regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.E-mail:  <mailto:filip.kratochvil at nelasoft.cz> filip.kratochvil at nelasoft.cz
Web:  <http://www.nelasoft.cz/> www.nelasoft.cz

Twitter:  <https://twitter.com/NELASOFT> @NELASOFT

 

From:  <mailto:opencms-dev-bounces at opencms.org> opencms-dev-bounces at opencms.org [ <mailto:opencms-dev-bounces at opencms.org> mailto:opencms-dev-bounces at opencms.org] On Behalf Of Dr. John A. Kassebaum PhD, PE
Sent: Friday, February 12, 2016 10:00 PM
To:  <mailto:opencms-dev at opencms.org> opencms-dev at opencms.org
Subject: Re: [opencms-dev] Newbie problem with OpenCMS - New Content Disapears

 

Hi Diversion,

Yes - the <% out.println ( "Test") ; %> does in fact print “Test”into the rendered page.

-John




 

On Feb 12, 2016, at 3:53 PM, Dr. John A. Kassebaum PhD, PE < <mailto:jak at kassebaumengineering.com> jak at kassebaumengineering.com> wrote:

 

Hi Deiversion & thanks for your attention!

 

My basicPage.jsp is essentially identical to the code from grid-page-demo.jsp under com.alkacon.bootstrap.formatters/templates.

 

On my development system I am using Java 8, OpenCMS 9.5.3, Tomcat 8.0.30, and Mysql 5.7.11.  My development platform is MacOSX.  My deployment platform is a Bitnami Tomcat appliance running Ubuntu. I am experiencing the problem on both development and deployment servers. 

 

I will try the out.println() …. I do have ordinary content rendering from the JSP though - some graphics etc.  More on that soon.

 

-John






On Fri Feb 12 21:13:34 CET 2016, Deiverson Silveira  <mailto:opencms-dev%40opencms.org?Subject=Re%3A%20%5Bopencms-dev%5D%20Newbie%20problem%20with%20OpenCMS%20-%20New%20Content%0A%09Disapears&In-Reply-To=%3CCAF1gz3tsgn7tEXVMXQVnfX6-KNcOwLRBFRqaucdMucgx9Fm68Q%40mail.gmail.com%3E> deiverson at solutioncms.com 

 

Hi John,

Are you can place the jsp code of the page "basicPage.jsp"?
 
What version of Java, OpenCms and the Database are you using ?
 
If you put a <% out.println ( "Test") ; % > in your basicPage.jsp Is
displayed on the screen the word "Test" ? This is only to isolate the
problem is somewhere in your code.
 
Regards,
 
Deiverson

 

On Feb 12, 2016, at 2:58 PM, Dr. John A. Kassebaum PhD, PE < <mailto:jak at kassebaumengineering.com> jak at kassebaumengineering.com> wrote:

 

 

Hi OpenCMS folks,

 

I am an OpenCMS newbie, but have had little trouble getting everything setup and working. No problem with the demo site or development tools (Netbeans and nbDriva). However, I am concerned that I am missing something significant.

 

Problem: I have created a new website for my client using the Workspace Manager, and coded a simplistic new module with my own templates/basicPage.jsp.  I am able to add content to it - but, if I refresh the page after adding content, all of that newly added content becomes invisible. I can still see the record of the info in the Page Info (xml content) - but the produced page HTML does not include rendering of the content. I have not created any of my own formatters and/or content types, and am using the content type from the bootstrap modules as a starting point. 

 

Can someone give me a clue? What I am I missing? 

 

Thanks for any help!

-John

 

--

John A. Kassebaum, PhD PE AC9JX

Kassebaum Engineering LLC

Main: (317) 225-4126 x2

Cell: (317) 250-7932

 

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
 <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev

 

 

--

John A. Kassebaum, PhD PE AC9JX

Kassebaum Engineering LLC

Main: (317) 225-4126 x2

Cell: (317) 250-7932

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160212/81d4e1d5/attachment.htm>


More information about the opencms-dev mailing list