sugestion, reusing actions in different contexts

2008-03-24 Thread Mihai Scripca
I have an idea about the development of struts. If there is another way please let me know! i want to reuse an action in different context like this: i mention that im using this mapping in web.xml : *.do Ive tried 2 approaches approach 1 defining 2 actions in struts like this: a

Re: struts 2 jsf plugin problem

2008-03-24 Thread Randy Burgess
I would take everything out of your JSF page and then start adding things in one by one until you find what is causing the missing the property editor error. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Daniel [EMAIL PROTECTED] Reply-To: Struts Users

RE: Using Javascript to change struts-generated forms

2008-03-24 Thread Allen, Daniel
- I'm not sure that order is guaranteed when you have two params with the same name at time they are submitted. I thought multiple parameters with the same name is how Struts did actions with array-typed properties. That's what's done on the File Uploads How-To.[1] Is that example potentially

RE: Using Javascript to change struts-generated forms

2008-03-24 Thread Dave Newton
--- Allen, Daniel [EMAIL PROTECTED] wrote: I thought multiple parameters with the same name is how Struts did actions with array-typed properties. That's what's done on the File Uploads How-To.[1] Is that example potentially broken, then? No; the order of parameters doesn't matter there,

Re: [struts] sugestion, reusing actions in different contexts

2008-03-24 Thread Dale Newfield
Mihai Scripca wrote: approach 1 defining 2 actions in struts like this: a /view/CerereActEdit.do - X.class b /edit/CerereActEdit.do - X.class (same class) c /CerereActEdit.do - X.class (same class) but it seems that struts, whatever action i ran it always uses c mapping! This is because of

Re: [struts] sugestion, reusing actions in different contexts

2008-03-24 Thread Mihai Scripca
Dale Newfield wrote: Mihai Scripca wrote: approach 1 defining 2 actions in struts like this: a /view/CerereActEdit.do - X.class b /edit/CerereActEdit.do - X.class (same class) c /CerereActEdit.do - X.class (same class) but it seems that struts, whatever action i ran it always uses c

Re: key property of s:checkbox tag

