Re: FreeMarker Tags Help - setup

2009-09-21 Thread j alex
I assume you are using your-ftl-file.ftl ..i had no problems passing an extra param to the tag and accessing it in the custom theme FTL On Fri, Sep 18, 2009 at 10:39 PM, Slonim, Greg (USAEO) < greg.slo...@usdoj.gov> wrote: > Hello, > > Setup: struts2 (2.1.6) with Spring (2.5) > > I Refer to the

Re: Warning message when setting BigDecimal to list of bean

2009-09-10 Thread j alex
hmm..i remember getting the warning even for doubles..as the error message says, OGNL fails when trying to set a String array (all request parameters are Strings ) into the BigDecimal field since it cannot find an appropriate setter. In connection to this, can anyone let me know how to suppress th

Re: Intermittent Session Problems in Strut2.

2009-09-10 Thread j alex
Are you using Spring to wire up the Action ? -- just a wild guess that the bean scope may be Singleton (the default value) and that causes the data sharing ? 2009/9/10 Paweł Wielgus > Hi, > i don't know if it will help but You can try same thing i did here [1] > i was trying to force pages not

Re: [S2] i18n for lists/maps

2009-09-05 Thread j alex
Yeah, i dont want to change to DB backed bundles. My question is if the s:select tag can take a list from a resourcebundle directly and use it . If so, how should the list be specified ? On Sat, Sep 5, 2009 at 3:59 AM, Tommy Pham wrote: > - Original Message > > From: j ale

[S2] i18n for lists/maps

2009-09-04 Thread j alex
Hi, Normally, we use the resource bundles to store Strings like field labels, error messages etc. But how about things like dropdown display values ? . I need to i18n-ize an app that has a lot of such dropdowns and the lists are currently referenced like where dropdownmap is loaded into ServletCo

Adding validators dynamically

2009-06-10 Thread j alex
hi, I've a form where the user can add fields dynamically by clicking an "Add" button , and these are stored as a Map in the model , like : dynamicfields[0].firstname dynamicfields[0].lastname dynamicfields[1].firstname etc. The first instance (i.e dynamicfields[0]..) will always be present an

Re: DWRValidator not working in Struts 2.1.6

2009-05-24 Thread j alex
Done - https://issues.apache.org/struts/browse/WW-3138 . I've mentioned about the method name not being picked up as well. Thanks, Joseph On Mon, May 18, 2009 at 11:34 PM, Martin Gainty wrote: > > thats a bug .. > > xwork version 1.2.3 > com.opensymphony.xwork.ActionProxyFactory >public abs

Re: AJAX issues in struts 2.1.6

2009-05-24 Thread j alex
Rajeev, i just took your JSP and made some changes (attached, changes marked with comments) - it renders w/o any errors for me..basically, followed Dave's suggestion of changing s: to sx: HTH Joseph On Sun, May 24, 2009 at 8:10 PM, Dave Newton wrote: > rajeevP wrote: > >> Please help me in thi

Re: DWRValidator not working in Struts 2.1.6

2009-05-18 Thread j alex
I meant that there is a problem with DWRValidator.java , not the documentation. Referring to http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dwr/src/main/java/org/apache/struts2/validators/DWRValidator.java?revision=670170 (hope this is the latest?) , the line : ActionProxy proxy = acti

Re: DWRValidator not working in Struts 2.1.6

2009-05-14 Thread j alex
as an alert box on the page, but that's a different story. Should i open a JIRA for this ? Thanks, Joseph On Fri, May 15, 2009 at 6:41 AM, j alex wrote: > Hi Martin, > > I had seen the configs in the struts-showcase, and used all of them as-is ; > just added a javascript fn. t

Re: DWRValidator not working in Struts 2.1.6

2009-05-14 Thread j alex
tliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas > le > > > destinataire prévu, nous te deman

Re: DWRValidator not working in Struts 2.1.6

2009-05-14 Thread j alex
responsabilité pour le contenu fourni. > > > > > > Date: Thu, 14 May 2009 23:55:34 +0530 > > Subject: Re: DWRValidator not working in Struts 2.1.6 > > From: strutstwou...@gmail.com > > To: mgai...@hotmail.com; user@struts.apache.org > > > > Just

DefaultActionInvocation - vaf set in StrutsPrepareFilter but not for DWR

2009-05-14 Thread j alex
Hi, I'm stuck wtih a problem where the valueStackFactory is null, and this causes DWRValidator to fail. I had posted the stacktrace earlier, but didn't get much responses. Please confirm some of my assumptions reg the initialization process, so that i can do some meaningful debugging: 1. Dispatche

Re: DWRValidator not working in Struts 2.1.6

2009-05-14 Thread j alex
Just wanted to make sure my email reached the full users' list. I still havent been able to make any progress on this. Has anyone got the DWRValidator working in Struts 2.1? On 4/24/09, j alex wrote: > Martin, > > I want DWRServlet to handle only the Action validations, not Acti

Executing Action on validation failure.

2008-10-13 Thread j alex
Hi, I need to implement an use case where the data needs to be saved in DB, even though all the submitted form fields aren't valid. The rule is to make those fields empty and insert whatever is good into the DB (there are few non-nillable fields that need to be valid as a prerequisite). I don't wa

Re: Dynamic indexed field name in validation?

2008-02-10 Thread j alex
I used a custom validator to loop thru each element , validate it and add errors if present . The # of elements could vary per user, and was not known upfront. Really want to know if this can be achieved via validation xml On Feb 7, 2008 8:24 PM, Hodgins, Grant <[EMAIL PROTECTED]> wrote: > I have

Re: S2 Action : request params and session attributes

2008-02-10 Thread j alex
aram2")}, This gives the following exception : java.lang.ClassCastException: [Ljava.lang.String; incompatible with java.lang.String can't figure what's going on here.. On Feb 10, 2008 2:10 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- j alex <[EMA

S2 Action : request params and session attributes

2008-02-10 Thread j alex
Hi, What's the best practice to refer to request and session within an S2 Action without tying it to HttpServletRequest or HttpSession ? Assume that we need to capture values from certain request parameters and do some processing based on them, and set session attributes : Currently, i'm doing i

Re: S2 : Checking constants within JSP

2008-02-02 Thread j alex
2, 2008 9:57 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- j alex <[EMAIL PROTECTED]> wrote: > > > > > > but this doesn't look clean ; is there a way to get rid of the @ > > com.abc.util.AppConstants [import?] > > No; that's how OGNL a

S2 : Checking constants within JSP

2008-02-02 Thread j alex
Hi, What's the best way to check constants in jsp using the s:if tag. I've constants defined in a file like : public class AppConstants { public static final String APPLICATION_CODE = "MYAPP"; public static final String APPLICATION_VERSION = "1.2"; Now, in the JSP we need to use these

Re: Struts2 2.0.11 Validation with DWR

2008-02-02 Thread j alex
Were you able to solve this yet ? . If not, please let me now the exact exception trace-- i had implemented it, and may be able to help Also, if you solved ..pls post the solution too. On Jan 29, 2008 9:27 AM, Julien RICHARD <[EMAIL PROTECTED]> wrote: > I need some help with DWR. > > I have find

Re: Changing the location of the ajax validation error

2008-01-28 Thread j alex
I'd implemented this by overriding the strutsValidator.onErrors function ; basically getting the list of errors and calling custom function to show the errorbox to the right of the field. Also, i needed to show only 1 error at a time - not all the errored fields ; and this was done using the DWR va

Re: accessing url parameters in jsp.

2007-12-20 Thread j alex
Thanks guys..yeah, i hit upon s:url few hrs after i had posted this :-) On Dec 19, 2007 1:59 PM, Maxx <[EMAIL PROTECTED]> wrote: > On Dec 19, 2007 6:45 AM, j alex <[EMAIL PROTECTED]> wrote: > > Ideally, i would want the entire incoming query string be passed on to > th

accessing url parameters in jsp.

