Home
TeamSite
TeamSite, LiveSite and OpenDeploy
How to populate a Datum of type String through Generator and pojo?
System
I'm trying to populate a Component Datum through a POJO-call for a String Datum - have anyone managed to do that?
Populating a drop-down works fine (type: selectSingle) but when it comes to a simple text-box I can not find out how the Document returned from the POJO-call is supposed to look like.
The calling code in component-Content XML as below:
< Datum ID="m_from-date" Name="currentDate" Type="String">
< Generator Method="getCurrentDate" Object="no.teamsite.sitepublisher.external.Page"/>
< /Datum>
The method getCurrentDate returns a Document - I have tried several different formats such as:
< value>mycurrentdate< /value>
< string>mycurrentdate< /string>
but can not make it work (I have assured that the method is called by following the log files).
Any suggestions/comment are greatly appreciated
Kind regards
Martin
Find more posts tagged with
Comments
There are no comments yet