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

Reply via email to