Re: Struts-2 Validation

2009-05-07 Thread NR031
Hi, Thanks for your response, now I am able to validate Date fields. But still I have 2 more doubts. 1) How to change the Date format? If I enter Date in MM/DD/ in the text field, it is validating but I want the format as DD/MM/. How do I change the date format? I tried like thi

Re: Converting from Struts for IBM API to Struts for JSR168

2009-05-07 Thread Nils-Helge Garli Hegvik
I'm not sure how this is related to Struts? If you are looking for using Struts for portlet development, either check the Struts 1 portlet bridge, or use Struts 2 with the portlet plugin. Nils-H On Thu, May 7, 2009 at 11:17 PM, Hermann X Lau wrote: > IBM API has been deprecated for Portal 6.1...

Re: Passing a value to JavaScript from a tag

2009-05-07 Thread suhas kokal
Hi, Try out OGNL expression for the value attribute of property tag. This may help. Thanks Suhas. --- On Fri, 8/5/09, cm132005 wrote: > From: cm132005 > Subject: Passing a value to JavaScript from a tag > To: user@struts.apache.org > Date: Friday, 8 May, 2009, 6:45 AM > > How to pass a value

Re: s:iterator and form submission

2009-05-07 Thread Dave Newton
Rene Gielen wrote: http://struts.apache.org/2.1.6/docs/tabular-inputs.html In addition (it's on my infinite list of things I have no time for) AFAIK if there are multiple parameters with the same name and a collection property (like a List) they'll be marshalled into the list automagically w

AUTO: Ronni Bjelosevic is out of the office. ( Rückkehr am 18.05.2009)

2009-05-07 Thread Ronni . Bjelosevic
Ich bin bis 18.05.2009 abwesend Falls ihr Thema vorher behandelt werden soll bitte ich Sie den UAG-IT Helpdesk zu kontaktieren um eine schnellstmögliche Bearbeitung ihrer Anfragen zu gewährleisten. (DW Helpdesk: 2100). Mit freundlichen Grüßen Ronni Bjelosevic If your subject should be handled b

Re: S2 - s:submit method="value" has to be hard-coded?

2009-05-07 Thread Dave Newton
cm132005 wrote: That's how I have it configured but somehow the "method" doesn't seem to take a variable value these throw exception: "/> works with hard-coded values: May be I am missing something... Yes; basic JSP. As in the previous message you can't arbitrarily nest tags-

Re: Passing a value to JavaScript from a tag

2009-05-07 Thread Dave Newton
cm132005 wrote: How to pass a value from valueStack to a JavaScript function? This doesn't work: > onclick='"doEdit(\'\')"' /> You can't nest custom tags like that; that's not an S2 issue, it's just the way it works. Use OGNL; that's what it's for: Dave --

Re: s:iterator and form submission

2009-05-07 Thread Rene Gielen
http://struts.apache.org/2.1.6/docs/tabular-inputs.html cm132005 schrieb: When the Edit is submitted, the aId passed in is actually a String of comma separated aIds of all aVOs. The requirement is such that I need to use the same for

Re: @Transactional Spring Annotation in a Struts2 Action does not work

2009-05-07 Thread Rene Gielen
You should consider to have a look into the paramsPrepareParams pattern (see struts-default.xml for a brief description) and to write and use a TransactionInterceptor. The latter one gives you the same cross cutting TX approach you want from your @Transational annotation, but in addition to tha

RE: S2 - s:submit method="value" has to be hard-coded?

2009-05-07 Thread cm132005
That's how I have it configured but somehow the "method" doesn't seem to take a variable value these throw exception: "/> works with hard-coded values: May be I am missing something... Thanks. mgainty wrote: > > > I would try populating the method with a splitting of the act

Passing a value to JavaScript from a tag

2009-05-07 Thread cm132005
How to pass a value from valueStack to a JavaScript function? This doesn't work: \')"' /> Any help would be appreciated. Thanks. -- View this message in context: http://www.nabble.com/Passing-a-value-to-JavaScript-from-a-tag-tp23438467p23438467.html Sent from the Struts - User mailing list a

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread Jim Kiley
The checkstyle, FindBugs, or PMD plugin does this for sure. On Thu, May 7, 2009 at 8:50 PM, Dave Newton wrote: > SofIAm wrote: > >> Thank YOU ALL! What a dumb JAVA 101 mistake! I was never populating the >> class >> member variable myList, but the local one in my method, unintentionally of >> co

s:iterator and form submission

2009-05-07 Thread cm132005
When the Edit is submitted, the aId passed in is actually a String of comma separated aIds of all aVOs. The requirement is such that I need to use the same form instead of having a s:form tag within the iterator. How to submit the correc

Re: Date/time formatting

2009-05-07 Thread Rene Gielen
http://struts.apache.org/2.1.6/docs/formatting-dates-and-numbers.html Jon Pearson schrieb: Right, but I don't want to specify the format explicitely, since it should depend on the localization of the browser. But when I don't specify it, I don't get the time included in the output. Is there a

Re: Struts Tag Library - Can I have a dropbox option disable a text field?

2009-05-07 Thread Dave Newton
spongebue wrote: Basically, I have an s:select list with a list of activities, which gets its content from the database, delivered via struts. I also have a s:textfield with the number of hours each activity takes up. What I'd like is for the text field to no longer be editable once an activity

Re: How to develop a Wireframe using Struts UI?

2009-05-07 Thread Dave Newton
kunduruswaroop wrote: I tried several ways to resolve the issue my self. But here is the problem I did not find a UI framework for it. I used tables and did the work. It is very hard putting everything in Tables I expected the API for it. S2 is the *back-end* of a webapp, not the front-end. If

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread Dave Newton
SofIAm wrote: Thank YOU ALL! What a dumb JAVA 101 mistake! I was never populating the class member variable myList, but the local one in my method, unintentionally of course. DUH!!! It's working like a charm! Thanks again! There is a warning available in Eclipse to notify you when a local

Struts Tag Library - Can I have a dropbox option disable a text field?

2009-05-07 Thread spongebue
Hi all, First off, sorry if this is a dumb question to be asking. I always have the worst of luck with finding struts-related info, and the tag library is no better. Basically, I have an s:select list with a list of activities, which gets its content from the database, delivered via struts. I

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Rene Gielen
Filed https://issues.apache.org/struts/browse/WW-3121 Added better error message with hint to disable class reloading. Correct fix needs addtional XWork work, will check tomorrow. Musachy Barroso schrieb: > to add to what Lukasz said, don't rely too much on the reloading class > loader which is e

Converting from Struts for IBM API to Struts for JSR168

2009-05-07 Thread Hermann X Lau
IBM API has been deprecated for Portal 6.1... does anyone have any resources or tips on this conversion process? One of the changes is that org.apache.jetspeed.portlet is deprecated and javax.portlet is its replacement. However, the PortletRequest class is different... under the old deprecated c

RE: How to develop a Wireframe using Struts UI?

2009-05-07 Thread kunduruswaroop
I tried several ways to resolve the issue my self. But here is the problem I did not find a UI framework for it. I used tables and did the work. It is very hard putting everything in Tables I expected the API for it. Thanks all for your Ideas and Help. Regards, Swaroop Kunduru. mgainty wrote:

Dispatcher send Error Problem

2009-05-07 Thread Chily
I have the followin filter configuration CustomFilter -> SpringSecurityFilter -> Struts2 Filters The CustomFilter is responsible for the ExceptionHandling (All the Security and the Business exceptions), this Filters shows a common page and do some other works. The problem is that the Struts Disp

Dynamic property names

2009-05-07 Thread Jon Pearson
I am trying to build out a table of values. I would like the user to be able to choose which columns are visible, and to re-order them (not interactively, on a separate page). My initial method for implementing this looks something like: User preferences: property1 property2 ... And then somethin

Re: Struts 2 UI Tags and OGNL self reference

2009-05-07 Thread Nils-Helge Garli Hegvik
If I understand your question correctly, are you looking for a reference to the tag itself? If so, why do you need it (I'm not sure it's possible at all)? If you're just looking for the current action, the expression 'top' might be what you're looking for. Nils-H On Thu, May 7, 2009 at 6:27 PM, s

Struts 2 UI Tags and OGNL self reference

2009-05-07 Thread stanlick
Sorry about that subject line, but I couldn't think of anything simpler. Besides, this should cover about all the searches! I am looking to pass a "this" reference into an OGNL expressions as follows: Apparently this is not quite the right syntax though. I have tried a few combinations and

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread SofIAm
Thank YOU ALL! What a dumb JAVA 101 mistake! I was never populating the class member variable myList, but the local one in my method, unintentionally of course. DUH!!! It's working like a charm! Thanks again! Timothy Orme wrote: > > Ah good catch, this is whats causing it. Although as I

Re: Struts 2 Namespaces

