Re: howto implement a @before annotation ?

2009-02-09 Thread xianwinwin
YES! thank you so much this really helps! Piero Sartini-3 wrote: > > On Monday 09 February 2009 16:43:09 xianwinwin wrote: >> Hi all, >> here's a scenario:I have some methods that before executed, they should >> run >> an interceptor --to verify if the

howto implement a @before annotation ?

2009-02-09 Thread xianwinwin
Hi all, here's a scenario:I have some methods that before executed, they should run an interceptor --to verify if the user is authorized to do something. I read that struts2 has a @before @after interceptors that could help here. here's my though @before public String activateProcess() {

S2: caching problem,-user clicks on a link and then back w/ broweser data is lost

2009-01-17 Thread xianwinwin
Hi All, Here's a scenario that drives me crazy: 1. A user fills-up a form (a date) and clicks submit 2. An Action return a List of items related to the user's input 3. The list is returned as an ID (AJAX) to the form 4. User sees the list and can click a URL from the list Problem: When the user

S2: caching problem, clicking the BACK browser and I'm losing the data !??!!?

2008-12-31 Thread xianwinwin
Hi there, Here's a scenario 1. A user fill up a form and clicks submit 2. An Action return a List of items related to the user's input 3. The list is returned as an ID (AJAX) to the form 4. User sees the list and can click a LINK from the list Problem: When the user clicks a LINK from the *list

s2: howto protect a method with annotation

2008-12-31 Thread xianwinwin
Hi all, I have a class with different methods. I have 2 type of users: Employee and Manager my XML looks like this: fileLayout . . . I realized that one of the meth

S2: using a button how can I get a value of a field in the interceptor?

2008-12-16 Thread xianwinwin
Hi all, I have a button that once clicked an Interceptor does something. So...I have a form that requires the user to input an ID, how can I check, in the interceptor, if this value is valid BEFORE it gets to the action class. in other words: say a field called resourceID (Long) and the user in

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
@SuppressWarnings("unchecked") public String addStep() { System.out.println("do abc"); return "ajax-add-step"; } @SkipValidation public String completeIncentive() {

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
I have it: /pages/incentive/steps/ajaxInput.jsp /pages/incentive/steps/ajaxAddStep.jsp /pages/incentive/steps/ajaxConfirmation.jsp

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
Struts Problem Report Struts has detected an unhandled exception: Messages: No result defined for action com.struts.incentive.target.StepsIncentiveAction and result success File: file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp4/wtpwebapps/MGroups/WEB-INF/classes/incentiv

Re: 2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
yes, I get: undefined * I use ajax for the return type * the action is not executed (meaning, when the user clicks a button the failure occurs before the action) Lukasz Lenart wrote: > > 2008/11/20 xianwinwin <[EMAIL PROTECTED]>: >> I have a simple form with 2 buttons

2 buttons for the same form, error when trying to invoke different action

2008-11-20 Thread xianwinwin
Hi all, I have a simple form with 2 buttons (diff action), how can I make sure both will exec? http://www.nabble.com/2-buttons-for-the-same-form%2C-error-when-trying-to-invoke-different-action-tp20608955p20608955.html Sent from the Struts - User mailing list archive at Nabble.com.

s2: datetimepicker return incorrect time result

2008-11-03 Thread xianwinwin
I have the following code: When populating the info of flight.departureTime the result is always 12:00 AM Does anyone know why? * the flight.departureDate is 14:00 PM (I verified it with debugging) * I tried displayFormat="h:mm a" (same result) Thank you! -- View this message in context

Re: howto cache the textfield

2008-10-07 Thread xianwinwin
Hi Pawel, thank you for your reply. You mentioned: "But You can achieve the same by adding ajax to this field" how can I achieve that? Thank you! Paweł Wielgus wrote: > > Hi xianwinwin, > it's a firefox feature - remember entered form values or something like > th

howto cache the textfield

2008-10-06 Thread xianwinwin
I have a textfield where a user input information. My question is this: how can I give the user previous input that he provided once he clicks the textfield; in other word, when he clicks (or double click) the textfield he can see (in a drop down box) what he entered before. for some reason,

datetimepicker with radio

2008-09-08 Thread xianwinwin
Hi all, Say I have 4 dates and I wish the end-user to choose one of them, how can I do that with radio Box? Say this is the datetimepicker: how can I integrate a radio box on the left side so the user can choose one. the user must have the ability to change the date (so I can't have i

[S2] using SSL; configuration error

2008-08-11 Thread xianwinwin
Hi all, I downloaded the SSL plugin from http://code.google.com/p/struts2-ssl-plugin/ I added the jar to my application path and as the tutorial describes: "The plug-in extends struts-default so you can extend the "ssl-default" package to get these additional features." /under usage I simply c

Re: [S2] what tag to use to get object's field?

2008-08-05 Thread xianwinwin
thanks!!! Gabriel Belingueres-2 wrote: > > > > 2008/8/4 xianwinwin <[EMAIL PROTECTED]>: >> >> hi there, >> say I have an object client and it has firstName and lastName. I wish to >> write this on the jsp page: >> >> Dear Mr. XX welcom

[S2] what tag to use to get object's field?

2008-08-04 Thread xianwinwin
hi there, say I have an object client and it has firstName and lastName. I wish to write this on the jsp page: Dear Mr. XX welcome to the XX should be substitute with firstName and lastName. what tag should be used in order to achieve this? thank you! -- View this message in co

[S2] how to have the form horizontally?

2008-07-24 Thread xianwinwin
I have a form in which I wish to have it align horizontally. If I use the tags like this: I get it in a vertical way. Does anyone know how to set it horizontally? * the idea is to create a table and let the end-user fill the information as if he sees an e

S@: action performed twice when using ajax

2008-07-10 Thread xianwinwin
Hi all, I have a table (displayTag) and a form. when the user check (checkbox) some of the items in the table and clicks submit the action is performed BUT after it is finished it performs again... my question is why and how can I avoid that? Thank You! -- View this message in context: http:/

s2: howto disable the user to input date in datetimepicker

2008-07-02 Thread xianwinwin
Hi all, I wish to prevent a user to input a date in my datetimepicker. For this, I'm using the command: disabled ="true" Unfortunately, the user is able to input the date. does anyone know what is the problem? -- View this message in context: http://www.nabble.com/s2%3A-howto-disable-the-use

Re: - how to provide an understandable error message to the enduser?

2008-06-27 Thread xianwinwin
GOT IT thanks Dave! newton.dave wrote: > > --- On Fri, 6/27/08, xianwinwin <[EMAIL PROTECTED]> wrote: >> removed - so the conversionError is not working. ok, how can >> I provide my own errors now? > > Doesn't your existing validation handle the re

Re: - how to provide an understandable error message to the enduser?

2008-06-27 Thread xianwinwin
removed - so the conversionError is not working. ok, how can I provide my own errors now? - is it possible using notation for that? thanks Dave newton.dave wrote: > > --- On Fri, 6/27/08, xianwinwin <[EMAIL PROTECTED]> wrote: >> I'm not sure I fully understand you

Re: - how to provide an understandable error message to the enduser?

2008-06-27 Thread xianwinwin
s are added separately from validation errors. > > Among the options is to remove the conversion error interceptor from your > interceptor stack and use only the validation errors. > > Dave > > --- On Thu, 6/26/08, xianwinwin <[EMAIL PROTECTED]> wrote: > >> From: xianwi

- how to provide an understandable error message to the enduser?

2008-06-26 Thread xianwinwin
Hi all, If the end-user input wrong date-type (eg., date format is incorrect, or for 'number of people' he types 'Q') the 'input' is fired and it shows the error message. I do that with the 'return input' and the jsp page (this is ajax-id) looks like this: <%@ taglib prefix="s" uri="/struts-ta

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread xianwinwin
out. Jim Kiley wrote: > > Fair enough. Is this something you could solve with a validate() method > on > your action, assuming that your action is ValidationAware? > > On Tue, Jun 24, 2008 at 9:45 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > >> >> But that

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread xianwinwin
gt; "empl.date," put the validation on the setter for the date field of Empl, > rather than on the action. > > On Tue, Jun 24, 2008 at 9:06 AM, xianwinwin <[EMAIL PROTECTED]> wrote: > >> >> hi Lukasz >> >> In your example, you wrote: >> &

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-24 Thread xianwinwin
hi Lukasz In your example, you wrote: Private Date today; @RequiredFieldValidator(message = "Date is required") public Date getToday() { return today; } this works great also in my application, but my question is different, I don't have a field called today, I have an obj

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-23 Thread xianwinwin
This also works on my end *BUT* the Date in part of an Object (not a field) so I have Employee empl; with Date dob, thank you Lukasz Lenart wrote: > >> I did, and it doesn't work, when I click submit, I immediately get a red >> message next to the required fields...but not next to the dat

Re: S2: validation notation on DATE (object that has a Date field)

2008-06-19 Thread xianwinwin
I did, and it doesn't work, when I click submit, I immediately get a red message next to the required fields...but not next to the date. Lukasz Lenart wrote: > > Hi, > > Did you try > @RequiredFieldValidator(type = ValidatorType.SIMPLE, fieldName = > "customfield", message = "You must enter

S2: validation notation on DATE (object that has a Date field)

2008-06-18 Thread xianwinwin
I was wondering how to force the user to input a Date field? consider the a class of Employee (dob, name). and I wish to insert new data. I managed to force the date by the code below, but couldn't do that for the date. example Class Test { private Employee empl; @Validations(

Re: struts2 and JSON integration problem (plugin)

2008-06-18 Thread xianwinwin
mmm, this is interesting, I get a dialog box and it says: The currently displayed page contains invalid values. -- View this message in context: http://www.nabble.com/struts2-and-JSON-integration-problem-%28plugin%29-tp17917051p1798.html Sent from the Struts - User mailing list archive at

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
1. How did you add the reference in eclipse? Make sure it is listed in the J2EE Module dependencies. After placing the JAR I right clicked on the project-->Properties-->Java Build Path-->Libraries-->Add External JAR--> jsonplugin-0.30.jar 2. Is your URL right? Is the request being made? Is the

RE: struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
you are right (I guess I was trying to be succinct), Ok...so here's the deal, I wish to use JSON, for this, I downloaded the JAR (jsonplugin-0.30) and had a reference to it (on my eclipse) So, this is the previous code I was using that worked well: XML:

struts2 and JSON integration problem (plugin)

2008-06-17 Thread xianwinwin
Hi all, I'm trying to integrate Struts2 with JSON; what is needed beside a reference to the JAR? I'm trying to use the plugin and for some reason when I extends 'json-default' in the xml file - the action doesn't work (it works when extending struts-default). I'm using eclipse, I added the json

S2: actioncompleter - how does the tag know what list to use?

2008-06-16 Thread xianwinwin
In my actioncompleter tag I'm trying to give the end user a list based on his/her input (the list is returned from a db in the invoked method) JSP: BUT where is the list?!?!?! The method potentialList is invoked (and I get the user's input, so far so good), but how does the statement above (

Re: [OT] Re: struts2: how to read the 'potenrial list' from a database

2008-06-13 Thread xianwinwin
t; action will be called with the current value in the >> text box. You use that >> > partial value to do a database search (or filter an >> existing list, or >> > however you'll implement that part). >> > >> > Dave >> > >

struts2: how to read the 'potenrial list' from a database

2008-06-12 Thread xianwinwin
I have a list of 20,000 cities; I would like the user to provide at least 2 chars and then present him a'potential list'. I managed to do this: JSP Java: public class autocompleter extends ActionSupport { private List state; public String execute() throws Exception{ state = new Arr

howto have a readonly on ?

2008-05-05 Thread xianwinwin
I wonder what is the "readonly" for I wish the user to specify the path only with the Browse button but will not be able to change the path on field. In other words, once the user has specified the path (by the browse) he will not be able to change it directly from the textfield as in make ch

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-30 Thread xianwinwin
car wrote: > > %{#attr.current.id} is OGNL, you should be able to use it. > > What do you mean by "the actual string"? > > xianwinwin wrote: >> >> but EL is not allowed in Struts tags. >> when I use # or $ I get the actual string (not the value). >&

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-30 Thread xianwinwin
7;s documentation for more info. > > > xianwinwin wrote: >> >> thank you Wild Oscar, >> this is a good starting point for me. >> what is the attr and current here? >> >> %{#attr.current.entityId}? >> >> I have this on the action

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-29 Thread xianwinwin
e.com/No-result-defined-for-action-and-result-input-with-checkbox-to16966533.html > > > Which basically happens when the action is executed without any checkbox > selected. > > > xianwinwin wrote: >> >> Hi all, >> >> I have a table with a list o

struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-28 Thread xianwinwin
Hi all, I have a table with a list of buyers. Each buyer has a checkBox that the user can click and decide if he wants to work with them. I'm using displayTag and this is my code: I wonder why I don't get the *value/content* of the userCheck. Instead, I get ${entityId} (this really very s

how to replace a button (ajax) with a simple link?

2008-04-18 Thread xianwinwin
I have the following button-action: this button, when clicked, does some action (removes a form from the screen) I would like to 'convert' the button (the image-button) into a simple link: close-form (so the user actually clicks the link and

ajax upload file - error message [Object] when returning a div.

2008-04-07 Thread xianwinwin
Hi there, can anyone adivse how to return a 'Success message' to a div after a file was uploaded? For some reason, I get this annoying message [Object] after a file was successfully uploade. This is caused because I return a message to a div (without it, it works ok - but the page is refreshed)

Re: rrrrr...why my field returns null????

2008-04-04 Thread xianwinwin
I checked it on both IE7 and FireFox - no error on the js and the value is NULL any idea?!?! Laurie Harper wrote: > > If it works without theme set to ajax, it's probably a client-side > issue. What browser are you using? Are there any Javascript errors > reported? >

Re: rrrrr...why my field returns null????

2008-04-02 Thread xianwinwin
e included, it should be set from the textfield so you > must have something configured wrong. What does your action mapping look > like? Are you using the default interceptor stack or have you specified > a different one? > > L. > > xianwinwin wrote: >> C

rrrrr...why my field returns null????

2008-04-02 Thread xianwinwin
Can anyone advise why my bean is null. I have the following jsp page: when the user cllicks submit - the action 'insert' kicksin but the bean (Note) is null (yes, i have getter and setter) //action @Validation public class NoteActi

ajax - how to remove my form after the user clicked submit.

2008-04-01 Thread xianwinwin
Hi there, I created an ajax capability to my form where the user clicks the 'add note' button -a textarea is shown with a submit button (the textarea is shown just below the [add note] button) the form works great. I wonder: 1. When the user clicks submit and the process is over - how can I 'p

ajax layout - how to place 2 submit buttons one after the other?

2008-03-31 Thread xianwinwin
Hi guys, I've been strugling with this one for a while: How is it possible to place 2 (or more) buttons one after the other? Currently, my buttons looks like this: [update] [test] and I wish to have:[update] [test] my jsp code: -- View this message in context:

Re: @ExpressionValidator - how to set the expression correctly ? (amount either greater than 0 or null? )

2008-03-27 Thread xianwinwin
ess > Sr. Web Applications Developer > Nuvox Communications > > > >> From: xianwinwin <[EMAIL PROTECTED]> >> Reply-To: Struts Users Mailing List >> Date: Wed, 26 Mar 2008 16:34:48 -0700 (PDT) >> To: >> Subject: @ExpressionValidator - how to set th

Re: @ExpressionValidator - how to set the expression correctly ? (amount either greater than 0 or null? )

2008-03-27 Thread xianwinwin
ou try > @ExpressionValidator(expression = "(amount > 0) || (amount == null)", > message = "err message") > > Regards, > Randy Burgess > Sr. Web Applications Developer > Nuvox Communications > > > >> From: xianwinwin <[EMAIL PROTECTED]> >

@ExpressionValidator - how to set the expression correctly ? (amount either greater than 0 or null? )

2008-03-26 Thread xianwinwin
Hi, I have the following Expression Validator: @ExpressionValidator(expression = "amount > 0", message = "err message") what should come in the expression if amount can be either greater than 0 or null? thank you! -- View this message in context: http://www.nabble.com/%40ExpressionValidator

Re: how to do: a double validation?

2008-03-26 Thread xianwinwin
Thank you Dave!!! yes, this works for checking the range but I wish to check the validity of the field. meaning, I'd like to provide my error message in case the user gave wrong input. how do I do that? Thank you again newton.dave wrote: > > --- xianwinwin <[EMAIL PRO

how to do: a double validation?

2008-03-26 Thread xianwinwin
hi there, say a user inputs a value for a double field (say amount of money); the value should be a double (eg, 53.23) Question: if the user enters something like ABCD how can I provide the error message? I would like to do that with annotation? (sayyou enter an invalid value...) what ty

how to show error fields ONLY in validation?

2008-03-26 Thread xianwinwin
Hi guys, when a user clicks Submit in my form, a message is returned to an ID with the following errors: you have an error in your date entry! Invalid field value for field "age". 336r IL 3/15/07 the JSP page looks like this: <%@ taglib prefix="s" uri="/struts-tags" %> <% request.setA

ajax validation - how to tell the user where is the problem?

2008-03-24 Thread xianwinwin
Hi, I'm using the ajax theme and I wonder if anyone can assist in the validation issue. When the user clicks 'Update' and everything goes well, a message- "Update successfully" is shown next to the update button. when the user enter an invalid data - the validation interceptor kicks in and a mes

Re: Why datetimepicker doesn't show the value of my bean?

2008-03-24 Thread xianwinwin
duahhh me!!!... thanks Dave, I got it, the value="" caused it :-) working fine! newton.dave wrote: > > --- xianwinwin <[EMAIL PROTECTED]> wrote: >> >value="" >>

Why datetimepicker doesn't show the value of my bean?

2008-03-24 Thread xianwinwin
Hi all, I'm having a problem with datetimepicker. The form works great; the user is able to enter the date and I can persist the data. Problem is when I wish to post the information on the screen - the bean is populated but the value is not shown on the form :-( code: thanks for any

Re: validation with annotation

2008-03-11 Thread xianwinwin
Thanks Ealden, this was very helpful! I tried that and it works fine. Question, say I wish to check for a date, so far I've been doing it this way: example private Date delta; @TypeConversion(converter="com.utilities.conversion.DateTypeConversion") public void setDelta(Date d

cannot find the tag library descriptor for dojo.

2008-03-11 Thread xianwinwin
Hi there, I'm trying to incorporate some the dojo in my application. for this I do: I have a file that look like this: <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib uri="/struts-tags" prefix="s" %> <%@ taglib uri="/struts-dojo-tags" prefix="sx" %> <%@ taglib uri="/WEB-INF/displ

validation with annotation

2008-03-10 Thread xianwinwin
Hi there, I would like to create a validation with annotation. consider the following case: @Validation public class AddCaseAction { private Registration registration; . . . public String addNewRegistration() { //do something return "succ

how to aliened checkbox list in a matrix style (10x5) [pic included]

2008-03-05 Thread xianwinwin
Hi there, I wonder if anyone knows how to align the check-box list in groups of 10 (or 20). as you can see from the picture below, the list (US states) are aliened vertically (not a user friendly) is there anyway to have them in a matrix-style (meaning all states will be in a matrix of 10x5 (plus

howto 'transfer' a URL parameter to an interceptor (eg resourceID=44) pic included

2008-03-04 Thread xianwinwin
Hi all, I'm trying to create an AuthorizationInterceptor. consider the following scenario: The user clicks on any link and the the link has resourceID eg: doSomthig_update.do?resourceID=44 I would like to transfer the resouceID to my interceptor in order to verify if the user is entitle to

Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-21 Thread xianwinwin
Dear Ravi YOU ARE THE MAN!!! Thank you so much! * I placed it under WebContent and it worked! -- View this message in context: http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p156

Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-21 Thread xianwinwin
:-( debuging with fireBug I get the following message: dojo is not defined -- View this message in context: http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p15612900.html Sent from the Strut

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
resources it requires are loaded (using the net tab). > Ensure that struts filter is receiving requests for the /struts/* > resources. > > xianwinwin wrote: >> :-( >> I think I have an issue with the ajax configuration (I'm not sure). >> How can I verify

Re: strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-20 Thread xianwinwin
and it isnt) > > musachy > > On Wed, Feb 20, 2008 at 5:21 PM, xianwinwin <[EMAIL PROTECTED]> wrote: >> >> WHAT am I possibly doing wrong here? >> >> I want to get this result: (attention on the tabs example) >> http://www.nabble.com/file/p

strut2 & Ajax/dojo: rrrrrr what's wrong with my settings? cant get the theme=ajax to wrork (pictures included)

2008-02-20 Thread xianwinwin
WHAT am I possibly doing wrong here? I want to get this result: (attention on the tabs example) http://www.nabble.com/file/p15600219/good.jpeg but I get this result: http://www.nabble.com/file/p15600219/wrong.bmp the code is: <%@ include file="/pages/layouts/taglibs.jsp" %> Welcome ; last

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
your action you will have to do: > addActionMessage(\"Put w/e data you want in here\"); > > Hopefully it works out for your.. > > > > On 2/19/08, xianwinwin <[EMAIL PROTECTED]> wrote: > >> Hi all, >> I\'m trying to return a result to DIV

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-20 Thread xianwinwin
; on top, plus >> >> > /> >> >> but I get the same result - it goes to an empty page with the result and >> not >> to the DIV? >> :-( >> >> any idea? >> >> >> >> >> >> xianwinwin wrote: &g

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-19 Thread xianwinwin
thanks you for the reply. I added the code: on top, plus but I get the same result - it goes to an empty page with the result and not to the DIV? :-( any idea? xianwinwin wrote: > > Hi all, > I'm trying to return a result to DIV in a form (in the example id='tw

struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-19 Thread xianwinwin
Hi all, I'm trying to return a result to DIV in a form (in the example id='two') this is my form: initial content when the user clicks the GO2 --> the action, AjaxRemoteForm, is 'activated' (showing the 'data' the user has input) public String AjaxRemoteForm() {

Re: radio tag - how to have the items order vertically?

2008-02-18 Thread xianwinwin
THANK YOU Jeromy this solved the question I presented. Jeromy Evans - Blue Sky Minds wrote: > > xianwinwin wrote: >> Thank you Jeramy! >> I tried to use the cssStyle for a while and came up with this: >> >> > name="groupSelect" >> lis

Re: radio tag - how to have the items order vertically?

2008-02-15 Thread xianwinwin
Thank you Jeramy! I tried to use the cssStyle for a while and came up with this: the result came up with a 'twist' the name-of-group comes after the radio button image --> http://aycu20.webshots.com/image/43859/2003464400042803302_fs.jpg any idea how to fix it, so it will be on the same line

Re: radio tag - how to have the items order vertically?

2008-02-14 Thread xianwinwin
is there any concrete example of how to modify an existing template, thanks! -- View this message in context: http://www.nabble.com/radio-tag---how-to-have-the-items-order-vertically--tp15468384p15492763.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: radio tag - how to have the items order vertically?

2008-02-14 Thread xianwinwin
you suggested: Use theme="simple" on the radio then add breaks between each radio button; or Q: what do you mean by "add breaks between each radio button" Thank you! -- View this message in context: http://www.nabble.com/radio-tag---how-to-have-the-items-order-vertically--tp15468384p15492163

radio tag - how to have the items order vertically?

2008-02-13 Thread xianwinwin
Hi there, I have a list of items ordered on my jsp page with a radio buttons: my question is how to have the list vertically? (I get it horizontally) I tried to dig the info from http://struts.apache.org/2.x/docs/radio.html but couldn't get it right thanks for any pointers! -- View this

Re: struts2 forms and css

2008-01-29 Thread xianwinwin
thanks, this solved it -- View this message in context: http://www.nabble.com/struts2-forms-and-css-tp15164776p15170582.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PRO

struts2 forms and css

2008-01-29 Thread xianwinwin
hi there, I wonder how to change the font style of my form. Currently it is in a simple 'Times New Roman' and I would like to have it differently (say verdana). the jsp page looks like this (below) and I wonder where the code should be embedded? <%@ include file="/pages/layouts/taglibs.jsp" %

Re: is it possible to pass a parameter to an interceptor from the xml file?

2008-01-25 Thread xianwinwin
THANK YOU nuwan !!! this is exactly what i was looking for -- View this message in context: http://www.nabble.com/is-it-possible-to-pass-a-parameter--to-an-interceptor-from-the-xml-file--tp15074977p15090339.html Sent from the Struts - User mailing list archive at Nabble.com. ---

is possible to pass a parameter to an interceptor from the xml file?

2008-01-24 Thread xianwinwin
Hi all, I wonder if it is possible to pass a parameter with a value to an interceptor. Example: I have the following interceptor: (parameterGivenInXmlFile==4) the implementation is: public String intercept (ActionInvocation invocation) throws Exception {

combobox - howto eliminate the optional text-field?

2008-01-23 Thread xianwinwin
hi all, I have the following code: this provides the end user a comboBox with a textfield (user can input his own input not from the list) Q: How can I have a simple combobox WITHOUT the textfield and by that force the end-user to choose only from the list. thanks! -- View this messag

struts2: how to return an validate-error if user entered incorrect email format?

2008-01-14 Thread xianwinwin
I would like to validate if the user has entered a valid email. for this I have the method @TypeConversion(converter = "com.utilities.conversion.EmailTypeConversion") public void setEmail(String email) { this.email = email; } the conversion (where I'm a

Re: (Struts2) howto access the user.fname on the jsp page (user's object in http session)

2008-01-14 Thread xianwinwin
THANK YOU ROBI Roberto Nunnari wrote: > > Try this: > > > > -- > Robi > > > xianwinwin wrote: >> Hi there, >> >> using struts2: I have just place the user's information on a session: >> >> session.setAttribute(Propert

(Struts2) howto access the user.fname on the jsp page (user's object in http session)

2008-01-14 Thread xianwinwin
Hi there, using struts2: I have just place the user's information on a session: session.setAttribute(Properties.USER_HANDLE, secUser); I wonder how to access on a jsp page the info; I tried, unsuccessfully, the following combinations: any idea? -- View this message in context: http://w

Re: struts2: interceptor - validation doesn't work :-(

2008-01-04 Thread xianwinwin
AND THE WINNER IS: xniit2003 YES!! thank you so much! good call and a brilliant observation thank you all! you wrote: I guess your problem is in the xml file. You are using "error" result type. But by default if validation error occurs, "input" string is being returned. So please use "inp

Re: struts2: interceptor - validation doesn't work :-(

2008-01-03 Thread xianwinwin
thanks wes, I tried this manipulation - didnt work :-( Wes Wannemacher wrote: > > Try annotating the getter rather than the setter. > > -Wes > > On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote: >> >> yes i did :super: >> >> >> >>

Re: struts2: interceptor - validation doesn't work :-(

2008-01-03 Thread xianwinwin
yes i did :super: newton.dave wrote: > > Did you annotate the class with the @Validation() annotation? > > d. > > --- xianwinwin <[EMAIL PROTECTED]> wrote: > >> >> I've been struggling with this issue for a while and any pointer would be >

struts2: interceptor - validation doesn't work :-(

2008-01-03 Thread xianwinwin
I've been struggling with this issue for a while and any pointer would be appreciated. I have a simple file with one field -name; I would like to validate that the user put information in it. I'm using the annotation in order to achieve this but for some reason the validation doesn't work (there

Re: how to avoid form's validation if the user choose cancel?

2008-01-03 Thread xianwinwin
e the button to use such method (method > attribute in tag). > > Good luck! > > xianwinwin wrote: >> I have a login form. it has 3 buttons: >> >> 1. login >> 2. register >> 3. cancel >> >> when the user clicks the login - the a

how to avoid form's validation if the user choose cancel?

2008-01-02 Thread xianwinwin
I have a login form. it has 3 buttons: 1. login 2. register 3. cancel when the user clicks the login - the application validates that the user input data on the 'username' and 'password' fields. Question: how can I avoid this validation if the user clicks either 'register' or 'cancel' thanks

form bean with composition, is it possible?

2006-10-24 Thread xianwinwin
Hi guys, I wonder if it's possible to create a form bean with a composition. I mean, assuming I have the following classes: AccountInformation ( fname, lname...) CreditCard (number, type...) I would like to know if I can create a form (registration) that is composed from AccountInformation and