I'd actually like to support this eventually (maybe 2.1). The reason for
this is that most DB-based resources need to be request-scoped, but really
only the DB (ie: Hibernate session) needs to. No reason why everything else
must get dragged down to that level as well. Since WebWork (read: NOT
Uhm - please explain how it would be done? (could be done?)
App scoped component : PersistenceManager (PM)
There is therefore only one PM.
Request scoped component: HibernateSession (HS)
Two requests come in A and B, each with a request scoped component (HS A and
HS B)
A calls
Hi...
I do this exact same thing with WebWork2 right now, however I use a
ServletFilter and ThreadLocal variables to solve it.
I have an app scoped component called PersistanceManager (PM)
When a request comes in (A) it calls PM.getSession() and puts thes the
session (SA) in the request and
Hi.
Just discovered megg[1] the other day.
Megg is a tool for lazy developers. Using Java and Apache Velocity,
it provides a simple command line tool to generate a project source
tree from a host of supplied templates, with an aim to encouraging
best practices in new software.
It
Jon,
Ahh yes - that's exactly the model we use too :)
My point below was that mixing 'scoped components' together in an IOC
framework (specifically narrowing the scope) is a thread nightmare.
This is exactly the reason you can't do it (xwork won't let you) and the
reason that a ThreadLocal +
Mike,
Yeah, I was trying to make that point as well that scoped components and IOC
don't work well together. I realized after I sent the message that didn't
state that anywhere. Thanks for putting it in clear english. :-)
Cheers,
Jon...
- Original Message -
From: Mike Cannon-Brookes
Title: How does one change the contentType in the response?
I need change the MIME type to display a pdf to the browser. In a Servlet based web framework like Expresso or Struts I would simple call response.setContentType(String), hows does one do this in WW2?
Thanks
Kris
On Wed, Sep 24, 2003 at 07:50:31AM -0600, Thompson, Kris wrote:
I need change the MIME type to display a pdf to the browser. In a Servlet based web
framework like Expresso or Struts I would simple call
response.setContentType(String), hows does one do this in WW2?
How do you create the pdf?
Title: Re: [OS-webwork] How does one change the contentType in the response?
You can still do that if you want ActionContext.getResponse().setContentType() should work AFAIK.
Cheers,
Mike
On 24/9/03 11:50 PM, Thompson, Kris ([EMAIL PROTECTED]) penned the words:
I need change the MIME type
Please update the quickstart guide to take care of the issues you
found... I'll take a look at the Megg page...
-Original Message-
From: Jeremy Rayner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:07 AM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Re: Megg and ww2
Long story gone VERY short is that it will be created in a class that extends
ActionSupport. So unless I am missing something I don't have access to the response
object therefore the method below is not available to me, right?
KT
-Original Message-
From: Philipp Meier [mailto:[EMAIL
Title: Re: [OS-webwork] How does one change the contentType in the response?
Uh,
that makes perfect sense but I'm not seeing that method in the ActionContext
class and I just did an update from CVS. What am I missing here? I'm
talking about WW2 in particular I amlooking atthe XWork API from
Title: Message
You
want ServletActionContext.getRequest() ServletActionContext is an added
helper for the ActionContext in WebWork2
-Original Message-From: Thompson, Kris
[mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24,
2003 10:35 AMTo:
[EMAIL
Its in ServletActionContext, actually.
I know you said long story, but why would the PDF generation be in the
Action instead of treating it as just another view?
Quoting Thompson, Kris [EMAIL PROTECTED]:
Uh, that makes perfect sense but I'm not seeing that method in the
ActionContext class
Its in ServletActionContext, actually.
Perfect!
I know you said long story, but why would the PDF generation
be in the
Action instead of treating it as just another view?
I'm all ears! I'm not familar with how this is done and I did not see any docs on
this. Could someone point
On Wed, Sep 24, 2003 at 08:56:29AM -0600, Thompson, Kris wrote:
Its in ServletActionContext, actually.
Perfect!
I know you said long story, but why would the PDF generation
be in the
Action instead of treating it as just another view?
I'm all ears! I'm not familar with how
On Wed, Sep 24, 2003 at 08:22:53AM -0600, Thompson, Kris wrote:
Long story gone VERY short is that it will be created in a class that extends
ActionSupport. So unless I am missing something I don't have access to the response
object therefore the method below is not available to me, right?
Althought I'm a struts user, WW2 features seem to be very exciting, so i'm
testing WW2 for my next project.
For the while, i'm writing a simple project in order to explore the WW2
features, and i'm rather impressed by your work.
However I've some questions :
1/ We can use only ui tags from
Couldn't some sync() blocks around the higher scoped item solve that? Most
session-scoped things should be sync'd anyway.
-Pat
- Original Message -
From: Jon Lipsky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:45 AM
Subject: Re: [OS-webwork] Issue with
1/ We can use only ui tags from velocity (Renderer
interface), do you plan
quicky to support the other tags (URLTag , ...) ?
You do not need URL tag there. At least in WW1.3
there was Url bean, which did all you need with URLs
regards,
=
[ Konstantin Pribluda ( ko5tik )
Hi,
I'm currently migrating a WW1 application to XW1/WW2.
I noticed the following points not mentioned in the Webwork 2 Migration
Guide (http://wiki.opensymphony.com/space/WebWork+2+Migration+Guide);
maybe some of these points are interesting for other who want to migrate
too.
It would be nice
FYI
-Original Message-
From: Drew Davidson [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 september 2003 17:58
To: John D. Mitchell
Cc: BOGAERT Mathias; '[EMAIL PROTECTED]'
Subject: Re: Null vs. Empty
John D. Mitchell wrote:
BOGAERT == BOGAERT Mathias [EMAIL PROTECTED] writes:
--- Fred Lamuette [EMAIL PROTECTED] wrote:
I'm testing WebWork2, so how can i handle url from
velocity ?
look into source code for where WW macros are defined.
There ought to be #url () which will instantiate url
bean into context
regards,
=
[ Konstantin Pribluda ( ko5tik )
See below
-Original Message-
From: Fred Lamuette [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 11:17 AM
To: Webwork
Subject: [OS-webwork] Struts user feedbak
Althought I'm a struts user, WW2 features seem to be very
exciting, so i'm testing WW2 for my next
I've done a JFreeChartResult. Perhaps it is similar to what you require. I
will be needing a PdfResult later on in my project development (perhaps in
the next month), and I'll post what I've learnt online.
Meanwhile, here is what I've got for the JFreeChartResult...
Where are the macros ? #tag, #bodytag et #param are some 'userdirective'
defined in a programmatic way in the VeolcityManager.
So what ???
Regards.
-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
Konstantin Priblouda
Envoye : mercredi 24 septembre 2003
-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
Jason Carreira
Envoye : mercredi 24 septembre 2003 18:54
A : [EMAIL PROTECTED]
Objet : RE: [OS-webwork] Struts user feedbak
See below
-Original Message-
From: Fred Lamuette [mailto:[EMAIL
I also find the VelocityTools attractive. Here is a post from the Velocity
list on how one can use them seperate from the VelocityViewServlet. It
wouldn't be too hard (from the description) to tie them in, and I'm sure
that Nathan Bubna would help you do it on the Velocity list, and appreciate
the
Nils Hartmann wrote:
Hi,
I'm currently migrating a WW1 application to XW1/WW2.
I noticed the following points not mentioned in the Webwork 2 Migration
Guide (http://wiki.opensymphony.com/space/WebWork+2+Migration+Guide);
maybe some of these points are interesting for other who want to
migrate
Last I checked (about a month ago), it wasn't there. There are no macros
in ww2 like there were in ww1. I think everyone keeps assuming they are,
but they're not. Also, the same objects aren't on the velocity stack
(like the webwork utility that does a lot of other useful stuff like
how about creating a somekind of PdfResult?
I think ww 1.3 had a pdf view, not sure..
Philipp Meier wrote:
On Wed, Sep 24, 2003 at 08:22:53AM -0600, Thompson, Kris wrote:
Long story gone VERY short is that it will be created in a class that extends ActionSupport. So unless I am missing
I dont know if you've done this already but could you attach this code
to jira or the wiki just in case someone needs it its alot easier to get
boxed wrote:
Nils Hartmann wrote:
Hi,
I'm currently migrating a WW1 application to XW1/WW2.
I noticed the following points not mentioned in the
Title: JSP tag for viewing Session attributes?
After a user logs in I place their User object in the session (thanks to the ActionContext.getSession()) This works great except I also have in my header on all of my JSP pages a tag like this
ww:property value=user.FirstName /
This tag works
Please add your findings to the Wiki so others will see it too... See
below for comments...
-Original Message-
From: Nils Hartmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 12:16 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Migrating to WW2
Hi,
I'm
Hi,
I just encountered strange behaviour of the PushTag (ww2).
I have a jsp-page like this:
[...]
brStack: ww:property/
ww:push value=street
pStreet: ww:property/
pthat : ww:property value=that/
/ww:push
pstreet-Property: ww:property value=street/
[...]
When the
Hi all,
I'm running into serious problems to use the XWork Validation Framework ...
When I turn off the validation (i.e.: remove the ValidationInterceptor from myAction
interceptors
list) everything goes fine but when I turn it on the fields read by the
validate() method at
[...]
The first time the page is shown, the output is as expected: The first
property/-call
returns the output of toString() of the action class, that's on top of the
stack. All other property-calls return the value of the street
property.
[...]
Is this a bug (nothing found in Jira) or am
Do you have the ParameterInterceptor applied before the validation interceptor?
-Original Message-
From: Samuel Mota [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] XWVF Interceptor
Hi all,
I'm running into
3/ Dont you think the struts concept of ActionMessage is a good idea, a
low-cost dev effort to store easyly a message (possibly localized) at the
end of a action to inform the user in the view (creation successful ,...).
This sort of thing is most easily added yourself in a base class. Indeed,
Title: Re: [OS-webwork] JSP tag for viewing Session attributes?
Kris,
What you should do here is provide a getter method in your action, eg:
public User getUser() { return ActionContext.getSession().get(user.key); }
And then in your views you can do user.firstName and it will use getUser()
Hello, I'm new to WebWork and Xwork :)
I've been trying to use the validation framework. I want to be able to
use the correct type for my Action bean properties, ie:
Integer selectedId;
I also want to be able to have a message such as Sorry, -123abcde is
not a valid ID.
Is this possible?
The type conversion framework will handle this part... It sounds like we
(Patrick and I) need to get together on making these work together
better and make it so the type conversion can provide good messages.
-Original Message-
From: Adam Fleming [mailto:[EMAIL PROTECTED]
Sent:
On 9/24/03 8:45 PM, Jason Carreira [EMAIL PROTECTED] wrote:
The type conversion framework will handle this part... It sounds like we
(Patrick and I) need to get together on making these work together
better and make it so the type conversion can provide good messages.
Wouldn't having the
-Original Message-
From: Tracy Snell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 10:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Validation Framework details
On 9/24/03 8:45 PM, Jason Carreira
[EMAIL PROTECTED] wrote:
The type conversion
I hear what you are saying but my web application spans multiple action classes. I
guess I could provide that method in all of my action classes but would this be
considered best practice? Of course I could create my own extension of ActionSupport
which has only that one method then have all
Title: Message
Patrick, did you add support for accessing items from the session to the
_expression_ language?
-Original Message-From: Thompson, Kris
[mailto:[EMAIL PROTECTED] On Behalf Of
Thompson, KrisSent: Wednesday, September 24, 2003 11:48
PMTo: [EMAIL
Anoop,
That's very strange... when does this happen? During a JSP tag or during a
form submit?
- Original Message -
From: Anoop Ranganath [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 7:01 AM
Subject: [OS-webwork] XWorkConverter trying to load
Title: Message
James, this may not be possible out of the box, but
you can modify the templates directly and even make it so they can take an
optional parameter "align":
ui:textfield label="'label'" name="'searchtext'" maxlength="40"
tabindex="1"
ui:param name="align" value="left"/
Great work Scott! Anyone who is using Weblogic, please let us know how
things go. Thanks!
- Original Message -
From: Scott Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 8:59 AM
Subject: [OS-webwork] Weblogic 6.1 now integrated cleanly into WebWork 2
Actually, this isn't true...
John, are you aware of the page:applyDecorator/ tag? In JIRA, for example,
every single form is built using that.
-Pat
- Original Message -
From: John Patterson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 11:44 AM
Subject: Re:
No, unfortunately the key is just a single property name -- not a full
expression. I think adding support for an expression would be very
difficult. But keep in mind that the conversion property files can be for
_any_ object, not just Actions.
-Pat
- Original Message -
From: Anoop
John,
I did this kind of stuff all the time in WebWork to some extent, but not at
the level of interaction you've proposed. How would you envision it working?
-Pat
- Original Message -
From: John Patterson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 7:36 AM
So in a way the type defines it's input mechanism... I think it's
interesting but needs to be fleshed out some more. I don't think that this
neccessarily means that applications would have to be tied to WebWork, but
maybe could even be done with another (!) config file like
PhoneNumber-input.xml
I thought the URLTag wasn't needed because it just uses
UrlHelper.buildUrl(), which you can also use from Velocity?
I can use from velocity what is really in the velocity context. So, if
UrlHelper is not in the context, i cant use it.
BUT with the extension of velocity-tools, and
54 matches
Mail list logo