2007-12-18 Thread j alex
Hi, I need to access certain url parameters and pass them on as the query string to an iframe within the jsp So, if the incoming url is : http://localhost:9080/myapp/searchForm.action?mainObj.childObj=xyz&abc=123 i need to pass to iframe as : I can access the abc param as , but the same doe

Re: bypass validation

2007-12-07 Thread j alex
Have the "Add Address" button submit to a different method - say, addAddress() on personSave action itself. ie For suppressing validation for this method alone, but allowing for other methods on the action, use the wildcard action mappings -- see earlier posts for the same. Thanks, Joseph On

Re: Struts 2 Session Timeout

2007-11-29 Thread j alex
>> Struts 2 (I think) will recreate your session when it times out. I assume that you mean Struts 2 will create a fresh session, but not have any values in it. Did you find why this is happening and any workaround ? - seems i'm facing the same issue. What's the best way to detect that the sessio

Re: adding validation leads to NullPointerException

2007-11-29 Thread j alex
>From the code you've provided it's failing at request.getAttribute("buttonLabel").equals("Simulate")) Can you please specify how/where "buttonLabel" is set in the code. The only thing i can think of is that validation is stopping the flow to execute() and some variable set there may not be visi

S2 Jasper Reports plugin - exporter parameters

2007-11-29 Thread j alex
Hi, In my app, i need to override some Jasper Report exporter parameters' default only for certain actions. For example, i need to set : exporter.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD,true); for a report where the data columns can be very long and need to break ; while this need

Re: [S2] ArrayList of Object as datasource in JasperReports

2007-11-08 Thread j alex
Can you paste the entire struts.xml ; ensure that you have : On Nov 7, 2007 8:51 PM, carmi_cd <[EMAIL PROTECTED]> wrote: > > hi actually i tried using that tutorial and got a pdf with no data in it > only > page and column titles. > i dont know why.. > > Stacktrace of my sun application serve

S2 Jasperreports plugin : passing exporter parameters

2007-11-07 Thread j alex
Hi, What's the optimal way to pass in extra parameters to customize report generation. For ex : i want to show a paginated view of a report and need to set JRExporterParameter.PAGE_INDEX ; can this be done without modifying the actual source? Thanks, Joseph

Re: [S2]Datasource is null in JasperReports integration

2007-10-26 Thread j alex
I guess you need to have reportData as a field in the Action and do setReportData(reportData) in execute() after populating it. On 10/26/07, carmi_cd <[EMAIL PROTECTED]> wrote: > > > i'm new in integrating JasperReports and Struts 2..my problem is its > always > saying that my datasouce is > nul

Jasper basic issue (with websphere?)

2007-10-18 Thread j alex
Hi, I just started using the S2 - Jasper plugin ; new to Jasper as well ; but not able to get a simple report to show. Below is my struts xml entry : /jasper_compiled.jasper ds PDF

S2 custom validator : getting field value

2007-10-10 Thread j alex
Hi, Within a custom validator for field1, i need access to another field, say field2 to perform some comparison. getFieldValue("field2", object) does not help. Please advise. Thanks, Joseph

Re: Iterate Hashmap with s:iterate

2007-09-20 Thread j alex
I'm not able to use the key within an s:if condition though.. Code : It prints out the correct value in else condition but the comparison fails ; please help! -Joseph On 9/12/07, Cory D. Wiles <[EMAIL PROTECTED]> wrote: > > That worked perfectly. Thanks everyone for all the help. > > -

Re: Whats the harm in creating a Servlet Dispatcher?

2007-09-17 Thread j alex
Can you please explain a bit more on this issue ? - i'm also using WAS 6.1and fear i might run into this down the line. We'll need to use jsp:forward/include etc. a lot in our app. -Joseph On 9/17/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > > Shepherd, > > As you know, you can configure a filt

S2 : Type conversion - primitives vs wrapper classes

2007-09-11 Thread j alex
Hi, For properly handling true/false radio buttons and checkboxes, we've to define the domain objectsas Boolean, and to prevent numerics being populated with 0 (if nothing is entered), the domain object must be Integer. Is there any performance overhead by having to define it this way? --- For the

Re: SessionAware vs ActionContext access to session - confused..

2007-09-11 Thread j alex
). But > if you are writing an Interceptor, you would use ActionContext to get > access to the Session data. > (*Chris*) > > On 9/11/07, j alex <[EMAIL PROTECTED]> wrote: > > Hi, > > > > In the Struts 2 docs, it's recommended to implement SessionAw

SessionAware vs ActionContext access to session - confused..

2007-09-11 Thread j alex
Hi, In the Struts 2 docs, it's recommended to implement SessionAware for accessing session within Action, but looking at some Webwork documentation, http://wiki.opensymphony.com/display/WW1/SessionAware+Actions - it seems to convey the opposite message . Please clarify : 1. Why accessing via Ac

Re: [S2] validation issue

2007-09-11 Thread j alex
The fieldexpression validator would handle most dependent checks, but i think there's no out-of-the-box solution if we want the expression to act as a guard condition alone and not as a validation. Please check the archives for comments on this. -Joseph On 9/11/07, Jiang, Jane (NIH/NCI) [C] <[E

Re: s:select static map

2007-09-10 Thread j alex
Gary, I think your syntax is right - just pasted from your email into my JSP and it works. Let me know if you are able to move the static map to a properties file and get it working from there ; i'm still trying to get the syntax right on that! -Joseph On 9/10/07, GaryD <[EMAIL PROTECTED]> wr

Re: Struts 2 : application-wide values initialization.

2007-09-07 Thread j alex
hris Pratt <[EMAIL PROTECTED]> wrote: > > On 9/7/07, j alex <[EMAIL PROTECTED]> wrote: > > In Struts 1, we were having an init servlet to load the application-wide > > properties like dropdown values (from property files) into application > > context and access

Struts 2 : application-wide values initialization.

2007-09-07 Thread j alex
Hi, In Struts 1, we were having an init servlet to load the application-wide properties like dropdown values (from property files) into application context and accessing these within JSP. Is there a better way of doing this in Struts 2, and do we require an initialization servlet at all ? . Thank

S2 and FTL : parameters (issue?)

2007-09-04 Thread j alex
Please let me know if the following behavior is an issue or not : I've a form where validation needs to be enabled/disabled dynamically based on some condition. So, instead of having "validate" attribute within s:form, i'm having it as an s:param , like : ... ... ... ... In th

Re: Validation chaining in struts2

2007-08-30 Thread j alex
Ted, Regarding field validations, can you provide any reason why the validwhen validator is not provided in Struts 2? . I think this is a step backwards from Struts 1 where we could easily manage conditional validation (validate fieldb only if fielda & fieldc meet some condition) Also, the valida

Re:

2007-08-30 Thread j alex
if validate=true , js function (pure client side) onsubmit is invoked on the form in xhtml theme ; and in ajax theme it adds and onblur validate() to every field element and validates it using ajax. Both of these use the rules defined in your validation xml file. So setting validate=true is for i

Re: Validation chaining in struts2

2007-08-29 Thread j alex
Sounds very similar to the problem i had but no straightforward solution yet ; i've put this for enhancement on JIRA - https://issues.apache.org/struts/browse/WW-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41901 Can you please check if this is what you need as

Re: some advanced questions in Struts2

2007-08-29 Thread j alex
Pavel, Are you sure you pasted the right validation xml entries for username and password ** As you can see for userName and password we have this attribute called page ** -- i'm not able to understand this. On 8/29/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > Hey guys I have posted be

Re: S2 Ajax : Static files - what, where?

2007-08-29 Thread j alex
Oleg, If you don't mind can you please paste the

Re: S2 Ajax : Static files - what, where?

2007-08-29 Thread j alex
I copied over all the FTL files in "simple" theme to a new directory "mytheme" and modify the ones i need to ; don't think this is technically extension, but does the job . -Joseph On 8/29/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > > j alex wrote: > &

Re: S2 Ajax : Static files - what, where?

