Plse checkout this request for a Date plugin, with localized format.
http://issues.apache.org/jira/browse/JSPWIKI-240

Although it may not yet solve the form related use-case.


dirk


On Fri, Dec 12, 2008 at 11:32 AM, Fischer, Nicola (ORISA Software
GmbH) <[email protected]> wrote:
> No currenttimeplugin will not get parsed by the formplugin. ;-)
>
> So either i can motivate the form plugin to parse the currenttime plugin and 
> give me the date or I need to add it a a wikivariable.
>
>
> -----Ursprüngliche Nachricht-----
> Von: Harry Metske [mailto:[email protected]]
> Gesendet: Freitag, 12. Dezember 2008 11:24
> An: [email protected]
> Betreff: Re: WikiVariables
>
> Sounds like a fair requirement to me.
> I'm assuming you can't use the CurrentTimePlugin to achieve your goal ?
> (it's a plugin, not a variable)
>
> Janne, and others what do you think ?
>
> An extra method on SystemVariables : getCurrentTime() returning the localized 
> current time ?
> Don't forget the unit test for this too.
> Do we also need something else, current time on the server ?
>
> Harry
>
> 2008/12/12 Fischer, Nicola (ORISA Software GmbH) <[email protected]>
>
>> [offtopic: I started this topic in userlist...now seems to be better
>> in the developer mailinglist]
>>
>> If I change the VariableManager I would prefer to commit this changes
>> to the trunk. Otherwise I get problems with the next JSPWiki update.
>>
>> So before commit I better ask, if you have ever felt like: "oh the
>> date would be a nice wikivariable-to-have feature"
>>
>>
>> (
>> -----Ursprüngliche Nachricht-----
>> Von: Janne Jalkanen [mailto:[email protected]]
>> Gesendet: Mittwoch, 10. Dezember 2008 23:58
>> An: [email protected]
>> Betreff: Re: WikiVariables
>>
>>
>> You can add your own variables rather easily by editing the
>> VariableManager, but no, no other easy way.
>>
>> Constants are rather easy, because anything set with [{SET}] will also
>> be resolved by the VariableManager - as is also mostly everything from
>> jspwiki.properties.
>>
>> /Janne
>>
>> On Dec 10, 2008, at 12:26 , Fischer, Nicola (ORISA Software GmbH) wrote:
>>
>> > Hi,
>> >
>> > I would like to put the actual date as a input to a wikiform. I have
>> > seen that I can use wikivariables as formelements.
>> >
>> > Example
>> > --------------------------------------
>> > [{FormSet form='newLolForm' newPageName='test' test='{$uptime}'}]
>> >
>> >
>> > [{
>> > FormOpen form='newLolForm'}]
>> >
>> > ||Title| [{FormInput name='title' type='text' size='10'}]
>> > ||date| [{FormInput name='test' type='hidden' size='10'}]
>> > --------------------------------------
>> >
>> > Unfortunatly there is no wikivariable for the current Date. I have
>> > seen, that I can catch a lot of wikivariables from properties and
>> > the context.
>> >
>> > Is it possible to add the date to wikivariables? Even better the
>> > Data in a special format(like DD-mm-YYYY)?
>> >
>> > Regards,
>> > Nicola Fischer
>> >
>> >
>> > ____________
>> > Virus checked by G DATA AntiVirus
>> > Version: AVF 19.181 dated 10.12.2008
>>
>>
>>
>> ____________
>> Virus checked by G DATA AntiVirus
>> Version: AVF 19.183 dated 11.12.2008
>>
>
>
> ____________
> Virus checked by G DATA AntiVirus
> Version: AVF 19.183 dated 11.12.2008
>

Reply via email to