Re: InputTransferSelect problem in Struts 2

2007-09-25 Thread Shoaib Gauhar
You might be right but the code that is rendered is not in my control. Is it??? There seems to be problem with the inputtransferselect component renderer or something. Still waiting for the solution. Thanks for the reply Shoaib --- Adam Ruggles <[EMAIL PROTECTED]> wrote: > Well I don't know ab

Re: InputTransferSelect problem in Struts 2

2007-09-25 Thread Adam Ruggles
Well I don't know about the javascript piece but the id on your input is invalid. Your input should look something like this: Shoaib Gauhar wrote: Thanks for the reply. Actually the code which i have posted is valid for any other component than inputtransferselect and maybe other transfer sel

Re: InputTransferSelect problem in Struts 2

2007-09-25 Thread Shoaib Gauhar
Thanks for the reply. Actually the code which i have posted is valid for any other component than inputtransferselect and maybe other transfer select components. When the page is rendered it generates the following code: ID It gives a synt

how to save a column of rows in database ?

2007-09-25 Thread A. Lotfi
I have a table that has : caseId Title priority I want to populate a form with rows from that table like this : caseId and Title are comming from the table and I add for each row a dropdown : caseId Title -- dropdown[1,2,3,4,5] .. . caseId -

Re: Struts URLs for perfectionists like Ebay's URLs

2007-09-25 Thread Vo Van Thuong
Here is another approach suggested by Peter Hilton. On 20 Sep 2007, at 06:37, Vo Van Thuong wrote: I've just read your article at http://www.lunatech-research.com/archives/2005/07/29/struts-urls, and i find it very useful for me. I'm glad if it helps you. would you pls give me some idea ab

Re: S2 Cannot get Submit button body to render as label...

2007-09-25 Thread Dave Newton
Laurie Harper <[EMAIL PROTECTED]> wrote: > billgloff wrote: >> > If you want a button element, set 's 'type' > attribute to 'button', as listed in the tag docs Er... d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: S2 Cannot get Submit button body to render as label...

2007-09-25 Thread Laurie Harper
billgloff wrote: Using the button element in normal HTML you can do the following: Save which gives you an icon along with the label on the button itself. When I attempt to try the same thing using S2 tags e.g.

Re: Older versions' cancel tag and security

2007-09-25 Thread Laurie Harper
Tehmina Beg wrote: Hi, in the older versions 1.0 - 1.2.8 (i think), there was a security issue with the cancel key request parameter being able to be spoofed. You're correct, the fix for this went into 1.2.9 [1]. For details of the problem and its impact, see the original bug report [2] and th

Re: addActionError and execute

2007-09-25 Thread Laurie Harper
Patrick Hesse wrote: is the following correct? if i add a actionErrorMessage in one Action and call in the jsp-File another action, that the execute-method of the second Action is not executed? You might need to explain what you're doing in more detail. For example, what does 'call in the jsp

Re: Issue using Struts2's i18n interceptor and Spring "actions"

2007-09-25 Thread Laurie Harper
[EMAIL PROTECTED] wrote: OK, I've extended my action class with ActionSupport...still does not work. Does that mean I can't have my action class be a simple POJO wired using Spring and use Struts2 i18n features? I'm also curious as to why the addition of in the action mapping would cause the

Validation Bypassed

2007-09-25 Thread Cory D. Wiles
I am having trouble outputting my validation error messages. I know that the validation is being fired off, but the actionmessages/errors aren't being displayed. Validator File: http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> This is my message

Dynamic Method Invocation

