Re: [S2] simple question about s:set

2008-01-08 Thread Jeromy Evans
GF wrote: But how can I assign a string to a variable? Something like: Hello, . How are you? I tried it but seems not to work.. The value attribute is treated an OGNL expression so "John Jackson" means its trying to access a property with that name. Instead, you need to tell it you're

Re: [struts] getting namespace of action through OGNL

2008-01-08 Thread Jeromy Evans
Wes Wannemacher wrote: On Tue, 2008-01-08 at 01:21 -0500, Dale Newfield wrote: Jeromy Evans wrote: Wes Wannemacher wrote: But, if I use the following OGNL - value="@[EMAIL PROTECTED]().actionInvocation.proxy.namespace"/> I just get a big fat nothing :(

Re: TabbedPanel question

2008-01-10 Thread Jeromy Evans
the tab number/current tab. If you take the time to understand the structure it'll be quite straightforward. Hope that helps. Personally by now I would have started using a widget from another library as you're not bound to use Dojo 0.4 with Struts2. regards, Jeromy Evans P

Re: TabbedPanel question

2008-01-10 Thread Jeromy Evans
ecute this js code *after* the page is loaded? Jeromy Evans escribió: Hi Pablo, This is probably too late for you, but take a look at the generated HTML for the tabs. Unfortunately you'll see that each tab itself doesn't have a unique ID (each container does, but not the tab it

Re: worth spending time in sitemesh?

2008-01-11 Thread Jeromy Evans
If you just want to add, say, a header or footer (decoration) around the head or body content of the pages then sitemesh is absolutely perfect for the job. You won't need to modify the pages at all, it'll just decorate them based in your decorator template. You'd be able to have this working

Re: Struts 2.0.9 + Dojo

2008-01-11 Thread Jeromy Evans
e your own widgets. At this point nobody has released tags comparable to the Dojo0.4 versions. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Feedback: WW-2414, XSS attack is possible if using and

2008-01-12 Thread Jeromy Evans
I don't think this is a critical problem sheerly because the high prevalence of such vulnerabilities means some of the responsibility falls on the developer to not trust user-entered data.. The specific vulnerability is that when includeParams != none, the request URL was rendered unmodified w

Re: [S2] No JavaScript in TabbedPanel

2008-01-12 Thread Jeromy Evans
Dave Newton wrote: --- GF <[EMAIL PROTECTED]> wrote: Time ago I noticed that javascript were removed in the pages linked by is this your case too? http://struts.apache.org/2.x/docs/dojo-div.html executeScripts d. http://struts.apache.org/2.x/docs/dojo-div.html separateScript

Re: [S2] No JavaScript in TabbedPanel

2008-01-13 Thread Jeromy Evans
s Geppert wrote: no separateScripts has also no affect, all JavaScript in my result are removed. Jeromy Evans - Blue Sky Minds wrote: http://struts.apache.org/2.x/docs/dojo-div.html separateScripts j. - To

Re: Feedback: WW-2414, XSS attack is possible if using and

2008-01-13 Thread Jeromy Evans
Antonio Petrelli wrote: 2008/1/13, Jeromy Evans <[EMAIL PROTECTED]>: I don't think this is a critical problem sheerly because the high prevalence of such vulnerabilities means some of the responsibility falls on the developer to not trust user-entered data.. This is not

Re: Feedback: WW-2414, XSS attack is possible if using and

2008-01-13 Thread Jeromy Evans
GF wrote: I think that a good framework is a framework that helps the developer to not create security issue in his applications. I agree and Struts2 does that for the most part. Almost every attribute of every tag in struts2 it HTML escaped. However, the href attribute in particular ca

Re: Feedback: WW-2414, XSS attack is possible if using and

2008-01-14 Thread Jeromy Evans
Antonio Petrelli wrote: 2008/1/14, GF <[EMAIL PROTECTED]>: I think that there are 2 issues. Both important. One in s:url and the other in s:a s:url generates a URL that can contain a malicious query string (it doesn't encode anything except what is passed with s:param). And this is not good,

Re: [S2] Best approach to separate look & feel with same backend code

2008-01-14 Thread Jeromy Evans
do the same thing using the hostname. Incidentally, Sitemesh's DecoratorMapper's provide equivalent functionality (http://www.opensymphony.com/sitemesh/dm.html). If you're just changing page decoration it may be less effort to use. Hope that helps, Jeromy Evans Neil Aggarwa

Re: Feedback: WW-2414, XSS attack is possible if using and

2008-01-15 Thread Jeromy Evans
ular XSS vulnerability. I agree it may be useful if s:url encoded the entire query string through. cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] JasperReports plugin vs. Subreports

2008-01-15 Thread Jeromy Evans
than to define the JRDataSources for the subreports. I'm interested to hear if you solved it another way. regards, Jeromy Evans Dave Newton wrote: This might be a JasperReports question; not sure yet. I'm trying to figure out if there's a way I can use sub-reports via the Jasper

Re: Feedback: WW-2414, XSS attack is possible if using and

2008-01-16 Thread Jeromy Evans
Antonio Petrelli wrote: 2008/1/16, Jeromy Evans <[EMAIL PROTECTED]>: Link A HTML escaped is not equivalent: Link B You forgot a semicolon. The correct link is: Link B And it *is* equivalent. Antonio Ah, my bad. Okay, I'm convinced. :-) On that basis, the anch

Re: [S2] JasperReports plugin vs. Subreports

2008-01-16 Thread Jeromy Evans
Dave Newton wrote: (Well, I get a "illegal operation inside path" error when I open in Reader 7, which is, of course, what we're deploying for, but that's a different issue :( That's just an issue caused by Jasper Reports 2.0.3 when the way the borders are rendered was changed. Upgrade to

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-16 Thread Jeromy Evans
ework. The Texas Hold'em Poker example shows the strength of translating java to javascript: http://www.gpokr.com/ Hope that's helpful, Jeromy Evans tzhang wrote: I am doing some research ajax+struts2. you know struts2.0 has the built-in supprot for ajax based on Dojo, but I found the comp

Re: REST Show case

2008-01-17 Thread Jeromy Evans
y it. There's minimal configuration required because it's a convention-based application. I hope that helps. Build it and experiment! regards, Jeromy Evans Frans Thamura wrote: hi all i just see the rest-showcase. this is amazing approach but i only see the example class , and no se

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-17 Thread Jeromy Evans
raditional web developers but attracts developers that prefer the swing-like event model. GWT is probably not suitable if you only need a couple of widgets in a traditional web page. I stopped experimenting with GWT when I realized javascript was actually good. I can't comment on the

Re: REST Show case

2008-01-17 Thread Jeromy Evans
ou want to minimize use of the @Result annotation (eg: use tiles:insertDefinition within orders-index.jsp). I use both SiteMesh and Tiles2 (together) with the Rest plugin to nice effect. You'll find CodeBehind, SmartURLs and ZeroConfiguration information on the Struts2 wiki. regards,

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-17 Thread Jeromy Evans
Frank W. Zammetti wrote: Tony Zhang wrote: For YUI + struts2, do you prefer to use YUI plugin for struts2 or just use YUI directly? I'm probably not the best person to answer that because I'm frankly not using S2 at the moment and have never looked at the YUI plugin. If you're comfortable

Re: Pretty urls without .action

2008-01-17 Thread Jeromy Evans
Yes, the constant "struts.action.extension" takes a comma separated list: eg. struts.action.extension=action,, The double comma above means "blank" is a valid extension You can add that to struts.properties, struts.xml or web.xml: http://struts.apache.org/2.x/docs/constant-configuration.html

Re: Pretty urls without .action

2008-01-18 Thread Jeromy Evans
ly it is not working I just want only action name without any domain like .actiion,.do,.com anything (only category) The double comma above means "blank" is a valid extension is not able to call respected action. Is there anything missing ? Jeromy Evans - Blue Sky Minds wrot

Re: File Upload

2008-01-18 Thread Jeromy Evans
o Número de línea 8, columna 1:name="addPluginForm" onsubmit="return true;" action="/scheduler-admintool-1.0/AddPlugin.do" method="post" enctype="multipart/form-data"> ^ That´s the result if I try without the ajax theme on the form. Yes, I would

Re: REST Show case

2008-01-18 Thread Jeromy Evans
e on 2.1.1.. Also, the struts 2.0.11 documentation for RestfulActionMapper it reads: 'RESTful URLs are experimental.' Can you confirm that you're successfully deploying RESTful applications for production use using struts 2.0.11? Best regards. -- Robi Jeromy Evans wrote:

Re: File Upload

2008-01-18 Thread Jeromy Evans
Are you deliberately trying to do an XHR file upload? Have you tried it without the ajax theme on the form? Pablo Vázquez Blázquez wrote: Yes yes, that debugging statement is executed. That´s why I know my plugin is created. "Anadido plugin " + uploadFileName means "Added plugin " + uploadFi

Re: REST vs Original

2008-01-18 Thread Jeromy Evans
unless you're willing to dive into the Struts2 source as issues arise as its quite experimental. Hope that helps, Jeromy Evans Frans Thamura wrote: hi there i just want to know, how to mixe the code between S2 and with REST under one container. any idea? or anyone have an example that &

Re: REST vs Original

2008-01-19 Thread Jeromy Evans
Yes and no. Yes: The REST plugin uses CodeBehind. If appropriate, CodeBehind will be replaced by the Convention plugin. SmartURLs is being merged into the Convention plugin. That's a nice convergence. No: REST involves more than URL mapping. However, it's not unreasonable that a single Str

Re: using YUI with struts 2

2008-01-19 Thread Jeromy Evans
tag and the clarity of the original code. Writing custom tags for the DataTable, TreeView, Charts etc are definitely not worth the effort because the tags can't replicate the functionality of the API. What exactly were you hoping for? regards, Jeromy Evans ravi_eze wrote: hi, i want t

Re: Pretty urls without .action

2008-01-21 Thread Jeromy Evans
onfirmed that doesn't affect this URL either. I'm using struts 2.1 but I'm certain this is a 2.0 feature. Hope that helps isolate the problem regards, Jeromy Evans jignesh.patel wrote: Hi, Still not able to call without any domain name like .action,.com URL:- http://host

Re: File Upload

2008-01-22 Thread Jeromy Evans
} }; var request = dojo.io.bind(bindArgs); } Unfortunately, it is happening the same than before: the file is uploaded but my target div is not being updated with the action's response content. And, as before, if I want to upload another file, I must go first to another acti

Re: Pretty urls without .action

2008-01-22 Thread Jeromy Evans
il will execute your action. regards, Jeromy Evans jignesh.patel wrote: Hi, This is my web.xml Project Name struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts2 org.apache.struts2.dispatc

Blank action extension in root namespace causing 302 in Tomcat

2008-01-22 Thread Jeromy Evans
and S2.1 For verification of Case 1, GET http://host:8080/email.action does work - it's only the blank extension that causes a redirect. Related emails: http://www.nabble.com/Pretty-urls-without-.action-td14947106.html Thanks, Jeromy

Re: Pretty urls without .action

2008-01-22 Thread Jeromy Evans
neha bhatt wrote: I am facing same problem. I had tried : eg. struts.action.extension=action,, In such case I am getting Http Status 404. As mentioned in the related post titled "Blank action extension in root namespace causing 302 in Tomcat" (no link at time of posting), try a non-root n

Re: File Upload

2008-01-23 Thread Jeromy Evans
Sorry Pablo, I'm not sure about this. My suggestions are: - try it in FireFox. If it works, you know you have an IE-specific problem. If it doesn't work, there's something wrong with the code - innerHTML is known to have quirks in IE. I'd simplify the HTML result and work upwards from plai

Re: tag writers resources?

2008-01-28 Thread Jeromy Evans
Darren James wrote: Hi Joachim, This gives me something to start with. Time to dig into the struts2 source code to help me grok the sample you've provided. thanks, That example creates a Struts2 component that can be used as a JSP tag. Also see usages of the org.apache.struts2.views.TagL

Re: Pretty urls without .action

2008-01-28 Thread Jeromy Evans
e.g http://localhost:8080/email (tends to 404 page not found) but http://localhost:8080/email. (with suffix (.) works as ,, ). Jeromy Evans - Blue Sky Minds wrote: neha bhatt wrote: I am facing same problem. I had tried : eg. struts.action.extension=action,, In such case I am getting H

Re: AJAX approach

2008-01-28 Thread Jeromy Evans
s available from your action's result (eg. in XML or a JSON structure) you can iterate through the changes and apply each them to the model. As the model is changed, the library will update the UI. Hope that gives you some direction. regards, Jeromy Evans [EMAIL PROTECTED] wrote: Hi! I wo

Re: dojo 1.0 DateTextBox and ISO-8601

2008-01-29 Thread Jeromy Evans
Hi Roberto, This is precisely what a custom type-converter is for: http://struts.apache.org/2.x/docs/type-conversion.html It accepts a string and converts to an object, and vice versa. It's invoked by the conversion interceptor. However, I thought the default Date converter is already setup

Re: AJAX approach

2008-01-29 Thread Jeromy Evans
I would like to ask you if you know wheter YUI table lets me filter, order by column and paginate the table using AJAX (without refreshing the page) or doing it client-side. I couldn´t take a look to it yet. Sorry. Yes, all that's possible on the client side with the YUI datatable. I use

Re: [S2.1] dojo widget dialog

2008-01-30 Thread Jeromy Evans
Your code likes fine so it appears that dojo has not parsed the html for widgets. I think there's an attribute on sx:head to enable this in Struts2.1 (parseContent=true or something like that) Desbois Arnaud wrote: I'm using Struts 2.1.0, and I want to use the dojo widget dialog. I try th

Re: preparable vs modelDriven

2008-01-31 Thread Jeromy Evans
also rare because it can make the context of a JSP/FTL harder to understand (eg. I prefer contact.firstName rather than firstName). However it has proven extremely useful in some cases, particularly if the model is polymorphic (same action, different result, different model class) cheers, Je

Re: AjaxTag 1.3 support?

2008-02-01 Thread Jeromy Evans
GINS/json-plugin.html [3] http://struts.apache.org/2.0.11/docs/xsl-result.html [4] http://xstream.codehaus.org/ [5] http://struts.apache.org/2.0.11/docs/result-configuration.html regards Jeromy Evans Hodgins, Grant wrote: I was able to get the AjaxTags stuff working (with Tiles2 although I don't think

Re: AjaxTag 1.3 support?

2008-02-02 Thread Jeromy Evans
if you take the time to understand the ResultType architecture. cheers, Jeromy Evans Dave Newton wrote: --- "Griffith, Michael *" <[EMAIL PROTECTED]> wrote: Thanks for the comprehensive reply. Looking at the documentation and the example app, I am still not sure how t

Re: Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date: ""

2008-02-03 Thread Jeromy Evans
Hi Serge, You'll find many emails in this forum relating to DatePicker problems. Some of the solutions are here: http://cwiki.apache.org/S2WIKI/vault.html In this case though, is it possible you've forgotten the s:head tag at the top of the page? Serge Bornow wrote: Hi All, I:'ve been ba

Re: [S2] Action attribute of submit

2008-02-03 Thread Jeromy Evans
hezjing wrote: Hi In http://struts.apache.org/2.0.11/docs/submit.html, the submit tag has an "action" attribute that says "set action attribute." May I know how can we make use of this action attribute? Any example? Thank you! It simply overrides the action attribute of the form: wh

Re: [S2] Multiple buttons in a form

2008-02-03 Thread Jeromy Evans
hezjing wrote: Hi I have a form with multiple buttons, and my action class looks like the following, public String execute() throws Exception { if (action.equals("resetPassword")) { userService.resetPassword(user); } else if (action.equals("delete")) { use

Re: [OT] Killer Scam

2008-02-04 Thread Jeromy Evans
Hi Antonio, I received that spam for the first time today too on my address used on this list. I guess it just went wild. Antonio Petrelli wrote: I received an email scam in my apache.org email that is, substantially, the first in this list: http://www.scamorama.com/killer.html Did you receiv

Re: question on mapping

2008-02-04 Thread Jeromy Evans
Will CodeBehind give what you need? I'm not sure with your use of wildcards. It gives "pages with no mapping": a default do-nothing action that provides access to s2 tags & resources...but not to a default tile AFAIK http://struts.apache.org/2.0.11/docs/codebehind-plugin.html Giovanni Azua wr

Re: Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date: ""

2008-02-04 Thread Jeromy Evans
it. :( Thanks for feedback though. Serge Jeromy Evans wrote: Hi Serge, You'll find many emails in this forum relating to DatePicker problems. Some of the solutions are here: http://cwiki.apache.org/S2WIKI/vault.html In this case though, is it possible you've forgotten the s:he

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
A param called "button.login" means the ParametersInterceptor has to call getButton().setLogin(val). If you don't have a getButton() method, or getButton() returns null, an exception like this occurs while trying to set the parameter. hezjing wrote: Hi I'm trying to create a login interce

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
configured, // my interceptor Is it OK if my login interceptor is configured after the params interceptor? On 2/5/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: A param called "b

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
ord' with value '[Ljava.lang.String;@18a270a' com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'username' on 'class com.opensymphony.xwork2.ActionSupport: Error setting expressi

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-05 Thread Jeromy Evans
ms/struts_2_cookbook/creating_a_login_interceptor. May I know which file that is showing the Struts2 default interceptor stack? Thanks for your help! On 2/5/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: That looks fine. Do you have an action called index in the default namespace? It's cal

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Jeromy Evans
ified bean & service façade route so to ensure I'm not locked into any particular expression language/library. cheers, Jeromy Evans Tommy Becker wrote: I have a question about using OGNL PropertyAccessors. We have an object on the value stack that we expose to JSP pages that

Re: Editing an entity in Struts2

2008-02-05 Thread Jeromy Evans
Loading an Entity in the prepare method is a common use-case. If you're allowing an Entity to be updated directly from the JSP you'll probably need the prepare-params-prepare (set params including entity's ID, params loads the existing entity, prepare sets the params on the entity instance) I

Re: [OT] Re: Best Tool to develop html pages

2008-02-05 Thread Jeromy Evans
Hi Mohammed, it really depends on whether you're working with html/php, or jsp/asp/etc, and whether you're a developer or a designer. As far as I know the most popular commercial product is still Dreamweaver. I think coders tend to prefer their favourite IDE because context-sensitivity and refac

Re: Problem s:select in IE and Firefox

2008-02-06 Thread Jeromy Evans
fails. It's a problem related to the incorrect/inconsistent ordering of events in IE. Add the showLoadingText="false" attribute to your ajax submit button(s) and it'll be okay. regards, Jeromy evans Marc Eckart wrote: Hi, I have a tag which behaves different in IE 6.0 and

Re: Is Multiple Forms(s:form) in one Jsp possible?

2008-02-07 Thread Jeromy Evans
Dave Newton wrote: --- Thomas Ramapuram <[EMAIL PROTECTED]> wrote: I just wanted to know if it is possible to have multiple s:form in one jsp. Each of the forms submit to a diffrent action. The problem I faced is that. If I place multiple forms in one jsp. The initials forms closing tags

Re: Is Multiple Forms(s:form) in one Jsp possible?

2008-02-07 Thread Jeromy Evans
Dave Newton wrote: --- Jeromy Evans <[EMAIL PROTECTED]> wrote: The commenting effect is something one of the browsers does when viewing invalid html (forget which browser). It comments out the html for nodes that were impossible to include in the DOM. I've seen it whe

Re: [Struts2.011] Best approach for limited view

2008-02-08 Thread Jeromy Evans
lbastil wrote: Please give me advices what would be the best approach in the struts 2 world to realize a limited view (authorization). In struts 1 I would have created a simple tag which is able to render it childs dependent on authorization of user, something like: ... some content ... Is

Re: OOT: Too Many Connection

2008-02-08 Thread Jeromy Evans
Hi Frans, You need to isolate what there's too many connections to. Is it the database, the http server or some other resource? My wild "stab in the dark" is that you're using the Session In View pattern with hibernate and a connection pool setup through spring. The pool is probably exhaust

Re: Struts 2 Validation issue

2008-02-09 Thread Jeromy Evans
stantiated but not invoked. You have to ensure that when your result calls the getter the data is available to it. Hope that helps, Jeromy Evans [1] http://struts.apache.org/2.x/docs/prepare-interceptor.html [2] http://struts.apache.org/2.x/docs/interceptors.html dfaulcon wrote: I have an i

Re: STRUTS 2.0.9 File tag

2008-02-10 Thread Jeromy Evans
Srikanth Muthyala wrote: Can anybody tell me how to disable the manual typing of file name for File tag, only allow 'Browse" button. Thanks. Unfortunately you don't have much control over it. Perhaps you could add an onkeypress event listener that blocks typed input. See here: http://www.qu

Re: validation for tag

2008-02-10 Thread Jeromy Evans
If your keys are just numbers, perhaps you could use the Int Validator 0 http://struts.apache.org/2.x/docs/int-validator.html Otherwise I'd try some variations of the expression. It's operating on the getUser().getCountry() property of your action so the expression (user.country == '-1

Re: YUI and S2 : problem in rendering date component

2008-02-11 Thread Jeromy Evans
The issue is that *something* needs to call the code to instantiate the datetimepicker after the html is added to the DOM. What library are you using to asynchronously load the fragment that contains the datetimepicker? And where is the script that instantiates the datetimepicker widget? Embe

[OT] Re: Javascript problem

2008-02-11 Thread Jeromy Evans
Just one minor clarification that hasn't been mentioned elsewhere in this thread. If your HTML fragment is being loaded via XHR with Dojo, then Dojo itself is responsible for parsing the html for scripts and then executing them. This is because inserting html into the DOM via innerHTML does n

Re: validation for tag

2008-02-11 Thread Jeromy Evans
. This condition is returning true whether I select a value in list box or not.. What can be other ways to check drop down values? Thanks On Feb 10, 2008 10:50 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: If your keys are just numbers, perhaps you could use the Int Validator

Re: Not escaping '&' when passing urls as http params

2008-02-11 Thread Jeromy Evans
has an attribute called escapeAmp (default = true) that may assist you. http://struts.apache.org/2.0.11/docs/url.html Srinivas.N. wrote: When I pass URLs as parameters, is there a way to not html escape the '&' characters? Example: Lets say I have a JSP where I want to pass a URL as a para

Re: appfuse generated basic struts project how to access the logged in user from action

2008-02-12 Thread Jeromy Evans
developers that the action requires the principal. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how do i obtain the selected value of the select element

2008-02-13 Thread Jeromy Evans
My preference is to not allow a JSP to modify an Entity directly because I prefer to validate it before allowing the Entity to become "dirty". It's not a big issue but it affects how validation errors or exceptions are handled. In summary, you do have the lookup the entity by

Re: datetimepicker (type="time") problem

2008-02-13 Thread Jeromy Evans
Your JSP below looks correct. If the date picker is on the same page and is working, all I can think of is an ID conflict or the time picker is using the wrong theme. Have a look at the generated HTML to ensure the dojo tag is included and looks right. Ensure there's no ID conflict with the

Re: datetimepicker (type="time") problem

2008-02-13 Thread Jeromy Evans
f interesting. It's using dojoType="struts:StrutsTimePicker" instead of using dojoType="dropdowndatepicker" Does that make any sense that it would be a completely different dojoType that belongs to some struts library instead of to the dojo code? Just seems a little stra

Re: [s2] Forward directly to JSP w/o processing

2008-02-13 Thread Jeromy Evans
I'm not sure what you mean by "no response from the server". When you omit the class name on the action definition the default action will be used (usually ActionSupport) to set up the value stack and resources so you can use struts tags within the JSP. Your tiles result looks fine. If you do

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Jeromy Evans
Ned Collyer wrote: Has anyone fixed this issue, or got an "easy" working implementation. I've read http://www.nabble.com/Struts-2-requires-input-result-on-failed-type-conversion-td11543906.html#a11543906 which seems to be ended rather abruptly when Martin did not get an answer. The default t

Re: German/Turkey etc decimal use comma in input fields.

2008-02-13 Thread Jeromy Evans
ome code. It's obviously been fixed before somewhere, so why do we need to all implement it again on a per case basis. I'll go hack something together - if its worthy i'll contrib back here. I'm a bit sick of struts and its "quirks" tbh. Jeromy Evans - Blue Sky M

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

2008-02-13 Thread Jeromy Evans
xianwinwin wrote: 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 poin

Re: ParametersInterceptor setting values using a String[]

2008-02-14 Thread jeromy . evans
equent* in normal use. Hope that helps! regards, Jeromy Evans > This appears to have been mentioned a number of times in the Struts 2 > and XWork forums but I cannot find a real answer: > > > > Using Struts 2.0.11 I am experiencing the following problem. > > I have an action

Re: Roadmap and activity

2008-02-14 Thread jeromy . evans
Volunteers typically contribute in the areas affecting them most or in areas that interest them and there's plenty of interesting bits to work on. That means the boring bits get neglected. You can monitor activity through the developers list. regards, Jeromy Evans > We are currently trialli

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

2008-02-14 Thread Jeromy Evans
When you use theme="simple" the radio buttons are rendered as plain html inputs: eg. xianwinwin wrote: 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! ---

Re: More sitemesh struts2 problems

2008-02-14 Thread Jeromy Evans
daveck wrote: sitemesh is taking the content from the first pair of tags in the main.jsp (my main decorator) and putting it in the tag of the page it's trying to decorate! Is it possible that you're using a remote tab and sitemesh is doing it's job decorating the ajax html response?

Re: Ajax tabbedPanel and sitemesh problem

2008-02-14 Thread Jeromy Evans
Is it possible your decorator is missing the tag in its head section? daveck wrote: It works if I put in the of the html. daveck wrote: Hi, I am having problem using an ajax tabbedPanel with sitemesh. If I don't decorate page.jsp, the tabbedPanel works fine. As soon as I decorate it,

Re: problem in validating optiontransferselect element

2008-02-14 Thread Jeromy Evans
ll getSelectedLevel() to validate this property I also can't recall whether these validators work on collections or not. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: German/Turkey etc decimal use comma in input fields.

2008-02-14 Thread Jeromy Evans
obeying its contract correctly (and detecting the appropriate class, and returning an appropriate instance) Ideas? Jeromy Evans - Blue Sky Minds wrote: This should give you an idea. It's modified from existing code so I haven't tested it. I've decided to use a collection of NumberF

Re: problem in validating optiontransferselect element

2008-02-14 Thread Jeromy Evans
elected list is empty. I could not get any hints from the mailing list archive too. On 2/15/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: Prashant Khanal wrote: @RequiredFieldValidator(key="sequence.selectedLevelsNotEmpty", message = "one or more level

Re: German/Turkey etc decimal use comma in input fields.

2008-02-15 Thread Jeromy Evans
Ned Collyer wrote: Should something like this be in the core? its a couple of lines and ensures internationalisation for BigDecimals (which you should be using for any monetary stuff). I haven't found the code, but xwork apparently has BigDecimal conversion. I'm not sure if the problem is t

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

2008-02-15 Thread Jeromy Evans
controlfooter.ftl" /><#nt/> (Substitute css_xhtml if preferred). Have a look at radiomap.ftl in these themes for examples. 6. Reference the theme when you use the radio: That's it Hope that helps, Jeromy Evans

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

2008-02-15 Thread Jeromy Evans
Dave Newton wrote: --- Jeromy Evans <[EMAIL PROTECTED]> wrote: Unfortunately the the cssStyle is applied to the input, not to the label as well. On this note I'm wondering if anybody has any desire for the default theme to have things like label styles, an "id"

Re: OT YUI slider post conntection

2008-02-17 Thread Jeromy Evans
for the Connection Manager can insert that response into the page. If your action needs to provide data, you can use the Struts2 JSON Plugin or a JSON or XML template with the action and your callback can use that object. Hope that helps, Jeromy Evans bhaarat Sharma wrote: Hello I am trying to

Re: [S2] form not retrieving values in IE

2008-02-18 Thread Jeromy Evans
of what else it could be unless there's other javascript not shown below. Hope that helps, Jeromy Evans carmi_cd wrote: I have a form that works find in Firefox but when I tried to run it in Internet Explorer, all the values from the form input box are returned null. I dont know what shoul

Re: how to access the properties of one action by another action

2008-02-18 Thread Jeromy Evans
Placing the object in the session is the least effort approach. Retrieving the objects again is a sensible approach too. Sometimes sending the object to the client and back again is sensible (encoded in some way in a cookie, hidden input or url param) The scope plugin is intended to simplify th

Re: Tabbed panel problem

2008-02-18 Thread Jeromy Evans
I don't quite understand what you're asking for, but I suspect: - you're doing the right thing using a remote tab/remote div to load html fragments into your tabs asynchronously, but; - you also want to use the notifyTopics and listenTopics features of these tags to trigger refreshing/reloads

Re: Unable to make Type Conversion work in Struts2

2008-02-18 Thread Jeromy Evans
Did you ever resolve this? I always use a Map rather than a List because historically there was a problem accessing Lists via the OGNL implementation. I don't know whether it was fixed ie. Substitute the List with a Map and address the items by the appropriate key instead of the index Movi

Re: Sitemesh & Struts 2

2008-02-18 Thread Jeromy Evans
On Feb 17, 2008 8:07 PM, Matthew Seaborn <[EMAIL PROTECTED]> wrote: Has anyone had much experience with SiteMesh and Struts 2? Do they 'play' together well? Are there better alternatives when styling/compiling pages? Thanks. As Don stated, SiteMesh plays very well with Struts2 The

Re: [S2] IE does not refresh page

2008-02-19 Thread Jeromy Evans
other means? Does your response contain any inline javascript? Or dojo widgets/ajax tags? The only other thing that frequently doesn't work is including inline javascript in the responses and expecting theme to execute at a particular time. Which version of str

Re: Tabbed panel problem

2008-02-19 Thread Jeromy Evans
the inner div rather than your tab needs to be the target of your form. This way your tab still works but the content of the tab is refreshed by your ajax form. If you don't do that, the tab's special markup is overwritten by the result and no longer works. Does that help?

Re: Unable to make Type Conversion work in Struts2

2008-02-19 Thread Jeromy Evans
Hi Maxx, Yeah, I've had no success with Enum's either for the same reason, however that's definitely fixed in Struts 2.1.1 (XWork 2.1) In theory, EnumMap should work in 2.1 as well, although I'm not sure what can be done about the constructor. regards, Jeromy Evans Max

Re: Struts2 field validation and conversion

2008-02-19 Thread Jeromy Evans
Filipe David Manana wrote: So my question, is the RequiredFieldValidator is applied after conversion? If conversion fails, the RequiredFieldValidator catches a blank value for the field? Yes, validation is performed on your action instance, after the parameters have all been set, which means

Re: Type conversion questions

2008-02-19 Thread Jeromy Evans
Daniel Baldes wrote: Hello, I have a web form where you can, generally speaking, assign objects to groups. This is done via a multiple select box which displays an object's name and uses its ID property as value. So, usually, my action would get back a String array containing the IDs of the

<    1   2   3   4   5   6   7   8   >