Re: Struts 2.0.11.1 problem

2008-04-23 Thread Nils-Helge Garli Hegvik
Which version of WebSphere Portal are you using? Also check for error messages on startup of the server, and make sure you post all the relevant stack traces. Nils-H On Wed, Apr 23, 2008 at 5:45 PM, Raghavendra <[EMAIL PROTECTED]> wrote: > > Hello, > I just installed the struts 2.0.11.1 sample

Problem using css float inside a s:tabbedPanel

2008-04-23 Thread Herman Svensen
Hi, I'm currently using Struts 2.0.11.1 where I'm having problem using CSS style attribute 'float' together with Struts' . The content of the tabbedpanel is not displayed correctly when for example a inside the tabbedPanel is using the 'float' attribute. Like this:

Problem with Validation framework

2008-04-23 Thread Pranav
Hi All, I am having a problem with validation framework. This is the first time I am trying to use struts2 validation. Here's different code pieces that I have. UserLookupAction-validation.xml You must enter a value for Member ID.

Re: Passing a List through a hidden field

2008-04-23 Thread Gabriel Belingueres
But it translates the List into a meaningful string because the contents are Strings or Integers, but what about other objects that doesn't override the toString() method? Anyway, I suppose you could write a custom type converter for your List, but I think the current multiple hidden fields soluti

Re: Passing a List through a hidden field

2008-04-23 Thread Steve Akins
Thanks Gabriel and Jeromy, I had thought of iterating through the List but was trying to avoid generating a mass of HTML hidden fields. I like it how the hidden tag translates the List into a meaningful String, it's just a shame that Struts/XWork doesn't handle it when the form is submitted. I h

Re: Disabling Browser AutoComplete in Struts tags

2008-04-23 Thread Wes Wannemacher
Chris, Check the TLD file for the struts tags... I'm looking at the HEAD right now and each of those tags has the following parameter - true Which, in JSP language means that you can pass attributes w/o putting them in the TLD file. In Struts, this means that if you put them on the s:* tag, the

Re: dojo script for DATEPICKER tag

2008-04-23 Thread James Carr
I tried all of the above with Struts 2.0.11.1 but none of them work. SURELY there must be SOMEWAY to set the endDate attribute dynamically from the taglib!? Thanks, James On Thu, Jan 31, 2008 at 11:07 PM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > I haven't tried it, but I would think that some

Re: [OT] Looking for a util to set parameters on an object

2008-04-23 Thread Adam Hardy
Greg Lindholm on 23/04/08 20:36, wrote: I have an object and a Map of parameter/values and I'm looking for a utility that will match up the parameters with the setters on the object, call the setters and handle conversions for primitive types. I know that OGNL is being used to do this on action

Re: [OT] Looking for a util to set parameters on an object

2008-04-23 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, ognl isn't that complicated as it seems. Look at http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/index.html If you don't like it, try using java.reflection-api ;) Greg Lindholm schrieb: > I have an object and a Map of parameter/va

RE: how to use xwork-2.1.1.jar with struts 2.0.11.1

2008-04-23 Thread Brad A Cupit
>> I downloaded and installed struts 2.0.11.1. I noticed it >> still uses xwork-2.0.4.jar. Maybe you meant to download Struts 2.1.1? http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/s truts2-core/ Struts 2.1.1 comes with xwork 2.1.1 out-of-the-box. note: Struts 2.1.x has n

Submitting to a div on a tabbedPanel

2008-04-23 Thread cree
I have been laboring over this pretty much all day and have not come up with any sort of solution heres my situation. I have two JSPs. One contains the main tabbed panel with any number of divs as tabs. One tab references an href like: The someAction.action will point to another JSP. This o

[OT] Looking for a util to set parameters on an object

2008-04-23 Thread Greg Lindholm
I have an object and a Map of parameter/values and I'm looking for a utility that will match up the parameters with the setters on the object, call the setters and handle conversions for primitive types. I know that OGNL is being used to do this on actions from the ParametersInterceptor. I t

