Doubt about form with select and texfields

2008-09-03 Thread Francisco Exposito
Hi, I am trying to create a form where I have a select, and depending of my selection, I make visible or not some others textfields in the same page. How can I do it? I have this (a test showing a radio or another), but it doesn't work...

Re: Doubt about form with select and texfields

2008-09-03 Thread Nuwan Chandrasoma
Hi, You may have to use JavaScript, this will only work at the time of page rendering only. Thanks, Nuwan Francisco Exposito wrote: Hi, I am trying to create a form where I have a select, and depending of my selection, I make visible or not some others textfields in the same page. How c

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Roger
> > I often use: > > > href="${pageContext.request.contextPath}/css/main.css"> > > > where ${initParam.css} refers to an init param in web.xml (useful if it > needs to change with the deployment, such as a version number) > Could you point me at some code examples on how to set this up. I've a

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Jeromy Evans
Roger wrote: I often use: where ${initParam.css} refers to an init param in web.xml (useful if it needs to change with the deployment, such as a version number) Could you point me at some code examples on how to set this up. I've a need to load a different style sheet depending upon

RE: Dynamic include of a CSS stylesheet

2008-09-03 Thread Martin Gainty
try this ? Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distri

RE: Dynamic include of a CSS stylesheet

2008-09-03 Thread Dave Newton
--- On Wed, 9/3/08, Martin Gainty wrote: > I'd be worried if that test failed. >href="${pageContext.request.contextPath}/css/main.css"> Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Al Sutton
Any reason not to use; or did I miss something? Al. Dave Newton wrote: --- On Wed, 9/3/08, Martin Gainty wrote: I'd be worried if that test failed. Dave - To unsubscribe, e-mail: [EMAIL PROT

Re: Struts 2 Buttons

2008-09-03 Thread Alberto Flors
Ok, so let's go back for a second and try to understand your question: You have a form mapped to an action (struts.xml or via annotations) and you would like to have a button (one or many) to execute behavior on a method within that action instance? Answer: Yes. Add the "method" attribute to t

Re: Struts 2 Buttons

2008-09-03 Thread Dave Newton
--- On Wed, 9/3/08, Alberto Flors wrote: > If you need a button "X" that is outside of form "Y", and button "X" > needs to submit form "Y", then such thing could be done with > javascript only (whereas through struts2 Dojo's plugin or other). The submit tag already support this; no need to write

B2B Applications Based on Struts

2008-09-03 Thread Mark Hansen
I am looking for examples of B2B applications built on top of Struts. Can anyone point me in the right direction? -- Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Loading message resources properties from a database

2008-09-03 Thread laredotornado
Hi, I'm using Struts 1. We want to load our message resources properties, currently defined in our struts-config.xml file: from a database. Now of course, they are in a file called "MessageResources.properties". What is the proper way to do this? Thanks, - Dave -- View this message in con

how to import something with html:xxx tage into a form?

2008-09-03 Thread Guojun Zhu
Hi, I am using struts 1.2.9 with tomcat 5.5. I had a few pages with big "html:form". There are some common part (with some tags) in the form. So I tried to put them aside as an import. I tried jstl and , all of them import everything literally into the form, instead of interprete the tags

how to import fragment page with html:??? tags into a form?

2008-09-03 Thread Guojun Zhu
Hi, I am using struts 1.2.9 with tomcat 5.5. I had a few pages with big "html:form". There are some common part (with some tags) in the form. So I tried to put them aside as an import. I tried jstl and , all of them import everything literally into the form, instead of interprete the tags

S2 tags - dynamic attributes

2008-09-03 Thread Jonny Cavell
What I need to do is very simple, but I'm beginning to wonder whether Struts2 actually lets me do it. Firstly, I want the id attribute of any HTML tag to take a dynamic value, so that I can code it at runtime. Secondly I want the tag to take e.g. dojoType as an attribute: Ne

Re: S2 tags - dynamic attributes

2008-09-03 Thread Dave Newton
--- On Wed, 9/3/08, Jonny Cavell wrote: > Firstly, I want the id attribute of any HTML tag to take a > dynamic value, so that I can code it at runtime. Secondly > I want the tag to take e.g. dojoType as an attribute: > > > list="#{'0':'', '1':'', '2':'', '3':'', '4':'', '5':''}"> >

Re: S2 tags - dynamic attributes

2008-09-03 Thread Gabriel Belingueres
1) It can't see why not. BTW, id="#{...}" doesn't work because the expresions start with %, like in id='%{itStatus}' 2) Extrange enough, I tested this with S2.1.2: It works with but it doesn't work for . 2008/9/3, Jonny Cavell <[EMAIL PROTECTED]>: > > What I need to do is very simple, but I'm be

RE: S2 tags - dynamic attributes

2008-09-03 Thread Martin Gainty
as dave mentioned status returns a IteratorStatus object http://struts.apache.org/2.x/docs/iteration-tags.html you would then need to determine which attribute of IteratorStatus to access Index: Count: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/vie

Re: on the chrome bandwagon

2008-09-03 Thread dynamicd
My App is working perfectly fine on chrome. Seems to be working the same as in firefox. Jukka Välimaa wrote: > > This is one bandwagon I've been riding since I read that comic. I've done > a > brief overview of our app with Chrome, and mostly dojo tags seem to be > working perfectly. Div, b

Re: on the chrome bandwagon

2008-09-03 Thread Musachy Barroso
I have been using it since yesterday, and all the websites I often use, seem to work. musachy On Wed, Sep 3, 2008 at 2:42 PM, dynamicd <[EMAIL PROTECTED]> wrote: > > > My App is working perfectly fine on chrome. Seems to be working the same as > in firefox. > > > > > > Jukka Välimaa wrote: > > >

Re: on the chrome bandwagon

2008-09-03 Thread Al Sutton
The only problem I have had is with the EULA that lets Google use your usernames and passwords to gain access to websites they otherwise couldn't index. Quote; "By submitting, posting or displaying the content you give Google a perpetual, irrevocable, worldwide, royalty-free, and non-exclusiv

RE: on the chrome bandwagon

2008-09-03 Thread Martin Gainty
I'd be interested to know how they handle Ajax controls run this little bit from dojo.js