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 co

Re: Struts/FormDef formatting question

2007-04-26 Thread Hubert Rabago
is -- I didn't notice 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,

Re: Struts/FormDef formatting question

2007-04-26 Thread Hubert Rabago
ng form or parse 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 Messag

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 ph

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: 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 you

Re: Form population and locale

2007-01-22 Thread Hubert Rabago
ml On 1/20/07, Paul 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

Re: Form population and locale

2007-01-20 Thread Hubert Rabago
? Regard, Zero -- Initial Header --- From : "Hubert Rabago" <[EMAIL PROTECTED]> To : "Struts Users Mailing List" Cc : Date : Thu, 18 Jan 2007 09:52:57 -0600 Subject : Re: Form population and locale On 1/17/07, Zero <[EMAIL

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, Mic

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 wo

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: 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 l

Re: dont exist ForwardAction ??

2006-11-21 Thread Hubert Rabago
I think he's looking for: 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: > hello again, thank for the previous answer. > > I would like to

Re: Indexed Properties

2006-11-17 Thread Hubert Rabago
und the problem - or at least a potential 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, > >

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 tha

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
lying the wheel, so you don't have to reinvent 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 subb

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
> finalSubmit.open("POST", "final.do", true); >>> > finalSubmit.send(tab1Form + tab2Form); >>> > } >>> > function finalSubmitCallback() { >>> > if (finalSubmit.readyState == 4) { >>> >

Re: Nested form beans

2006-09-22 Thread Hubert Rabago
note is that when the submission is made, the request > > that goes across is a POST to http://localhost:8080/test/final.do, as > > expected, and the POST body is: > > > > tab1Form.field1=val1&tab2Form.field2=val2& > > > > ...also as expected, verified in

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: validate integer with a comma thousands seperator using Validator

2006-08-05 Thread Hubert Rabago
Try a mask validator. mask ^\$?\d+(,\d{3})*(\.\d{2})?$ Hubert On 8/4/06, fea jabi <[EMAIL PROTECTED]> wrote: Thanks, Eric. >From: "Givler, Eric" <[EMAIL PROTECTED]> >Reply-To: "Strut

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: > > > > In your ex

Re: FormDef

2006-07-21 Thread Hubert Rabago
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 <[EMAIL PROTECTED]> wrote: > Another library, > >

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 requ

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 . If I'm just displaying data on the page, I just pass the POJO. Hubert On 7/18/06, Mississippi John Hurt <[EMAIL

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

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. H

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 comp

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] http:

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 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 programmatical

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: Tiles headaches - should be simple - driving me nuts here...

2006-04-14 Thread Hubert Rabago
Rick, My tiles:insert uses name instead of attribute. 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, > and I keep getting error messages l

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

[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-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 V

Re: [shale] Tiles integration with RI

2006-04-13 Thread Hubert Rabago
" when it reaches my " attribute="title"/>", which in turn references my tiles def containing > "". Perhaps the is the > answer to my problem. > > Perhaps you could include your "/baseTemplate.jsp" in your response. > > Thanks for

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 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:

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-dev&m=114369603519450&w=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 JCV

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: 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: :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 this in a > Stru

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 actionList

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

2006-03-24 Thread Hubert Rabago
which is wrong. > > I think I am missing something here. > > Please, explain. thanks. > > > > >From: "Hubert Rabago" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > >To: "Struts Users Mailing List" > >Subj

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 tutori

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. BeanUtils.

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.) > > >

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: 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" sec

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: 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: Problem getting Validator plugin to work

2006-03-06 Thread Hubert Rabago
On 3/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > type="com.globallink.glr.dataentryweb.form.AddSalesProspectForm"> > public class AddSalesProspectForm extends ValidatorForm > Since you're extending ValidatorForm, Validator will try to find validation rules based on

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 would

Re: Validator Skipping Action

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

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

2006-01-31 Thread Hubert Rabago
> if it does I don't find getResource in it I find getMessageResources which > is expecting config as parameter. > What should I supply as config from Action class ? > > > > > > > > Hubert Rabago <[EMAIL PROTECTED]> > 01/31/2006 11:29 AM > Ple

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: Nested Tags

2006-01-31 Thread Hubert Rabago
On 1/31/06, rama chandrula <[EMAIL PROTECTED]> wrote: > I have a list of objects, and each object inturn has a list of another > object. I want to represent all these objects and the properties of the > inner object in the UI like > > outer[i].inner[j].propertyValue > > How can I use nested tags to

Re: Need some advice

2006-01-31 Thread Hubert Rabago
You should name the fields in a way that allows Struts (BeanUtils, actually) to get to the correct property, such as "address.street". Also, make sure your accessor for the nested bean always returns a non-null bean, or else you'll get an NPE when the form is submitted. Hubert On 1/31/06, Sony T

[ANN] FormDef 1.0 Release

2006-01-30 Thread Hubert Rabago
I've always told people I'll start [ANN]ouncing once I hit 1.0, so... FormDef 1.0 has been released and is ready for download. http://www.rabago.net/struts/formdef/ FormDef allows you to easily declare Struts form beans based on existing business classes. This allows an application to reuse pro

Re: problem with forwardPattern and modules

2006-01-30 Thread Hubert Rabago
ct > URI?). > > kr, > guenther > > -- > Günther Wieser > > creative-it > Guglgasse 6/1/11/1 > A-1110 Wien > Austria > http://www.creative-it.com > > "2 Dinge sind unendlich: Das Universum und die > Dummheit der Menschheit, aber beim Universum > bin

Re: Two questions.

2006-01-30 Thread Hubert Rabago
On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Very simple two questions . > > 1. How do I get struts log4j messages on my console/my log ? > 2. How do I read application specific properties file in struts > application? Instructions on how to use and configure Log4j are available on h

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 wi

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 L

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 doesn'

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 The

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: 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: 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. O

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: 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 l

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 rel

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

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, 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 thin

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 capt

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 appli

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

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

2005-12-15 Thread Hubert Rabago
r 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 PROT

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: datePatternStrict MM/dd/ In this case, the form bean has a collection of "employees", and each empl

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 li

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 de

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 w

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 . You can get more information here: http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html Hubert On 11/18/05, Aladin Alaily <[EMAIL PROTECTED]> wrote: > Probl

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 t

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 UR

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 wo

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 f

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 > >type="com.clear2pay.bph.bean.Instruction"/> > > > and you can just call, > > bean = ((DynaActionForm) form).get(pageName); > in this case pageName = "instruction"; > > and Struts automatically populate a > com.c

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 > type="org.apache.struts.validator.DynaValidatorForm" > > > >

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 > cons

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. then access it the way you would other Struts actions: http://domain/myApp/myPage.do Hubert On 11/4/05, Łukasz Piątkowski <[EMAIL PROTECTED]> wrote: > Hello ! > > I have a proble

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 multip

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 prope

Re: java.util.Date in Action Form Bean

2005-11-02 Thread Hubert Rabago
yntax. > http://struts.apache.org/struts-core/userGuide/building_controller.html#action_form_classes > > Do you know whether this BeanDef works with Validator? > > Thanks. > > On 11/3/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > > > [ Oh, I missed my cue! :) ] > &g

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 c

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: > > type="org.apache.struts.validator.DynaValidatorForm"> > >re

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. > Con

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: "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 > element in struts-config.xml for each action, we extended the > RequestProcessor class as

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 a

  1   2   3   4   5   6   >