execAndWait interceptor and setting request attribute throws NPException

2008-04-23 Thread akash agrawal
Hi, When I use execAndWait interceptor and set some request attribute in my action, I get NPE: java.lang.NullPointerException at org.apache.catalina.connector.Request.setAttribute(Request.java:1376) at org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:5

how to use xwork-2.1.1.jar with struts 2.0.11.1

2008-04-23 Thread jadewed
I downloaded and installed struts 2.0.11.1. I noticed it still uses xwork-2.0.4.jar. I'm trying to get better diagnostic messages for my jsp pages instead of a blank page. I think the latest version of xwork.jar may help. When I replace xwork-2.0.4.jar with xwork-2.1.1.jar in my Tomcat weba

[s2] Struts 2.1.1 test build and ActionContext.getContext()

2008-04-23 Thread Fabiano Franz
Hi folks, I'm testing the last Struts 2 test build (http://www.nabble.com/-s2--Test-build-of-2.1.1-available-to16748800.html), but I found a problem: ActionContext.getContext().getActionInvocation() is now returning null, and I was using it to be able to access the action's namespace. It was work

Re: question

2008-04-23 Thread Marc Ende
Hi David, it's true the docs aren't that good as expected. What you've been looking for is yours Marc Hernandez, David schrieb: Sorry for such a n00bie question, but I'm having trouble finding any good documentation on this: I want to check in my jsp if the value of a string is equal to a

question

2008-04-23 Thread Hernandez, David
Sorry for such a n00bie question, but I'm having trouble finding any good documentation on this: I want to check in my jsp if the value of a string is equal to a string literal: In java: if(action.equals("set")) { } I've tried to no avail the following (where action is a string on the stack):

Re: Validation on methods

2008-04-23 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Márcio*, *thanks for your quick answer. Yes, that will work, you're right. Unfortunately is is not exactly what i would want. You are doing your validation in the method that is called. I would prefer the framework to call *validate()* before (

Re: S2

2008-04-23 Thread Martin Gainty
submit.ftl<#if parameters.title?exists> title="${parameters.title?html}"<#rt/> - Original Message - From: "Stefan Gebhardt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, April 23, 2008 8:59 AM Subject: Re: S2 On Wednesday 23 April 2008 14:51:56 Jeromy Evans wrote:

Re: Validation on methods

2008-04-23 Thread Márcio Gurgel
Hi Volker, You can do it with struts xml validator: Include a xml into your action package like this: ActionName - alias from action - validation.xml Example: ActionName-save-validation.xml * Note that "save" is the name of action in your struts.xml Nothing better than a real example: struts

struts 2.0.9 velocity problem

2008-04-23 Thread Raghavendra
Hello, I am trying the struts 2.0.9 sample portlet and am seeing this problem when I use the "velocity" sample. Does anyone know how to fix this or if this is a known problem? ERROR [org.apache.commons.digester.Digester] Parse Fatal Error at line 1 column 1: Content is not allowed in prolog. or

Struts 2.0.11.1 problem

2008-04-23 Thread Raghavendra
Hello, I just installed the struts 2.0.11.1 sample portlet on WebSphere Portal Server and added the test portlets to a page, but when I try to view the portlet, the page displays with "This portlet is temporarirly disabled" message. I see the error show below in the logs. I do have org.spri

Struts 2.0.11.1 problem

2008-04-23 Thread Raghavendra
Hello, I just installed the struts 2.0.11.1 sample portlet on WebSphere Portal Server and added the test portlets to a page, but when I try to view the portlet, the page displays with "This portlet is temporarirly disabled" message. I see the error show below in the logs. I do have org.spri

Validation on methods

2008-04-23 Thread volker
Hello y'all, i have quite an interesting problem again. In my struts.xml i have defined a method to call for my action (method="save") Every time my action class is called, the method validate() is executed. The same action class used with struts.xml-parameter method="save" is also executed as e

Re: Passing a List through a hidden field

