MMBase

A field with e.g. the datatype created is seen as an editable field, that's not allways wanted

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.8.4
  • Fix Version/s: 1.8.7
  • Component/s: Taglib
  • Description:
    Hide
    Normally it comes in handy that such a field is shown in a generic editor, but not when you are trying to edit its neighboring fields in the following way:

    <%@ page language="java" contentType="text/html" session="false"
    %><%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm"
    %><mm:cloud loginpage="login.jsp" rank="basic user">
    <mm:import externid="nr" />
    <mm:present referid="nr">
      <mm:node number="$nr">
        <mm:fieldlist type="edit">
        <mm:import id="fld" reset="true"><mm:fieldinfo type="name" /></mm:import>
        <mm:import id="fldname" reset="true">_<mm:fieldinfo type="name" /></mm:import>
        <mm:import externid="$fldname" />
        <mm:setfield name="$fld"><mm:write referid="$fldname" /></mm:setfield>
        </mm:fieldlist>

    <mm:redirect page="../edit.jsp" referids="nr">
    <mm:param name="msg">De wijzigingen zijn bewaard.</mm:param>
    </mm:redirect>
      </mm:node>
    </mm:present>
    </mm:cloud>
    Show
    Normally it comes in handy that such a field is shown in a generic editor, but not when you are trying to edit its neighboring fields in the following way: <%@ page language="java" contentType="text/html" session="false" %><%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm" %><mm:cloud loginpage="login.jsp" rank="basic user"> <mm:import externid="nr" /> <mm:present referid="nr">   <mm:node number="$nr">     <mm:fieldlist type="edit">     <mm:import id="fld" reset="true"><mm:fieldinfo type="name" /></mm:import>     <mm:import id="fldname" reset="true">_<mm:fieldinfo type="name" /></mm:import>     <mm:import externid="$fldname" />     <mm:setfield name="$fld"><mm:write referid="$fldname" /></mm:setfield>     </mm:fieldlist> <mm:redirect page="../edit.jsp" referids="nr"> <mm:param name="msg">De wijzigingen zijn bewaard.</mm:param> </mm:redirect>   </mm:node> </mm:present> </mm:cloud>

Activity

People

Dates

  • Created:
    2007-10-19 20:16
    Updated:
    2008-09-25 01:08
    Resolved:
    2008-09-25 01:08