[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [jfw] Bringing the forms package up to scratch



I would say that JForm needs a complete overhaul... While the fields are
okay, JForm itself is not really good... Basically, I'd like to see a
class that reads the XML (and potentially other form definition formats
as you described) in and then provides a unified interface to access
that data. Then you have a class that does the validation of data
against that first class and another that renders the form fields. Last
but not least, it would be cool if fields could define (via an XML) its
parameters and also render a non-form version of its data. Then you
could really create a Form component with JForm.

I currently don't like JForm, because the class is simply way to big and
includes way to many stuff for one class.

What I wrote above is A LOT to handle. You don't have to take all that
up by yourself. While I can't invest fulltime into this, I will be able
to support you with code review, etc. and I promise to test your PRs.
Just remember to not make them too big. Feel free to contact me
privately to give you support in this.

Hannes

Am 07.03.2014 11:30, schrieb Adam Bouqdib:
> Hi,
>
> I'm very interested in bringing the forms package up to scratch as I'm
> currently using it for a commercial project and already have extended
> it locally.
> I now want to give it a big push including creating forms from JSON &
> YAML, porting the new HTML5 fields from the Joomla! CMS and possibly
> add the ability for namespaced fields as discussed here
> <https://github.com/joomla/joomla-framework/issues/303#issuecomment-29673392>.
> I also noticed that when a field is set to required it only adds a
> class, rather than an attribute... what's that all about? :P
> Is the anything else that's import to include at this stage? Also in
> regards to field types...
>
> Since I'll invest quite a bit of time I wouldn't want to do any
> duplicate work so if anyone else is currently on the forms package
> please let me know.
>
> Thanks.
> -- 
> Framework source code: https://github.com/joomla/joomla-framework
> Visit http://developer.joomla.org for more information about
> developing with Joomla!
> ---
> You received this message because you are subscribed to the Google
> Groups "Joomla! Framework Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-framework+unsubscribe AT googlegroups.com
> <mailto:joomla-dev-framework+unsubscribe AT googlegroups.com>.
> Visit this group at http://groups.google.com/group/joomla-dev-framework.

-- 
Framework source code: https://github.com/joomla/joomla-framework
Visit http://developer.joomla.org for more information about developing with Joomla!
--- 
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-framework+unsubscribe AT googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-framework.