Hi,
hidden tags and plain text solve my problem ...
I find, when I disable components via jquery, client side I'm sure to
find the same problem :-(
Thanks
Marco
On Fri, Nov 11, 2011 at 11:06 PM, Dave Newton wrote:
> I'd either:
>
> (a) Not render it as a text field, but rather as plain text, o
I'd either:
(a) Not render it as a text field, but rather as plain text, or
(b) Include a hidden field if the user can't edit it.
There are probably other options too.
Dave
On Fri, Nov 11, 2011 at 5:00 PM, Marco Schwarz
wrote:
> Hi,
>
> that's I understand... but I disable fields because a use
Hi,
that's I understand... but I disable fields because a user doesn't
have right to change the value... and after submit the entity is
incomplete.
It's there a better method to do that?
Thanks
Marco
On Fri, Nov 11, 2011 at 10:53 PM, Dave Newton wrote:
> Oh, I misunderstood; I thought you mea
Oh, I misunderstood; I thought you meant the rendered HTML.
Chris is correct; disabled field values aren't sent by the browser.
Sorry!
On Fri, Nov 11, 2011 at 4:47 PM, Dave Newton wrote:
> Probably because it doesn't need to.
>
> Dave
>
> On Fri, Nov 11, 2011 at 4:43 PM, Marco Schwarz
> wrote:
Probably because it doesn't need to.
Dave
On Fri, Nov 11, 2011 at 4:43 PM, Marco Schwarz
wrote:
> Hi,
>
> I'm new in this mailinglist.
>
> I have a guestion (simple) Why a textfield disabled="true" doesn't set
> his value to my object? When I set disabled="false" it works fine.
>
> Thanks
> Marc
The obvious answer is, because it's disabled.
The more complete answer is, because the browser doesn't send values for
disabled form elements, Struts has no value to populate for that field.
(*Chris*)
On Fri, Nov 11, 2011 at 1:43 PM, Marco Schwarz
wrote:
> Hi,
>
> I'm new in this mailinglist.
Hi,
I'm new in this mailinglist.
I have a guestion (simple) Why a textfield disabled="true" doesn't set
his value to my object? When I set disabled="false" it works fine.
Thanks
Marco
-
To unsubscribe, e-mail: user-unsubscr...@
Thank you.
> I'm also not sure I'd purposefully send a 500 status
> code if I had the choice, but I guess that's up to you. The browser
> typically gives back a pretty ugly page for such a return status, IMO.
Only IE does this. And only if "friendly" errors are enabled.
I need 500 error because
> 1) Why do not struts passes exception to container by default? Could I
configure it to do so?
I don't have time to answer all of your questions well, but you may want
to look here:
http://struts.apache.org/2.2.1/docs/httpheader-result.html
That result type will permit the sending of any code
Thanks for all the great suggestions. I think the spring suggestions will work
best for what I want.
-Original Message-
From: Ken McWilliams [mailto:ken.mcwilli...@gmail.com]
Sent: Thursday, November 10, 2011 1:40 PM
To: user@struts.apache.org
Subject: Re: Struts 2 Initialization Plugin
Hello,
In bare container (tomcat) everything is good: Servlet throws exception and
container logs it and displays 500 error page with certain status.
Each uncounght exception should lead to 500 error because uncought exception
is _program_ error.
But struts-2 breaks this scheme.
1) it does not
11 matches
Mail list logo