Frank W. Zammetti on 25/08/08 05:36, wrote:
Don Brown wrote:
This is a nice design, when you can do it. GWT is also a good way to
build these types of apps. Unfortunately, they can easily break much
of what makes the web what it is - the back button, unique,
addressable URI's, accessibility, se
David Blevins on 30/05/08 19:53, wrote:
Personally, I favor copying the code over and jarjar'ing the asm
dependency.
Two quick questions:
"jarjar'ing" the dependency? What does that mean? I hope I'm not the
only one who isn't hip to the lingo! I guess if I knew the context
better I could wor
Don Brown on 29/05/08 08:08, wrote:
xbean-finder is already split into a common library, just it is part
of the xbean project rather than commons. From a technical level,
there is no difference.
The reason we want to copy the code over has less to do with the
project's stability but the desire
part from that update()
situation.
Alexander Snaps on 08/05/08 22:02, wrote:
Still didn't take the time to look into the code :(
By any chance, are you at JavaOne? We might try to check it out together,
what do you think?
Alex
On Fri, May 2, 2008 at 4:01 AM, Adam Hardy <[EMAIL PROTEC
Antonio Petrelli on 08/05/08 10:07, wrote:
2008/5/8 Adam Hardy <[EMAIL PROTECTED]>:
Antonio Petrelli on 08/05/08 09:34, wrote:
Hi all!
I experimented the use of Tomcat's Jasper implementation of EL instead
of JUEL at Tiles, and it seems to work pretty well:
Eh, it's a bit co
Antonio Petrelli on 08/05/08 09:34, wrote:
Hi all!
I experimented the use of Tomcat's Jasper implementation of EL instead
of JUEL at Tiles, and it seems to work pretty well:
http://svn.apache.org/repos/asf/tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/evaluator/el/
So I managed
s situation. I still don't get how changes done while applying
the values actually are within a tx demarcation... Doesn't translate in some
weird tx management issue? Why would you have the tx begin during these
phases?
On Fri, May 2, 2008 at 11:11 AM, Adam Hardy <
[EMAIL PROTECTED]&g
Alexander Snaps on 02/05/08 10:04, wrote:
On Thu, May 1, 2008 at 5:49 PM, Eric D. Nielsen <[EMAIL PROTECTED]>
wrote:
Alexander Snaps gmail.com> writes:
I know I am repeating myself, but what is getting in the way of NOT
starting
a transaction at all in the case of a validation error... Shou
7;s Session specific feature...
Alex
On Thu, May 1, 2008 at 3:54 PM, Eric D Nielsen <[EMAIL PROTECTED]> wrote:
[ I suspect this is going to break threading Is there a good way to
respond
to a message from a digest without breaking threading? )
Adam Hardy on 26/04/08 10:42, wrote:
I
Eric D Nielsen on 01/05/08 14:54, wrote:
[ I suspect this is going to break threading Is there a good way to respond
to a message from a digest without breaking threading? )
I wondered why! Unfortunately you need the message id for threading and I don't
think it is included in the digest,
Alexander Snaps on 01/05/08 12:02, wrote:
Entity myEntity = em.find(Entity.class, someId);
oldValue = myEntity.getSomeField(); // this is only for further down in the
mail ;)
myEntity.setSomeField(someValue);
if(!hasError) {
EntityTransaction tx = em.getTransaction();
tx.begin();
tx.comm
Alexander Snaps on 01/05/08 12:02, wrote:
On Thu, May 1, 2008 at 12:49 PM, Adam Hardy <
[EMAIL PROTECTED]> wrote:
Alexander Snaps on 01/05/08 11:30, wrote:
Using the JPA extended persistence context (not EJB), the clear() will
eliminate any changes to the model before JPA comes to fl
Alexander Snaps on 01/05/08 11:30, wrote:
Using the JPA extended persistence context (not EJB), the clear() will
eliminate any changes to the model before JPA comes to flush to the db. I
assume it would work in an EJB container too.
I'm not really sure I get the point your making here, but i
Alexander Snaps on 01/05/08 11:30, wrote:
Using the JPA extended persistence context (not EJB), the clear() will
eliminate any changes to the model before JPA comes to flush to the db. I
assume it would work in an EJB container too.
I'm not really sure I get the point your making here, but i
Chase on 01/05/08 06:04, wrote:
Adam Hardy wrote:
the problem was spurious JPA updates - which can be avoided by putting
an interceptor in between the Validation and the Workflow
interceptors: all it should do is call EntityManager.clear().
if (validationAwareAction.hasErrors
Adam Hardy on 26/04/08 10:42, wrote:
Jeromy Evans on 26/04/08 04:51, wrote:
Eric D Nielsen wrote:
I've been investigating some interesting behavior regarding model-driven
actions and found a past thread that covers the situation from late last
year:
http://www.nabble.com/ModelDriven
Chase on 26/04/08 20:29, wrote:
Adam Hardy wrote:
Chase on 26/04/08 11:16, wrote:
One solution could be to use a TypeConverter to instantiate new,
unmanaged entities during the ParamsInterceptor invocation.
Such a TypeConverter could pass back instantiated, blank entities
(with nothing but
Jeromy Evans on 26/04/08 04:51, wrote:
I haven't had an opportunity to absorb your suggestion properly yet but
thought I'd mention I agree with your line of thinking that the
validation mechanism in particular needs to be improved. However, this
is a general problem that also applies to rich cl
Chase on 26/04/08 11:16, wrote:
I also stumbled across this problem.
One solution could be to use a TypeConverter to instantiate new,
unmanaged entities during the ParamsInterceptor invocation.
Such a TypeConverter could pass back instantiated, blank entities
(with nothing but the ID) for
Jeromy Evans on 26/04/08 04:51, wrote:
Eric D Nielsen wrote:
I've been investigating some interesting behavior regarding model-driven
actions and found a past thread that covers the situation from late last
year:
http://www.nabble.com/ModelDriven-CRUD-validation-failure-still-causes-JPA-update-
peconversion to databinding uses ognl
under the hood and provides a lot of flexibility
On 3/23/08, Adam Hardy <[EMAIL PROTECTED]> wrote:
It's a dependency, not a requirement, to be precise although I guess you
meant
that. To create a stripped-down struts, I'd ditch OGNL and do the
o: "Struts Developers List"
Subject: Re: If I had 1000 hours to give...
No it doesn't, but then neither does the Struts tags if "no OGNL" :)
On Fri, Mar 21, 2008 at 9:45 AM, Adam Hardy <
[EMAIL PROTECTED]> wrote:
Really??? I don't think jsp:getProperty doe
t 11:42 AM, Adam Hardy <
[EMAIL PROTECTED]> wrote:
+1
in fact, i'd write a new taglibrary with just lightweight support for form
properties, conversion, and formatting. No HTML, no Ajax, no OGNL, no
value stack.
Then I'd do a session of performance testing to see what the improvem
+1
in fact, i'd write a new taglibrary with just lightweight support for form
properties, conversion, and formatting. No HTML, no Ajax, no OGNL, no value stack.
Then I'd do a session of performance testing to see what the improvement was
(did somebody else suggest that?).
Antonio Petrelli
Actually I'd go one further and say the constant should be a static on the class
to which it has most relevance. Now that reduces typing and improves clarity.
Instead of
StrutsConstants.RESULT_CONSTANT1;
StrutsConstants.ACTION_CONSTANT1;
Action.CONSTANT1;
I think if you look at StrutsStatics
t much slower at the moment - I
find myself unintentionally at the wrong end of the learning curve again) then
I'll definitely put together something myself by way of a demo. At the moment
though I shall have to make do with an ugly child class extending TilesResult.
Best regards
Adam
Jer
Jeromy Evans on 10/01/08 01:32, wrote:
I had quickly coded a Result to do some 'view logic' (i.e. retrieve a list
from the model) and I had assumed I would be able to parameterize this
using extra parameters in but it seems my extra parameters are
ignored - the only one that counts is
Is that
be able to parameterize this using extra
parameters in but it seems my extra parameters are ignored - the only
one that counts is
Is that correct?
Adam Hardy on 02/01/08 23:55, wrote:
That was the standard struts 1 approach, IIRC. My grudge with the other
solutions I think also applies to
David Durham, Jr. on 03/01/08 05:05, wrote:
Three or four years ago, this issue with the view was discussed alot. There was
talk of mechanisms termed 'view-controllers' and concepts such as 'view logic'.
Isn't this something that Tiles does pretty well? I haven't looked at
Tiles 2, and I recal
he action. I think your problem
can easily be solved by making "input" go thru an action, instead of
forwarding to the page straight. (but you already knew this :) )
regards musachy
On Dec 31, 2007 11:41 AM, Adam Hardy <[EMAIL PROTECTED]>
wrote:
Happy New Year everybody.
This issu
As you say, Brian, there are many many situations where the link between actions
and forms are not one-to-one. 75% of the time there is a basic need to execute 2
jobs in any one HTTP request:
(a) process the incoming request and parameters
(b) display the next page
Sometimes (a) will be unnece
Happy New Year everybody.
This issue is mostly due to the validation failure mechanism which passes flow
direct to the 'input' result without giving a chance to code the data retrieval
needed to get data for dropdowns, associated lists, etc etc which the view/JSP
will need.
Currently the as
Brian Pontarelli on 29/12/07 05:34, wrote:
Adam Hardy wrote:
Brian Pontarelli on 28/12/07 18:12, wrote:
In an ideal world I would be happiest to retrieve dropdown lists in
my Actions, but there is a clear separation between the Actions and
the JSPs, whose dropdown list requirements don'
Pratt on 29/12/07 00:48, wrote:
On Dec 28, 2007 4:15 PM, Adam Hardy <[EMAIL PROTECTED]> wrote:
Well, I guess I should have read your whole message. :S
Can you get hold of the Action in your tag? If so, then you can do this:
ValidationAware validationAwareAction = (ValidationAware)
Brian Pontarelli on 28/12/07 18:12, wrote:
In an ideal world I would be happiest to retrieve dropdown lists in my
Actions, but there is a clear separation between the Actions and the
JSPs, whose dropdown list requirements don't map one-to-one to the
Actions.
So I turned to Results to achieve
()
validationAwareAction.getFieldErrors()
Chris Pratt on 28/12/07 23:50, wrote:
On Dec 28, 2007 3:42 PM, Adam Hardy <[EMAIL PROTECTED]> wrote:
Here's one way, if you really don't want to use
import javax.servlet.jsp.jstl.fmt.LocaleSupport;
LocaleSupport.getLocalizedMessage(pageContext, key);
P
Here's one way, if you really don't want to use
import javax.servlet.jsp.jstl.fmt.LocaleSupport;
LocaleSupport.getLocalizedMessage(pageContext, key);
Chris Pratt on 28/12/07 19:19, wrote:
OK, I'm losing my mind trying to figure this out. I tried asking on
the Users list, but no one there s
Brian Pontarelli on 28/12/07 16:09, wrote:
My requirements specify a mechanism that allows for:
- caching of lists (countries again in ApplicationScope for example)
- parameterization (e.g. a list of codes allowed in a particular
category - requires the categoryId)
- localization of dropdown
I'm using Tiles2 so I configured the TilesResult for my views.
To set up the lists for dropdowns in those tiles, I am coding my own Result,
rather than relying on a weakly related Action to do it.
My result has to extend TilesResult, but it seems to be an unnecessary
dependency, because reall
Just wondering what the release mechanism is on the cwiki.
I edited a page and saw that the changes are backed up on a branch somehow.
Another question - regarding the mechanism binding in the javadoc from the src
into the cwiki.
I couldn't find any reference to the snippet macro, so I'm not
JSP
taglibs, like JSTL. The work I've done would certainly be a darn good
start. If we needed a whole new taglib, I think that would be a good
amount of work.
Tom
Adam Hardy wrote:
Very interesting.
The situation at the moment is that EL and OGNL should not be used
together, for securit
OGNL. We would need to extend the language or
be limited when compared to what is possible with OGNL today. Maybe for
some people that's not an issue, but I fear that would keep some people
from switching.
Tom
Adam Hardy wrote:
Ing. Andrea Vettori on 30/11/07 16:40, wrote:
It seems to
Ing. Andrea Vettori on 30/11/07 16:40, wrote:
Il giorno 30/nov/07, alle ore 17:22, Brian Pontarelli ha scritto:
Andrea Vettori wrote:
Already posted on user list but maybe more appropriate here...
It's long time I was away from this list.
I've found with big surprise that JSP EL is not availa
pened to JOTM, anyway?
d.
--- Adam Hardy <[EMAIL PROTECTED]>
wrote:
Wes Wannemacher on 12/11/07 15:05, wrote:
I have a judgment call to make now and wanted some
input. At first I
was hoping to create this in a non-IoC fashion.
This was simply to
keep the dependencies at a minimum and
Wes Wannemacher on 12/11/07 15:05, wrote:
I have a judgment call to make now and wanted some input. At first I
was hoping to create this in a non-IoC fashion. This was simply to
keep the dependencies at a minimum and concentrate on integrating JPA
and struts2. But, in many spots, the JPA docs ind
e had an office!)
BTW you could put email in the document as another option.
Ted Husted on 10/10/07 11:45, wrote:
If you can scan in the document, now you can also try emailing it to
<[EMAIL PROTECTED]>.
HTH, Ted.
On 10/9/07, Adam Hardy <[EMAIL PROTECTED]> wrote:
I have mailed i
Martin Cooper on 23/09/07 18:24, wrote:
On 9/23/07, Adam Hardy <[EMAIL PROTECTED]> wrote:
Ted Husted on 21/09/07 22:34, wrote:
On 9/21/07, Wes Wannemacher <[EMAIL PROTECTED]> wrote:
Hello,
I recently volunteered to help update some of the struts2 docs. I
started poking around on
Matt Raible on 24/09/07 20:55, wrote:
On 9/24/07, James Holmes <[EMAIL PROTECTED]> wrote:
Yes, true and it may be a moot point soon if Don Brown is able to get JSP EL
working as the underlying EL engine of Struts 2.
I don't know if this is a good thing, at least not for my current
project. It'
I stumbled across a nasty glitch by coding this seemingly harmless error
handling in my action:
this.addActionError(exception.getMessage());
which in the ActionErrorTag's freemarker template causes this:
Expression error is undefined on line 4, column 50 in
template/simple/actionerror.ftl.
T
Ted Husted on 21/09/07 22:34, wrote:
On 9/21/07, Wes Wannemacher <[EMAIL PROTECTED]> wrote:
Hello,
I recently volunteered to help update some of the struts2 docs. I
started poking around on the wiki and I am a bit nervous about mucking
things up. I am going to give you my understanding and I w
Chris Pratt on 20/09/07 17:20, wrote:
On 9/20/07, Adam Hardy <[EMAIL PROTECTED]> wrote:
Would it be a big deal to change com.opensymphony.xwork2.DefaultActionInvocation
to allow my Action to return an enumeration instead of a string?
How about creating a subclass of ActionSupport th
Would it be a big deal to change com.opensymphony.xwork2.DefaultActionInvocation
to allow my Action to return an enumeration instead of a string?
I tried it myself but the code wants to cast my Enumeration to a string, rather
than call .toString():
return (String) methodResult;
Hermod,
it totally depends on what logging package you are using. Whichever you
have, you should make sure that the logger class for org.apache is set
to warn or error or similar.
Adam
n 04/14/2004 01:41 PM [EMAIL PROTECTED] wrote:
Hi
I have a problem that I am having trouble figuring out. Whe
Rob,
how does this validation inheritance work? Is it documented anywhere?
Adam
On 04/09/2004 12:38 AM Robert Leland wrote:
I would like to entice developers to give the Struts Nightly and/or the
commons-validator a try. I am announcing this only on the 'dev' list in the belief
that since you sub
On 04/04/2004 06:40 PM Niall Pemberton wrote:
I notice that the mail archive doesn't have any messages since 26/27 March - I assume this is something to do with the TLP change & email address changing to dev/[EMAIL PROTECTED]
http://www.mail-archive.com/struts-dev%40jakarta.apache.org/
http://www.
I guess it's because the term 'Action' has become seriously over-used.
On 04/04/2004 11:48 AM Adam Hardy wrote:
On 04/04/2004 01:10 AM Joe Germuska wrote:
What if you were using ValidatorActionForm/DynaValidatorActionForm
instead of ValidatorForm/DynaValidatorForm? Then
On 04/04/2004 01:10 AM Joe Germuska wrote:
What if you were using ValidatorActionForm/DynaValidatorActionForm
instead of ValidatorForm/DynaValidatorForm? Then the server side
validation rules are looked up based on the path, not the name. With
the form classes, this can be encapsulated cleanly
Niall,
have a look at org.apache.commons.validator.util.Flags to see how it's done.
Adam
On 04/02/2004 09:50 PM Niall Pemberton wrote:
I'll have a look a doing a patch. I'm probably being really stupid but how
do you mean group by powers of 2? You mean 1, 2, 4, 8, 16, 32, 64 etc. - but
how would i
is almost
agreement on the needed changes, and options. Before fileing do try to
firm
up those options. Since the commons validator already has the
allow2slashes,noFragments and allowAllSchemes. These would be a good
start.
Niall
Adam
On 04/01/2004 10:08 PM Niall Pemberton wrote:
Adam Ha
d components, "/", ";", "?" are
reserved. The "/" character may be used within HTTP to designate a
hierarchical structure.
It states that path is optional therefore it would appear to me that
http:///? is valid.
If we're actually talking URIs my apolo
nother part
of the UrlValidator that I would like to enhance - see the URL
Validation thread. I might have a patch for that too soon.
Adam
On 04/01/2004 11:59 PM Niall Pemberton wrote:
Adam Hardy <[EMAIL PROTECTED]> wrote
I was merely adopting the three optional configuration sett
IL PROTECTED]" <[EMAIL PROTECTED]> wrote:
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Subject: Re: URL validation
On 03/15/2004 10:16 AM Adam Hardy wrote:
On 03/13/2004 07:46 AM [EMAIL PROTECTED] wrote:
From: Adam Hardy I provide URL validation on a page which
Validator.isUrl()?
Adam
On 04/01/2004 10:08 PM Niall Pemberton wrote:
Adam Hardy suggested "allow2slashes", "nofragments" and "allowallschemes"
being either true/false
I think rather than having "allowallschemes", have a "schemes" parameter
which c
On 03/15/2004 10:16 AM Adam Hardy wrote:
On 03/13/2004 07:46 AM [EMAIL PROTECTED] wrote:
From: Adam Hardy I provide URL validation on a page which saves links
for
users.
I put together the latest build of commons-validator (1.1.2) and struts
(1.2) to see what the URL validation is like.
The
Just came back to it after lunch and recompiled struts with some logging
statements, and the thing works again. I can only put it down to some
sort of caching in JBoss-tomcat, or maybe in my short term memory. :0
On 03/31/2004 02:16 PM Adam Hardy wrote:
in my DynaActionForm declaration, I do
Sorry, originally meant to send this here, but changed my mind and
wanted to send it to the struts user list. Please let me know if you
think I should. If so, sorry for the traffic (he says, making it worse).
On 03/31/2004 02:16 PM Adam Hardy wrote:
in my DynaActionForm declaration, I do this
in my DynaActionForm declaration, I do this:
and in my action, I'm assigning the SurveyDTO array to it, but I am
getting a ConversionException with the msg:
Cannot assign value of type '[Lorg.gargantus.esurvey.SurveyDTO;' to
property 'surveys' of type '[Lorg.gargantus.esurvey.S
67 matches
Mail list logo