2007-08-28 Thread j alex
theme="ajax" I replaced with the equivalent javascript includes, and it seems to work fine ;are there any specific server-side (Action/interceptors etc.) that rely on the theme being ajax which i may be missing ? -Joseph On 8/28/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote: >

Re: S2 / FTL : Getting application params in FTL

2007-08-28 Thread j alex
It turned out to be as simple as ..thanks to case sensitivity :-) , oops - i just noticed the code i pasted was messed up but as you would have guessed it was a typo On 8/28/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > > j alex wrote: > > Hi, > > > > How do i ac

Re: S2 Ajax : Static files - what, where?

2007-08-28 Thread j alex
How can i get some insight into the js functions invoked for Ajax validation? ; unless i know what they are i cannot override them :-) . Looking at the example showcase, i only see the and seems it does all the magic On 8/28/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > > j alex

Re: S2 Ajax : Static files - what, where?

2007-08-28 Thread j alex
g the references from the JAR directly. On 8/28/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > > j alex wrote: > > I'm using Websphere and am still stuck with using Ajax for validations ; > > since i'm not able to install the right patch etc. > > > > The p

S2 Ajax : Static files - what, where?

2007-08-28 Thread j alex
Hi, I'm using Websphere and am still stuck with using Ajax for validations ; since i'm not able to install the right patch etc. The performance tuning tip says "copy the static content from the Struts 2 jar when using the Ajax theme" . Can someone please give me the steps to do this ? . I need to

Re: Specify a name for a validate function

2007-08-27 Thread j alex
Struts 1 ; if validate=true, it looks for a method called validate() in ActionForm (ie value_add_form) , Action ( ie MyAction) or if you've configured validation xml, validations are run using that On 8/27/07, Anna Simbirtsev <[EMAIL PROTECTED]> wrote: > > Hello > > type="com.s

S2 / FTL : Getting application params in FTL

2007-08-27 Thread j alex
Hi, How do i access params defined in web.xml in the FTL ? ; In my app, all the images are located at a particular path which is defined as GLOBAL_IMAGES_ROOT www/abc/def/images and i want to show an icon from this directory within the FTL . How would i make GLOBAL_IMAG

Re: s2 equivalent of

2007-08-26 Thread j alex
I don't think there's an equivalent tag, see if *helps 8/24/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > Hey does anyone know which tag in struts2 would be equivalent to the tag > in struts1. Thanks. > > -- > Pavel Sapozhnikov > xFact, Inc > [EMAIL PROTECTED] >

Re: problem configuring struts config in applicaion