2008-03-24 Thread Randy Burgess
Have you tried this syntax? s:checkbox name=skillCode key=%{propertyGoesHere}/ Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Emil.I [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Mon, 24 Mar 2008 10:23:07 -0700 (PDT)

Re: [struts] sugestion, reusing actions in different contexts

2008-03-24 Thread Dave Newton
I'm pretty much lost at this point. What version of struts are you using? --- Mihai Scripca [EMAIL PROTECTED] wrote: the server gets the request: /app/view/formAction.do, executes it then goes to struts-config.xml to find the forward and finds: form path='/formAction.do forward

Re: key property of s:checkbox tag

2008-03-24 Thread Emil.I
If i put: s:checkbox name=skillCode key=%{skillCode}/ skillCode being the property of object in a set whihc i iterate over, doesn't work. Randy Burgess-3 wrote: Have you tried this syntax? s:checkbox name=skillCode key=%{propertyGoesHere}/ Regards, Randy Burgess Sr. Web

Re: key property of s:checkbox tag

2008-03-24 Thread Dave Newton
--- Emil.I [EMAIL PROTECTED] wrote: s:checkbox name=skillCode key=%{skillCode}/ skillCode being the property of object in a set whihc i iterate over, doesn't work. Try #skill.skillCode, if you're using skill as the ID of the iterated object. s:iterator value=job.skills id=skill

Re: [struts] sugestion, reusing actions in different contexts

2008-03-24 Thread Mihai Scripca
Dave Newton wrote: I'm pretty much lost at this point. What version of struts are you using? Im using struts 1.2.7 This is not the behaviour of struts but my desired behaviour! The server should get the request: /app/context/formAction.do, execute the action formAction ,then should

Re: [struts] sugestion, reusing actions in different contexts

2008-03-24 Thread Dale Newfield
Mihai Scripca wrote: Dale Newfield wrote: D'oh--sorry--I was assuming struts2. My answers are therefore not applicable. -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Multiple Selects and optionsCollection

2008-03-24 Thread Tom Holmes Jr.
I am using struts 1.x and looking at html:select and html:optionsCollection for an example on how to use that. It works great if I have one combo-box with my form. I have an array of labels: label_x label_y label_z etc. each one is a combo-box and they ALL have the same options to pick from,

Re: key property of s:checkbox tag

2008-03-24 Thread Kibo
Hi I dont know whether I good understant, but the interface Set have not KEY. Supply the Set to List or Map. Then you can use: s:iterator value=%{myList} s:checkbox label=value name=key value=true /

Re: key property of s:checkbox tag

2008-03-24 Thread Emil.I
Ohh man guess what i used %{property} for label element and everything is fine. newton.dave wrote: --- Emil.I [EMAIL PROTECTED] wrote: s:checkbox name=skillCode key=%{skillCode}/ skillCode being the property of object in a set whihc i iterate over, doesn't work. Try

Re: key property of s:checkbox tag

2008-03-24 Thread Martin Gainty
you can also use s:checkboxlist http://struts.apache.org/2.0.6/docs/checkboxlist.html so in your case take myList and use it to set the list attribute as in this example s:checkboxlist name=foo list=myList/ M- - Original Message - From: Kibo [EMAIL PROTECTED] To: user@struts.apache.org

s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread stanlick
Is this form of map creation no longer supported? http://struts.apache.org/2.x/docs/select.html I'm getting the dreaded Syntax error in EL on the list attribute using 2.0.11 -- View this message in context:

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread Dave Newton
--- stanlick [EMAIL PROTECTED] wrote: Is this form of map creation no longer supported? http://struts.apache.org/2.x/docs/select.html I'm getting the dreaded Syntax error in EL on the list attribute using 2.0.11 From where are you getting that error? If it's from the container then you're

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread stanlick
Exceptions kill! I added the following and it works now. However, I'm still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP editor when it encounters the # character. jsp-config jsp-property-group url-pattern*.jsp/url-pattern el-ignoredtrue/el-ignored

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread Dave Newton
--- stanlick [EMAIL PROTECTED] wrote: Exceptions kill! I added the following and it works now. However, I'm still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP editor when it encounters the # character. MyEclipse doesn't know OGNL. Dave

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread stanlick
Arh Now i's ignoring my valid ${foo.bar.baz} JSTL expressions too! stanlick wrote: Exceptions kill! I added the following and it works now. However, I'm still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP editor when

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread Musachy Barroso
#{} is reserved by JUEL. use the alternative map building notation. musachy On Mon, Mar 24, 2008 at 4:53 PM, stanlick [EMAIL PROTECTED] wrote: Is this form of map creation no longer supported? http://struts.apache.org/2.x/docs/select.html I'm getting the dreaded Syntax error in EL on

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread stanlick
I personally introduced my MyEclipse to OGNL:-p newton.dave wrote: --- stanlick [EMAIL PROTECTED] wrote: Exceptions kill! I added the following and it works now. However, I'm still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP editor when it encounters the #

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread Musachy Barroso
[EMAIL PROTECTED]@{ foo : foo value, bar : bar value } http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/collectionConstruction.html#mapConstruction musachy On Mon, Mar 24, 2008 at 5:11 PM, stanlick [EMAIL PROTECTED] wrote: Arh Now

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread Chris Pratt
I thought I had read that s:select list=\#{'01':'Jan','02':'Feb',[...]}: worked around the problem. (*Chris*) On Mon, Mar 24, 2008 at 2:14 PM, Musachy Barroso [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]@{ foo : foo value, bar : bar 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: s:datetimepicker

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

2008-03-24 Thread Dave Newton
--- xianwinwin [EMAIL PROTECTED] wrote: s:datetimepicker name=Register.dob value= type=date staticDisplay=true

[TEST IGNORE] Test

2008-03-24 Thread Dave Newton
Sorry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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: s:datetimepicker name=Register.dob value= type=date

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

Actions not called from their expected forms

2008-03-24 Thread wwwclaes
Hi, we have an S2 application with a lot of actions that are supposed to be called from html forms. Since a few weeks ago something or someone has started calling these actions directly, hence the required input values are missing (which generate a lot of error mails to us administrators). What

Re: s:select list=#{'01':'Jan', '02':'Feb', [...]}

2008-03-24 Thread stanlick
Thanks brother -- Will 2.1 offer a pluggable EL? This should help to ease many of the UI struggles. Scott On Mon, Mar 24, 2008 at 4:11 PM, Musachy Barroso [EMAIL PROTECTED] wrote: #{} is reserved by JUEL. use the alternative map building notation. musachy On Mon, Mar 24, 2008 at 4:53 PM,

Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

2008-03-24 Thread Yao Chen
Hi, When I deploy struts2-showcase.war to WAS 6.1 and open in browser, it complained some .js files not found, such as dojo.js, ntify.js. And I click Validation - Client using css_xhtml there's more .js file not found(Validation), the same error happend when I deploy my application into WAS.

Re: Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

2008-03-24 Thread mgainty
all of the .js files are in the main struts jar did you check \WEB-INF\lib\struts2-core-2.0.11.jar? Martin - Original Message - Wrom: HSCRTNHGSWZIDREXCAXZOWCONEUQZAAFX To: user@struts.apache.org Sent: Monday, March 24, 2008 8:58 PM Subject: Error occurs in WebSphere - validatation.js not

Re: Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

2008-03-24 Thread Yao Chen
Yes, I'm already check my application and struts2-showcase... I don't know why WAS can't found validataion.js in struts2-core.jar, because I see validation.js in Firebug... and If I change container from WAS to others like jetty or tomcat, it works fine... BTW... My WAS version is 6.1.0.0, do I

About Message Icons

2008-03-24 Thread Chen Chunwei
Hi all, Is there any tag can be used to display message icons? I mean icons like alert, error, info and etc. Talos

Re: About Message Icons

2008-03-24 Thread Chris Pratt
On Mon, Mar 24, 2008 at 10:03 PM, Chen Chunwei [EMAIL PROTECTED] wrote: Hi all, Is there any tag can be used to display message icons? I mean icons like alert, error, info and etc. Talos img src=images/alert.gif / (*Chris*)

Re: About Message Icons

2008-03-24 Thread Chen Chunwei
Er... I mean custom tags for free. - Original Message - From: Chris Pratt [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, March 25, 2008 1:26 PM Subject: Re: About Message Icons On Mon, Mar 24, 2008 at 10:03 PM, Chen Chunwei [EMAIL PROTECTED]

Re: About Message Icons

2008-03-24 Thread Chris Pratt
On Mon, Mar 24, 2008 at 10:45 PM, Chen Chunwei [EMAIL PROTECTED] wrote: Er... I mean custom tags for free. What should this custom tag do that the free img tag doesn't do? (*Chris*) - To unsubscribe, e-mail: [EMAIL

Re: About Message Icons

2008-03-24 Thread Chen Chunwei
Maybe some pre-defined style of message display or something else. I know I can do these all myself. But if there's already something can do this, why not just use it? - Original Message - From: Chris Pratt [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: