You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by "Fischer, Nicola (ORISA Software GmbH)" <fi...@orisa.de> on 2008/12/10 11:26:45 UTC
WikiVariables
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
Re: WikiVariables
Posted by Dirk Frederickx <di...@gmail.com>.
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) <fi...@orisa.de> 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:harry.metske@gmail.com]
> Gesendet: Freitag, 12. Dezember 2008 11:24
> An: jspwiki-dev@incubator.apache.org
> 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) <fi...@orisa.de>
>
>> [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:Janne.Jalkanen@ecyrd.com]
>> Gesendet: Mittwoch, 10. Dezember 2008 23:58
>> An: jspwiki-user@incubator.apache.org
>> 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
>
AW: WikiVariables
Posted by "Fischer, Nicola (ORISA Software GmbH)" <fi...@orisa.de>.
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:harry.metske@gmail.com]
Gesendet: Freitag, 12. Dezember 2008 11:24
An: jspwiki-dev@incubator.apache.org
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) <fi...@orisa.de>
> [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:Janne.Jalkanen@ecyrd.com]
> Gesendet: Mittwoch, 10. Dezember 2008 23:58
> An: jspwiki-user@incubator.apache.org
> 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
Re: WikiVariables
Posted by Harry Metske <ha...@gmail.com>.
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) <fi...@orisa.de>
> [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:Janne.Jalkanen@ecyrd.com]
> Gesendet: Mittwoch, 10. Dezember 2008 23:58
> An: jspwiki-user@incubator.apache.org
> 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
>
AW: WikiVariables
Posted by "Fischer, Nicola (ORISA Software GmbH)" <fi...@orisa.de>.
[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:Janne.Jalkanen@ecyrd.com]
Gesendet: Mittwoch, 10. Dezember 2008 23:58
An: jspwiki-user@incubator.apache.org
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
Re: WikiVariables
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
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