Re: on the chrome bandwagon

2008-09-03 Thread Jukka Välimaa
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, button and tree, listen- and notifytopics work just the same as in Firefox. There's one view with tabbedpanel where content

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... tds:select name=contrato.tipoContrato label=Tipo

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

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Roger
I often use: link type=text/css rel=stylesheet href=/css/main.css link type=text/css rel=stylesheet href=${pageContext.request.contextPath}/css/main.css link type=text/css rel=stylesheet href=${initParam.css}/main.css where ${initParam.css} refers to an init param in web.xml (useful if it

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Jeromy Evans
Roger wrote: I often use: link type=text/css rel=stylesheet href=/css/main.css link type=text/css rel=stylesheet href=${pageContext.request.contextPath}/css/main.css link type=text/css rel=stylesheet href=${initParam.css}/main.css where ${initParam.css} refers to an init param in web.xml

RE: Dynamic include of a CSS stylesheet

2008-09-03 Thread Martin Gainty
try this s:if test=${pageContext.request.contextPath} link type=text/css rel=stylesheet href=${pageContext.request.contextPath}/css/main.css s:elseif test=${initParam.css} link type=text/css rel=stylesheet href=${initParam.css}/css/main.css /s:elseif ? Martin Gainty

RE: Dynamic include of a CSS stylesheet

2008-09-03 Thread Dave Newton
--- On Wed, 9/3/08, Martin Gainty wrote: s:if test=${pageContext.request.contextPath} I'd be worried if that test failed. link type=text/css rel=stylesheet href=${pageContext.request.contextPath}/css/main.css /s:if Dave

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

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 JavaScript

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: message-resources parameter=MessageResources / from a database. Now of course, they are in a file called MessageResources.properties. What is the proper way to do this?

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 html:text tags) in the form. So I tried to put them aside as an import. I tried jsp:include jstl c:import and tiles:insert, all of them import everything literally into

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 html:text tags) in the form. So I tried to put them aside as an import. I tried jsp:include jstl c:import and tiles:insert, all of them import everything literally into

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: s:iterator value=#xxx

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: s:iterator value=#xxx status=itStatus var = yyy s:radio dojoType=zzz

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 s:select but it doesn't work for s:radio. 2008/9/3, Jonny Cavell [EMAIL PROTECTED]: What I need to do is very simple,

RE: S2 tags - dynamic attributes

2008-09-03 Thread Martin Gainty
as dave mentioned status returns a IteratorStatus objectBR http://struts.apache.org/2.x/docs/iteration-tags.htmlBR you would then need to determine which attribute of IteratorStatus to accessBR s:iterator status=status value='%{0, 1}'BR Index: s:property value=%{#status.index} / br /BR

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,

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: This is one

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

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 head script language=JavaScript !-- Begin dojo.hostenv.startPackage(dojo.hostenv); dojo.render.name=dojo.hostenv.name_=browser; dojo.hostenv.searchIds=[];

Stream Result

2008-09-03 Thread Geffrey Caruso
Hey Everyone, Quick question concerning the Stream Reuslt I've got a result that looks something like this result name=whitePaperDownload type=stream param name=contentTypeapplication/pdf/param param name=inputNamepdfStream/param param

Re: Stream Result

2008-09-03 Thread Gabriel Belingueres
As per BNF syntax [1], the content disposition must start with either the inline or attachment string. The filename need not be quoted: example: attachment; filename=whitepaper.pdf [1] http://www.ietf.org/rfc/rfc2183.txt 2008/9/3 Geffrey Caruso [EMAIL PROTECTED]: Hey Everyone, Quick

Re: on the chrome bandwagon

2008-09-03 Thread dynamicd
Well i Just caught something. For some reason my listentopics or action from the form is not working It shows loading.. in the Chrome browser. but never loads. nothing in the logs Works on both firefox and IE s:div s:form id=selectreport theme=ajax action=ShowConfigureDZ s:select

RE: S2 tags - dynamic attributes