2007-08-26 Thread j alex
It's not clear what you are trying to do ; as long as validate=true, the form should get validated. You an have an action mapping , and on hitting the save button, change the 's action to "editForm" using javascript so that the right action-mapping is invoked On 8/25/07, Meenakshi Singh <[EMAIL

Re: S2 : loading dropdown from resource bundle

2007-08-24 Thread j alex
On 8/20/07, j alex <[EMAIL PROTECTED]> wrote: > > Hi, > > Can anyone please help me with loading a tag with a OGNL > list that's been configured in globalMessages.properties as follows : > > list.states = 'AL':'Alabama', 'AK':'Alask

Re: S2 : Struts tags and scriptlets

2007-08-24 Thread j alex
rectly, but > off the top of my head I don't know how to do that. > > ___ > Adam Crume > Computer Information Technologist II > Central Technology Services > (573) 634-5600 ext. 1693 > > -Original Message- > From: j alex [mailto:[EMA

S2 : Struts tags and scriptlets

2007-08-24 Thread j alex
Hi, How do we make variables set by struts tags available to scriptlets? . In Struts 1 , we could set an object using bean:define and access it within a scriptlet ? ; what's the equivalent for S2 ? In the app i'm converting to S2, there's a lot of scriptlet code and we are trying to retain that a

Re: MutableTilesContainer error

2007-08-23 Thread j alex
/login_entry-body.jsp"> > > > And this is the contents of page_layout-defs.jsp > > @ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %> > <%@ taglib prefix="s" uri="/struts-tags" %> > > tem

Re: MutableTilesContainer error

2007-08-23 Thread j alex
Please paste relevant portions on your web.xml, tiles-config and struts xml files , so we can take a better look . I'm assuming you are using Tiles 2along with Struts 2 . On 8/23/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > Hello everybody. I am getting this error when I am trying to use t

Re: S2 Validation XML -- multiple methods on same Action

2007-08-22 Thread j alex
Resend On 8/20/07, j alex <[EMAIL PROTECTED]> wrote: > > Hi, > > Just checking one more time if someone has an answer to my below email. We > decided to go with XML validation, and as i understand it, we cannot have > validation files based on action methods, but ca

Re: S2 Validation XML -- multiple methods on same Action

2007-08-21 Thread j alex
Resending... On 8/20/07, j alex <[EMAIL PROTECTED]> wrote: > > Hi, > > Just checking one more time if someone has an answer to my below email. We > decided to go with XML validation, and as i understand it, we cannot have > validation files based on action methods, but ca

Re: Retrieving an arraylist of strings

2007-08-21 Thread j alex
John, The problem is not very clear from your email . Are you losing the dropdown items when the JSP reloads after submit ? The list of items in the dropdown must reside in a separate bean, and the item you select from it should be in another bean attribute -- i'm assuming you've taken care of th

S2 Validation XML -- multiple methods on same Action

2007-08-20 Thread j alex
each action method, and also change the buttons/links in jsp accordingly. It'll be great if someone can provide inputs before i embark on this huge refactoring. Thanks, Joseph On 8/17/07, j alex <[EMAIL PROTECTED]> wrote: > Dave, > > How do we use the action-alias XML approa

S2 : loading dropdown from resource bundle

2007-08-20 Thread j alex
Hi, Can anyone please help me with loading a tag with a OGNL list that's been configured in globalMessages.properties as follows : list.states = 'AL':'Alabama', 'AK':'Alaska' In the JSP, i'm having : but this doesnt show me the list, but renders a single with the list coming up as a String

Re: Help with scope interceptor

2007-08-19 Thread j alex
- the value from session is obtained, not the one which was submitted in the previous request. -Josph On 8/18/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > I haven't used the Scope interceptor, so I may not be 100% correct, but > the following answers are based on my interpretat

Re: Losing Session attributes

2007-08-19 Thread j alex
Are u using Struts 1.x or 2 ? -- please paste the code from struts xml and how you are doing the redirect? ; will attempt to answer after that. -Joseph On 8/17/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > If you switch domains or ports, you will lose your session. Sessions are > usually tied to

Re: Conditional validation

2007-08-19 Thread j alex
Can you paste the entry from validator xml -- and the line which is flagged with the error? >From the error message, it just looks like an ordering problem -- ie we must have param tag before the message tag ; but i may be oversimplifying things.. On 8/18/07, stanlick <[EMAIL PROTECTED]> wrote

Re: [S2] Validation depending on which submit button was pressed

2007-08-17 Thread j alex
Assuming that Add, Back , Fwd are different methods in the same Action, you could use s:submit method="Add" to post to Add method, and define the validations for that method using annotation . I havent tried if the non-field level validators get executed at this point On 8/17/07, Sandro Giessl <

Re: Struts2 Annotation Based Validation

2007-08-16 Thread j alex
, but how will it differentiate b/n methodA and methodB? i tried myAction-methodA-validation.xml ; but it didn't seem to work. Thanks, Joseph On 8/15/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- j alex <[EMAIL PROTECTED]> wrote: > > ex : if an Action has multiple meth

Help with scope interceptor

2007-08-16 Thread j alex
Hi, I need help regarding correct usage of Scope interceptor (http://struts.apache.org/2.0.9/docs/scope-interceptor.html) Before going into details i had couple of qns : #1. Is this usable we have multiple actions sharing the same model object ? - i.e each page of the app posts to a different Ac

Re: Struts2 Annotation Based Validation

2007-08-16 Thread j alex
try changing @RequiredFieldValidator to @RequiredStringValidator the RequiredFieldValidator only looks for "not null" and even if the field is not entered, but is present on the form, it'll be populated with "" (empty) and not a java null. -Joseph On 8/16/07, David Copeland <[EMAIL PROTECTED]> w

Re: Struts2 Annotation Based Validation

2007-08-15 Thread j alex
I think annotations give you more flexibility than XML . ex : if an Action has multiple methods and only certain fields are tied to each method, we can bunch together validations for each method using annotations, but this is not possible using XML On 8/15/07, Laurie Harper <[EMAIL PROTECTED]> wr

S2 : Overriding interceptor class names in struts.xml

2007-08-15 Thread j alex
Hi, Is there a way we can override the implementation of certain interceptors from the default stack, without copying over all the definitions to struts.xml ? ex : i want to change the behavior of workflow interceptor in the way it handles errors and routes to input page. I defined :

Re: Conditional validation

2007-08-13 Thread j alex
I'm still wondering how to do a pure flag check alone using validators - i.ei need to check a guard expression before firing actual validations on the field ; and if the guard expression fails - the validations must simply be skipped (as if the field didn't exist) and move on to next page - without

Re: Conditional + visitor validation - for nested objects -- so far..

2007-08-13 Thread j alex
t the flexibility to validate addressline1 when called from another Action, and the error message should be different in this case. dunno if this is asking for too much, or there's something wrong the way i'm thinking abt it! -Joseph On 8/11/07, j alex <[EMAIL PROTECTED]> wrote: &g

Re: Conditional + visitor validation - for nested objects.

2007-08-11 Thread j alex
sn't make > sense > to me. Are you sure? > > Paul > > On 8/10/07, j alex <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > This is somewhat related to Matt's post on conditional validation at > > http://www.nabble.com/Re:-Conditio

Conditional + visitor validation - for nested objects.

2007-08-10 Thread j alex
Hi All, This is somewhat related to Matt's post on conditional validation at http://www.nabble.com/Re:-Conditional-validation-p11990883.html ; i dont have the original email on struts-user (joined the group only last week!) to reply to : I need some help regarding the extent to which we can apply

S2 : using resource bundle values containing HTML in ui tags

2007-08-09 Thread j alex
Hi, I need to store the label values in the resource bundle ; and to support screenreaders these values may have some tags ex : label.primaryapp.firstName=First name of applicant Now, in s:label tag ; i'm using using it as : Note that it's a custom theme with the escaping set to false. <#if

S2 : Validation per Action method - ideas?

2007-08-09 Thread j alex
Hi, Is there a way to declaratively restrict validations depending on the method within the Action? - this could be useful for wizard-like forms where each step of the wizard has a set of fields ; corresponds to a different method but all of them share the same Action. I can think of having an ex

Re: tiles defs file

2007-08-09 Thread j alex
Also, if you dont specify any path for the tiles def ; it default to WEB-INF/tiles.xml (Tiles 2.0.4 onwards i guess) On 8/9/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > 2007/8/9, George Dadulescu <[EMAIL PROTECTED]>: > > Hi. I've just started using struts 2 and I need a little help from you

S2 : Parameterized error messages

2007-08-08 Thread j alex
Hi, Is there a way to customize the error message with multiple keys provided from the resource bundle, using the XML/annotation approach ? In S1, we could do : In S2 ; we use to denote the error message ; but to what level can we cus

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread j alex
ror. I know this can be done easily in XML by having separate entries for primary and coapp and using params to manipulate the error message accordingly. Thanks, Joseph On 8/7/07, Ian Roughley <[EMAIL PROTECTED]> wrote: > > And you can place them on the domain objects and use a vis

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread j alex
gt;> 4. Both approaches share the disadvantage that it's easy to mistype > >> field names. Annoyingly the annotation doesn't help as you need to > >> hand-type each fieldName when its applied to an action method. The > >> benefit of annotations is lost. >

S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread j alex
Hi, I am about to migrate a S1 app to S2 and need to decide which route to take regarding validations - XML or annotations? . Our app has a lot of custom validators involving rules dependent on multiple fields. Is there a specific benefit to using annotations vs XML ? Thanks, Joseph