You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(37) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(37) |
Feb
(18) |
Mar
(33) |
Apr
(8) |
May
(7) |
Jun
(13) |
Jul
(20) |
Aug
|
Sep
|
Oct
(1) |
Nov
(5) |
Dec
(2) |
2003 |
Jan
|
Feb
(7) |
Mar
(3) |
Apr
(15) |
May
(7) |
Jun
(6) |
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
2004 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(5) |
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(3) |
Dec
|
From: Anthony E. <me...@an...> - 2003-06-27 15:04:09
|
Are you sure you are using version 1.3.1? I thought I had fixed this, although I have not tested it in Websphere. Sincerely, Anthony Eden Joseph To wrote: > Hi All, > I came across FormProc and try to load the example war > into Websphere App Dev 5.0. When I tried to run > index.jsp on the server, I got a form configuration > not found. > Any ideas on how to fix this? > > I am testing the latest version of formproc 1.3. > The example in jar file works though when I import it > as a Java Application. > > Thanks in advance. > > Joe > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > FormProc-developer mailing list > For...@li... > https://lists.sourceforge.net/lists/listinfo/formproc-developer |
From: Joseph To <jt...@ya...> - 2003-06-27 04:06:59
|
Hi All, I came across FormProc and try to load the example war into Websphere App Dev 5.0. When I tried to run index.jsp on the server, I got a form configuration not found. Any ideas on how to fix this? I am testing the latest version of formproc 1.3. The example in jar file works though when I import it as a Java Application. Thanks in advance. Joe __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Anthony E. <me...@an...> - 2003-06-09 16:20:13
|
Sorry about that last spam that got through. I have changed the mailing list setup so that you must be a member to post. Sincerely, Anthony Eden |
From: Zachariah F. <0of...@ao...> - 2003-06-09 15:47:50
|
<p>Curious fms...@li... ?? <a href=3D"http://de...@ww.../crammink?gnmisleb"></p= > <p><img src=3D"http://con...@im.../Snapshots/inbox@107891036306= 845.jpg ?state"> </a></p> <br> <br>This will piss off my BF!! <br>SHHHHHHHHHHH! <br> <br> <a href=3D"http://acq...@ww.../crammink/r.php">Cease-cont= actletterhead</a></font></td> avimss zmzk ziji brgtjkfxm clx xk xftlbcr zrxk x vusxj mfibl gok jzvtou |
From: Anthony E. <me...@an...> - 2003-05-13 17:51:43
|
I like the idea, I just don't have the time to implement it right now. If someone wants to tackle this and contribute the code to the code base then I will be happy to include it. Sincerely, Anthony Eden Edgar González wrote: > Anthony, > > Suppose that I got several html fields with parts of a datetime value > (year, month, day, hour, minutes) and I want to convert this field in > one java.util.Date value. > > What do you think about implement some kind of "group" converter > (follow the concept of group-validators) ? > > ---------------------------------------------------------------------------- > Edgar Gonzalez Gonzalez VALHALLA Project, s.a. Chief Technology > Officer Web: www.valhallaproject.com E-mail: eg...@va... > Phone: +58-212-242.4379 / 6662 / 4055 / 6475 Fax: +58-212-242.6809 > > "The limits of my language mean the limits of my world." Ludwig > Wittgenstein > > ---------------------------------------------------------------------------- > > |
From: <eg...@va...> - 2003-05-12 22:52:12
|
Anthony, Suppose that I got several html fields with parts of a datetime value = (year, month, day, hour, minutes) and I want to convert this field in = one java.util.Date value. What do you think about implement some kind of "group" converter (follow = the concept of group-validators) ? -------------------------------------------------------------------------= --- Edgar Gonzalez Gonzalez VALHALLA Project, s.a. Chief Technology Officer Web: www.valhallaproject.com E-mail: eg...@va... Phone: +58-212-242.4379 / 6662 / 4055 / 6475 Fax: +58-212-242.6809 "The limits of my language mean the limits of my world." Ludwig Wittgenstein -------------------------------------------------------------------------= --- |
From: Anthony E. <me...@an...> - 2003-05-02 12:18:39
|
FormProc version 1.3.1 is now available at http://www.formproc.org/ . FormProc is an open source Java library designed to make handling and validating forms easy. Forms are represented as objects which manage a collection of form elements. Submitted data can be validated through several mechanisms including regular expressions, BSF supported scripting languages and custom Java classes. This release includes the following changes: REValidator now supports value arrays. Fixed ExampleApp so that is loads the form manager configuration. Fixed path so that it never attempts to resolve relative to the formproc.xml configuration. Changed Form.java to handle non-null FormValue objects with null value. For more information please visit http://www.formproc.org/ . |
From: Anthony E. <me...@an...> - 2003-05-02 12:00:03
|
Thanks for the patch Dan. I actually changed the line to: if(formData == null || formData.getValue() == null || "".equals(formData.getValue())){ Just in case a null formData object is passed. Sincerely, Anthony Eden Dan Prince wrote: >First. Thanks for all for the nice work done so far. > >I have a small suggestion/fix for a problem I'm having with >default values using HttpForm objects (using the <default> XML tag). >I'm using the HttpForm.process(HttpServletRequest request) method >to validate servlet form data. > >I'm having problems getting formproc converters to use the default >value for form elements. Specifically, when I have an element >set up like this using XMLFormConfiguration: > > <element name="my_variable"> > <default>my_default_value</default> > <converter classname="my.converter.ClassName"/> > </element> > >If the HTTP POST request doesn't contain the parameter "my_variable" >I would like the default value to be sent thru the converter. >But it doesn't work for me. > >I found some code in the Form.java class that looks like may be the >cause of my problem. > >On line 366, a comment reads: > // HTTP form fields with empty values will not be sent with the > // request, thus the formData is null. > >The problem is FormData objects can never be null using the process >methods within the HttpForm form class, because a call is ultimately made to >the the FormUtilities.findFormData() to obtain the form data. >The FormUtilities.findFormData will never return null. > >So on line 372 where the code tests to see if the default value should >be used for the formData, it will always fail when using the HttpForm class. > >As a fix I changed line 372 in Form.java to the following: > > if(formData.getValue() == null || "".equals(formData.getValue())){ > >Any thoughts on this? > > > |
From: Dan P. <pr...@3i...> - 2003-05-02 04:10:33
|
First. Thanks for all for the nice work done so far. I have a small suggestion/fix for a problem I'm having with default values using HttpForm objects (using the <default> XML tag). I'm using the HttpForm.process(HttpServletRequest request) method to validate servlet form data. I'm having problems getting formproc converters to use the default value for form elements. Specifically, when I have an element set up like this using XMLFormConfiguration: <element name="my_variable"> <default>my_default_value</default> <converter classname="my.converter.ClassName"/> </element> If the HTTP POST request doesn't contain the parameter "my_variable" I would like the default value to be sent thru the converter. But it doesn't work for me. I found some code in the Form.java class that looks like may be the cause of my problem. On line 366, a comment reads: // HTTP form fields with empty values will not be sent with the // request, thus the formData is null. The problem is FormData objects can never be null using the process methods within the HttpForm form class, because a call is ultimately made to the the FormUtilities.findFormData() to obtain the form data. The FormUtilities.findFormData will never return null. So on line 372 where the code tests to see if the default value should be used for the formData, it will always fail when using the HttpForm class. As a fix I changed line 372 in Form.java to the following: if(formData.getValue() == null || "".equals(formData.getValue())){ Any thoughts on this? -- Dan Prince pr...@3i... |
From: Anthony E. <me...@an...> - 2003-05-01 23:06:28
|
With respect to my last email, after further review I did notice that the regular expression validator did not support parameter arrays. I have since checked in a change which adds support for this into the CVS. For all other validators it is up to the validator author to make sure that they handle parameter arrays properly. Sincerely, Anthony Eden Eliot Sykes wrote: > > Currently FormProc would not convert multiple fields with the same > > name > > into an array, rather it uses the ServletRequest.getParameter() method > > to return the first value. I will look into updating FormProc to > handle > > arrays today - it shouldn't be too hard. > > Hi Anthony, > > This feature (multi-valued fields) would be really useful to me. I > see in your post that you were planning to take a look at adding this > to FormProc. If this feature isn't available yet I'd like to implement > it and was hoping you could point me in the direction of the class(es) > that'd need tinkering with. > > Kind regards, > Eliot > > ------------------ > > > As for storing those values afterwards, you can either use the > ReflectionStorer which should work fine >with arrays once I implement > the arrays as described previously, or you can create your own > Storer implementation and provide whatever storage mechanism you need. > > > Sincerely, > Anthony Eden > > > -----Original Message----- > > From: formproc-developer-admin@li... > > [mailto:formproc-developer-admin@li...] On > > Behalf Of Gandulf > > Sent: Friday, November 08, 2002 3:57 AM > > To: formproc-developer@li... > > Subject: [FormProc-developer] formproc an alternativ to > > Intake. should I change??? > > > > > > Hello, > > > > I'm currently working an an turbine/velocity/torque > > environment and use > > intake as the buildin formprocessing tool. > > > > But since working with Intake is rather anoying I'm thinking about > > switching to another formprocessing tool. > > I looked at the documentation of Formproc and it's seems to be an > > alternative to Intake. But I'd need some special Information about > > FormProc, especially about how it handels arrays of formelements. > > > Here is an short example ...(a little bit minimalized) > > > > ---- > > <form> > > <input type="text" name="name1"> > > <input type="text" name="name1"> > > > > <input type="text" name="name2"> > > <input type="text" name="name2"> > > </form> > > ---- > > > > Now If I submit such an Form, it would create two arrays > > (name1[], name2[]) > > wich contain the values for the two inputs with the same names. > > > Now my Question: > > > > Is Formproc able to handle such a form and save the values in > > an object > > (via the store.ReflectionMapper), since Intake is not ??? > > > > thx Gandulf > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: See the NEW Palm > > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > FormProc-developer mailing list FormProc-developer@li... > https://lists.sourceforge.net/lists/listinfo/formproc-developer > > > ________________________________________________________________________ > This email has been scanned for all viruses by the MessageLabs service. > ________________________________________________________________________ |
From: Anthony E. <me...@an...> - 2003-05-01 23:06:21
|
According to the changelog, this has been in FormProc since 1.1. Sincerely, Anthony Eden Eliot Sykes wrote: > > Currently FormProc would not convert multiple fields with the same > > name > > into an array, rather it uses the ServletRequest.getParameter() method > > to return the first value. I will look into updating FormProc to > handle > > arrays today - it shouldn't be too hard. > > Hi Anthony, > > This feature (multi-valued fields) would be really useful to me. I > see in your post that you were planning to take a look at adding this > to FormProc. If this feature isn't available yet I'd like to implement > it and was hoping you could point me in the direction of the class(es) > that'd need tinkering with. > > Kind regards, > Eliot > > ------------------ > > > As for storing those values afterwards, you can either use the > ReflectionStorer which should work fine >with arrays once I implement > the arrays as described previously, or you can create your own > Storer implementation and provide whatever storage mechanism you need. > > > Sincerely, > Anthony Eden > > > -----Original Message----- > > From: formproc-developer-admin@li... > > [mailto:formproc-developer-admin@li...] On > > Behalf Of Gandulf > > Sent: Friday, November 08, 2002 3:57 AM > > To: formproc-developer@li... > > Subject: [FormProc-developer] formproc an alternativ to > > Intake. should I change??? > > > > > > Hello, > > > > I'm currently working an an turbine/velocity/torque > > environment and use > > intake as the buildin formprocessing tool. > > > > But since working with Intake is rather anoying I'm thinking about > > switching to another formprocessing tool. > > I looked at the documentation of Formproc and it's seems to be an > > alternative to Intake. But I'd need some special Information about > > FormProc, especially about how it handels arrays of formelements. > > > Here is an short example ...(a little bit minimalized) > > > > ---- > > <form> > > <input type="text" name="name1"> > > <input type="text" name="name1"> > > > > <input type="text" name="name2"> > > <input type="text" name="name2"> > > </form> > > ---- > > > > Now If I submit such an Form, it would create two arrays > > (name1[], name2[]) > > wich contain the values for the two inputs with the same names. > > > Now my Question: > > > > Is Formproc able to handle such a form and save the values in > > an object > > (via the store.ReflectionMapper), since Intake is not ??? > > > > thx Gandulf > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: See the NEW Palm > > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > FormProc-developer mailing list FormProc-developer@li... > https://lists.sourceforge.net/lists/listinfo/formproc-developer > > > ________________________________________________________________________ > This email has been scanned for all viruses by the MessageLabs service. > ________________________________________________________________________ |
From: Robert L. <rob...@lo...> - 2003-04-30 19:41:55
|
Dear all, Could it be made possible to define a default message provider in formprox.xml. One which will be used when no message provider is mentioned in either the error or message element? I would suggest the following syntax for the message element: <message> <key>key</key> </message> This allows backward compatibility with the so-called inline messages. Kind regards, Robert Lamping |
From: Anthony E. <me...@an...> - 2003-04-29 12:00:23
|
There is no tutorial at this time. Currently there is a user's guide and the JavaDoc documentation, both of which are available on the FormProc web site. There are also a couple of simple examples which are in the distribution. Sincerely, Anthony Eden Schomisch wrote: >Hi, > >Does a tutorial exists for From Proc, which explain me how to use this software? > >Best regards > >Siegfried Schomisch > > >---------------------------------------- >Social Science Information Centre >Department Research & Development >Siegfried Schomisch, M.A. >Lennestr. 30, D-53113 Bonn >Phone: (+49) 228 2281 168 >Fax: (+49) 228 2281 120 >E-mail: sm...@bo... >http://www.gesis.org/IZ/ >----------------------------------- > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >FormProc-developer mailing list >For...@li... >https://lists.sourceforge.net/lists/listinfo/formproc-developer > > |
From: Schomisch <sm...@Bo...> - 2003-04-29 09:38:05
|
Hi, Does a tutorial exists for From Proc, which explain me how to use this = software? Best regards=20 Siegfried Schomisch ---------------------------------------- Social Science Information Centre Department Research & Development Siegfried Schomisch, M.A.=20 Lennestr. 30, D-53113 Bonn Phone: (+49) 228 2281 168 Fax: (+49) 228 2281 120=20 E-mail: sm...@bo... http://www.gesis.org/IZ/ =20 ----------------------------------- |
From: Anthony E. <me...@an...> - 2003-04-25 13:55:37
|
Since you have set the form element's loader attribute to "com.anthonyeden.lib.resource.ClassPathResourceLoader" you will need to place the new-survey-form.xml in /WEB-INF/classes . Give that a try and see if it works. You can also try to remove the loader attribute from the form element and leave the configuration where it is and see if that works. Sincerely, Anthony Eden Schlauer Hund wrote: > I'm using FormProc 0.2 for JPublish und Jpublish 1.4 > new-survey-form.xml, formproc.xml are placed in the folder WEB-INF > > Greets, > Hund > >> From: Anthony Eden <me...@an...> >> To: for...@li... >> Subject: Re: [FormProc-developer] Newbie Problem: Form configuration >> not found >> Date: Wed, 23 Apr 2003 15:46:54 -0400 >> >> Two things: >> >> 1.) Which version of FormProc and which version of JPublish are you using >> 2.) Where is the new-survey-form.xml file? >> >> Sincerely, >> Anthony Eden >> >> Schlauer Hund wrote: >> >>> Hello! >>> I tried to integrate FormProc into my Jpublish Application and did >>> everything that was said in the Tutorial, but I always get the >>> message "javax.servlet.ServletException: Form configuration not found >>> for 'new-survey'". >>> >>> jpubish.xml: >>> ... >>> <module classname="org.jpublish.module.formproc.FormProcModule"> >>> <config>WEB-INF/formproc.xml</config> >>> </module> >>> ... >>> >>> formproc.xml: >>> ... >>> <!-- define forms --> >>> <form name="new-survey" >>> loader="com.anthonyeden.lib.resource.ClassPathResourceLoader" >>> path="new-survey-form.xml" monitor="true"/> >>> </config> >>> ... >>> >>> new-survey-form.xml: >>> <form> >>> <name>new-survey</name> >>> <storer classname="org.formproc.store.ReflectionStorer"/> >>> >>> <element name="survey_name"> >>> <validator type="expression"> >>> <pattern>.{1,}</pattern> >>> <error lang="en">The survey name cannot be empty.</error> >>> </validator> >>> <message lang="en">Required</message> >>> </element> >>> <element name="userfile"> >>> <validator type="expression"> >>> <pattern>.{1,}</pattern> >>> <error lang="en">The filename cannot be empty.</error> >>> </validator> >>> <message lang="en">Required</message> >>> </element> >>> </form> >>> >>> new_survey.html: >>> ... >>> <input type="hidden" name="formproc.formname" value="new-survey"> >>> ... >>> >>> new_survey.xml: >>> ... >>> <page-action name="formproc.initForm"> >>> <form>new-survey</form> >>> </page-action> >>> ... >>> >>> Please help me!!! >>> >>> >>> >>> >>> _________________________________________________________________ >>> Die aktuellsten Computer News gibts auf MSN! http://www.msn.at/computer >>> >>> >>> >>> ------------------------------------------------------- >>> This sf.net email is sponsored by:ThinkGeek >>> Welcome to geek heaven. >>> http://thinkgeek.com/sf >>> _______________________________________________ >>> FormProc-developer mailing list >>> For...@li... >>> https://lists.sourceforge.net/lists/listinfo/formproc-developer >> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> FormProc-developer mailing list >> For...@li... >> https://lists.sourceforge.net/lists/listinfo/formproc-developer > > > > _________________________________________________________________ > Immer auf dem Laufenden mit den Mobile & Telekom News auf MSN! > http://www.msn.at/mobil |
From: Anthony E. <me...@an...> - 2003-04-23 19:48:59
|
Two things: 1.) Which version of FormProc and which version of JPublish are you using 2.) Where is the new-survey-form.xml file? Sincerely, Anthony Eden Schlauer Hund wrote: > Hello! > I tried to integrate FormProc into my Jpublish Application and did > everything that was said in the Tutorial, but I always get the message > "javax.servlet.ServletException: Form configuration not found for > 'new-survey'". > > jpubish.xml: > ... > <module classname="org.jpublish.module.formproc.FormProcModule"> > <config>WEB-INF/formproc.xml</config> > </module> > ... > > formproc.xml: > ... > <!-- define forms --> > <form name="new-survey" > loader="com.anthonyeden.lib.resource.ClassPathResourceLoader" > path="new-survey-form.xml" monitor="true"/> > </config> > ... > > new-survey-form.xml: > <form> > <name>new-survey</name> > <storer classname="org.formproc.store.ReflectionStorer"/> > > <element name="survey_name"> > <validator type="expression"> > <pattern>.{1,}</pattern> > <error lang="en">The survey name cannot be empty.</error> > </validator> > <message lang="en">Required</message> > </element> > <element name="userfile"> > <validator type="expression"> > <pattern>.{1,}</pattern> > <error lang="en">The filename cannot be empty.</error> > </validator> > <message lang="en">Required</message> > </element> > </form> > > new_survey.html: > ... > <input type="hidden" name="formproc.formname" value="new-survey"> > ... > > new_survey.xml: > ... > <page-action name="formproc.initForm"> > <form>new-survey</form> > </page-action> > ... > > Please help me!!! > > > > > _________________________________________________________________ > Die aktuellsten Computer News gibts auf MSN! http://www.msn.at/computer > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > FormProc-developer mailing list > For...@li... > https://lists.sourceforge.net/lists/listinfo/formproc-developer |
From: Schlauer H. <sch...@ho...> - 2003-04-23 07:57:28
|
Hello! I tried to integrate FormProc into my Jpublish Application and did everything that was said in the Tutorial, but I always get the message "javax.servlet.ServletException: Form configuration not found for 'new-survey'". jpubish.xml: ... <module classname="org.jpublish.module.formproc.FormProcModule"> <config>WEB-INF/formproc.xml</config> </module> ... formproc.xml: ... <!-- define forms --> <form name="new-survey" loader="com.anthonyeden.lib.resource.ClassPathResourceLoader" path="new-survey-form.xml" monitor="true"/> </config> ... new-survey-form.xml: <form> <name>new-survey</name> <storer classname="org.formproc.store.ReflectionStorer"/> <element name="survey_name"> <validator type="expression"> <pattern>.{1,}</pattern> <error lang="en">The survey name cannot be empty.</error> </validator> <message lang="en">Required</message> </element> <element name="userfile"> <validator type="expression"> <pattern>.{1,}</pattern> <error lang="en">The filename cannot be empty.</error> </validator> <message lang="en">Required</message> </element> </form> new_survey.html: ... <input type="hidden" name="formproc.formname" value="new-survey"> ... new_survey.xml: ... <page-action name="formproc.initForm"> <form>new-survey</form> </page-action> ... Please help me!!! _________________________________________________________________ Die aktuellsten Computer News gibts auf MSN! http://www.msn.at/computer |
From: Robert L. <rob...@lo...> - 2003-04-20 21:48:11
|
Dear Anthony Eden, I walked through your code of FormProc to see how translations are retrieved from the system. I programmed a translation module using the design pattern facade. It has currently only one method: static String getString(String key); static String getString(String key, String defaultTranslation); And several constructors to setup the locale, resourcebundle name (1 central file), and an excemption resource bundle name. I am still in the stage of creating other methods to extend its capabilities. And now my aim: Instead of talking to the Resource Bundle I would like to be able to 'talk' to this Facade. I saw that the classname to express the ResourceBundleMessageProvider has to be mentioned with every single message element. as in: <message classname="org.formproc.message.ResourceBundleMessageProvider"> message.usernamemustbelongerthan8characters </message> I am in favour of mentioning the message key, so that the key get translated according to the current locale. However, would it be possible to mentioning a default MessageProvider in the configuration file FormProc.xml?. Like: <message-provider classname="org.formproc.message.ResourceBundleMessageProvider" /> So that I can use in my form configuration file: <message> message.usernamemustbelongerthan8characters </message> I think it is possible: In DefaultFormElement.jave there is the following code: //-------------------------------------------------------------------------- -------------------------- private void setMessageProvider(Configuration configuration) throws Exception{ String messageElementName = "message"; List messageElements = configuration.getChildren(messageElementName); if(messageElements.size() > 0){ Configuration messageElement = (Configuration)messageElements.get(0); String messageProviderClassName = messageElement.getAttribute("classname"); if(messageProviderClassName == null){ if(messageElement.getAttribute("resource") != null){ messageProvider = new ResourceBundleMessageProvider(); messageProvider.loadConfiguration(messageElement); } else { // AAA // this is to support the old style of inlining messages InlineMessageProvider inlineMessageProvider = new InlineMessageProvider(); inlineMessageProvider.setMessageElementName(messageElementName); inlineMessageProvider.loadConfiguration(configuration); messageProvider = inlineMessageProvider; } } else { messageProvider = (MessageProvider)ClassUtilities.loadClass( messageProviderClassName).newInstance(); messageProvider.loadConfiguration(messageElement); } } } //-------------------------------------------------------------------------- -------------------------- At // AAA the default classname could be retrieved. String messageProviderClassName = messageElement.getAttribute("classname"); if(messageProviderClassName == null){ // do the old thing with inlining messages } else { messageProvider = (MessageProvider)ClassUtilities.loadClass( messageProviderClassName).newInstance(); messageProvider.loadConfiguration(messageElement); } Of course the new element in the FormProx.xml must be loaded. But I think I can leave that to you. The above is just a suggestion for a possible implementation. I am looking forward to your reaction. Kind regards, Robert Lamping The Netherlands |
From: Anthony E. <me...@an...> - 2003-04-11 17:43:29
|
Matthew Patrick Hardy wrote: > Hello, > > I'm trying to get a reletively simple form working with the formproc API > for demonstration purposes however i'm running into some problems with the > script validators. I've been trying to use the FieldsMatch.py in my own > form and I get some odd results. The following is a snippet from my form > include: > > <element name="session_1" optional="true"> > <validator type="shared" name="forbidden_chars"/> > <message classname="org.formproc.message.ResourceBundleMessageProvider"> > <bundle>org.formproc.example.ExampleResourceBundle</bundle> > <key>session_1.message</key> > </message> > </element> > > <element name="session_1_class" optional="true"> > <validator type="shared" name="forbidden_chars"/> > <message></message> > </element> > > <element-group name="session_1"> > <element name="session_1"/> > <element name="sessoin_1_class"/> > <validator type="script"> > <script>FieldsMatch.py</script> > <error>Passwords must must match.</error> > </validator> > </element-group> > > Now session_1_class and session_1 are both select boxes with different > values so they will never validate correctly but I should still get the > "Passwords must must match." error in my form when I do > > <%= results.getErrorOrMessage("session_1") %> Currently getErrorOrMessage() does not look into group results to find errors or messages. If you want to get error messages for a group you would need to use getGroupErrorMessage(). > in the jsp. But instead I get the following error when the above code is > included in the xml include: > > org.formproc.FormConfigurationException: Form configuration not found for > 'campcaen-page1' > at > org.formproc.FormManager.getFormConfiguration(FormManager.java:209) > at org.formproc.FormManager.configure(FormManager.java:196) > at > org.apache.jsp.campcaen_0002dpage1$jsp._jspService(campcaen_0002dpage1$jsp.java:183) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > etc... That's a strange error to receive. It would appear that the form configuration is never loaded which would indicate that an exception is being thrown during the loading of that form configuration. Which version of FormProc are you using? Do you see anywhere in your server logs an exception during the loading of the form configuration? > 'campcaen-page1' is the name of my form. I don't get this exception > without the <element-group><element-group/>. Also is there anyway to > return an error message from the script? I'm checking for schedule > conflicts between selections and it would be helpful if the script could > generate the error message based on what the problem was. Currently there is not, but perhaps something can be added to the ScriptResult object. The only problem I see is that I am not sure how to get this into the FormResult. Currently the FormResult can only store an error if it extends from Throwable. I suppose any script errors could be wrapped in an exception even if it will never be thrown. Thoughts? > One more thing. It would be very helpful to have a more extensive example > that spans multiple pages and has more than just input boxes. I agree, but I am rather stretched for time. If you would like to contribute more extensive examples I would be glad to include them with the distribution. Sincerely, Anthony Eden |
From: Matthew P. H. <mp...@en...> - 2003-04-11 16:55:48
|
Hello, I'm trying to get a reletively simple form working with the formproc API for demonstration purposes however i'm running into some problems with the script validators. I've been trying to use the FieldsMatch.py in my own form and I get some odd results. The following is a snippet from my form include: <element name="session_1" optional="true"> <validator type="shared" name="forbidden_chars"/> <message classname="org.formproc.message.ResourceBundleMessageProvider"> <bundle>org.formproc.example.ExampleResourceBundle</bundle> <key>session_1.message</key> </message> </element> <element name="session_1_class" optional="true"> <validator type="shared" name="forbidden_chars"/> <message></message> </element> <element-group name="session_1"> <element name="session_1"/> <element name="sessoin_1_class"/> <validator type="script"> <script>FieldsMatch.py</script> <error>Passwords must must match.</error> </validator> </element-group> Now session_1_class and session_1 are both select boxes with different values so they will never validate correctly but I should still get the "Passwords must must match." error in my form when I do <%= results.getErrorOrMessage("session_1") %> in the jsp. But instead I get the following error when the above code is included in the xml include: org.formproc.FormConfigurationException: Form configuration not found for 'campcaen-page1' at org.formproc.FormManager.getFormConfiguration(FormManager.java:209) at org.formproc.FormManager.configure(FormManager.java:196) at org.apache.jsp.campcaen_0002dpage1$jsp._jspService(campcaen_0002dpage1$jsp.java:183) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) etc... 'campcaen-page1' is the name of my form. I don't get this exception without the <element-group><element-group/>. Also is there anyway to return an error message from the script? I'm checking for schedule conflicts between selections and it would be helpful if the script could generate the error message based on what the problem was. One more thing. It would be very helpful to have a more extensive example that spans multiple pages and has more than just input boxes. Thanks Matt Hardy mp...@um... |
From: Anthony E. <me...@an...> - 2003-04-09 21:59:41
|
I can confirm that using the CVS right now will result in being able to use includes. There are two ways to locate the included file. If you use the path attribute then the path will sent through to the resource monitor as is. If you use the file attribute then the path will be relative to the formproc.xml configuration file. For example: <include file="formproc-include.xml" monitor="true"/> Would look for a file relative to the formproc.xml file. This will use the default resource loader which is the VFSResourceLoader. Alternatively: <include path="formproc-include.xml" loader="com.anthonyeden.lib.resource.ClassPathResourceLoader" monitor="true"/> Would look in the classpath and the path attribute would be passed straight through to the resource loader. Take a look at example-app for a working example. I still need to work on the example webapps before I put out a new release. Sincerely, Anthony Eden Eliot Sykes wrote: > Hi formproccers, > > Please can someone confirm that they have a configuration working that > makes use of the include element in formproc.xml. It would also be a > great help if you could post the actual configuration here too. I have > been unsuccessful in getting this to work, > com.anthonyeden.lib.resource.ResourceException gets thrown when I try to > use it, and I have tried all manners of configurations and loaders and > made sure the included file is present but have still had no joy :(. > > Thanks in advance for any help, > Eliot > > > ________________________________________________________________________ > This email has been scanned for all viruses by the MessageLabs service. > ________________________________________________________________________ |
From: Anthony E. <me...@an...> - 2003-04-09 21:15:54
|
It looks like I broke include support when I moved to the virtual file system. I will get it fixed and put out a new release. Sincerely, Anthony Eden Eliot Sykes wrote: > Hi formproccers, > > Please can someone confirm that they have a configuration working that > makes use of the include element in formproc.xml. It would also be a > great help if you could post the actual configuration here too. I have > been unsuccessful in getting this to work, > com.anthonyeden.lib.resource.ResourceException gets thrown when I try to > use it, and I have tried all manners of configurations and loaders and > made sure the included file is present but have still had no joy :(. > > Thanks in advance for any help, > Eliot > > > ________________________________________________________________________ > This email has been scanned for all viruses by the MessageLabs service. > ________________________________________________________________________ |
From: Eliot S. <eli...@Ri...> - 2003-04-08 20:00:59
|
Hi formproccers, Please can someone confirm that they have a configuration working that makes use of the include element in formproc.xml. It would also be a great help if you could post the actual configuration here too. I have been unsuccessful in getting this to work, com.anthonyeden.lib.resource.ResourceException gets thrown when I try to use it, and I have tried all manners of configurations and loaders and made sure the included file is present but have still had no joy :(. Thanks in advance for any help, Eliot ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs service. ________________________________________________________________________ |
From: Robert L. <rob...@lo...> - 2003-04-08 10:43:47
|
Dear all, I am looking for a validator framework to use in combination with the MVC framework Maverick. Currently two frameworks have my attention. Formproc ( <http://formproc.sourceforge.net/> http://formproc.sourceforge.net/ )<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> and Validator <http://jakarta.apache.org/commons/validator/> http://jakarta.apache.org/commons/validator/ Since I am just beginning in this field I don't know which one two choose. - it must be multi-lingual (error messages) - it must be able to validate input type, input length and required input. - it must be possible to define system wide validation criteria and case specific validation criteria I have the impression that Formproc can do more. Can you please help me choosing either one of them, by providing your considerations? Kind regards, Robert Lamping The Netherlands |
From: Nick B. <ni...@co...> - 2003-04-04 23:47:11
|
Integradata has always handled multiple fields with the same name. http://www.cortexity.com/nightly/ >> Currently FormProc would not convert multiple fields with the same >> name >> into an array, rather it uses the ServletRequest.getParameter() method >> to return the first value. I will look into updating FormProc to >> handle arrays today - it shouldn't be too hard. > > Hi Anthony, > > This feature (multi-valued fields) would be really useful to me. I see > in your post that you were planning to take a look at adding this to > FormProc. If this feature isn't available yet I'd like to implement it > and was hoping you could point me in the direction of the class(es) > that'd need tinkering with. > > Kind regards, > Eliot > > ------------------ > > > As for storing those values afterwards, you can either use the > ReflectionStorer which should work fine >with arrays once I implement > the arrays as described previously, or you can create your own Storer > implementation and provide whatever storage mechanism you need. > > Sincerely, > Anthony Eden > > > -----Original Message----- > > From: formproc-developer-admin@li... > > [mailto:formproc-developer-admin@li...] On > > Behalf Of Gandulf > > Sent: Friday, November 08, 2002 3:57 AM > > To: formproc-developer@li... > > Subject: [FormProc-developer] formproc an alternativ to > > Intake. should I change??? > > > > > > Hello, > > > > I'm currently working an an turbine/velocity/torque > > environment and use > > intake as the buildin formprocessing tool. > > > > But since working with Intake is rather anoying I'm thinking about > switching to another formprocessing tool. > > I looked at the documentation of Formproc and it's seems to be an > alternative to Intake. But I'd need some special Information about > FormProc, especially about how it handels arrays of formelements. > > Here is an short example ...(a little bit minimalized) > > > > ---- > > <form> > > <input type="text" name="name1"> > > <input type="text" name="name1"> > > > > <input type="text" name="name2"> > > <input type="text" name="name2"> > > </form> > > ---- > > > > Now If I submit such an Form, it would create two arrays > > (name1[], name2[]) > > wich contain the values for the two inputs with the same names. > > Now my Question: > > > > Is Formproc able to handle such a form and save the values in > > an object > > (via the store.ReflectionMapper), since Intake is not ??? > > > > thx Gandulf > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: See the NEW Palm > > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > FormProc-developer mailing list FormProc-developer@li... > https://lists.sourceforge.net/lists/listinfo/formproc-developer > > > ________________________________________________________________________ > This email has been scanned for all viruses by the MessageLabs service. > ________________________________________________________________________ |