2008-09-03 Thread Wes Wannemacher
Also, as far as dynamic attributes is concerned, some tags accept them, some don't. This was added at some point. I looked at s:radio and I don't think it does. If you find an instance where you think support for dynamic attributes should be added, file a JIRA. It's not particularly difficult to

RE: S2 tags - dynamic attributes

2008-09-03 Thread Dave Newton
--- On Wed, 9/3/08, Wes Wannemacher wrote: Also, as far as dynamic attributes is concerned, some tags accept them, some don't. Oh, my bad--is that a TLD thing or an S2 thing? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: S2 tags - dynamic attributes

2008-09-03 Thread Dave Newton
--- On Wed, 9/3/08, Wes Wannemacher wrote: If the TLD file declares dynamic-attributestrue/dynamic-attributes for a tag, the tag's class must implement the DynamicAttributes interface as well. Ah... hrm. Tell 'em, then tell 'em again. I love Java. Thanks, Dave

struts2 s:select/ How to get a option item which can invoke a action or redirect another URL

2008-09-03 Thread Mead Lai
Hi, struts2 s:select/How to get a option item which can invoke a javascript-function? the final HTML code show to browser is like following: select name=redirect-select option value=http://www.cnn.com;cnn/option option value=http://www.bbc.com;bbc/option option

Re: S2 tags - dynamic attributes

2008-09-03 Thread Gabriel Belingueres
...and adding this line to the radiomap.ftl file: #include /${parameters.templateDir}/simple/dynamic-attributes.ftl / should suffice I think. However, I would like to know what kind of visual effect or functionality the dojo library adds to the radio button (I can't find the dojo 0.4.3

Re: struts2 s:select/ How to get a option item which can invoke a action or redirect another URL

2008-09-03 Thread Gabriel Belingueres
Don't know if I understand correctly your question, but from what I understand you want a javascript function that redirect to some web site when the option is selected? There are plenty of examples in the web for doing that [1]. [1]

Re: struts2 s:select/ How to get a option item which can invoke a action or redirect another URL

2008-09-03 Thread Mead Lai
Maybe the question is not clarity clear! if write Html code in the jsp page, it can get the purpose simplely. but I wanne use struts2 tags: s:select name=list listKey=k listValue=v / to invoke a javascript function. On Thu, Sep 4, 2008 at 10:00 AM, Gabriel Belingueres [EMAIL PROTECTED]wrote:

Re: S2 tags - dynamic attributes

2008-09-03 Thread Wes Wannemacher
On Wed, 2008-09-03 at 22:52 -0300, Gabriel Belingueres wrote: ...and adding this line to the radiomap.ftl file: #include /${parameters.templateDir}/simple/dynamic-attributes.ftl / should suffice I think. However, I would like to know what kind of visual effect or functionality the dojo

Re: on the chrome bandwagon

2008-09-03 Thread Jeromy Evans
dynamicd wrote: Well i Just caught something. For some reason my listentopics or action from the form is not working It shows loading.. in the Chrome browser. but never loads. nothing in the logs Works on both firefox and IE s:div s:form id=selectreport theme=ajax action=ShowConfigureDZ

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Jeromy Evans
Al Sutton wrote: Any reason not to use; link type=text/css rel=stylesheet href=s:url value='/css/main.css'/ or did I miss something? Al. That had never occurred to me! - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Chris Pratt
I'm pretty sure that wouldn't work without modifying the Struts TLD file since you can't use JSTL EL in s: tags. (*Chris*) On Wed, Sep 3, 2008 at 5:51 AM, Martin Gainty [EMAIL PROTECTED] wrote: try this s:if test=${pageContext.request.contextPath} link type=text/css rel=stylesheet

OT: Thread pool samples

2008-09-03 Thread Zoran Avtarovski
I¹m trying to implement a simple thread pool model (Java 1.4) for a telemetry application. I¹m getting up to speed with threads but I haven¹t been able to find any examples of setting a thread pool in a server/servlet environment. I have a number of remote units which upload telemetry data for