2009-05-07 Thread Timothy Orme
Right, but I'm wondering what happens if 2 packages have the SAME namespace and each have an action with the same name like: etc. etc. Which one gets selected? -Tim Martin Gainty wrote: extends attribute: The extends attribute is optional and allows one package to inheri

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread Timothy Orme
Ah good catch, this is whats causing it. Although as I said, you dont need to rename the method if you've setup your struts.xml as it is. Jim Kiley wrote: Even then it won't be OK. The OP is declaring myList as a local variable in getAllEmployees(), so getMyList won't return it. Change the li

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread Timothy Orme
This is actually not correct, he defined the method as "getAllEmployees" in his struts.xml That said, I'm not sure of the default behavior of the s:property tag. Have you tried something like s:property value="top"? I'm not huge on the struts tag libs, but this would be the first place I'd lo

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread Jim Kiley
Even then it won't be OK. The OP is declaring myList as a local variable in getAllEmployees(), so getMyList won't return it. Change the line "List myList = new ArrayList();" in getAllEmployees() to just be "myList = new ArrayList();" and do as Lukasz suggests and you should be OK. jk On Thu, May

Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread Lukasz Lenart
2009/5/7 SofIAm : >        public String getAllEmployees() { This method is never called, renamed it to execute() and should be ok Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.a

Please help! Struts 2/Eclipse - List Object is not displaying in JSP

2009-05-07 Thread SofIAm
Hi Everyone, I'm new to Struts. Please help me figure out why the List myList is not being displayed in JSP, although my String variable s is displayed. Your help will be greatly appreciated! Thanks! Here's the code: struts.xml http://struts.apache.org/dtds/struts-2.0.dtd";>

Problems setting attributes on my Action using Restful2ActionMapper

2009-05-07 Thread David Rocks
Hi, I am trying to work out how populate attributes on using Restful2ActionMapper but I think I am missing something in my configuration and wondered if someone could give me some advice. My struts file is {0} My action package com.action ; @Results({

Re: s:text undesired behaviour - getting action properties in struts 2

2009-05-07 Thread Ignacio de Córdoba
Hello, did you manage to solve this? I don't know if it is the desired behaviour or it is a bug. It is really annoying getting the property value in place of the localized text just because they have the same name. I am in the same situation as you and don't get to find any solution. Anybody else

Struts 2 Namespaces

2009-05-07 Thread Timothy Orme
Hello All, I just have a quick question concerning struts 2 namespaces. Mainly, are they unique? I have a book "Practical Apache Struts 2 Web 2.0 Projects" which states that: "The name attribute as well as the namespace attribute must be unique. If not Struts 2 will n

Re: Having problem in basicStack interceptor

2009-05-07 Thread Dave Newton
a wrote: during validation it creates two problems. 1. I fill one field firstname not other two. Here validation works and it verifies "input" parameter and come back to show page. but it show error for required in all the three fields. ??(required error only for two field not for firstname.

Having problem in basicStack interceptor

2009-05-07 Thread aaaaa
Hi, friends I am new to struts 2.1.6 I know complete struts 1.2 but just started 2.1.6. I am developing one sample structure of add, update, delete, view and list to understand struts 2.1.6. Now I am writing my problem. >From index page one link "go" to redirect me to "show" page. This page >

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Musachy Barroso
to add to what Lukasz said, don't rely too much on the reloading class loader which is experimental, there is a flag to disable it, check the docs. musachy On Thu, May 7, 2009 at 8:42 AM, Lukasz Lenart wrote: > Could you try to use the latest snapshot build? > http://people.apache.org/builds/str

RE: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Martin Gainty
the URI you are supplying vfsmemory://5c4o21o-nqcau3-fuffdssr-1-fuffe5bp-1yis not a valid URI I would use valid prefixes defined here http://www.ietf.org/rfc/rfc2396.txt Viel Gluck, Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichke

Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Lukasz Lenart
Could you try to use the latest snapshot build? http://people.apache.org/builds/struts/nightlies/2.x/ If that doesn't help, please register an issue with Jira, JBoss 5 introduced new virtual file system and that the origin of problems https://issues.apache.org/struts/browse/ Regards -- Lukasz h

IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss

2009-05-07 Thread Tenzer, Alexander
Hi, I'm trying to deploy a struts 2 web application to a JBoss 5.01GA-Server (on Windows System). While this works fine with the Tomcat (5 and 6), JBoss throws an IllegalArgumentException. Here is the associated part of the stack trace: ... 14:10:58,123 INFO [STDOUT] 2009-05-07 14:10:58,123 [INF

Re: Struts 2.1.6 ajax submit with datetimepicker

2009-05-07 Thread Raffek
solved - i didnt added @Override annotation on execute() method in the class. -- View this message in context: http://www.nabble.com/Struts-2.1.6-ajax-submit-with-datetimepicker-tp23415768p23425673.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: Defining text field dynamically and assigning value from array

2009-05-07 Thread Lukasz Lenart
2009/5/7 : > maxlength="2" size="2" cssClass="monthInput" tabindex="%{sequenceNo}" /> Maybe just that will be enough? value="%{paramId[0]} Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr.

Defining text field dynamically and assigning value from array

2009-05-07 Thread Sateesh_Chandra2
Hi I have a requirement to define text field dynamically using a name that comes from action. Value of the same is available in the value stack, but in an array. Somehow struts 2 is not evaluation expression within an expression. Is there an alternative to achieve the same? Regards Sateesh

Re: Struts-2 Validation

2009-05-07 Thread Dave Newton
NR031 wrote: 1) How to validate a Date format in Struts 2 I have my -validation.xml like this : Please enter your Date of birth Perhaps with the date validator: http://struts.apache.org/2.x/docs/date-validator.html 2) How to compare two fields I a

struts 2.1.6 action test using junit-plug-in

2009-05-07 Thread Li
Hey guys, I am recently working with struts2.1.6. I was trying to test my action using struts2.1.6 junit-plugin. It was working fine till I started using annotation to replace XML configuration. Seem the configuration info that was generated using annotation was not loaded by my test case. the se