Re: Is Struts still a better choice over JSF as on today ?

2007-07-30 Thread Hubert Rabago
Sorry, I couldn't resist. On 7/26/07, souravm [EMAIL PROTECTED] wrote: Regarding going for JSF due to componentization, I'm again not sure what additional componentizations JSF does compared to struts. Apart from the fact that JSF does not need a layer like Action Classes, all other

Re: Form submission

2007-04-26 Thread Hubert Rabago
There are differences in how a user interacts with html:button and html:submit. For instance, pressing enter on some fields can trigger a submit button, but not a regular button. You can get the best of both worlds letting your javascript method determine whether the submit should happen at all

Re: Struts/FormDef formatting question

2007-04-26 Thread Hubert Rabago
Your form field will come in as String. If you'll be storing the data as string as well, maybe you don't need any more conversion between the two. Hubert On 4/26/07, Givler, Eric [EMAIL PROTECTED] wrote: I was reading on the Formdef site about using a formatter (converter) for handling a

Re: Struts/FormDef formatting question

2007-04-26 Thread Hubert Rabago
the incoming form. Hubert On 4/26/07, Givler, Eric [EMAIL PROTECTED] wrote: Thanks for the quick response. The field in the db is to be stored stripped of formatting. However, the display and entry of the field should include the formatting. -Original Message- From: Hubert Rabago

Re: Struts/FormDef formatting question

2007-04-26 Thread Hubert Rabago
the source and destination types. Even if they are the same data types, I can at least see if the destination type is a subclass of Actionform and format accordingly. Sound ok? -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Thursday, April 26, 2007 12:37 PM

Re: DynaValidatorForm with java.util.Date

2007-03-12 Thread Hubert Rabago
The fields of action forms, including DynaValidatorForms are populated from request parameters, and these values are all in String variables. I suggest using a String variable for the dyna validator form field as well, and just parsing it to get the java.util.Date equivalent when you use it in

Re: Form population and locale

2007-01-22 Thread Hubert Rabago
Benedict [EMAIL PROTECTED] wrote: I believe you could try to do this in the form's constructor or reset() method? Hubert Rabago wrote: Are you talking about prepopulating the form? Yes, a FormUtils method helps with that. I don't know if that qualifies as manually populating the form, though

Re: Form population and locale

2007-01-20 Thread Hubert Rabago
-- Initial Header --- From : Hubert Rabago [EMAIL PROTECTED] To : Struts Users Mailing List user@struts.apache.org Cc : Date : Thu, 18 Jan 2007 09:52:57 -0600 Subject : Re: Form population and locale On 1/17/07, Zero [EMAIL PROTECTED] wrote: Hi everybody

Re: Form population and locale

2007-01-18 Thread Hubert Rabago
On 1/17/07, Zero [EMAIL PROTECTED] wrote: Hi everybody, I use Struts 1.2.9 and I would like to know if there is any way to link the user locale (available with RequestUtils.getUserLocale(HttRequest)) with the form population process. In fact, I have many forms which have date field (with the

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Hubert Rabago
If not this specific implementation, an otherwise clean way to handle view preprocessing after a validation failure. It can build on the action-forward-specific command chain, but a solution that's more tightly integrated with action objects should be considered as well. Hubert On 11/30/06,

Re: [Fwd: Help with using formaKey attribute for display dollar values]

2006-11-28 Thread Hubert Rabago
Did you declared the variable that holds the 1896 / 100 value as int? On 11/28/06, robin bajaj [EMAIL PROTECTED] wrote: Sorry I forgot to mention, I am actually dividing the 1896 cents by 100 before the jsp page to make the value 18.96 and then display it using the formatkey as $18.00. I would

Re: initial values and reset method relation

2006-11-27 Thread Hubert Rabago
If you consult the documentation for the reset() method [1], you'll see it's mainly for resetting checkbox values: This method is not the appropriate place to initialize form value for an update type page (this should be done in a setup Action). You mainly need to worry about setting checkbox

Re: dont exist ForwardAction ??

2006-11-21 Thread Hubert Rabago
I think he's looking for: action path=/showListsOfLists forward=listsOfLists.jsp/ Daniel, ForwardAction is no longer needed because you can now forward directly without using an Action class. Hubert On 11/21/06, Laurie Harper [EMAIL PROTECTED] wrote: daniel blanco cuadrado wrote:

Re: Indexed Property and Hand Cranking Lazy List

2006-11-21 Thread Hubert Rabago
Struts is getting confused by: public List getSkills() { return skills; } public void setSkills(Product skill) { this.skills.add(skill); } The getter and setter should be consistent. - Hmm... I just looked at the link you sent and it looks

Re: Indexed Properties

2006-11-17 Thread Hubert Rabago
Adam, Try adding a getResultsPage() that doesn't take params and always returns a valid collection. (Throw in the setResultsPage() that accepts a collection as well.) Hubert On 11/17/06, Adam K [EMAIL PROTECTED] wrote: This has been driving me nuts for the past little bit. I have a page that

Re: Indexed Properties

2006-11-17 Thread Hubert Rabago
cause. Would it be correct in stating that this will not work using ActionForm (what I was using) and that I must instead use DynaActionForm ? Thanks for the time thus far. On 11/17/06, Hubert Rabago [EMAIL PROTECTED] wrote: Adam, Try adding a getResultsPage() that doesn't take params

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
So what does happen when you submit the form? Are you getting NPEs? By the time Struts attempts to populate the form bean, the nested forms should already be instantiated. You should have getters and setters for af1 and af2, and getAf1() and getAf2() should not return a null. This could be an

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Fri, September 22, 2006 1:10 pm, Hubert Rabago wrote: So what does happen when you

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
- http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! On Fri, September 22, 2006 1:10 pm, Hubert Rabago wrote: So what does happen when you submit the form? Are you getting NPEs? By the time Struts attempts to populate the form bean, the nested

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
it! On Fri, September 22, 2006 2:53 pm, Hubert Rabago wrote: It still sounds like Struts is getting nulls for the subbeans when it tries to populate subbean.fieldX. Put some more logging, this time in the getters for the subbean in MasterForm, and log what it's returning. Hubert On 9/22/06

Re: FormDef

2006-08-02 Thread Hubert Rabago
On 8/2/06, Michael Jouravlev [EMAIL PROTECTED] wrote: On 7/20/06, Hubert Rabago [EMAIL PROTECTED] wrote: FormDef support nested beans, and nested collections of beans. If you had a nested Address object, your form would look like: html:text property=name/ html:text property=hireDate

Re: FormDef

2006-07-21 Thread Hubert Rabago
typically be through Commons Validator (like most dyna forms). Conversion happens based on convention but can be configured by the user. Hubert On 7/20/06, Hubert Rabago [EMAIL PROTECTED] wrote: (was: Is there any direct link between model and view in struts..) On 7/20/06, Michael Jouravlev

Re: FormDef

2006-07-20 Thread Hubert Rabago
(was: Is there any direct link between model and view in struts..) On 7/20/06, Michael Jouravlev [EMAIL PROTECTED] wrote: Another library, FormDef, can build a dynaform based on properties of nested business object Hey Michael, Just thought I'd set the record straight. FormDef does not

Re: ActionForm Use It to Populate JSP fields?

2006-07-18 Thread Hubert Rabago
That's how I do it most of the time. If your POJO is in session scope, your Action won't even have to do anything. I usually only use ActionForm when there's a corresponding HTML form. If I'm just displaying data on the page, I just pass the POJO. Hubert On 7/18/06, Mississippi John Hurt

Re: struts 1.3.x

2006-07-17 Thread Hubert Rabago
On 7/17/06, Michael Jouravlev [EMAIL PROTECTED] wrote: On 7/17/06, Adam Hardy [EMAIL PROTECTED] wrote: In fact, in Struts 1.3, some of the same convention of configuration practices are applied in the configuration files: you can define mapping conventions in struts-config.xml without having

Re: ActionMapping forward.findForward(str) with dynamic parameters

2006-07-14 Thread Hubert Rabago
Do you mean something like ActionRedirect? String key = task; String value = displayAccountDetails; // this value changes return new ActionRedirect(mapping.findForward(fwdDetail)) .addParameter(key, value); It still won't allow you to redirect to a tile, though. Hubert

Re: failed validation, drop down list and request attribute

2006-07-10 Thread Hubert Rabago
You have a few options, and most of them are described by Rick R's Validate Manually article [1]. I would avoid the first three and only consider the last four. There's a couple of other ways to do this but you should be able to pick an appropriate solution from Rick's list. Hubert [1]

Re: hosting

2006-07-10 Thread Hubert Rabago
This topic has come up several times already on this list. Try searching one of the mailing list archives listed on http://struts.apache.org/mail.html#Archives. On 7/8/06, Abhimanyu Koul [EMAIL PROTECTED] wrote: hi all! can anyone tell me about a good and cheap struts(java) web hosting

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Hubert Rabago
On 4/28/06, Craig McClanahan [EMAIL PROTECTED] wrote: Yes. The way to do this would be to define a phase listener for Render Response phase, and do your data collection in the beforePhase event handler. You also have to remember that your listener is going to receive beforePhase() calls for

Re: Where dose JSP works in JSF request lifecycle?

2006-04-28 Thread Hubert Rabago
On 4/28/06, Craig McClanahan [EMAIL PROTECTED] wrote: Sorry for not being clearer. You can indeed register a listener with a phase-listener declaration -- you get an application wide singleton that has the same lifetime as your application. However, it's also possible to add a phase listener

Re: [shale] Anyway to stop auto-load of META-INF/faces-config.xml?

2006-04-14 Thread Hubert Rabago
On 4/13/06, Craig McClanahan [EMAIL PROTECTED] wrote: Not without taking the JAR apart and removing the faces-config.xml that is there. Auto-loading such files is a feature required by the JSF spec. Craig Thanks Craig. I knew it was in the spec, I was just curious if there was a way around

Re: Tiles headaches - should be simple - driving me nuts here...

2006-04-14 Thread Hubert Rabago
Rick, My tiles:insert uses name instead of attribute. tiles:insert name=header flush=false/ Then again, I'm no Tiles expert and I don't know what attribute is for. Hubert On 4/14/06, Rick Reumann [EMAIL PROTECTED] wrote: I've used Tiles in the past. Started to implement it in this new app,

Re: [shale] Tiles integration with RI

2006-04-13 Thread Hubert Rabago
references my tiles def containing put name=title value=Test/. Perhaps the f:verbatim is the answer to my problem. Perhaps you could include your /baseTemplate.jsp in your response. Thanks for your help. Dick -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent

Re: [shale] Tiles integration with RI

2006-04-13 Thread Hubert Rabago
On 4/11/06, Gary VanMatre [EMAIL PROTECTED] wrote: From: Hubert Rabago [EMAIL PROTECTED] I request /myapp/testing.jsf which renders ok. I type in a value in a text field and submit the form. In the RI's ViewHandlerImpl.restoreView(), it's looking for viewid=/testing.jsp, but the viewid

[shale] Anyway to stop auto-load of META-INF/faces-config.xml?

2006-04-13 Thread Hubert Rabago
I'm including shale-tiles.jar in my app, but overriding the TilesViewHandler with my own implementation. However, just including shale-tiles.jar in the app autoloads the META-INF/faces-config.xml, which loads Shale's TilesViewHandler. Is there a way I can include shale-tiles.jar but not autoload

Re: [shale] Tiles integration with RI

2006-04-12 Thread Hubert Rabago
I thought it would have to be something like that. Thanks, Gary. Hubert On 4/11/06, Gary VanMatre [EMAIL PROTECTED] wrote: I've not made time to check out the shale tiles plugin but I know that the RI and Myfaces do handle the viewid differently. This is a bug in the RI. Myfaces will

[shale] Tiles integration with RI

2006-04-11 Thread Hubert Rabago
I'm trying to use Shale-Tiles with RI and I'm having trouble submitting forms. The page renders okay (once I start using f:verbatim all over the place), but the submit doesn't work. I stepped through the code and it looks like there's a viewid mismatch. Here's my tile definition: definition

Re: Open Source Motivations (Re: I Apologize)

2006-03-30 Thread Hubert Rabago
Al, Not everyone who posts on the lists are insiders. If you want some insider info, go to the actual people doing the work, like Don Brown. http://marc.theaimsgroup.com/?l=struts-devm=114369603519450w=2 Hubert On 3/30/06, Al Eridani [EMAIL PROTECTED] wrote: On 3/29/06, Craig McClanahan

Re: [1.2.x] Struts 1.2.x on latest Commons releases?

2006-03-28 Thread Hubert Rabago
The primary motivation for the recent 1.2.x releases were security issues [1] [2]. Because of this, the goal was to minimize possible upgrade issues, so the changes were limited to security fixes. The upgrade notes on the wiki for 1.2.8 and 1.2.9 [3] mentions that the user may wish to upgrade

Re: Dynamic DynaActionForms

2006-03-25 Thread Hubert Rabago
Maybe you can leverage the LazyActionForm: http://struts.apache.org/struts-action/userGuide/building_controller.html#lazy_action_form_classes Hubert On 3/24/06, Will Hartung [EMAIL PROTECTED] wrote: Simply put I have a need for a configurable form that can have any mixture of fields on it

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Hubert Rabago
You know, you're right. I don't know why we list those there since DynaActionForm can support any type. (pause, think.) Hmm, maybe next week I'll find time to fix that. (Patches to docs are welcome!) Anyway, I think you missed a statement a few paragraphs down the same section: And, of course,

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Hubert Rabago
On 3/24/06, Rahul Akolkar [EMAIL PROTECTED] wrote: On 3/24/06, Hubert Rabago [EMAIL PROTECTED] wrote: You know, you're right. I don't know why we list those there since DynaActionForm can support any type. (pause, think.) snip/ The intent probably was to mention that those converters

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Hubert Rabago
On 3/24/06, fea jabi [EMAIL PROTECTED] wrote: thankyou for your response and clear expaination. If I use String for the formbean do I have to convert it to Double before i validate? Is there an easier way to convert all form-properties in the form at the same time? Yes.

Re: Struts Tutorial

2006-03-24 Thread Hubert Rabago
I'm not sure how the books didn't fit your needs, but maybe you can give this a try: http://www.learntechnology.net/ It's one of the most common tutorials we pass around in here. Hubert On 3/24/06, Andreas [EMAIL PROTECTED] wrote: Hi, I'm a newbie in Struts so I'm looking for a struts tutorial

Re: formbean of double type value chages when submitting the form

2006-03-24 Thread Hubert Rabago
: Hubert Rabago [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: formbean of double type value chages when submitting the form Date: Fri, 24 Mar 2006 08:49:50 -0600 On 3/24/06, fea jabi [EMAIL PROTECTED

Re: Get a list of defined Struts actions at runtime

2006-03-24 Thread Hubert Rabago
I wouldn't subclass ActionServlet just for this. Try doing this in a Struts plugin instead: package edu.uga.itos; public class HobbsPlugIn implements PlugIn { public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { String

Re: Get a list of defined Struts actions at runtime

2006-03-24 Thread Hubert Rabago
OOPS! Copy-paste busted. I meant to say, in your struts-config.xml: plug-in className=edu.uga.itos.HobbsPlugIn/ :D Hubert (ps. what? you think I have all this in memory?) On 3/24/06, Hubert Rabago [EMAIL PROTECTED] wrote: I wouldn't subclass ActionServlet just for this. Try doing

Re: Struts homepage, access to docs

2006-03-09 Thread Hubert Rabago
If you're looking for the User Guide for 1.3, you can get to it from the Struts Action Framework page. On the nav menu on the home page, the Frameworks section has a link to the Action and Shale frameworks. From the Action page, a link to the User Guide is available under the Quick Links

Re: can anyone tell me how 2 use this mailing forum

2006-03-08 Thread Hubert Rabago
Since no one has mentioned it... Vaneet, before posting your questions, please read the guidelines we have for the list on http://struts.apache.org/mail.html Hubert On 3/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I advise taking out the disclaimer. The addressee is a bot, and if you

Re: ActionForm Patterns? Nested Javabeans as ActionForm properties

2006-03-08 Thread Hubert Rabago
The FormDef version that has built-in support for nested beans actually requires Struts 1.2.7 or higher. I'm not aware of a concise document that covers what you're asking. However, there are upgrade notes you can check for upgrading from 1.1 to 1.2.4, then from 1.2.4 to 1.2.7 [1]. There's not

Re: ActionForm with ArrayList and logic:iterate .... confusing problem ...

2006-03-06 Thread Hubert Rabago
Hans, You're using request scope for your form. When Struts processes the submitted form, it will create a new instance of your ActionForm. The question now is, is the new instance ready to deal with setting values on your ArrayList field? Struts will not instantiate that list for you, it

Re: Problem getting Validator plugin to work

2006-03-06 Thread Hubert Rabago
On 3/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: form-bean name=SalesProspectForm type=com.globallink.glr.dataentryweb.form.AddSalesProspectForm public class AddSalesProspectForm extends ValidatorForm form name=AddSalesProspect Since you're extending ValidatorForm,

Re: Validator Skipping Action

2006-02-07 Thread Hubert Rabago
On 2/7/06, Tom Ansley [EMAIL PROTECTED] wrote: action path=/addCamper type=com.camp.actions.camper.addCamperAction name=CamperForm scope=session validate=true parameter=submit input=/addCamper.jsp So, it's looking for getFirstName, which

Re: Getting handle on application property file in Action class.

2006-01-31 Thread Hubert Rabago
Try something like: String propertyValue = getResources(request).getMessage(propertyName); Hubert On 1/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there a way to get handle on Application property file handle in action class. What I mean is if I specify in struts-config.xml

Re: Is struts handling informations differently between post and get?

2006-01-30 Thread Hubert Rabago
Struts won't change the value of request parameters. I'm certainly no encoding expert, but if you want to narrow down the cause, try playing with a basic servlet and see what it gets from request parameters. Hubert On 1/30/06, David Delbecq [EMAIL PROTECTED] wrote: Hello dear members, We

Re: Validation Issue

2006-01-30 Thread Hubert Rabago
This is what's happening: 1) User submit form with invalid data to /Control.do 2) Struts finds action mapping for /Control.do and sees validate=true 3) Struts call's the form's validate() 4) validate returns false 5) Since validation fails, Struts forwards to the input url 6) Go to step 2 There

Re: Set values in form bean

2006-01-30 Thread Hubert Rabago
If there's a form associated with a request, Struts automatically populates the form bean for you. Just submit the form to a URL with a proper form bean mapping, and struts will populate the form bean with values from request parameters for parameters whose names match those on the form. It

Re: problem with forwardPattern and modules

2006-01-30 Thread Hubert Rabago
Günther, Can you file a Bugzilla issue for this? thanks, Hubert On 1/30/06, Günther Wieser [EMAIL PROTECTED] wrote: hi, just for future reference (in case somebody searches for the same problem), i found the solution in the README.txt for verson 1.2.8. = KNOWN

Re: RequestProcessor and multiples configuration files

2006-01-30 Thread Hubert Rabago
If all the config files are for the same module, make sure you put the request processor definition in just one of those config files. In cases where multiple files (for the same module) carry request processor definitions, the last definition processed upon startup would be the definition that

Re: problem with forwardPattern and modules

2006-01-30 Thread Hubert Rabago
Wien Austria http://www.creative-it.com 2 Dinge sind unendlich: Das Universum und die Dummheit der Menschheit, aber beim Universum bin ich mir nicht so ganz sicher. Albert Einstein -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, January 30

Re: using an action form if no input from page

2006-01-27 Thread Hubert Rabago
If the request being submitted doesn't include form values, I'd say skip the ActionForm. Hubert On 1/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: My question concerns jsp pages that provide a read only view of data. In other words, there won't be a form submitted from the page. Is

Re: A util class for EJB tier similar to BeanUtils?

2006-01-24 Thread Hubert Rabago
What about, uhm, BeanUtils? What's your hestitation in using BeanUtils in your EJB tier? AFAIK there's nothing that limits BeanUtils to the presentation tier. Hubert On 1/24/06, Sharon Jolly [EMAIL PROTECTED] wrote: Hi, Am working in a project where I need to get information from a legacy

Re: Displaying Images from database using Struts tags

2006-01-24 Thread Hubert Rabago
You'd have to write an Action which reads the image from the DB and writes it onto the servlet's output stream. There was a thread just yesterday which discussed how to do this. You can set your image URL to that action and provide it with enough parameters to find your image in the DB. Hubert

Re: Locale problem...

2006-01-24 Thread Hubert Rabago
On 1/24/06, Niall Pemberton [EMAIL PROTECTED] wrote: However I have just created some new date validation functions that can do this for you. They are only currently in subversion, the package javadoc has some examples here: http://tinyurl.com/cc7a2 Niall From above URL: 1. Overview

Re: How to use a POJO inside Struts FormBean?

2006-01-12 Thread Hubert Rabago
You'll need to rename your iDef property if that is what you're calling it, via getIDef/setIDef. That pair will result in a property name of IDef. If you'd rather not change your accessor methods, then use IDef.partNumber instead of iDef.partNumber. [Wendy can quote the JavaBean spec related to

Re: The framework I think I want...

2006-01-06 Thread Hubert Rabago
On 1/6/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: The interesting thing is, there are some relatively minor tweaks that could be done to Struts that would solve a lot of problems. How about creating Actions per-request? Not at all a significant enhancement, but think of all the things

Re: The framework I think I want...

2006-01-06 Thread Hubert Rabago
On 1/6/06, Niall Pemberton [EMAIL PROTECTED] wrote: This will be easier to do in Struts 1.3 because rather than having to have a custom RequestProcessor you simply need to replace the Command that gets the Action instance with your own version that instantiates a new Action every time. So

Re: The framework I think I want...

2006-01-06 Thread Hubert Rabago
On 1/6/06, Craig McClanahan [EMAIL PROTECTED] wrote: IIRC, Craig implements Commands the way he did Actions, so there's one instance of it for the whole app (per jvm, etc, you know what i mean). That's what the default Commons Chain imlementation does, so that's what the current 1.3 code

Re: [.do - JSF/Shale]

2005-12-21 Thread Hubert Rabago
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote: I think bookmarks are a bad idea in web applications even when not built with Ajax. After all, an application is stateful and need a *state* to run. Bookmarks in my mind are made for informational sites wich are staless and not

Re: [.do - JSF/Shale]

2005-12-21 Thread Hubert Rabago
On 12/21/05, Craig McClanahan [EMAIL PROTECTED] wrote: Interestingly, this example confirms the counter argument that Hubert is raising :-). Double clicking an Open Office document causes that document to be opened, but *not* where it was when you closed it, or what you might have captured

Re: Validator 1.2 with Struts 1.2.7

2005-12-20 Thread Hubert Rabago
On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote: starki78 wrote: Hi* Is this combination (Struts 1.2.7 and Validator 1.2) possible and is it recommended to upgrade to this Validator version, when you don't Validator up to now? Thanks Starki AFAIK, validator 1.2 should work

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Hubert Rabago
I've always used String values. Given that difference, I've seen this work: field property=birth indexedListProperty=employees depends=required,date arg0 key=employeeform.birth.displayname/ var var-namedatePatternStrict/var-name

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-15 Thread Hubert Rabago
, and the same essentially for the companyForm, except I defined employees to be a list, and told the converter which form to map its elements to, and which Collection implementation class to use. Hubert On 12/15/05, Rick R [EMAIL PROTECTED] wrote: On 12/15/05, Hubert Rabago [EMAIL PROTECTED] wrote

Re: One Action different beans

2005-12-14 Thread Hubert Rabago
Take a look at Action mapping wildcards. This could even help maintain sanity since you'll know what bean a certain action call will be expecting. http://struts.apache.org/struts-action/userGuide/building_controller.html#action_mapping_wildcards Btw, questions like these should go to the user

Re: Struts web app suddenly stops working when deployed...Help Please!

2005-12-09 Thread Hubert Rabago
Somebody posted in Bugzilla lately that a possibly cause of this problem is an incomplete set of commons-* jars, such as Common BeanUtils, Commons Digester, or Commons Validator [1]. Make sure your jar files are complete. And if anyone has an idea on how we can solve this issue, patches and/or

Re: How would you solve this problem?

2005-11-22 Thread Hubert Rabago
Sorry for coming in late to the discussion but I only read this thread now. I may have misunderstood the problem. I'm thinking the popup will display a list of providers matching the search parameters, and the user can select any of them by checking one, and the fields on the form on the parent

Re: Is there an easy way to print error messages

2005-11-18 Thread Hubert Rabago
Yes it's Friday indeed (TG). For the benefit of you out there searching the archives, you can accomplish this by using html:errors property=name / . You can get more information here: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html Hubert On 11/18/05, Aladin Alaily [EMAIL

Re: The dreaded Servlet action is not available

2005-11-16 Thread Hubert Rabago
The times I came across this, it was related to an error in my struts-config.xml. Hubert On 11/16/05, Graham Leggett [EMAIL PROTECTED] wrote: Hi all, I have been trying to set up a new Struts project from scratch, and having set up a basic action class, etc I fire off a browser at my URL,

Re: Form Beans

2005-11-16 Thread Hubert Rabago
Well, I'm not Michael, but... On 11/16/05, Asad Habib [EMAIL PROTECTED] wrote: Hello Michael. Thanks for your input. Doesn't this approach defeat the purpose of using Struts though? I don't believe so. We're trying to make Struts more flexible and more extensible, and as a result we hope that

Re: [OT] JSF Interface Design - Is it Truly Limited?

2005-11-11 Thread Hubert Rabago
-Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, November 11, 2005 4:47 PM To: Struts Users Mailing List Subject: [OT] JSF Interface Design - Is it Truly Limited? I know there are some leading edge JSF and Shale gurus who monitor this list. I would hope

Re: How to clear DynaActionForm?

2005-11-08 Thread Hubert Rabago
You can set the form's scope to request. This way, the values don't survive from one request to the next. Hubert On 11/8/05, pc leung [EMAIL PROTECTED] wrote: even the following cannot clear fields in form-bean name=userProfileForm type=org.apache.struts.validator.DynaValidatorForm

Re: java.util.Date in Action Form Bean

2005-11-08 Thread Hubert Rabago
On 11/8/05, Yujun Liang [EMAIL PROTECTED] wrote: in Struts, you can define form-bean name=instructionForm type=org.apache.struts.validator.DynaValidatorForm form-property name=instruction type=com.clear2pay.bph.bean.Instruction/ /form-bean and you can just call, bean =

Re: java.util.Date in Action Form Bean

2005-11-08 Thread Hubert Rabago
This is exactly what FormDef does. It reads your existing bean and configures a form bean for it. Reuse. You can continue to use BeanUtils with the FormDef-configured beans as you would any other form bean, or you can also use FormDef's setFormValues()/getFormValues() and take advantage of its

Re: Configuration is frozen exception thrown for actionMapping.setScope

2005-11-07 Thread Hubert Rabago
On 11/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Hubert, Thanks for the suggestion. I tried the second option 2) Override the default ActionMapping class and set its default scope value to request. Extended the ActionMapping class and in the CustomActionMapping constructor

Re: How to get ACCESS to Locale in TAG class

2005-11-04 Thread Hubert Rabago
Is your JSP being accessed directly? If so, you may need to let the Struts RequestProcessor do its work first. action path=/myPage forward=/myPage.jsp/ then access it the way you would other Struts actions: http://domain/myApp/myPage.do Hubert On 11/4/05, Łukasz Piątkowski [EMAIL

Re: [FORMDEF] Combining FormDef and Struts form definitions - 2

2005-11-03 Thread Hubert Rabago
On 11/3/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Started a new thread, so it were visible in GMail. That was the idea. If FormDef could somehow pull my definitions from struts-config.xml or, which is much better, from configured Java objects, I would not have to redefine the properties

Re: java.util.Date in Action Form Bean

2005-11-03 Thread Hubert Rabago
On 11/3/05, Yujun Liang [EMAIL PROTECTED] wrote: Hubert, Good morning! ( Since I am sending it from Australia.) Good morning! How can I convert an input from user to the Date field base on the Locale? I mean the locale is a varible during the session and conversion can handle multiple

Re: Configuration is frozen exception thrown for actionMapping.setScope

2005-11-02 Thread Hubert Rabago
On 11/2/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All, In our application, we have decided to force all the actions to use the request scope. So instead of adding scope =request in the action element in struts-config.xml for each action, we extended the RequestProcessor class as

Re: java.util.Date in Action Form Bean

2005-11-02 Thread Hubert Rabago
[ Oh, I missed my cue! :) ] If your form bean maps to a business object (and it sounds like it does since you're using BeanUtils), you can try FormDef: http://formdef.dev.java.net/ You won't need to create a separate ActionForm class or manually define your DynaActionForm, FormDef will configure

Re: [FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Hubert Rabago
On 11/2/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Hubert, I cannot find if you explained it already, how to combine FormDef and a regular Struts dynaform definitions. In your manual you write only about DynaValidatorForm. FormDef can only work with forms defined by FormDef.

Re: [FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Hubert Rabago
On 11/2/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Um, that is not exactly what I asked about. I want to define resettable properties in struts-config.xml file (or somewhere else, I don't care where), for example: form-bean name=LogonForm

Re: [FORMDEF] Combining FormDef and Struts form definitions

2005-11-02 Thread Hubert Rabago
On 11/2/05, Michael Jouravlev [EMAIL PROTECTED] wrote: If it were possible to use form definitions made in struts-config.xml, then you would not have to reimplement this property in FormDef, and I would not have to wait for you to reimplement it ;-) I would just apply your patch to my copy of

Re: java.util.Date in Action Form Bean

2005-11-02 Thread Hubert Rabago
whether this BeanDef works with Validator? Thanks. On 11/3/05, Hubert Rabago [EMAIL PROTECTED] wrote: [ Oh, I missed my cue! :) ] If your form bean maps to a business object (and it sounds like it does since you're using BeanUtils), you can try FormDef: http://formdef.dev.java.net

Re: Beans in Request and Validation Question

2005-11-01 Thread Hubert Rabago
The way I dealt with this was to point my input attribute to a setup Action which would put the needed collection into request scope for me. But that's just one approach. Another is to handle validation yourself (which really is very easy). This is the approach recommended by

Re: Record locking

2005-11-01 Thread Hubert Rabago
For web applications, I tend to think that the more appropriate approach is (what I know to be called) optimistic locking. When a user edits a record, I keep track of the update timestamp (or even better, an update sequence number) of the record selected. This value gets sent back when the user

[announce] html2 Tag Library experiment

2005-10-31 Thread Hubert Rabago
I wanted to share the results of an experiment I was trying out. http://www.rabago.net/struts/html2/ It's an alternate set of tags (which extends those provided by Struts) and provides the developer with more control over handling of invalid form fields. At the very least, it allows you to show

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread Hubert Rabago
On 10/14/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Some nice scripting without Ajax, just Javascript and CSS: http://www.themaninblue.com/writing/perspective/2005/10/05/form/form4.htm I wish Struts Validator could be that cool :-) It CAN be. I spent some time last night figuring out the

Re: Why I Hate Struts Modules

2005-10-12 Thread Hubert Rabago
Paul, You can declare something like a struts-config-common.xml which will contain the config items that are common among your modules and then include them in your config declarations: param-nameconfig/param-name param-value /WEB-INF/classes/elms/resource/struts-config-common.xml,

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
Wow, you've got good timing, because someone is calling for this very feature in FormDef, patch provided: https://formdef.dev.java.net/issues/show_bug.cgi?id=2 The quick answer to your question is no. FormDef doesn't meddle with how Struts populates the form. It's more of a utility class you

Re: [FORMDEF] Resetting booleans for session-scoped dynaforms

2005-10-12 Thread Hubert Rabago
I'm not sure we're understanding each other about this request type. When a form is submitted, here's what happens: * Struts receives a request for an action * Struts sees that a form was configured for the mapping, so it calls retrieves the form (if it can find it) or creates a new one

  1   2   3   4   5   >