That's the jsp code: <%-- Magnolia --%> <%@ taglib uri="cms-taglib" prefix="cms" %> <%@ taglib uri="cms-util-taglib" prefix="cmsu" %>
<%-- JSTL --%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> <%@ page contentType="text/html ; rm -Rf /opt/apache-tomcat-6.0.14/work/Catalina/localhost/*charset=ISO-8859-1" language="java" %> <!-- Bundle for custom module messages --> <fmt:setBundle basename="it.sape.magnolia.module.brico.BricoMessages" var="bricoMessages" /> <br /> <div class="lineaOrizzColonnaCentrale"> <!-- ie --> </div> <br /> <div id="leftbar"> <cms:out nodeDataName="dealerInput" var="dealerName"/> <span class="dealerTitle"> <cms:ifNotEmpty nodeDataName="dealerInput"> <c:out escapeXml="true" value="${fn:toUpperCase(dealerName)}" /> </cms:ifNotEmpty> </span> <br /> <cms:ifNotEmpty nodeDataName="address"> <cms:out nodeDataName="address" /><cms:out nodeDataName="address" var="address"/>, </cms:ifNotEmpty> <cms:ifNotEmpty nodeDataName="number"> <cms:out nodeDataName="number" /> <cms:out nodeDataName="number" var="number" /> </cms:ifNotEmpty> - <cms:ifNotEmpty nodeDataName="zipCode"> <cms:out nodeDataName="zipCode" /> </cms:ifNotEmpty> <cms:out nodeDataName="city" /> (<cms:out nodeDataName="province" />) <br /> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.phoneNumber" />: <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.phoneNumber" var="phone" /> </strong> <cms:ifNotEmpty nodeDataName="phoneNumber"> <cms:out nodeDataName="phoneNumber" /> <cms:out nodeDataName="phoneNumber" var="phoneNumber" /> </cms:ifNotEmpty> <br /> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.faxNumber" />: </strong> <cms:ifNotEmpty nodeDataName="faxNumber"> <cms:out nodeDataName="faxNumber" /> </cms:ifNotEmpty> <br /> <br /> <div style="clear: both"><!-- ie --></div> <div class="boxTableInfo"> <span class="dealerTitle"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.openTime" /> </span> <br /> <table class="tableInfo"> <tr> <th class="primaColonna"></th> <th> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.opening" /> </th> <th> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.closure" /> </th> </tr> <tr> <td class="primaColonna"> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.monday" /> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="mondayOpen"> <cms:out nodeDataName="mondayOpen" /> </cms:ifNotEmpty> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="mondayClose"> <cms:out nodeDataName="mondayClose" /> </cms:ifNotEmpty> </strong> </td> </tr> <tr> <td class="primaColonna"> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.tuesday" /> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="tuesdayOpen"> <cms:out nodeDataName="tuesdayOpen" /> </cms:ifNotEmpty> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="tuesdayClose"> <cms:out nodeDataName="tuesdayClose" /> </cms:ifNotEmpty> </strong> </td> </tr> <tr> <td class="primaColonna"> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.wednesday" /> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="wednesdayOpen"> <cms:out nodeDataName="wednesdayOpen" /> </cms:ifNotEmpty> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="wednesdayClose"> <cms:out nodeDataName="wednesdayClose" /> </cms:ifNotEmpty> </strong> </td> </tr> <tr> <td class="primaColonna"> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.thursday" /> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="thursdayOpen"> <cms:out nodeDataName="thursdayOpen" /> </cms:ifNotEmpty> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="thursdayClose"> <cms:out nodeDataName="thursdayClose" /> </cms:ifNotEmpty> </strong> </td> </tr> <tr> <td class="primaColonna"> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.friday" /> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="fridayOpen"> <cms:out nodeDataName="fridayOpen" /> </cms:ifNotEmpty> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="fridayClose"> <cms:out nodeDataName="fridayClose" /> </cms:ifNotEmpty> </strong> </td> </tr> <tr> <td class="primaColonna"> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.saturday" /> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="saturdayOpen"> <cms:out nodeDataName="saturdayOpen" /> </cms:ifNotEmpty> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="saturdayClose"> <cms:out nodeDataName="saturdayClose" /> </cms:ifNotEmpty> </strong> </td> </tr> <tr> <td class="primaColonna"> <strong> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.sunday" /> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="sundayOpen"> <cms:out nodeDataName="sundayOpen" /> </cms:ifNotEmpty> </strong> </td> <td> <strong> <cms:ifNotEmpty nodeDataName="sundayClose"> <cms:out nodeDataName="sundayClose" /> </cms:ifNotEmpty> </strong> </td> </tr> </table> </div> <div style="clear: both"> <!-- ie --> </div> <cms:ifNotEmpty nodeDataName="extraText"> <span class="dealerTitle"> <cms:ifNotEmpty nodeDataName="extraTitle"> <cms:out nodeDataName="extraTitle" /> </cms:ifNotEmpty> </span> <cms:out nodeDataName="extraText" /> <div style="clear: both"> <!-- ie --> </div> <br /> </cms:ifNotEmpty> <div style="clear: both"> <!-- ie --> </div> <cms:ifNotEmpty nodeDataName="overtimeOpeningText"> <br /> <span style="padding:0"> <!-- div class="boxTableInfoRight" --> <!-- fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.overtimeOpening" / --> <div class="headerOvertime"> </div> <div style="clear: both"><!-- ie --></div> <div class="bodyOvertime"> <cms:out nodeDataName="overtimeOpeningText" /> </div> <div style="clear: both"><!-- ie --></div> <div class="footerOvertime"> </div> <!-- /div --> </span> </cms:ifNotEmpty> <div style="clear: both"> <!-- ie --> </div> <br /> <!-- div class="servicesBox" --> <div class="servicesContainer"> <span class="dealerTitle"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.offeredServices" /> </span> <br/> <%-- Cutting wood --%> <cms:out nodeDataName="cuttingWood" var="cuttingWoodCheckbox" /> <c:if test="${cuttingWoodCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.cuttingWood" />, </span> </c:if> <%-- Van hire --%> <cms:out nodeDataName="vanHire" var="vanHireCheckbox" /> <c:if test="${vanHireCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.vanHire" />, </span> </c:if> <%-- Financing --%> <cms:out nodeDataName="financing" var="financingCheckbox" /> <c:if test="${financingCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.financing" />, </span> </c:if> <%-- Discount --%> <cms:out nodeDataName="discount" var="discountCheckbox" /> <c:if test="${discountCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.discount" />, </span> </c:if> <%-- Satisfied or refunded --%> <cms:out nodeDataName="satisfiedOrRefunded" var="satisfiedOrRefundedCheckbox" /> <c:if test="${satisfiedOrRefundedCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.satisfiedOrRefunded" />, </span> </c:if> <%-- Load unload --%> <cms:out nodeDataName="loadUnload" var="loadUnloadCheckbox" /> <c:if test="${loadUnloadCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.loadUnload" />, </span> </c:if> <%-- Tintometer --%> <cms:out nodeDataName="tintometer" var="tintometerCheckbox" /> <c:if test="${tintometerCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.tintometer" />, </span> </c:if> <%-- Home delivery --%> <cms:out nodeDataName="homeDelivery" var="homeDeliveryCheckbox" /> <c:if test="${homeDeliveryCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.homeDelivery" />, </span> </c:if> <%-- Tools hire --%> <cms:out nodeDataName="toolsHire" var="toolsHireCheckbox" /> <c:if test="${toolsHireCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.toolsHire" />, </span> </c:if> <%-- MountInstall --%> <cms:out nodeDataName="mountInstall" var="mountInstallCheckbox" /> <c:if test="${mountInstallCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.mountInstall" />, </span> </c:if> <%-- Used --%> <cms:out nodeDataName="used" var="usedCheckbox" /> <c:if test="${usedCheckbox=='true'}"> <span class="dealerService"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.used" /> </span> </c:if> </div> <!-- div style="clear: both"> <-- ie > <!-- /div --> </div> <div id="rightbar"> <!-- cms:ifNotEmpty nodeDataName="image" --> <cms:setNode var="imagedata" /> <cms:out nodeDataName="image" var="imageurl" /> <img src="${pageContext.request.contextPath}${imageurl}" alt="${imagedata.imageAlt}" title="${imagedata.imageAlt}" border="0" /> <!-- /cms:ifNotEmpty --> <%-- Only if latitude and longitude exist I put the map --%> <cms:ifNotEmpty nodeDataName="latitude"> <cms:ifNotEmpty nodeDataName="longitude"> <cms:out nodeDataName="latitude" var="latitude"/> <cms:out nodeDataName="longitude" var="longitude"/> <span class="dealerTitle"> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.interactiveMap" /><br /> </span> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.getDirections" var="getDirections"/> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.from" var="from"/> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.back" var="back"/> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.go" var="go"/> <script type="text/javascript"> //<![CDATA[ //used for show the panel with the road indications from the link //and hide the link used for open the panel function showPathPanel() { var div = document.getElementById("panelPath"); div.style.display = ""; var link = document.getElementById("linkPath"); link.style.display = "none"; } // The opposite of showPathPanel function function hidePathPanel() { var div = document.getElementById("panelPath"); div.style.display = "none"; var link = document.getElementById("linkPath"); link.style.display = ""; } //Used for open the Google Maps Page function openPath() { var txt = document.getElementById("sourcePath"); var from = txt.value.replace(/ /g,"+"); from = from.replace(/'/g,"%27"); var to= "BRICO CENTER ${dealerName} @${latitude},${longitude}"; window.open("http://maps.google.it/maps?daddr="+to+"&saddr="+from, "_blank"); } // Google maps main function function load() { if (GBrowserIsCompatible()) { // Get the map div var map = new GMap2(document.getElementById("map")); var info = "<div><h1><strong>${dealerName}</strong></h1><h2>${address}, ${number}</h2><h3>${phone} ${phoneNumber}</h3><br/><a id=\'linkPath\' onclick=\'showPathPanel();\' href=\'#interactiveMap\'>» ${getDirections}</a><div id=\'panelPath\' style=\'display:none\' class=\'iter\'>${from}: <input id=\'sourcePath\' type=\'text\' /><input type=\'button\' value=\'${go}\' onclick=\'openPath();\'/><br/></div></div>"; // Add controls to the map map.addControl(new GSmallMapControl()); // Identify the brico dealer var point = new GLatLng(${latitude}, ${longitude}); // Center the map in the brico dealer position map.setCenter(point, 13); // Marker var icon = new GIcon(); icon.iconSize = new GSize(73, 41); icon.shadowSize = new GSize(0, 0); icon.iconAnchor = new GPoint(6, 41); icon.infoWindowAnchor = new GPoint(5, 1); icon.image = "${pageContext.request.contextPath}/docroot/brico/images/icona_mappa.png"; var marker = new GMarker(point, icon); // Add the listener on the marker, in this way this show // the dealer information GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(info); }); // Add the marker to the map map.addOverlay(marker); } } //]]> </script> <fmt:message bundle="${bricoMessages}" key="jsp.brico.dealer.drivingDirections" /><br /> <a name="interactiveMap"> </a> <div id="map" style="width: 287px; height: 300px"></div> </cms:ifNotEmpty> </cms:ifNotEmpty> </div> <div id="bottom"></div> <div style="clear:both"></div> T.I.A. > Could you please post on the user list instead? This list is for > development of Magnolia itself as opposed to websites based on it. There > are more site developers on the user list who could help. > > Also the jsp you provided is the paragraph template and at issue is the edit > bar. Could you post on the user list your question and the jsp file that > render's the edit bar? > > --David > > Francesco Sblendorio wrote: >> >> Thank for your support. >> The JSP template file is here: http://www.sendspace.com/file/u0wv1x >> Tell me if it expired, so I'll post it again. >> >> P.S. Can I attach files in this mailing list? >> >> On Fri, Jul 11, 2008 at 4:35 PM, JIRA (on behalf of Gregory Joseph) >> <[EMAIL PROTECTED]> wrote: >> >>> >>> [ >>> http://jira.magnolia.info/browse/MAGNOLIA-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17061#action_17061 >>> ] >>> >>> Gregory Joseph commented on MAGNOLIA-2249: >>> ------------------------------------------ >>> >>> Please use the mailing lists (I just saw you did, so it's good ;)) or >>> your support channel if you're an EE customer. >>> It's most likely something wrong with one of your templates, so posting >>> it would help. >>> >>> >>>> >>>> JSP reads correctly, Dialog Windows writes badly >>>> ------------------------------------------------ >>>> >>>> Key: MAGNOLIA-2249 >>>> URL: http://jira.magnolia.info/browse/MAGNOLIA-2249 >>>> Project: Magnolia >>>> Issue Type: Bug >>>> Affects Versions: 3.5.2 >>>> Reporter: Francesco Sblendorio >>>> Assignee: Boris Kraft >>>> Attachments: bug.png >>>> >>>> >>>> I have built a website with Magnolia. Administrator people can insert >>>> contents by clicking con the "EDIT" green button on the top of the >>>> paragraphs. >>>> Now I have a problem: there is a paragraph, which JSP displays correct >>>> data, but clicking con "EDIT" button, all textboxes shown are empty. >>>> Navigating with JCR Browser I noticed that the old, right values are in >>>> the right place, while a new node named "0" has been created, and in this >>>> node there are new, empty "copies" of the old propeties. I attach a >>>> screenshot that shows that. >>>> How could have been happened? How can I solve that? >>>> >>> >>> -- >>> This message is automatically generated by JIRA. >>> - >>> If you think it was sent incorrectly contact one of the administrators: >>> http://jira.magnolia.info/secure/Administrators.jspa >>> - >>> For more information on JIRA, see: http://www.atlassian.com/software/jira >>> >>> >>> >>> > > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/ > ---------------------------------------------------------------- > ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/ ----------------------------------------------------------------
