You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Emond Papegaaij (JIRA)" <my...@incubator.apache.org> on 2005/06/29 21:28:01 UTC

[jira] Created: (MYFACES-294) DummyFormUtils extendability

DummyFormUtils extendability
----------------------------

         Key: MYFACES-294
         URL: http://issues.apache.org/jira/browse/MYFACES-294
     Project: MyFaces
        Type: New Feature
    Versions: 1.0.9 beta    
    Reporter: Emond Papegaaij
    Priority: Minor


During the development of a framework based on Struts and JSF (using the struts-faces integration library) I came accross a problem with DummyFormUtils. The current way DymmyFormUtils is handled does not allow the developer to extend the behaviour in any way. For the struts-faces library a token field needs to be added to the form. This token always needs to be submitted, regardless of the form used (input or dummy). Currently the only way of adding such a field seems to be changing the source of DummyFormUtils; not a very flexible and reusable solution.

The main cause of this is the use of a static method for writing the dummy form and the lack of a factory for creating an instance of the DummyFormUtils. I propose DummyFormUtils is transformed into a singleton with a configurable implementation (probably through an interface). Futhermore the writeDummyForm should have a way of extending the default behaviour, probably with a protected method responsible for writing the internals of the form.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira