You need to put '' around all parameters that should be treated as text.
Like
Try that.
Jonas
Daly, Stephen P. wrote:
I dl’d WW 2.0 and have it up and running using Resin EE 3.0.6. The
problem I am having is with the WW taglib. None of the tags are
generating.
The in the JSP file is
Check out the Hibernate AdminApp demo application.
http://www.hibernate.org/159.html
Cheers
Jonas
Wim Deblauwe wrote:
Hi,
is there somewhere an example on how to best use hibernate and webwork
together?
kind regards,
Wim
--
Wim Deblauwe
http://www.jroller.com/page/Fester/Weblo
encoding is always set to UTF-8 no matter of
webwork.i18n.encoding set in webwork.properties.
I used webwork.i18n.encoding = ISO-8859-1 and had to make changes to the
class for the multipart to work.
Cheers
Jonas
- Original Message -
From: "Jonas Eriksson" <[EMAIL P
I have reported this in Jira (WW-475).
See the closed issue, those changes worked for me.
Cheers
Jonas
Leandro Lima wrote:
Hi,
iIm having problems in posting forms to an action when they have
multipart/form-data content. Accentuated characters become incorrect,
presenting something like "?".
I'm u
It works for me. I'm using velocity but it should not matter (I think).
Have you tried adding the parameter directly to the tag, like
#tag (TextField "name='thename'" "params.required=true" ...)
In my modified controlheader.vm I then have the following check
#if ($parameters.required)
#set
I don't think there exist a proper velocity tool support in ww2.
Search the mailing list archive for "velocity tool support" and you will
find something about tools supports that Matt Ho created (and later on
removed I think..)
Use the macro #bean for a simple solution.
Cheers
Jonas
Volnei wrot
In ww2 I suppose.
If your actions are extending ActionSupport you can use:
$actionErrors (Collection)
$fieldErrors (Map of field names -> list of errors or null if no errors)
Cheers
Jonas
Gerardo Segura wrote:
Hi all,
i wonder what's the name of the error collections when using
velocity... somew
You also need to specify where to get the key and value for each option.
Something like this works:
#tag( Radio "label='label'" "name='name'" "list=#{ 'A':'0' , 'B':'1' ,
'C':'2' }" "listKey=top.key" "listValue=top.value" )
Cheers
Jonas
Rachel McConnell wrote:
I believe you need to use this sy
Hehe... I know your pain ;)
Try using Mozilla, that's my solution to the crazyness.
Jonas
Samuel Mota wrote:
Hi,
Just wondering ... Why in the hell is so difficult to select text in the wiki to copy?
Double click have undeterminated behavior, click and move are impossible ... code
samples , wo
I don't know which method "killingar" uses, but I've attached my method
which uses awt and javax.imageio.ImageIO (maybe only jdk1.4).
Jonas
remigijus wrote:
It looks nice to have ability to make thumbnails without use of any external
libraty. I like it. I found your ww action GenerateThumbnail,
Maybe a stupid question.. but have you tried
Hibernate.initialize(collection) to force loading of lazy collections?
Cheers
Jonas
Fernando Martins wrote:
I'm the author, and I do say something about it, right here in the mailing
list, but I didn't get too much opinions, not like "remigijus (sorry
Hej Jonas,
I'm using log4j and have the log4j.properties in WEB-INF/classes. In
webwork.properties I specify: webwork.log4j.configfile=log4j.properties
See the log4j documentation on how to specify logger and levels in
log4j.properties
In my log4j.propertis I have a section like:
log4j.append
Sure, see Jira WW-430.
Cheers
Jonas
Scott Farquhar wrote:
Jonas,
Can you please show me the two tags that you are using? Ie the JSP code?
Cheers,
Scott
On Wed, Dec 17, 2003 at 04:37:22PM +0100, Jonas Eriksson wrote:
Yes - I'm using the id attribute. (with different values too)
Jason Car
Yes - I'm using the id attribute. (with different values too)
Jason Carreira wrote:
You're using the "id" attribute, right? Scott, shouldn't that prevent
Resin from reusing the tag instance, since the attribute values are
different?
-Original Message-
From: Jona
decide what to do.
Jonas
Scott Farquhar wrote:
Are you using Resin? Resin caches tag values. This could be a bug in
the action tag.
Jonas Eriksson wrote:
If I use two action tags on same page and the action-name and
namespace are equal on the two separate tags, the second invocation is
not
If I use two action tags on same page and the action-name and namespace
are equal on the two separate tags, the second invocation is not
creating a new Action object. This is not the supposed behaviour, or is it?
In my case I was setting some tag params and they were set in the second
invocatio
I think the name of a package is just a "name", with no other meaning
outside the xwork.xml. You need to set the namespace="/admin/category"
if you want to use an action like /admin/category/foo.action
Have you tried that?
Jonas
remigijus wrote:
Hi
I have some strange problems related with a
g
UNICLICK
-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
Jonas Eriksson
Envoye : mardi 9 decembre 2003 17:55
A : [EMAIL PROTECTED]
Objet : [OS-webwork] Desired behaviour in ModelDrivenInterceptor...
Currently the ModelDrivenInterceptor pushes the model onto t
model, then replace the model instance backing it?
-----Original Message-
From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 11:55 AM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Desired behaviour in ModelDrivenInterceptor...
Currently the ModelDrivenInterceptor p
Currently the ModelDrivenInterceptor pushes the model onto the stack
before action invocation and before many other interceptors that rely on
the model beeing on the stack. That's ok!
What is not ok is the scenario when the action is changing the reference
of the "model" and thus the result exe
voke(DefaultActionInvocatio
n.java:169)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterce
ptor.java:37)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocatio
n.java:169)
- Original Message -
From: "Jonas Eriksson" <[EMAIL PROTECTED]>
To: <[EMAIL
The session and application maps are accessed by using static methods of
the ActionContext class.
To get the session map you write
Map session = ActionContext.getContext().getSession();
Jonas
remigijus wrote:
Hi
How can get access to a session and application scope data from an
Action class.
I'm using iso-8859-1 to encode my resources, response, request etc. When
I had to create a multipart request with both text and data (tested
only data before) the text was not encoded correctly by the multipart
service, in my case the PellMultiPartRequest (default in ww2). In that
class the en
It works.
But the directory is template and not templates.
Jonas
Daniel Pfeifer wrote:
Did you confirm that this approach works?
-Original Message-
From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
Sent: den 1 december 2003 12:44
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] WebWork and
Then you put something like
#if ($parameters.css) class="$!webwork.htmlEncode($parameters.css)" #end
in your local copy of text.vm for example.
Then you can use
#tag (TextField "params.css='input1'" ...)
Jonas
Dag Liodden wrote:
Alternatively, you can create a templates/xhtml directory in your
Search the mailing list...
---
Hi All,
I have added the source code and necessary libraries into CVS to build
the XWork.xml editor.
The source for the editor is in the "src/editor" directory.
The libraries needed are in the "lib/editor" directory.
To build the editor, all you need to do is type
I think this is a good idea!
As you can define several action methods you also may need several
validation methods.
But maybe it just adds more confusion to the validation workflow... and
it's easy to call validateCreate() on your own. Another thing is that
the validation in the action is often
I have no idea if there are any people in these, but they have been
mentioned on the list for not so long ago:
irc.freenode.net #webwork
irc.werken.com #webwork
Joseph Ottinger wrote:
Is there an IRC channel dedicated to webwork anywhere, where one could
bring up issues and questions without anno
I totally agree about putting it in webwork extensions!
Jonas
Matt Ho wrote:
I've opted to move this to the webwork extensions rather than have it
part of the webwork core. Although the VelocityServlet will be
deprecated, that won't be til Velocity 1.5!
One of the features that's extremely ap
mple the List is populted with Strings
(immutable)
which are then replaced by the String[] value from the
parameter map.
You could instead extend List with a add(String) method which would
use XWorks type conversion to use the first String in the array.
John.
- Original Message -
od which would use
XWorks type conversion to use the first String in the array.
John.
- Original Message -
From: "Jonas Eriksson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 9:13 PM
Subject: [OS-webwork] OGNL list question again
Hi!
I can not understand why I get arrays (instead of Strings) when OGNL
populates my list in my action!
In action:
// Use OgnlList so we don't get out of bounds
private List theList = new OgnlList(String.class)
public List getList() {
return theList;
}
In view:
and so on...
Then in
if someone else find
it useful.
Jonas
Jonas Eriksson wrote:
Matt Ho wrote:
Jonas Eriksson wrote:
Any pointer of how a solution could be done would be greatly
appreciated . I will of course submit my changes to JIRA (if the
solution is nice enough) so others may download and try it out.
Unf
Matt Ho wrote:
Jonas Eriksson wrote:
Any pointer of how a solution could be done would be greatly
appreciated . I will of course submit my changes to JIRA (if the
solution is nice enough) so others may download and try it out.
Unfortunately there are a couple of properties in the
Have you included the ParameterInterceptor to doTest action in your
xwork.xml?
If you in your xwork.xml you can
use the predefined interceptor defaultStack as:
/index.vm
Cheers,
Jonas
Lars Fischer wrote:
I have a simple action and a form with a text field. The problem is, th
Jonas Eriksson wrote:
Hi Matt, Patric and all others!
I've been using a special VelocityResult and WebWorkVelocityServlet
(JIRA WW-288 (LARGE hack!)) in WW2 that is an extension of the
VelocityLayoutServlet in Velocity Tools. Those files depended a lot on
the old implementation of ho
If you declare an action in a package with no namespace, that action
will be accessed everywhere.
/index.vm
You can add a method param, like if
you wan't another method (not execute()) to be called.
/Jonas
Lars Fischer wrote:
That was doExecute(). In WW1.3, I could call ac
Hi Matt, Patric and all others!
I've been using a special VelocityResult and WebWorkVelocityServlet
(JIRA WW-288 (LARGE hack!)) in WW2 that is an extension of the
VelocityLayoutServlet in Velocity Tools. Those files depended a lot on
the old implementation of how the tags och velocity template is
Hi Matt, Patric and all others!
I've been using a special VelocityResult and WebWorkVelocityServlet
(JIRA WW-288 (LARGE hack!)) in WW2 that is an extension of the
VelocityLayoutServlet in Velocity Tools. Those files depended a lot on
the old implementation of how the tags och velocity template
Hi Matt, Patric and all others!
I've been using a special VelocityResult and WebWorkVelocityServlet
(JIRA WW-288 (LARGE hack!)) in WW2 that is an extension of the
VelocityLayoutServlet in Velocity Tools. Those files depended a lot on
the old implementation of how the tags och velocity template is
Why don't you rollback and use an older webwork.jar, while waiting...
just a thought :-)
Jonas
[EMAIL PROTECTED] wrote:
-Mensagem original-
From: Patrick Lightbody [mailto:[EMAIL PROTECTED]
> It should be possible once we get the velocity tags all set up.
Any idea how long could this ta
Check if the webwork/docs/tag-doc.htm in cvs can help you on explaining
the attributes. I don't know how up to date that document is, regarding
the latest ui "refactoring".
Jonas
Robert Douglass wrote:
Hi all. If anyone can explain to me how to use the #tag(Select ...) without
having to make my
Message-
From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Type Converetrs and formatting
Is it possible to be able to forward all unknown attributes in the tags
to the generated tag?
For example:
#tag
Is it possible to be able to forward all unknown attributes in the tags
to the generated tag?
For example:
#tag(Select "name='sel'" "onchange='do something in js'" ...)
would put the unknown attribute, onchange, in the generated tag:
If not possible right now, would it be in the future?
Thank
Title: Another quickie
I don't think you can use the tag that way. The
listKey param specifies the name of the property of the objects in the list
specified by the list param... see the webwork/docs/tag-doc.htm
For some reason that document is not on wiki, at
least I have not found it.
Jo
Is it only me.. but sometimes I think it would be
nice to have default params in packages that is included in the actions
automatically.
value1
value2
value3
...
Here the action "go" will have param1,2,3 from the xwork.xml.
They should not be inheri
Is it only me.. but sometimes I think it would be
nice to have default params in packages that is included in the actions
automatically.
value1
value2
value3
...
Here the action "go" will have param1,2,3 from the xwork.xml.
They should not be inheri
I can add the following to this issue:
Works:
type="redirect"
${'any.action'} (-> any.action)
Fails:
type="chain" and type="velocity"
${'any.action'}
And here's the proof for type="velocity" case:
org.apache.velocity.exception.ResourceNotFoundException: Unable to f
If you have looked at the Velocity Tools project and like the
VelocityLayoutServlet idea, you may try what is described in
http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-288
It works for me (have not used it very much though), but it is not part
of WW2. The usage of Velocity Tools is
clarations, etc...
-Original Message-----
From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Order of elements in xwork.xml
Ok, in this case they are constrained to the specific order
made in the
dtd. E
Ok, in this case they are constrained to the specific order made in the
dtd. Either this has to get into the docs (easy solution) or the dtd may
be changed to allow any order (which I think also leads to changes in
the XmlConfigurationProvider; it's supposed all elements but action are
singlet
Hi!
I recently updated my version of ww2 and it all stopped working (what
was I expecting... ;-)
Somehow my xwork.xml was not accepted by the configuration parser:
org.xml.sax.SAXParseException: The content of element type "package"
must match
"(result-types?,interceptors?,default-interceptor-
Just as a notice; An normal jira user does not have permission to assign
an issue to a specific person (at least I don't...)
/Jonas
Jason Carreira wrote:
It doesn't break? I would have thought it would throw an exception...
Please log an issue... Assign it to me (Patrick's got too many already
:
Weehaa!
Great!
/Jonas
Matt Ho wrote:
Velocity support for URL and bean and should be in CVS by the weekend.
Velocity already supports Action.
M
Jonas Eriksson wrote:
Yes, present as in existing classes in c.o.w.views.jsp, but they are
not working from Velocity.
A tag directive like
#tag
Tag, and ActionTag are all present in WW2 and have been
for a while...
-----Original Message-
From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Velocity support for non-ui tags?
The issue beneath is just a
like if/then/else and iterator are built in
to velocity natively. Any tag that was in 1.3 should be in 2.0 unless a VERY
good reason is given -- so everyone, please be sure to open issues if you
see something that was in 1.3 and isn't in 2.0 yet.
-Pat
- Original Message -
From: "Jona
Matt Ho wrote:
Jonas Eriksson wrote:
Great!
Now I have some questions :-)
What IF the velocity template is accessed directly, how can one know,
in the template, if this is happening?
Do you mean how can one tell the difference between:
#parse( "/my/template.vm" )
and
#tag(
;m definitely in agreement on enabling VelocityTools to work with WW2
either by default or as a drop-in addon though I haven't had a moment
yet to do this. If you're interested in doing this, I would highly
encourage you :)
M
Jonas Eriksson wrote:
Hi!
First, WebWork2 is looking re
Good question!
See your own JIRA issue for more stuff regarding this :-)
http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-251
Regards
Jonas
Drew McAuliffe wrote:
It's been a while since I tried playing with the ww2 tags in velocity
but I was curious. Last I checked, it looked like the onl
Hi!
First, WebWork2 is looking really promising, great work!
Second, I have not used WebWork1 but tried Struts a year ago and when I
read about WebWork I thought "this is easy, compared to Struts". The
decision fell on WebWork2 and the Velocity view. I feel this combination
is very powerful bu
Well.. I did that last post before trying any links on that page :(
They are pointing to the wiki.. and therefore does not work neither.
Regards
Jonas
Samuel Mota wrote:
The site is a bit confusing with a lot of pages not found (404) ... (i.e.
http://wiki.opensymphony.com/space/XWork)
Is that only
No idea, same for me, but you may try the following link instead.
http://www.opensymphony.com:8668/space/XWork
Regards
Jonas
Samuel Mota wrote:
The site is a bit confusing with a lot of pages not found (404) ... (i.e.
http://wiki.opensymphony.com/space/XWork)
Is that only for me?
+ Samuel G. Mot
e an issue in the current HEAD of xwork. Have your tried
using the xwork jar included in the ww repository?
Dag
Jonas Eriksson wrote:
I have problems with sending parameters from jsp/vm to my action. I
started of using Webwork1 and it worked fine, but since I decided to
use Webwork2 there is
I have problems with sending parameters from jsp/vm to my action. I
started of using Webwork1 and it worked fine, but since I decided to use
Webwork2 there is something wrong.
The first RegisterEmail example from
http://wiki.opensymphony.com/space/WebWork+2+UI+Tag+Guide
does not work.
The sett
64 matches
Mail list logo