Now I'm looking at the DefaultWikiMacroFactory. I believe this is where the
macros are created.
Kasun.
On Thu, Apr 7, 2011 at 9:33 PM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com>wrote;wrote:
On Thu, Apr 7, 2011 at 17:57, Kasun Nishshanka
<nishshankak(a)gmail.com>
wrote:
On Thu, Apr 7, 2011 at 9:25 PM, Kasun Nishshanka
<nishshankak(a)gmail.com>
wrote:
>
>
> On Thu, Apr 7, 2011 at 9:01 PM, Thomas Mortagne
> <thomas.mortagne(a)xwiki.com> wrote:
>>
>> On Thu, Apr 7, 2011 at 17:27, Kasun Nishshanka <nishshankak(a)gmail.com>
>> wrote:
>> > Right now I'm looking at the entry point for the macros. I can see
that
>> > the
>> > parameters are typed in the parameters classes.
>>
>> Theses are java macros. The project is about wiki macros which are
>> wiki page based macro emulation rendering macros.
>>
>> See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
Can you please give a hint of where to look in
the code?
Ah, it is the xwiki-rendering-transformation-macro.
No, this is still about macro in general. Wiki macro are not part of
XWiki Rendering engin but XWiki platfom since it's very wiki oriented.
But you should also look at XWiki rendering to understand how java
macro work since wiki macro are supposed to emulate them.
It's a bit complex right now where will really be the code officially
with the move from svn to git but you can look at
https://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwi…
for now.
t
Kasun
>
> Kasun
>
>>
>> >
>> > Kasun
>> >
>> >
>> > On Thu, Apr 7, 2011 at 8:51 PM, Kasun Nishshanka
>> > <nishshankak(a)gmail.com>wrote;wrote:
>> >
>> >> Hi,
>> >>
>> >> In the rendering project I can see there are several in-built
macros.
>> >> Each
>> >> macro accept a Parameters class. Still I'm not sure about the
>> >> lifestyle of
>> >> these macro objects and I'm investigating in to it.
>> >>
>> >>
>> >> On Thu, Apr 7, 2011 at 6:58 PM, Kasun Nishshanka
>> >> <nishshankak(a)gmail.com>wrote;wrote:
>> >>
>> >>> Hi Thomas & Asiri,
>> >>>
>> >>> Thanks for pointing this out. Now I'm looking at the correct
place
>> >>> (rendering project)
>> >>>
>> >>> Thanks,
>> >>> Kasun
>> >>>
>> >>>
>> >>> On Thu, Apr 7, 2011 at 5:20 PM, Asiri Rathnayake <
>> >>> asiri.rathnayake(a)gmail.com> wrote:
>> >>>
>> >>>>
>> >>>>
>> >>>> On Thu, Apr 7, 2011 at 12:35 PM, Asiri Rathnayake <
>> >>>> asiri.rathnayake(a)gmail.com> wrote:
>> >>>>
>> >>>>> Hi Kasun,
>> >>>>>
>> >>>>> On Thu, Apr 7, 2011 at 12:22 PM, Kasun Nishshanka <
>> >>>>> nishshankak(a)gmail.com> wrote:
>> >>>>>
>> >>>>>> I went through the code and your UI for creating macros.
I can
see
>> >>>>>> you
>> >>>>>> are using Redeox for rendering the macros and other wiki
content.
>> >>>>>>
>> >>>>>
>> >>>>> AFAIK XWiki uses it's own rendering engine (for normal
wiki
content
>> >>>>> as
>> >>>>> well as macros) and Redeox was the old way of doing things.
XWiki
>> >>>>> rendering
>> >>>>> engine is at the heart of XWiki and you'd have to get
familiar
with
>> >>>>> XDOM
>> >>>>> (it's sort of an abstract syntax tree).
>> >>>>>
>> >>>>> see:
http://rendering.xwiki.org/xwiki/bin/view/Main/ (here
you
can
>> >>>>> learn a lot about
XWiki rendering engine)
>> >>>>>
>> >>>>
>> >>>> PS: This is how you'd write a macro in JAVA:
>> >>>>
http://rendering.xwiki.org/xwiki/bin/view/Main/ExtendingMacro
>> >>>>
>> >>>> As you'd guess, Wiki Macros function the same way except
that Wiki
>> >>>> Macros
>> >>>> take parameters from user input (taken from the wiki macro
object)
>> >>>> and
>> >>>> register macros on the fly with the macro manager. Look inside
the
>> >>>> wiki-macro module code base and you'll find a WikiMacro (or
>> >>>> something like
>> >>>> that) class which represent the class responsible for defining
a
>> >>>> wiki macro.
>> >>>>
>> >>>> It might sound scary initially and amount of information you
have
to
>> >>>> digest it bit large.
After all, this is at the heart of XWiki :)
>> >>>>
>> >>>> But for the proposal you need to show that you have adequate
>> >>>> knowledge
>> >>>> about the code base and you are capable of learning things fast.
If
>> >>>> you show
>> >>>> you can handle XWiki rendering code base, it might convince
Thomas
>> >>>> ;)
>> >>>>
>> >>>> Hope this helps!
>> >>>>
>> >>>> - Asiri
>> >>>>
>> >>>>
>> >>>>>
>> >>>>> I think macros come into play in the transformations phase
of
>> >>>>> rendering.
>> >>>>> It's not that difficult once you get used to it.
>> >>>>>
>> >>>>> Have fun!
>> >>>>>
>> >>>>> - Asiri
>> >>>>>
>> >>>>>
>> >>>>>>
>> >>>>>> So I believe there are two high level goals in the
project.
>> >>>>>>
>> >>>>>> 1. Design the UI to support parameter types for macros
>> >>>>>> 2. When the information is transferred to the engine use
the
typed
>> >>>>>> parameters to
create the macro.
>> >>>>>>
>> >>>>>> Can you please point me to the place in code where
these
>> >>>>>> information
>> >>>>>> from the UI is transferred to the back end?
>> >>>>>>
>> >>>>>> Kind regards.
>> >>>>>>
>> >>>>>>
>> >>>>>> On Thu, Apr 7, 2011 at 12:20 AM, Kasun Nishshanka <
>> >>>>>> nishshankak(a)gmail.com> wrote:
>> >>>>>>
>> >>>>>>> Hi Asiri,
>> >>>>>>> Thank you for the information. I am looking at the
details now,
>> >>>>>>> and
>> >>>>>>> hoping to submit the proposal tomorrow.
>> >>>>>>> -Kasun
>> >>>>>>>
>> >>>>>>> On Wed, Apr 6, 2011 at 9:42 PM, Asiri Rathnayake
<
>> >>>>>>> asiri.rathnayake(a)gmail.com> wrote:
>> >>>>>>>
>> >>>>>>>> Hi Kasun,
>> >>>>>>>>
>> >>>>>>>> The dead-line for applications is closing:
>> >>>>>>>>
http://www.google-melange.com/gsoc/events/google/gsoc2011
>> >>>>>>>>
>> >>>>>>>> May be you should contact devs on the IRC, do a
quick research
>> >>>>>>>> and
>> >>>>>>>> put together a proposal asap? I think Thomas
(IRC Nick:
>> >>>>>>>> tmortagne) knows a
>> >>>>>>>> lot about Wiki Macros implementation and
probably he has more
>> >>>>>>>> information on
>> >>>>>>>> typing parameters.
>> >>>>>>>>
>> >>>>>>>> Hope this helps.
>> >>>>>>>>
>> >>>>>>>> - Asiri
>> >>>>>>>>
>> >>>>>>>> On Wed, Apr 6, 2011 at 4:49 PM, Kasun Nishshanka
<
>> >>>>>>>> nishshankak(a)gmail.com> wrote:
>> >>>>>>>>
>> >>>>>>>>> Hi,
>> >>>>>>>>>
>> >>>>>>>>> I am a student of University of Moratuwa Sri
Lanka, currently
>> >>>>>>>>> following my
>> >>>>>>>>> Chemical and Process Engineering degree.
Although I'm not a
>> >>>>>>>>> computer
>> >>>>>>>>> science
>> >>>>>>>>> student I found it is a very interesting
subject, especially
>> >>>>>>>>> Java
>> >>>>>>>>> programming. I have experience in developing
Java programs
and
>> >>>>>>>>> web
>> >>>>>>>>> based
>> >>>>>>>>> application using JSP technologies. Last
year got the chance
to
>> >>>>>>>>>
play
>> >>>>>>>>> with
>> >>>>>>>>> the xWiki and I must say I really enjoyed
working with it. So
I
>> >>>>>>>>>
thought it
>> >>>>>>>>> is better if I can participate in the XWiki
project through
the
>> >>>>>>>>>
GSoC
>> >>>>>>>>> 2011.
>> >>>>>>>>>
>> >>>>>>>>> Recently I had my 3rd semester end exam and
was unable to
send
>> >>>>>>>>> an
>> >>>>>>>>> application earlier, since my exam is now
over and having two
>> >>>>>>>>> months
>> >>>>>>>>> of
>> >>>>>>>>> vacation I'm pretty sure that I can
successfully participate
in
>> >>>>>>>>> a
>> >>>>>>>>> project
>> >>>>>>>>> for XWIki.
>> >>>>>>>>>
>> >>>>>>>>> I looked at the project ideas in your web
site and found some
>> >>>>>>>>> of the
>> >>>>>>>>> ideas
>> >>>>>>>>> are quite interesting. I'm interested in
the following two
>> >>>>>>>>> ideas.
>> >>>>>>>>>
>> >>>>>>>>> Add support for parameters types in Wiki
Macros
>> >>>>>>>>> Structural Search and Replace
>> >>>>>>>>>
>> >>>>>>>>> I really appreciate your feed back and
guidance on this
matter.
>>>>>>>>>
>>>>>>>>> Kind Regards,
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Nishshanka Kamburugamuwa.
>>>>>>>>> University of Moratuwa
>>>>>>>>> Moratuwa, Sri Lanka.
>>>>>>>>> _______________________________________________
>>>>>>>>> devs mailing list
>>>>>>>>> devs(a)xwiki.org
>>>>>>>>>
http://lists.xwiki.org/mailman/listinfo/devs
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Kasun Nishshanka.
>>>>>>> University of Moratuwa
>>>>>>> Moratuwa, Sri Lanka.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Kasun Nishshanka.
>>>>>> University of Moratuwa
>>>>>> Moratuwa, Sri Lanka.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Kasun Nishshanka.
>>> University of Moratuwa
>>> Moratuwa, Sri Lanka.
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Kasun Nishshanka.
>> University of Moratuwa
>> Moratuwa, Sri Lanka.
>>
>>
>>
>>
>
>
> --
> Kasun Nishshanka.
> University of Moratuwa.
> Moratuwa-Sri Lanka.
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/devs
>
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Kasun Nishshanka.
University of Moratuwa.
Moratuwa-Sri Lanka.
--
Kasun Nishshanka.
University of Moratuwa.
Moratuwa-Sri Lanka.
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs