Simon Groenewolt wrote:
hi,
I would like to create a node and add an alias to it at the same time
like this:
<mm:createnode type="teams" id="team3">
<mm:setfield name="name" >team3</mm:setfield>
<mm:createalias>team3</mm:createalias>
</mm:createnode>
however if I try that I get the following exception:
> org.apache.jasper.JasperException: Cannot add alias to a new node
that has not been committed.
> at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
> at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
Using
<mm:createnode type="teams" id="team3">
<mm:setfield name="name" >team3</mm:setfield>
</mm:createnode>
<mm:node referid="team3">
<mm:createalias>team3</mm:createalias>
</mm:node>
works, but that looks a bit 'too much'.
Bug or feature?
groeten,
Simon
Feature, look at the scope of the first tag and it's error message. What
you try to do is create an alias for a node that hasn't been committed
yet (the tag hasn't been cloded yet), in your second example the
createnode tag has been closed (and de node is committed).
--
Lucien Immink
VPRO digitaal
E: [EMAIL PROTECTED]
T: +31 35 6712728
M: +31 6 26264856