2007-09-25 Thread Pavel Sapozhnikov
Hi I like how with DMI you can have one action mapping but call different methods in Action class thats great. However what are the down sides to the DMI. What is the validation issue there? Or what other issues are there. Any help would be appreciated. -- Pavel Sapozhnikov xFact, Inc [EMAIL PROT

Re: Mapping multiple enums to a nested object

2007-09-25 Thread Guillaume Bilodeau
Ok that clears things up. I'll sit down and try to write this down now. Thanks for all the help guys! GB cilquirm wrote: > > Doesn't seem that way. > One converts a single string value to an enum, and the other converts a > String[] to a List > > I just checked it over and it's not directly

Re: Mapping multiple enums to a nested object

2007-09-25 Thread cilquirm
Doesn't seem that way. One converts a single string value to an enum, and the other converts a String[] to a List I just checked it over and it's not directly useable because it's a type converter for a specific enum ( OperationsEnum ), but the principles apply. The long and the short of is that

RE: select problem

2007-09-25 Thread Jiang, Jane (NIH/NCI) [C]
Is your currentProject in session? If so, try list="${#session.currentProject.projects}" -Original Message- From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 25, 2007 6:53 AM To: Struts Users Mailing List Subject: s:select problem Hi! How can I retrieve

Re: select list help

2007-09-25 Thread Dave Newton
--- Henry Park <[EMAIL PROTECTED]> wrote: > How can I modify the following select list to > display '1 of 10, 2 of 10, etc' instead of just the > page numbers? Change the list you pass to it. Or use OGNL to project across a list and create a new list with the number plus the additional info[1] i

S2 Cannot get Submit button body to render as label...

2007-09-25 Thread billgloff
Using the button element in normal HTML you can do the following: Save which gives you an icon along with the label on the button itself. When I attempt to try the same thing using S2 tags e.g.

S2 Cannot get Submit button body to render as label...

2007-09-25 Thread billgloff
Using the button element in normal HTML you can do the following: Save which gives you an icon along with the label on the button itself. When I attempt to try the same thing using S2 tags e.g.

Re: Mapping multiple enums to a nested object

2007-09-25 Thread Dave Newton
--- Guillaume Bilodeau <[EMAIL PROTECTED]> wrote: > So you're saying that the showcase EnumTypeConverter > isn't the same as the one provided in XWork2? The showcase converter specifically handles conversions to/from Lists; the XWork converter converts to/from Strings. It is poorly named, perhaps,

Re: Mapping multiple enums to a nested object

2007-09-25 Thread Guillaume Bilodeau
So you're saying that the showcase EnumTypeConverter isn't the same as the one provided in XWork2? cilquirm wrote: > > Indeed, the problem is that EnumTypeConverter, as provided by Struts2 > only works for single values. > > Can you make selectedNutrients a List? > > If so, you might be able

Re: Mapping multiple enums to a nested object

2007-09-25 Thread cilquirm
Indeed, the problem is that EnumTypeConverter, as provided by Struts2 only works for single values. Can you make selectedNutrients a List? If so, you might be able to use the EnumTypeConverter from the showcase app, or roll your own based off it, which isn't that hard at all. org.apache.struts

Re: Mapping multiple enums to a nested object

2007-09-25 Thread Guillaume Bilodeau
Yes I tried that, with no success unfortunately. Somehow we need to specify that: 1- selectedNutrients[] will need to be mapped to an array of Nutrients 2- each element of selectedNutrients[] must be mapped using EnumTypeConverter cilquirm wrote: > > Are enums type-converted automatically now?

select list help

2007-09-25 Thread Henry Park
How can I modify the following select list to display '1 of 10, 2 of 10, etc' instead of just the page numbers? The list is populated with an Integer array list. List pageList new ArrayList(); Thanks in advance, Henry - To u

Re: Mapping multiple enums to a nested object

2007-09-25 Thread cilquirm
Are enums type-converted automatically now? I recall early on I had to specify http://struts.apache.org/2.0.9/struts2-core/apidocs/com/opensymphony/xwork2/util/EnumTypeConverter.html Have you tried specifying that? with Element_selectedNutrients = com.opensymphony.xwork2.util.EnumTypeConvert

Re: Mapping multiple enums to a nested object

2007-09-25 Thread Guillaume Bilodeau
I've done some further debugging and here's what I now know: 1. I was able to bind TypeConverters to the model.group and model.selectedNutrients properties by creating a SimpleFoodCreationRequest-conversion.properties with the following lines: group=com.opensymphony.xwork2.util.EnumTypeConverter

Re: Extended conversation/Wizards

2007-09-25 Thread Jason Musgrave
Martin, Regarding the WebFlow plugin: I haven't used it in production, but I've been looking at it. It seems that it does not put the results of a flow into somewhere that is available via the stack. This, at least in the examples, requires that you use the interceptor to insert those values

Re: Breadcrumbs

2007-09-25 Thread cilquirm
Nope, since IAs and sitemaps are very site specific. Java does, tho. It's called java.util.Stack ( or at your leisure, commons-collections has ArrayStack ) :-) -a stanlick wrote: > > Can you tell me if Struts 2 has a facility for breadcrumbs? > > On 9/25/07, Antonio Petrelli <[EMAIL PROT

OT? tabletags AbstractPagerAction component ...

2007-09-25 Thread Giovanni Azua
Hi all, Would it be ok to discuss here about tabletags? I can't find any dedicated mailing lists for it. Please forgive the OT otherwise ... I just proposed a componentized AbstractPagerAction implementation under: http://code.google.com/p/tabletags/issues/detail?id=10 where basically the user

RE: struts 2.1 beta

2007-09-25 Thread Engelking, Nicholas
Thanks. Worked like a charm. -Nick -Original Message- From: Wesley Wannemacher [mailto:[EMAIL PROTECTED] Sent: September 25, 2007 10:28 AM To: Struts Users Mailing List Subject: RE: struts 2.1 beta Stupid line breaks! svn co http://svn.opensymphony.com/svn/xwork/trunk xwork ; cd xwork

RE: struts 2.1 beta

2007-09-25 Thread Wesley Wannemacher
Stupid line breaks! svn co http://svn.opensymphony.com/svn/xwork/trunk xwork ; cd xwork ; mvn -Dmaven.test.skip=true -Pall ; cd .. ; svn co https://svn.apache.org/repos/asf/struts/current/ struts ; cd struts/struts2 ; mvn -Dmaven.test.skip=true -Pall (in case things get re-wrapped again,

Re: [s2] Struts head tag KILLS (> 10s) page load time

2007-09-25 Thread Martin Gainty
Apparently cache is another attribute placed into djConfig array? if we take a look at latest 0.9.0 release of dojo-release-0.9.0/dojo/tests/back.html which contains sample djConfig // Dojo configuration djConfig = { //debugAtAllCosts: true, //Don't normally need this in applications.

RE: struts 2.1 beta

2007-09-25 Thread Wesley Wannemacher
I was having the same problem last week. To fix it, what I did was pull xwork2 from SVN and build with maven (although in some cases, I had to disable the unit tests because one failed sometimes [probably my fault]). Then once it is built, maven will use it. After that, make sure you have the l

RE: struts 2.1 beta

2007-09-25 Thread Engelking, Nicholas
I am trying to build from the head but I am getting build errors. I have changed my pom.xml in core to point to the new xwork id as mentioned in the mailing list archives: com.opensymphony.xwork to opensymphony However I am getting build errors when I run maven due to what appears to be

Re: struts 2.1 beta

2007-09-25 Thread Antonio Petrelli
2007/9/25, [EMAIL PROTECTED] < [EMAIL PROTECTED]>: > > I hope that we'll get it before the end of the century. Fee foo fud, I smell troll blood :-) Antonio

Re: extending a template

2007-09-25 Thread Lally Singh
Similar question as above, I'm extending a theme. Only problem is that the classloader can't seem to find the existing themes for inheritance. For the simple reason that my code works when I leave the theme to xhtml, I know that the jar's in the classpath. My theme extends xhtml, which extends s

Re: struts 2.1 beta

2007-09-25 Thread meissa . sakho
That's exactly what I wanted. I new complete un-released version. But at this time, I'm giving up. To tired. I'll restart using struts when a version without the dreadfull performance impact will be around. I hope that we'll get it before the end of the century. Meissa Dave Newton <[EMAIL

Validating dynamic Fields, How to ...

2007-09-25 Thread jasdeep
I have a form , in which the text fields are generated dynamically (same property name ), I am unable to develop some client side validation for these dynamically generated fields ... I also want to compare the value of one fields with another. code below : -

Re: dynamicaly radio buttons from database, please help me

2007-09-25 Thread Rick Reumann
On 9/24/07, A. Lotfi <[EMAIL PROTECTED]> wrote: > Hi, > I am using struts1.3.8 > > I just want when the user click in a link (SurveyAction.do) , he will be > presented with a form : > > ID Title -- O smal O medium O hight > > ID Title -- O smal O

Re: passing request param from struts.xml

2007-09-25 Thread Dave Newton
--- Giovanni Azua <[EMAIL PROTECTED]> wrote: > I would like to pass a different request parameter > to the same JSP depending on the Action > > I would like to pass a "frequency" parameter to a > jsp that looks like: > > <%@ page contentType="text/html; charset=UTF-8"%> > <%@ taglib prefix="s" ur

passing request param from struts.xml

2007-09-25 Thread Giovanni Azua
Hi all, I would like to pass a different request parameter to the same JSP depending on the Action e.g. Schedule PERMANENT job => set request parameter to 'permanent' => Display ScheduleJobForm JSP Schedule ONE-TIME job => set request parameter to 'onetime' => Display ScheduleJobForm JSP

Re: struts 2.1 beta

2007-09-25 Thread Dave Newton
If you want a complete build of an un-released version then AFAIK you need to build it from source. The repository contains the dependent libraries. The nightly builds are just that, builds, not distributions (again, AFAIK). --- [EMAIL PROTECTED] wrote: > I just need to grab the nightly version W

datetimepicker displayFormat AGAIN

2007-09-25 Thread meissa . sakho
I use the displayFormat attribute with the datetimepicker tag to render my dates. I need to apply the displayFormat only when date are non null. Is it possible to do that. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. T

Re: struts 2.1 beta

2007-09-25 Thread meissa . sakho
I just need to grab the nightly version WITH DEPENDANTS LIBRAIRIES if it exist. the link below http://struts.apache.org/2.x/docs/building-the-framework-from-source.html drive me to that one http://people.apache.org/builds/struts/nightlies/2.x/ No librairies. Meissa Dave Newton <[EMAIL PROTECT

Re: {S2}doublselect How to create the doubleList

2007-09-25 Thread Skip Hollowell
I think I have it...and I wanted to make sure I got this archived somewhere in case I or anyone else was ever looking for an example. The first list is a list of Course objects, made up of an id, name and Foods (a Set of Food objects) Food has an id and a name field. List listCourse = new Arr

Re: struts 2.1 beta

2007-09-25 Thread Dave Newton
--- Oleg Mikheev <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > >> I have just renamed it to struts2-core.jar and > >> replaced in my application that was working with > >> 2.0.9 version. > > > > You can't just randomly replace libraries. > > You can replace 2.0.8 with 2.0.9, but you can't >

Re: struts 2.1 beta

2007-09-25 Thread Oleg Mikheev
Dave Newton wrote: I have just renamed it to struts2-core.jar and replaced in my application that was working with 2.0.9 version. You can't just randomly replace libraries. You can replace 2.0.8 with 2.0.9, but you can't replace 2.0.9 with 2.1.0 This is what they call a rule of thumb 8-) ht

Re: struts 2.1 beta

2007-09-25 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I have picked the latest struts2-core version from > here : > http://people.apache.org/builds/struts/nightlies/2.x/ > > I have just renamed it to struts2-core.jar and > replaced in my application that was working with > 2.0.9 version. You can't just randomly replac

Re: OGNL runtime viewer

2007-09-25 Thread stanlick
I have the console popup, however, it is readonly and I'm not actually clear on the command structure I would use if I *could* enter commands! On 9/24/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: > > Scott, > > Are you looking for the debug console? > > Try adding ?debug=console to your reque

Re: Breadcrumbs

2007-09-25 Thread stanlick
Can you tell me if Struts 2 has a facility for breadcrumbs? On 9/25/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > 2007/9/24, stanlick <[EMAIL PROTECTED]>: > > > > > > I am writing a Breadcrumbs utility and have a question about how to > easily > > get the current request in a format that cou

s:select problem

2007-09-25 Thread Pablo Vázquez Blázquez
Hi! How can I retrieve the collection to put in "list" attribute if this collection is in the sessionScope?? I´m trying: where "currentProject" has a List of projects. I´m getting the following exception: tag 'select', field 'list', name 'projectId': The

Re: struts 2.1 beta

2007-09-25 Thread meissa . sakho
I have picked the latest struts2-core version from here : http://people.apache.org/builds/struts/nightlies/2.x/ I have just renamed it to struts2-core.jar and replaced in my application that was working with 2.0.9 version. I wanted to test the new head tag. The 2.0.9 version is killing my appl

Re: struts 2.1 beta

2007-09-25 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I have replaced the nightly build version with the > 2.0.9 one. I'm getting the errors below at startup. What do you mean, "replaced the nightly build version"? In a 2.0.9 app? Are you using the correct versions of the support libraries for a 2.0.9 app? d. ---

Re: InputTransferSelect problem in Struts 2

2007-09-25 Thread Dave Newton
--- Shoaib Gauhar <[EMAIL PROTECTED]> wrote: > http://www.nabble.com/file/p12876594/Source%2BCode.zip > Source+Code.zip > > I am attaching my struts.xml, TestAction.java and > test.jsp, in which i have implemented > InputTransferSelect. It generates a java script error > when the page is rendere

Re: struts 2.1 beta

2007-09-25 Thread meissa . sakho
a:203) Dave Newton <[EMAIL PROTECTED]> 25/09/2007 11:50 Veuillez répondre à "Struts Users Mailing List" A Struts Users Mailing List cc Objet Re: struts 2.1 beta --- [EMAIL PROTECTED] wrote: > when I download the > struts2-core-2.1.0-SNAPSHOT-20070925.jar, it'

InputTransferSelect problem in Struts 2

2007-09-25 Thread Shoaib Gauhar
http://www.nabble.com/file/p12876594/Source%2BCode.zip Source+Code.zip I am attaching my struts.xml, TestAction.java and test.jsp, in which i have implemented InputTransferSelect. It generates a java script error when the page is rendered. I am posting this mail for the second time because the f

Re: help with autocompleter ...

2007-09-25 Thread Giovanni Azua
Ohh just found it ... it is using listKey and listValue ** example.jsp ** listValue="name" /> regards, Giovanni Giovanni Azua wrote: hi all, I would like to displ

help with autocompleter ...

2007-09-25 Thread Giovanni Azua
hi all, I would like to display an autocompleter associated with a application-defined Javabean and have it picking up the right key and value out of the bean properties (getters). I have hard time following the examples as I cant find any that provides the code required on the Action side. I

Re: struts 2.1 beta

2007-09-25 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > when I download the > struts2-core-2.1.0-SNAPSHOT-20070925.jar, it's about > > 630 ko size. > The 2.0.9 struts-core version is about 2500 ko size. > Why are those files sizes so differents ? Pseudo-shell: jar tf 2.0.8-core | sort > 2

Re: [Struts 2] baseRelativePath Problem

2007-09-25 Thread Roger Ye
Well, I googled, didn't get much help, Batteries may crush out, so do we, man, and sometime you're just in a rush like situation and don't have the mood to read through the docs. Hindsights are always correct, you know. Ah yes, a happy ending, now someone googling for the same question will just

Re: struts 2.1 beta

2007-09-25 Thread meissa . sakho
when I download the struts2-core-2.1.0-SNAPSHOT-20070925.jar, it's about 630 ko size. The 2.0.9 struts-core version is about 2500 ko size. Why are those files sizes so differents ? Meissa Dave Newton <[EMAIL PROTECTED]> 24/09/2007 17:53 Veuillez répondre à "Struts Users Ma

Error repopulating a checkboxlist when a validation error occurs

2007-09-25 Thread José Manuel Bermudo Ancio
Hello. Please, i need help with struts2. I have a page with a form, that have several text fields and a checkboxlist that retrieves the options from a database. The first time i call the page i show all the fields ok and it works fine. Even if i send the page with javascript enabled, if there occur

datetime picker displayFormat question

2007-09-25 Thread meissa . sakho
I'm using the datetimepicker displayFormat attribute to render my dates as I want them to be displayed. I case of null dates values I would like the datetimepicker tag to display nothing. I'm having a parseException instead. Is it possible to handle this (no exception, simply displaying nothing

RE: [Struts 2] baseRelativePath Problem

2007-09-25 Thread Al Sutton
> thanks for nobody's reply, It was a pleasure. > I read the dos and then got the answer. Didn't think of doing this first? > problem solved by overriding the built-in template head.ftl. just to make it a compete story. And it's always nice to see a happy ending :). --

Re: [Struts 2] baseRelativePath Problem

2007-09-25 Thread Roger Ye
thanks for nobody's reply, I read the dos and then got the answer. problem solved by overriding the built-in template head.ftl. just to make it a compete story. On 9/14/07, Roger Ye <[EMAIL PROTECTED]> wrote: > > Question: how to change the default baseRelativePath? > > using struts 2.0.9 and t