Re: Validation Random Failures

2007-04-13 Thread Adam Ruggles
I'm having a similar problem. I'm extending the ActionSupport object and I have no validation specified and I'm experiencing the same issue. I did enable validation and the results didn't change. The application was previously built on webwork2 where I didn't experience these issues at all.

Posting Java 5 Enum values

2007-04-13 Thread Adam Ruggles
I have an object that contains a Java 5 enum class. I'm having problems getting this to post back to my action. Is there any documentation on how to do this? Do I need to create a custom type converter/annotation/properties file? -

Validation Random Failures

2007-04-13 Thread Zach Calvert
I'm receiving random/spontaneous failures of validation on valid entries. I can use the browser back button, re-submit the same data, and sometimes get it accepted. I'm using simple Required strings: @Validations( requiredStrings = {

Re: [S2] How to link Tree Node to another dynamic ajax div

2007-04-13 Thread Dave Newton
--- Minerva CC <[EMAIL PROTECTED]> wrote: > I followed the instruction for the tree tag and > created a treeview. Now, I want to select a tree > node and display some data in another ajax div. IIRC you need to use Dojo topics to do useful things with tree events. Alas, I do not think they are work

[S2] How to link Tree Node to another dynamic ajax div

2007-04-13 Thread Minerva CC
Hi, I followed the instruction for the tree tag and created a treeview. Now, I want to select a tree node and display some data in another ajax div. This is how I created the treeview: This is what I would do to link ajax to the result action: Now, the question is how do I know

RE: How to format util date with JSTL

2007-04-13 Thread Fogleson, Allen
Doesn't really belong in a struts list but here If you want them all in GMT you will have to convert them in your action. Al From: Vinit N [mailto:[EMAIL PROTECTED] Sent: Fri 4/13/2007 3:42 PM To: [EMAIL PROTECTED] Subject: How to format util date wi

Re: How to format util date with JSTL

2007-04-13 Thread Martin Gainty
You can use the format and parse options of jstl/fmt e.g. <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %> var="formatted" /> (parsed in "GMT") M- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this

Re: [S2] Cannot run TabbedPanel tag

2007-04-13 Thread Dave Newton
--- Minerva CC <[EMAIL PROTECTED]> wrote: > 1. It didn't say that we need to put theme="ajax"/> on the page. http://struts.apache.org/2.x/docs/ajax-tags.html There's a big green box near the very top of the page that says: "To use the Ajax tags you need to set the "theme" attribute to "ajax".

Re: Struts in Servlet 2.4

2007-04-13 Thread Martin Gainty
Sounds as if your ejb compiler didnt generate and compile the necessary interfaces for what its worth here is a sample of a build for my wl env Note the easiest path is to run the build.xml target to build the ear cd %WL_HOME% cd samples cd server cd examples cd src cd examples cd webservices cd

Re: [S2] Cannot run TabbedPanel tag

2007-04-13 Thread Minerva CC
Thanks Martin. I tried to add theme="ajax" for the div for the first tab, it works. Now, it generates similar code as you posted here. In conclusion, there are two errors in the document page (http://struts.apache.org/2.x/docs/ajax-tags.html): 1. It didn't say that we need to put on the pag

RE: How to format util date with JSTL

2007-04-13 Thread Rod Bollinger
Vinit, Place the following at the top of your JSP: <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %> Then, use the following to format your date: The dateStyle attribute uses the same semantics as the SimpleDateFormat. You can alternatively use the pattern attribute to specif

tiles-defs.xml and extended attributes...

2007-04-13 Thread Rod Bollinger
Hello, I have a menuing system using a custom tag to create menus based on configurations specified in Tiles. I needed to create a more robust solution for menu specification than was provided by the org.apache.struts.tiles.beans.SimpleMenuItem. I extended the org.apache.struts.tiles.beans.MenuIte

How to format util date with JSTL

2007-04-13 Thread Vinit N
How to format util date value with "-MM-DD HH:MM GMT" this format using JSTL 1.0 Thanks, Vinit -- View this message in context: http://www.nabble.com/How-to-format-util-date-with-JSTL-tf3573559.html#a9985370 Sent from the Struts - User mailing list archive at Nabble.com.

RE: Struts in Servlet 2.4

2007-04-13 Thread Slattery, Tim - BLS
> I found this to be a great tutorial > http://www.exadel.com/tutorial/struts/5.2/guess/strutstutorial.html > > Create your formbean with public Accessors/Mutators for each > private attribute and also create methods for reset method > validateMethod and of course public no arg constructor for b

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Musachy Barroso
Actually now that you mention it, yeah, it should use the outer form by default, I will fix it for 2.1 regards musachy On 4/13/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: That did it! Thank you, thank you. Not sure why I have to specify a form I am already in, but I don't care. It works!

Re: Validator Problem

2007-04-13 Thread Laurie Harper
Tom Bednarz wrote: I use a form derived from ValidatorActionForm. If the validator fires a message and redisplays the form, I loose my request params! I do: this actions opens a form with a request parameter op set to new. inside this form I do something like:

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
That did it! Thank you, thank you. Not sure why I have to specify a form I am already in, but I don't care. It works! Thanks again, Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Ooops sorry, now I got it, you need to put sportsOrg > inside a form, and > point to it from the other a

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Musachy Barroso
Ooops sorry, now I got it, you need to put sportsOrg inside a form, and point to it from the other autocopleter, using "formId" musachy On 4/13/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: Well, there is not submit per se, the action is getting called when the user types the second char in th

Re: Struts in Servlet 2.4

2007-04-13 Thread Martin Gainty
Hi Tim I found this to be a great tutorial http://www.exadel.com/tutorial/struts/5.2/guess/strutstutorial.html Create your formbean with public Accessors/Mutators for each private attribute and also create methods for reset method validateMethod and of course public no arg constructor for bean

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
Well, there is not submit per se, the action is getting called when the user types the second char in the lookup editor. Here is the log when the user types zz: DEBUG interceptor.FileUploadInterceptor - Bypassing /html/ LookupSportsTeam DEBUG interceptor.StaticParametersInterceptor - Setting s

Re: S2 Action Validation

2007-04-13 Thread Laurie Harper
Yup :-) James Mitchell wrote: IIRC, 'Laurie' is short for Lawrence (not a girl) :D -- James Mitchell On Apr 12, 2007, at 5:07 PM, [EMAIL PROTECTED] wrote: Laurie -- Thanks girl. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I gue

Re: [S2] Cannot run TabbedPanel tag

2007-04-13 Thread Minerva CC
Thanks Dave for your help. I tried to add in my page and all the html tags to the test.jsp. Then, I got only one tab showing up, which is dynamic one with a close icon. In the panel, I have both panel contents displayed. When I click on the close icon, the dynamic panel content was collapsed.

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Musachy Barroso
When you click submit, are they getting submitted to the action (with values)? musachy On 4/13/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: Well, it is great that we are both right but it is still not working. I don't care about "foo", I was just trying to make my code simpler in the email.

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
Well, it is great that we are both right but it is still not working. I don't care about "foo", I was just trying to make my code simpler in the email. The actual code has two autocompleters like this: In LookupSportsTeamAction I need the value of wh

Re: i think struts tags, taglib imports and javascript functions are changing the way a jsp renders in IE7

2007-04-13 Thread Ray Clough
The real truth is that IE5,6,7 are terrible browsers which are not very css compliant. IE is infamous among developers for making consistent coding impossible. If only there were some way of forbidding people from using IE, or even more improbable, getting Microsoft to make it a good product.

RE: Struts in Servlet 2.4

2007-04-13 Thread Slattery, Tim - BLS
> > > Andit points to "items" and gives this message: > > This attribute does not support request time values. Well, I've made some progress, I guess. I removed the jstl.jar and standard.jar that came with the Struts distribution. I deleted the tags for c: and fmt: in web.xml. And I got rid of

nid help on creating a cascaded multiple dynamic drop down list

2007-04-13 Thread missy
Hi! I'm trying to create a cascaded multiple dynamic drop down list(as i call it) wherein the first drop down list would be for selecting a region, the second for selecting a province (contents based on the selected region), and the third for selecting a city within the selected province. I've do

Re: [S2] Cannot run TabbedPanel tag

2007-04-13 Thread Dave Newton
--- Minerva CC <[EMAIL PROTECTED]> wrote: > <%@ taglib prefix="s" uri="/struts-tags"%> id="ajaxTest" value="/AjaxTest.action" > /> closeButton="tab" selectedTab="dynamic" > id="test">This is > an static content tab. href="%{ajaxTest}" theme="ajax" label="dynamic" > id="dynamic">This is a dynamic co

[S2] Cannot run TabbedPanel tag

2007-04-13 Thread Minerva CC
Hi, I try to run the TabbedPanel sample code in the Strut 2 document http://struts.apache.org/2.x/docs/ajax-tags.html. I cut and paste the sample code to a test.jsp as follows: <%@ taglib prefix="s" uri="/struts-tags"%>This is an static content tab.This is a dynamic content tab. The content of t

i think struts tags, taglib imports and javascript functions are changing the way a jsp renders in IE7

2007-04-13 Thread Ashuin Sharma Chamorro
Im developing a web application with struts 1.2.9 and if I run it in firefox everything looks good, But in IE everything is messed up, and I think some of the tags create like line breaks, and the Taglibs imports create empty spaces, so windows display to much blank space, and everything no

Re: ajax and struts 2

2007-04-13 Thread Lance
read my mail... on the serverside you can use WebContextFactory.get().getSession() David Harland wrote: Im using DWR. The problem is that the java class that the javascript talks to does not have access to the session. What would be better would be for the dwr javascript to talk to an action.

RE: ajax and struts 2

2007-04-13 Thread David Harland
Thanks Dave, I think that is exactly what I was looking for. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:54 To: Struts Users Mailing List Subject: RE: ajax and struts 2 --- David Harland <[EMAIL PROTECTED]> wrote: > Im using DWR. The problem is

Re: Tiles 2 Lifecycycle

2007-04-13 Thread stanlick
Antonio -- Can you explain this using this example? course.page My class "course" is wired up in Spring. The course.page tiles definition cab be found below. The course.jsp allows CRUD operations for a Course. All four methods in the

RE: ajax and struts 2

2007-04-13 Thread Dave Newton
--- David Harland <[EMAIL PROTECTED]> wrote: > Im using DWR. The problem is that the java class > that the javascript talks to does not have access to > the session. http://getahead.org/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContext.html But there are better ways to handle this in S2. d. ___

RE: ajax and struts 2

2007-04-13 Thread David Harland
Im using DWR. The problem is that the java class that the javascript talks to does not have access to the session. What would be better would be for the dwr javascript to talk to an action. -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: 13 April 2007 16:35 To: Struts Us

token-session interceptor does not work with IE 6.0

2007-04-13 Thread Gajbhe, Laxman \(Contractor\)
Hi folks, token-session example (Example 3 (token-session based.jsp example) from showcase throws following exception in IE 6.0/Weblogic 9.1. It works fine with firefox. java.net.SocketException: Connection reset by peer: s

Re: ajax and struts 2

2007-04-13 Thread Lance
ew... that sounds icky! have you considered DWR, it marshalls calls from javascript to java then marshalls the result back into javascript objects for you. http://getahead.org/dwr/overview/dwr on the serverside you can use WebContextFactory.get().getSession() Mahesh Parab wrote: Hi David, u c

Re: Java Web Parts v1.1 Beta 1 released

2007-04-13 Thread Anoop kumar V
hey - Where would I find pertinent information about the project. I mean suppose I want to look up what all types of filters are available for reuse, where is that infromations. Thanks, Anoop On 4/8/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Hey everyone... just a quick weekend note to t

Re: ajax and struts 2

2007-04-13 Thread Mahesh Parab
Hi David, u can able to read the session variable in javascript, e.g var intId intId='<%=session.getValue("id")%>' ; try this , Thanks, mahesh. On 4/12/07, David Harland <[EMAIL PROTECTED]> wrote: I am new to ajax and have just written my first ajax function. In my function I am passing a use

Re: Java Web Parts v1.1 Beta 1 released

2007-04-13 Thread Frank W. Zammetti
Woops, sorry about that folks... I didn't see the Cc list before I clicked Reply All. Didn't mean to cross-reply. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Pr

Re: Java Web Parts v1.1 Beta 1 released

2007-04-13 Thread Frank W. Zammetti
Hi Anoop, http://javawebparts.sourceforge.net Click the Javadocs link, that's the easiest way to see what's available. The project is organized as 11 packages, such as javawebparts.filter and javawebparts.servlet for example, it's usually pretty obvious where things will be found (and the descri

Re: Tiles 2 Lifecycycle

2007-04-13 Thread Dave Newton
--- stanlick <[EMAIL PROTECTED]> wrote: > Wouldn't it be easier if you could redirect to > yourself without involving another action for this > purpose? Sure. The action you redirect to wouldn't need to be a separate action; it could be the same one. But a tile isn't an action, so you wouldn

Re: Tiles 2 Lifecycycle

2007-04-13 Thread Antonio Petrelli
2007/4/13, stanlick <[EMAIL PROTECTED]>: Wouldn't it be easier if you could redirect to yourself without involving another action for this purpose? I use tile definitions as the target for all my requests. Once the user successfully does a task related to that "page," I'd like to represent the

Re: Tiles 2 Lifecycycle

2007-04-13 Thread stanlick
Wouldn't it be easier if you could redirect to yourself without involving another action for this purpose? I use tile definitions as the target for all my requests. Once the user successfully does a task related to that "page," I'd like to represent the tile with freshly injected beans. Can you

Validator Problem

2007-04-13 Thread Tom Bednarz
I use a form derived from ValidatorActionForm. If the validator fires a message and redisplays the form, I loose my request params! I do: this actions opens a form with a request parameter op set to new. inside this form I do something like:

[OT] Ready to give back? Help sponsor ApacheCon

2007-04-13 Thread Ted Husted
Newsflash: Sponsorships for ApacheCon Europe 2007 are still available! * http://www.eu.apachecon.com/sponsors/ The conference opens May 1 in Amsterdam, The Netherlands, so time is short, but if your organization might be able to help, please contact Delia Frees at [EMAIL PROTECTED] or on +1 707

Re: Form data to Vector

2007-04-13 Thread Martin Gainty
Balazs Take a look at http://struts.apache.org/1.0.2/api/org/apache/struts/taglib/logic/package-summary.html you will see this example of implementing a vector via use of struts logic:iterate in your jsp <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <% java.util.Vector vector =

[OT][ANN] JAVAWUG BOF 26

2007-04-13 Thread Peter . Pilgrim
Data Grid Defined / Brian Oliver / Tangosol / Skills Matter / London / 16 April 2007 from 18:30 http://jroller.com/page/javawug?entry=javawug_bof_26_data_defined http://skillsmatter.com/javawug I'm out of here until the next contract! -- Peter Pilgrim UBS Investment Bank, Client Portal Dev LDN, Tr

RE: Can we *please* havea seperate Struts *2* - User list?

2007-04-13 Thread Peter . Pilgrim
Probably not! Leaving UBS unsubscribing myself ;-( -- Peter Pilgrim UBS Investment Bank, Client Portal Dev LDN, Triton Court, 14 Finsbury Square, London, EC2A 1PD United Kingdom ( +44 (0)207 56 75692 ) :: Java EE Spring 2.0 Hibernate 3.2 Development :: Visit our website at http://www.ubs.com Th

Re: tiles definition in global forward

2007-04-13 Thread Yannick Haudry
I had this issue as well but you can use the built-in ForwardAction class, then using the global forward to map to an action that redirects to your tiles definition. e.g.: Yannick On 4/13/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/4/13, Suman Maity <[EMAIL PROTECTED]>: > H

Re: tiles definition in global forward

2007-04-13 Thread Antonio Petrelli
2007/4/13, Suman Maity <[EMAIL PROTECTED]>: Hi, we know that we can use a tiles definition as path of the forward tag under action tag in struts config file It looks like You cannot redirect to a Tiles definition, at least not directly. Just as an information

tiles definition in global forward

2007-04-13 Thread Suman Maity
Hi, we know that we can use a tiles definition as path of the forward tag under action tag in struts config file It looks like Since, I am using tiles plugin, here welcomePage is a tiles definition consisiting of a header. body and a footer. I am using this l

Re: help me to use struts-layout

2007-04-13 Thread Antonio Petrelli
2007/4/13, Lance <[EMAIL PROTECTED]>: I hadn't heard of this before and it looks quite good. Has anyone had good / bad experiences with it? In particular with is it possible to get a reference to the current object and use it in and onRowClick for example? I think that you need to ask this qu

Re: help me to use struts-layout

2007-04-13 Thread Lance
I hadn't heard of this before and it looks quite good. Has anyone had good / bad experiences with it? In particular with is it possible to get a reference to the current object and use it in and onRowClick for example? Antonio Petrelli wrote: 2007/4/13, OSMAN Mohamed AMINE <[EMAIL PROTECTED]

Re: help me to use struts-layout

2007-04-13 Thread Antonio Petrelli
2007/4/13, OSMAN Mohamed AMINE <[EMAIL PROTECTED]>: hi, would you like help me to developping with struts-layout in my jdevelopper thank you to give me a stepby step exemple. http://struts.application-servers.com/ Antonio - T

Form data to Vector

2007-04-13 Thread Balazs Michnay
Hi, I have a form with two submit buttons. One should add the content of a text field to a Vector (which is in the form bean?), and the other one should point to another page that has access to the Vector values. I'd like to know how to add form data to a Vector. Any help would be appreciated.

help me to use struts-layout

2007-04-13 Thread OSMAN Mohamed AMINE
hi, would you like help me to developping with struts-layout in my jdevelopper thank you to give me a stepby step exemple. _\\|//_ (-0-0-) ooO-(_)-Ooo Mes meilleures salutations... OSMAN Mohamed AMINE Ingénieur consultant (216)98207939 Créez votre adresse électronique [EMAIL PROTECTED]