El mié, 08-02-2006 a las 18:00 +0100, Thorsten Scherler escribió:
> Hi all, 
> 
> I am trying to extend the metadata tab in site that we can edit custom
> metadata in 1.4.x.
> 
> Now the integration in the meta.jx and corresponding usecase was quite
> easy, but now I try to save and get always an exception regarding
> namespaces.
> 
> I tracked it down and found out that in MetaDataImpl.java the method
> writeElemetValue(...) is throwing this exception, when 
> Element valueElement =helper.createElement(...) is called. 
> 
> I further found out that I get two times my elementName passed to the
> method. 
> 1) without prefix -> test
> 2) with prefix -> lenya:test
> 
> The 1) is no problem, since it get prefixed (to lenya:test) by the
> method but 2) is causing the problem since it get as well prefixed
> (lenya:lenya:test).
> 
> Anybody knows what is going on?
> 
> Anyone has successfully edit custom metadata via an usecase?

I activated the ability to edit custom metadata.
http://svn.apache.org/viewcvs?rev=376329&view=rev

The above described problem I fixed by:
http://svn.apache.org/viewcvs.cgi/lenya/trunk/src/java/org/apache/lenya/cms/metadata/MetaDataImpl.java?r1=376328&r2=376329&rev=376329&view=diff&diff_format=h

The whole implementation of metadata is IMO way too much DC specific and
we should take the opportunity when moving to JCR to re write the whole
lot.

I will add some notes to the docu how you can extend lenya with custom
metadata and how you can edit them. 

See it in action on our zone:
http://lenya.zones.apache.org:9999/default/authoring/index.html?lenya.usecase=tab.meta

HTH and enjoy

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to