Re: Dojo custom build and Struts ComboBox widget

2007-11-09 Thread Max Pimm
the original author of that page and that's why it's a wiki :-) Max Pimm wrote: Solved. I have downloaded and created the custom build from the dojo 0.4.0 release instead of dojo 0.4.2 and now all works well. From comparing files i am pretty sure that 0.4.0 was the release u

Re: Dojo custom build and Struts ComboBox widget

2007-11-09 Thread Max Pimm
confirm that. We should also update the wiki (http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-209.html) to change all references to 0.4.2 to 0.4.0. I have access but perhaps this should be approved by the developers first? max Max Pimm wrote: I am using firebug and

Re: Dojo custom build and Struts ComboBox widget

2007-11-09 Thread Max Pimm
the build fails. Which is the dojo version that was used in the build of struts2-core-0.011.jar? Jeromy Evans wrote: Max Pimm wrote: I am trying to make a custom build of dojo for my application in order to speed it up a bit. (See threads "[s2] Struts head tag KILLS (> 10s) page lo

Dojo custom build and Struts ComboBox widget

2007-11-08 Thread Max Pimm
I am trying to make a custom build of dojo for my application in order to speed it up a bit. (See threads "[s2] Struts head tag KILLS (> 10s) page load time" and "How to improve dojo performance in Struts 2.0.9") I have followed the instructions for doing this are carefully as possible from

Re: [S2] How to apply a Java method on a ${myVarInStack} in a JSP ?

2007-10-10 Thread Max Pimm
You can call a static method using the OGNL syntax. . (More info can be found here http://www.opensymphony.com/ognl/html/LanguageGuide/) However i suggest you have a look at the s:date tag. max mleneveut wrote: Hi all, I just give up the datetimepicker component, due to a 2s more page lo

Source in maven respositories

2007-09-17 Thread Max Pimm
It would be a really nice touch if whoever maintains the maven project for struts2 could include the source jars in the maven repositories. max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Number Validator

2007-07-31 Thread Max Pimm
Using the regex field validator. This is a regular expression that tests for a positive integer, it also allows the field to be empty ^\d*$ This would be the same but not allow an empty field ^\d+$ Your field validator would look something like My field s

[S2] Ajax theme and missing dwr package

2007-07-25 Thread Max Pimm
If i use the ajax theme a script import is generated for the following 2 files in template/ajax/form.ftl: src="${base}/dwr/interface/validator.js"> However i cannot find these javascripts in the struts-core jar. I presume that i need to download dwr from getahead.org and copy the resour

Re: [S2] Client side validation, hidden fields and clearErrorMessages not working in firefox

I have created an issue in JIRA. (https://issues.apache.org/struts/browse/WW-2058) max Theo Platt wrote: Thanks Max, I've just been looking at exactly the same area and I can replicate the same error. It works fine in IE but fails in firefox. I think you should enter it in JIRA. Cheers Theo

[S2] Autocompleter ajax template missing header and footer

Hi, in 2.0.8 the ajax template (template/ajax/autocompleter.ftl) is missing the controlheader and footer. I noticed this when i wanted to generate a label for my autocompleter text field. The autocompleter tag accepted the label attribute but did not create the html label element. I have add

Datetimepicker with displayFormat="dd/MM/yyyy" and OGNL parser

The display of the date time picker works fine when i change the format. However when the params interceptor tries to deserialize my form data into java objects using OGNL it thinks that the field has format MM/dd/. How should i tell the OGNL parser that my date format is different? max -

[S2] Client side validation, hidden fields and clearErrorMessages not working in firefox

I'm using 2.0.8 and using client side validation which its almost working perfectly. Unfortunately the only obstacle is that i can't put hidden fields in my form. The validation works correctly the problem is that the second time i validate the same form (without sending it to the server) the

Re: S2 - Deserializing with the JSON plugin

think that this may be different in the tree controller V3). If implementing this is a hassle perhaps its not worth it, what do you think. max Musachy Barroso wrote: You can pass the content type as a parameter to dojo.bind (actually, it is a field inside the object passed as the parameter) mu

Re: S2 - Deserializing with the JSON plugin

Musachy Barroso wrote: Ok, it is done (I was bored today :) ). Make sure that the object returned from the value stack, from the "root" expression is not null. regards musachy On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote: Thanks a million. At the moment i'm not using the

Re: S2 - Deserializing with the JSON plugin

chy On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote: I'm using the JSON plugin in one of my actions with the documentation that i've found here (http://cwiki.apache.org/S2PLUGINS/json-plugin.html). My case is a little different as i am not using SMD. I receive calls to the action

S2 - Deserializing with the JSON plugin

I'm using the JSON plugin in one of my actions with the documentation that i've found here (http://cwiki.apache.org/S2PLUGINS/json-plugin.html). My case is a little different as i am not using SMD. I receive calls to the action with parameters passed via the query string. Most of these paramete

Re: S2 - Dojo Tree Widget

't want to speak too soon, but if this goes ok perhaps i could help add this functionality to showcase example. max Musachy Barroso wrote: The tree works on 2.0.6/2.0.8 AFAIK, did you try the "tree" tag? regards musachy On 6/26/07, Max Pimm <[EMAIL PROTECTED]> wrote

Re: Problem downloading a file using a Struts 2 action

You can do this without explicitly accessing the output stream of the HttpServletResponse. 1) In struts.xml define the result type of your action as a stream, you can define content type here aswell application/msword 2) In your action cl

S2 - Dojo Tree Widget

I have seen that people are working on integrating the Dojo tree widget into the 2.1 release. I'm using 2.0.6 release and am about to implement the tree widget in my app. I'm new to dojo and haven't been able to find much official documentation for this widget. I wondered if someone who has a

Re: s2: Base url in jsp's

Correction... the last two lines of code in my previous mail should have been (getting myStylesUrl by value not name!) " /> not " /> Max Pimm wrote: Thanks for the respones. Perhaps i didn't explain myself properly. What i'm really looking for is a way to d

Re: s2: Base url in jsp's

a context relative url and works fine but is a bit cumbersome if i have to do it every time i need to generate a url outside struts tags. max This works fine but h Musachy Barroso wrote: Or the scriptletless version: musachy On 6/21/07, Van Riper <[EMAIL PROTECTED]> wrote:

s2: Base url in jsp's

I am used to defining a base element in my pages but can't find the way to define this with struts 2. All suggestions welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[s2] Using struts-tags and "Exception initializing TldLocationsCache"

Hi, I'm trying to set up the Struts 2.0.6 example blank application using the J4 distribution and i'm having problems using struts-tags. Any jsp that uses this tag library (that is all jsp's that include the line <%@ taglib prefix="s" uri="/struts-tags" %>) give compilation errors (see below