Hi Vineet,
Thanks for the answer. This time I am sorry that didn't find time to work
on this issue the last week. I wanted to complete it during the Forge Hack
Night, but I there was nobody from the Forge experts there.
Anyway, I will use this media to drive the open points cleared. I do want
to go with option two. I went through the docs and compared them to the
Forge implementation. I have to pass a Configuration object to
the EntityWidgetBuilderConfig constructor upon
creating EntityWidgetBuilder. Unfortunately I couldn't find a place where
these constructors are invoked. Can you please guide me one step further? :)
Thanks,
Ivan
On Wed, May 21, 2014 at 4:46 PM, Vineet Reynolds Pereira <
vpereira(a)redhat.com> wrote:
Hey Ivanov,
Sorry about the late reply and thanks for taking this on. On reviewing
the code, there are two ways to fix this:
1. the Forge Configuration object for the project could be used to
store the target directory provided by the user. This was the approach used
in Forge 1, but was unfortunately missed out in Forge 2. The configuration
being empty and unused is the root cause of this bug.
2. the metawidget could be initialized in a programmatic manner like
described in this section :
http://metawidget.sourceforge.net/doc/reference/en/html/ch02s04.html#sect...
Currently the XML route is used, and this prevents variable
information like the target directory from being passed onto the widget,
except through some shared store (like the Forge Configuration in the above
point).
I'd recommend this way going forward, but I'm ok if you stick to
resolving the issue through (1) instead of (2).
Thanks,
Vineet
----- Original Message -----
> From: "Ivan St. Ivanov" <ivan.st.ivanov(a)gmail.com>
> To: "forge-dev List" <forge-dev(a)lists.jboss.org>
> Sent: Sunday, May 18, 2014 1:30:23 AM
> Subject: [forge-dev] Passing parameters from command to a meta widget
>
> Hey folks,
>
> I am working on
https://issues.jboss.org/browse/FORGE-1787 . As you
might
> read in the comments, I found that in order to adapt the outcome of a
link,
> I need to pass somehow the webroot from the command to the
> EntityWidgetBuilder.
>
> Does anybody know the way I can pass this info?
>
> Thanks,
> Ivan
>
> _______________________________________________
> forge-dev mailing list
> forge-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/forge-dev
_______________________________________________
forge-dev mailing list
forge-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev