[forge-dev] [Need Help to do some updates on my forge folder to get scaffold customized]

Lincoln Baxter, III lincolnbaxter at gmail.com
Tue Jan 15 17:38:45 EST 2013


No problem! Whatever your schedule permits :)


On Tue, Jan 15, 2013 at 6:40 AM, Ahmed ELJABIRI <a.eljabiri at gmail.com>wrote:

> Hi Lincoln,
>
> I'll do what you advised me but after finishing a project which the
> deadline is near :(
>
> Thank you so much for you help and wish you a good day.
>
>
>
> 2013/1/14 Lincoln Baxter, III <lincolnbaxter at gmail.com>
>
> Okay, time for drastic measures.
>>
>> Launch forge with:
>>
>> `forge --debug` and attach your eclipse debugger via:
>> http://forge.jboss.org/docs/using/debugging-forge.html
>>
>> See if you can trace the problem. Wish I could be of more help here, but
>> no trace makes things difficult!
>>
>> ~Lincoln
>>
>>
>> On Mon, Jan 14, 2013 at 4:20 AM, Ahmed ELJABIRI <a.eljabiri at gmail.com>wrote:
>>
>>> Hi Lincoln,
>>>
>>> When i type 'set VERBOSE true' and run 'scaffold from-entity' i don't
>>> get the full stack trace i got just following output :
>>>
>>> ***INFO*** Using currently installed scaffold [faces]
>>> ***ERROR*** Exception encountered: (type "set VERBOSE false" to disable
>>> stack traces)
>>>
>>> Thanks in advence.
>>>
>>>
>>>
>>>
>>> 2013/1/12 Lincoln Baxter, III <lincolnbaxter at gmail.com>
>>>
>>> My first step would be to type 'set VERBOSE true' before running your
>>>> scaffold. That should give you the full stack trace :)
>>>>
>>>>
>>>> On Sat, Jan 12, 2013 at 7:37 AM, Ahmed ELJABIRI <a.eljabiri at gmail.com>wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm sorry for my request a little late.
>>>>>
>>>>>  I have developed the Primefaces plugin (PrimeFacesWidgetBuilder)
>>>>> containing the six classes : HtmlCalendar, HtmlColorPicker, ....
>>>>> PrimeFacesWidgetBuilder as those
>>>>>
>>>>> of the richfaces, and i had build a new metawidget-all.jar.
>>>>>
>>>>> Thereafter, i had updated the FacesScaffold Class to add
>>>>> insertPrimeFacesWidgetBuilder() and setupPrimeFaces() methods of
>>>>> "forge-scaffold-faces" Forge module.
>>>>>
>>>>> But once I do "# scaffold from-entity" command, i get the following
>>>>> ERROR :
>>>>>
>>>>> ****ERROR*** Exception encountered: javax.faces.component.UIComponent
>>>>> from [Module "org.jboss.forge.scaffold.impl:main" from local module loader
>>>>> @1b7a216 (roots:
>>>>> /home/ahmed/sandbox/tools/Forge/forge-distribution-1.1.3.Final/modules,/home/ahmed/.forge/plugins,/home/ahmed/sandbox/tools/eclipse_indigo/eclipse/plugins/org.jboss.tools.forge.runtime.ext_1.0.1.v20120715-0232-H99-Final/modules)]
>>>>> (type "set VERBOSE true" to enable stack traces)*
>>>>>
>>>>>
>>>>> Any suggestions or help about this ERROR ?
>>>>>
>>>>> Thank you so much in advence.
>>>>>
>>>>>
>>>>>
>>>>> 2013/1/4 Lincoln Baxter, III <lincolnbaxter at gmail.com>
>>>>>
>>>>> Yes, however make sure you are using the github repository to get the
>>>>>> code, not just unzipping the JARs :)
>>>>>>
>>>>>> http://github.com/forge/core
>>>>>>
>>>>>>
>>>>>> On Thu, Jan 3, 2013 at 7:28 PM, George Gastaldi <ggastald at redhat.com>wrote:
>>>>>>
>>>>>>> Always use the latest version , 1.1.3-Final in the case :)
>>>>>>>
>>>>>>> Em 03/01/2013, às 21:30, Richard Kennard <
>>>>>>> richard at kennardconsulting.com> escreveu:
>>>>>>>
>>>>>>> > Ahmed,
>>>>>>> >
>>>>>>> > Sounds great! Note there is an existing RichFacesWidgetBuilder in
>>>>>>> Forge. The intent would be you create a new PrimeFacesWidgetBuilder for
>>>>>>> purely PrimeFaces
>>>>>>> > components, and combine that with RichFacesWidgetBuilder and
>>>>>>> HtmlWidgetBuilder (and probably ReadOnlyWidgetBuilder) by using
>>>>>>> CompositeWidgetBuilder.
>>>>>>> >
>>>>>>> > You should *not* need to create your own WidgetBuilder that
>>>>>>> creates both PrimeFaces *and* RichFaces components.
>>>>>>> >
>>>>>>> > Re: the version of the sources, that's one for Lincoln :)
>>>>>>> >
>>>>>>> > Regards,
>>>>>>> >
>>>>>>> > Richard.
>>>>>>> >
>>>>>>> > On 3/01/2013 9:51 PM, Ahmed ELJABIRI wrote:
>>>>>>> >> Hi,
>>>>>>> >>
>>>>>>> >> Thank you Lincoln & Richard for your answers and for your help.
>>>>>>> >>
>>>>>>> >> I'm actually creating a custom WidgetBuilder based on Primefaces
>>>>>>> components as with RicheFaces one.
>>>>>>> >>
>>>>>>> >> Once finish the module, I will integrate the jar in the
>>>>>>> metawidget-all-2.4, and then I'll edit the file metawidget-entity.xml, and
>>>>>>> also the two classes
>>>>>>> >> FacesScaffold and
>>>>>>> >>
>>>>>>> >> EntityWidgetBuilder to adapt them to the changes.
>>>>>>> >>
>>>>>>> >> But an other question concerning forge sources, should i use
>>>>>>> those of forge-1.1.3.Final(
>>>>>>> https://github.com/forge/core/tree/1.1.3.Final) or those
>>>>>>> >>
>>>>>>> >> of 1.1.2.Final that we use actually ?
>>>>>>> >>
>>>>>>> >> Thank you so much in advence.
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> 2013/1/2 Lincoln Baxter, III <lincolnbaxter at gmail.com <mailto:
>>>>>>> lincolnbaxter at gmail.com>>
>>>>>>> >>
>>>>>>> >>    Well... it probably won't happen until we get Forge 2 out the
>>>>>>> door, sadly, unless someone out there has some time to contribute to make
>>>>>>> it happen.
>>>>>>> >>    Forge 2 will make this much easier to do and hopefully we will
>>>>>>> re-design the whole scaffold architecture so that resources can be made
>>>>>>> available to
>>>>>>> >>    metawidget from other addons more easily (actually this is
>>>>>>> already working as seen in the resource addon.)
>>>>>>> >>
>>>>>>> >>
>>>>>>> https://github.com/forge/core/blob/2.0/resource/api/src/main/java/org/jboss/forge/resource/ResourceFactory.java#L78
>>>>>>> >>
>>>>>>> >>    If we just want to be able to add template resources from
>>>>>>> disk, then that would be fine as well, but I'd want to know what folks
>>>>>>> think is a
>>>>>>> >>    reasonably friendly way of doing this for end users. I really
>>>>>>> don't know what would be good/acceptable.
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>    On Wed, Jan 2, 2013 at 5:08 PM, Richard Kennard <
>>>>>>> richard at kennardconsulting.com <mailto:richard at kennardconsulting.com>>
>>>>>>> wrote:
>>>>>>> >>
>>>>>>> >>        Ahmed,
>>>>>>> >>
>>>>>>> >>        Yes - much of what you want to accomplish can be done by
>>>>>>> writing a custom WidgetBuilder (see
>>>>>>> >>
>>>>>>> http://metawidget.org/doc/reference/en/html/ch02s04.html#section-architecture-widgetbuilders-implementing-your-own)
>>>>>>> and then modifying
>>>>>>> >>        metawidget-entity.xml to hook it in. You may also modify
>>>>>>> the /resources/scaffold/faces templates (create.xhtml, search.xhtml etc).
>>>>>>> >>
>>>>>>> >>        The hard part is how to actually *get at* these files to
>>>>>>> modify them. This has been an outstanding issue for some time. Lincoln can
>>>>>>> we make a New
>>>>>>> >>        Years resolution to get some movement on this?
>>>>>>> https://issues.jboss.org/browse/FORGEPLUGINS-68
>>>>>>> >>
>>>>>>> >>        For now you probably need to repackage your own plugin.
>>>>>>> >>
>>>>>>> >>        Regards,
>>>>>>> >>
>>>>>>> >>        Richard.
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>        On 3/01/2013 8:05 AM, Lincoln Baxter, III wrote:
>>>>>>> >>
>>>>>>> >>            Hello Ahmed,
>>>>>>> >>
>>>>>>> >>            Welcome to the list.
>>>>>>> >>
>>>>>>> >>            At first glance, it seems that you should be able to
>>>>>>> do this relatively simply by modifying the metawidget XML configuration,
>>>>>>> and perhaps
>>>>>>> >>            providing your own generation class, but I will need
>>>>>>> to defer you to Richard Kennard, the author of Metawidget, since he will
>>>>>>> know the answer
>>>>>>> >>            (and hopefully be able to tell you how to proceed
>>>>>>> without too much trouble on his part.)
>>>>>>> >>
>>>>>>> >>            I am not too knowledgeable about this part of Forge.
>>>>>>> I've also copied a few people who might be able to give advice with their
>>>>>>> experience
>>>>>>> >>            writing custom scaffolds.
>>>>>>> >>
>>>>>>> >>            ~Lincoln
>>>>>>> >>
>>>>>>> >>            On Wed, Jan 2, 2013 at 6:19 AM, Ahmed ELJABIRI <
>>>>>>> a.eljabiri at gmail.com <mailto:a.eljabiri at gmail.com> <mailto:
>>>>>>> a.eljabiri at gmail.com
>>>>>>> >>            <mailto:a.eljabiri at gmail.com>>> wrote:
>>>>>>> >>
>>>>>>> >>                Ahmed
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>            --
>>>>>>> >>            Lincoln Baxter, III
>>>>>>> >>            http://ocpsoft.org
>>>>>>> >>            "Simpler is better."
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>    --
>>>>>>> >>    Lincoln Baxter, III
>>>>>>> >>    http://ocpsoft.org
>>>>>>> >>    "Simpler is better."
>>>>>>> >>
>>>>>>> >>    _______________________________________________
>>>>>>> >>    forge-dev mailing list
>>>>>>> >>    forge-dev at lists.jboss.org <mailto:forge-dev at lists.jboss.org>
>>>>>>> >>    https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> --
>>>>>>> >>
>>>>>>> >> Best Regards,
>>>>>>> >> ---------------------
>>>>>>> >>
>>>>>>> >> Ahmed EL JABIRI
>>>>>>> >> Senior JEE Developer at Ardass Conseil
>>>>>>> >> e-mail : ahmed.eljabiri at ardassconseil.com <mailto:
>>>>>>> ahmed.eljabiri at ardassconseil.com>
>>>>>>> >> Phone : +212 668 204 835
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> _______________________________________________
>>>>>>> >> forge-dev mailing list
>>>>>>> >> forge-dev at lists.jboss.org
>>>>>>> >> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>>>> >
>>>>>>> > _______________________________________________
>>>>>>> > forge-dev mailing list
>>>>>>> > forge-dev at lists.jboss.org
>>>>>>> > https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> forge-dev mailing list
>>>>>>> forge-dev at lists.jboss.org
>>>>>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Lincoln Baxter, III
>>>>>> http://ocpsoft.org
>>>>>> "Simpler is better."
>>>>>>
>>>>>> _______________________________________________
>>>>>> forge-dev mailing list
>>>>>> forge-dev at lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Best Regards,
>>>>> ---------------------
>>>>>
>>>>> Ahmed EL JABIRI
>>>>> Senior JEE Developer at Ardass Conseil
>>>>> e-mail : ahmed.eljabiri at ardassconseil.com
>>>>> GSM : +212 668 204 835
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> forge-dev mailing list
>>>>> forge-dev at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lincoln Baxter, III
>>>> http://ocpsoft.org
>>>> "Simpler is better."
>>>>
>>>> _______________________________________________
>>>> forge-dev mailing list
>>>> forge-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>> ---------------------
>>>
>>> Ahmed EL JABIRI
>>> Senior JEE Developer at Ardass Conseil
>>> e-mail : ahmed.eljabiri at ardassconseil.com
>>> Phone N° : +212 668 204 835
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> forge-dev mailing list
>>> forge-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>
>>>
>>
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.org
>> "Simpler is better."
>>
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>>
>
>
> --
>
> Best Regards,
> ---------------------
>
> Ahmed EL JABIRI
> Senior JEE Developer at Ardass Conseil
> e-mail : ahmed.eljabiri at ardassconseil.com
> Phone N° : +212 668 204 835
>
>
>
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>
>


-- 
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20130115/6f4a0639/attachment-0001.html 


More information about the forge-dev mailing list