[OS-webwork] Re:

2004-03-11 Thread Jonas Eriksson
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

Re: [OS-webwork] Hibernate and Webwork2 example

2004-03-11 Thread Jonas Eriksson
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

Re: [OS-webwork] Problem: multipart / Velocity / UTF-8

2004-03-11 Thread Jonas Eriksson
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

Re: [OS-webwork] Problem: multipart / Velocity / UTF-8

2004-03-11 Thread Jonas Eriksson
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

Re: [OS-webwork] how to extend ww ui tags

2004-02-24 Thread Jonas Eriksson
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

[OS-webwork] Re: Velocity Tools

2004-02-05 Thread Jonas Eriksson
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

Re: [OS-webwork] accessing errors collection in velocity

2004-01-21 Thread Jonas Eriksson
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

Re: [OS-webwork] how should i display a radio button Yes/No combo?

2004-01-20 Thread Jonas Eriksson
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

Re: [OS-webwork] Wiki problem

2004-01-13 Thread Jonas Eriksson
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

Re: [OS-webwork] Any sugesstions fro image manipulation

2004-01-11 Thread Jonas Eriksson
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,

Re: [OS-webwork] xw/ww cool example

2003-12-18 Thread Jonas Eriksson
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

Re: [OS-webwork] WW1.4 and Tomcat 4.1.29 and Skeleton app problem s

2003-12-18 Thread Jonas Eriksson
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

Re: [OS-webwork] Reusing Action object when several action tags is used

2003-12-18 Thread Jonas Eriksson
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

Re: [OS-webwork] Reusing Action object when several action tags is used

2003-12-17 Thread Jonas Eriksson
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

Re: [OS-webwork] Reusing Action object when several action tags is used

2003-12-17 Thread Jonas Eriksson
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

[OS-webwork] Reusing Action object when several action tags is used

2003-12-16 Thread Jonas Eriksson
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

Re: [OS-webwork] (no subject)

2003-12-15 Thread Jonas Eriksson
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

Re: [OS-webwork] Desired behaviour in ModelDrivenInterceptor...

2003-12-10 Thread Jonas Eriksson
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

Re: [OS-webwork] Desired behaviour in ModelDrivenInterceptor...

2003-12-09 Thread Jonas Eriksson
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

[OS-webwork] Desired behaviour in ModelDrivenInterceptor...

2003-12-09 Thread Jonas Eriksson
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

Re: [OS-webwork] How to access session data from ActionClass

2003-12-04 Thread Jonas Eriksson
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

Re: [OS-webwork] How to access session data from ActionClass

2003-12-04 Thread Jonas Eriksson
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.

[OS-webwork] encoding when multipart

2003-12-03 Thread Jonas Eriksson
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

Re: [OS-webwork] WebWork and CSS.

2003-12-01 Thread Jonas Eriksson
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

Re: [OS-webwork] WebWork and CSS.

2003-12-01 Thread Jonas Eriksson
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

Re: [OS-webwork] What ever happened to the XWork definition Editor

2003-11-26 Thread Jonas Eriksson
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

Re: [OS-webwork] specifying what validation method to use for actions

2003-11-20 Thread Jonas Eriksson
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

Re: [OS-webwork] IRC channel?

2003-11-19 Thread Jonas Eriksson
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

Re: [OS-webwork] velocity tool support

2003-11-18 Thread Jonas Eriksson
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

Re: [OS-webwork] OGNL list question again

2003-11-06 Thread Jonas Eriksson
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 -

Re: [OS-webwork] OGNL list question again

2003-11-06 Thread Jonas Eriksson
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

[OS-webwork] OGNL list question again

2003-11-05 Thread Jonas Eriksson
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

Re: [OS-webwork] Big problems with rendering... (Velocity, tags) [remailing],

2003-10-30 Thread Jonas Eriksson
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

Re: [OS-webwork] Big problems with rendering... (Velocity, tags) [remailing],

2003-10-29 Thread Jonas Eriksson
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

Re: [OS-webwork] setXXX never called

2003-10-28 Thread Jonas Eriksson
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

Re: [OS-webwork] Big problems with rendering... (Velocity, tags) [remailing],

2003-10-27 Thread Jonas Eriksson
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

Re: [OS-webwork] Default action

2003-10-27 Thread Jonas Eriksson
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

[OS-webwork] Big problems with rendering... (Velocity, tags) [remailing]

2003-10-25 Thread Jonas Eriksson
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

[OS-webwork] Big problems with rendering... (Velocity, tags)

2003-10-25 Thread Jonas Eriksson
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

[OS-webwork] Big problems with rendering... (Velocity, tags) [remailing]

2003-10-24 Thread Jonas Eriksson
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

Re: RES: [OS-webwork] actions from vm

2003-10-21 Thread Jonas Eriksson
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

Re: [OS-webwork] select tag in Velocity

2003-10-20 Thread Jonas Eriksson
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

Re: [OS-webwork] Type Converetrs and formatting

2003-10-16 Thread Jonas Eriksson
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

Re: [OS-webwork] Type Converetrs and formatting

2003-10-16 Thread Jonas Eriksson
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

Re: [OS-webwork] Another quickie

2003-10-02 Thread Jonas Eriksson
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

[OS-webwork] Suggestion

2003-10-01 Thread Jonas Eriksson
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

[OS-webwork] Suggestion

2003-10-01 Thread Jonas Eriksson
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

Re: [OS-webwork] Hyperlink best practices - use of actions

2003-10-01 Thread Jonas Eriksson
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

Re: [OS-webwork] velocity, layouts, and flow

2003-09-18 Thread Jonas Eriksson
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

Re: [OS-webwork] Order of elements in xwork.xml

2003-09-17 Thread Jonas Eriksson
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

Re: [OS-webwork] Order of elements in xwork.xml

2003-09-17 Thread Jonas Eriksson
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

[OS-webwork] Order of elements in xwork.xml

2003-09-17 Thread Jonas Eriksson
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-

Re: [OS-webwork] example using xwork's tag

2003-09-04 Thread Jonas Eriksson
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 :

Re: [OS-webwork] Velocity support for non-ui tags?

2003-09-03 Thread Jonas Eriksson
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

Re: [OS-webwork] Velocity support for non-ui tags?

2003-09-03 Thread Jonas Eriksson
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

Re: [OS-webwork] Velocity support for non-ui tags?

2003-09-02 Thread Jonas Eriksson
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

Re: [OS-webwork] Velocity in ww2 beta... where/how?

2003-09-02 Thread Jonas Eriksson
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(

Re: [OS-webwork] Velocity in ww2 beta... where/how?

2003-08-30 Thread Jonas Eriksson
;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

Re: [OS-webwork] Velocity support for non-ui tags?

2003-08-30 Thread Jonas Eriksson
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

[OS-webwork] Velocity in ww2 beta... where/how?

2003-08-29 Thread Jonas Eriksson
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

Re: [OS-webwork] What happened to http://wiki.opensymphony.com/?

2003-08-25 Thread Jonas Eriksson
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

Re: [OS-webwork] What happened to http://wiki.opensymphony.com/?

2003-08-25 Thread Jonas Eriksson
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

Re: [OS-webwork] Parameters to/from action

2003-08-15 Thread Jonas Eriksson
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

[OS-webwork] Parameters to/from action

2003-08-14 Thread Jonas Eriksson
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