by telephone or email and destroy the original
message without making a copy. Thank you.
- Original Message -
From: "Matt Luce" <[EMAIL PROTECTED]>
To:
Sent: Monday, June 11, 2007 8:51 PM
Subject: RE: ModelDriven interface
After working on this for a while, I beginni
After working on this for a while, I beginning to think that that
ModelDriven interface is not what I had thought it was. It is certainly not
a replacement for the formBeans in Struts 1. I guess I just need to forget
most of what I've used in Struts 1 :) Thanks all for your help.
Here is the flow of my tiny app:
listAction -> list.jsp -> selectAction -> update.jsp -> updateAction
(implements ModelDriven - getModel() returns the object selected in
list.jsp stored in session )
Once it gets to update.jsp, the form should show the values of the bean
selected on list.jsp. Bu
I'm using the default stack. What I'm trying to do is something very
simple, that was incredibly straightforward in Struts 1. What I'm
finding is the getModel() method is not getting called when I expect it
to. It doesn't get called until after the action has been "hit" once.
But that doesn't he
--- [EMAIL PROTECTED] wrote:
> I agree, it should be on the stack, but the values
> don't show up. Does anyone have an example of this
> that works?
I have a ScopedModelDriven example, but it's really,
really boring.
IIRC there's a ModelDriven example in showcase, but
it's even more boring than
I agree, it should be on the stack, but the values don't show up. Does
anyone have an example of this that works?
Then why have the modelDriven interface at all? What use is it?
Matt Luce
Wells Fargo Funds Management, LLC
414.577.7927
414.359.3537 Fax
--- Nicolás Pace <[EMAIL PROTECTED]> wrote:
> The correct way of populating the values IS
> declaring the getters and setters for each object
you
> want to populate.
If you implement ModelDriven then the model object
returned should be on the object stack allowing
non-qualified access on the form
On 6/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I'm working with Struts 2.0.6 and I'm trying to use the ModelDriven
Interface. However, I seem to be having some troubles. My actionClass
implements ModelDriven, but the values on the page don't fill with the
values of the object returned
9 matches
Mail list logo