2008-04-23 Thread Jeromy Evans
Gabriel Belingueres wrote: You need to iterate the list with an status variable and produce hidden fields of the following form: Yeah, that works. It's a pity that OGNL's conversion from list/array to string doesn't output a string that can be converted back into an array/list. --

Re: S2

2008-04-23 Thread Stefan Gebhardt
On Wednesday 23 April 2008 14:51:56 Jeromy Evans wrote: > Stefan Gebhardt wrote: > > Hi s2 users! > > I like to render a html button element. > > > >> value="%{getText('common.themes.'+#attr.THEME+'.editing.new')}" > > cssClass="${pageScope.divClass}" id="btn_new"/> > > > > Most of the

Re: Passing a List through a hidden field

2008-04-23 Thread Jeromy Evans
Steve Akins wrote: I have a List called "ids" which contains 4 Strings "22030", "6496", "6457", "6448" When the following tag is used: It produces the following HTML: When the form is submitted the "ids" List is populated with one String "[22030, 6496, 6457, 6448]" instead of 4 Strings "22

How to popup a new window having detailed data on click of textbox

2008-04-23 Thread Rishi Deepak
I am working on Human Resource system with STRUTS1. I have a case that user have already entered the employee number and its personel details in a form. In second form user want to select the employee number and employee name already entered and donot want to type again the employee number and n

Re: Passing a List through a hidden field

2008-04-23 Thread Gabriel Belingueres
You need to iterate the list with an status variable and produce hidden fields of the following form: 2008/4/23, Steve Akins <[EMAIL PROTECTED]>: > I have a List called "ids" which contains 4 Strings "22030", "6496", > "6457", "6448" > > When the following tag is used: > > > It produces the fol

Re: S2

2008-04-23 Thread Jeromy Evans
Stefan Gebhardt wrote: Hi s2 users! I like to render a html button element. Most of the times New sometimes i get New Both result are not correct. Is it a bug? Did i make a mistake? Can you give me hint, please? greets stefan gebhardt Congratulations, you've managed to hit three strut

Tiles 2 and Tabbed

2008-04-23 Thread Håken Stark
Hi, I'm currently using Struts 2.0.11.1 where I'm having problem using CSS style attribute 'float' together with Struts' . The content of the tabbedpanel is displayed wrongly when for example a inside the tabbedPanel are using the 'float' attribute. Like this:

Re: Ajax tree tags and forest generation - selection problem

2008-04-23 Thread Jukka Välimaa
In case anyone else will have the same problem, I'll describe a solution to this. I use the following script to unselect the other trees: dojo.event.topic.subscribe("/nodeSelected", function(source){ var selectedNode = source.node; var selectors = dojo.widget.manager.getWidgetsByType('stru

quickstart and the date range validator

2008-04-23 Thread Peter Wages
This may be a duplicate. I'm a new user of this list. I modified the quickstart demo application by adding person.dateOfBirth and person.age to do some tests with the validators. I added a an intrange validator on the age and a daterangevalidator and a regex validator on the date of birth p

ExecAndWait and Validation

2008-04-23 Thread volker
Hello s2-users, I have a quite interesting problem an hope, anyone of you could give me a hint: I am using the ExecAndWait-Interceptor to show a progress-page when searching for customers. If this search takes longer than a second, the progress page is shown. So far everything is fine. My actio

S2

2008-04-23 Thread Stefan Gebhardt
Hi s2 users! I like to render a html button element. Most of the times New sometimes i get New Both result are not correct. Is it a bug? Did i make a mistake? Can you give me hint, please? greets stefan gebhardt - To unsu

Re: Disabling Browser AutoComplete in Struts tags

2008-04-23 Thread Jeromy Evans
Chris Pratt wrote: So, I'm hearing the answer is "you can't"? At least not without extending the system myself? Thanks, I'll work around the system again. (*Chris*) If you use FTL you can add the attribute directly to the form, input and password tags. Customising a tag's template as T