Re: struts2 design question

2008-02-20 Thread Jeromy Evans
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: I'm curious why the developers of struts2 chose to define constants in an interface (StrutsStatics) and then implement that interface in at least 18 classes Just thought I'd mention that Dave followed this up for you in struts-dev:

Re: s:datetimepicker version 2.0.11 issue

2008-02-20 Thread Jeromy Evans
akash agrawal wrote: Issue: 1. Time cannot be edited by going straight to the text field and entering using keyboard. It only allows to pick up the time from the popup. However popup only gives minutes granularity in 5 minutes interval. Any workaround? Is there a better mailing list to post

Re: about sitemesh in struts 2.0.11

2008-02-20 Thread Jeromy Evans
hardik_982 wrote: when i try to use sitemesh and use s:tabbedpanel it can not work why? it is not give any error but tabbedpanel can not work Either: - you're missing decorator:head/ in your decorator, so the javascript included by s:head is missing; or - you need to an and excludes to

Re: about sitemesh in struts 2.0.11

2008-02-20 Thread Jeromy Evans
hardik_982 wrote: it shows javascript error on page 'dojo' is required That means the the dojo files were not found or were not even included. Does the head of your page (in html) include the scripts to load the dojo files? If not: does your JSP include s:head does your decorator

Re: [S2] IE does not refresh page

2008-02-19 Thread Jeromy Evans
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 struts are you using btw? regards, Jeromy Evans

Re: Tabbed panel problem

2008-02-19 Thread Jeromy Evans
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? regards, Jeromy Evans Paranoid_Fabio wrote: Yes. What I want to is to have the results of the action I call from inside the div shown inside the div again

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 Maxx wrote: Thanks

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

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

Re: Struts 2 Container Security problem

2008-02-19 Thread Jeromy Evans
will allow you to specify /login.action as the login page though, but you can make login.jsp redirect to it. Hope that helps, regards, Jeromy Evans Kelly Graus wrote: Hi Everyone, I'm attempting to secure my first Struts 2 web app using container security with a DataSourceRealm. I'm using Tomcat 6

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-19 Thread Jeromy Evans
Your code looks valid, but have you included the s:head theme=ajax/ tag in your head section? It looks like the default event is executing (submit form for new page) rather than Dojo using ajax to post it. Also, as your target is theForm2, add showLoadingText=false to your submit button.

Re: Struts 2 Container Security problem

2008-02-19 Thread Jeromy Evans
I would add a login action to the public namespace which prepares a login page. Unfortunately I don't think the container will allow you to specify /login.action as the login page though, but you can make login.jsp redirect to it. According to Practical Apache Struts 2, this should be

Re: Type conversion questions

2008-02-19 Thread Jeromy Evans
is performing the query itself or through a service you can easily avoid it. Hope that make sense. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-02-19 Thread Jeromy Evans
No, it seems fine now. Turn on debugging: s:head theme=ajax debug=true/ Also use FireBug to see if there's any javascript errors reported. xianwinwin wrote: thanks you for the reply. I added the code: s:head theme=ajax/ on top, plus s:submit value=GO2 showLoadingText=false

Re: Struts 2 Container Security problem

2008-02-19 Thread Jeromy Evans
Wes Wannemacher wrote: I'm jumping in late, so if I refer to something that came up in a previous post, I apologize ahead of time. I'm guessing that you're using tomcat. Tomcat is picky about certain things being actual filesystem resources. There are two possible solutions (if I'm right about

Re: Using Variables with Messages in Struts

2008-02-19 Thread Jeromy Evans
You may be able to do it with s:property, disabling escaping of the html: s:property value=getText('some.key') escape=false/ Asad Habib wrote: Hello. How do I represent the following in a message resources file? Representing a string literal is easy but the following string contains a link.

Re: [S2] /2.x/tagreference.html not found on server?

2008-02-19 Thread Jeromy Evans
hezjing wrote: Hi At bottom of http://struts.apache.org/2.0.11/docs/ui-tag-reference.html, the link to http://struts.apache.org/2.x/tagreference.html (Tag Reference) does not exist on the server? Thanks, I've changed this to tag-reference.html on the live version.

Re: [S2] Ajax Tags Reference - submit?

2008-02-19 Thread Jeromy Evans
hezjing wrote: Hi In http://struts.apache.org/2.0.11/docs/ui-tag-reference.html Clicking on submit of the Ajax Tags will redirect to the Confluence's login page. Is this OK? Thanks. This one has already been corrected in the latest version. It's also helpful to create your own account

Re: Using Variables with Messages in Struts

2008-02-19 Thread Jeromy Evans
Oh, sorry, I assumed you were using Struts 2. That's a feature of the default tag library. Sorry, I don't know the answer for Struts 1.x Asad Habib wrote: Hello Jeromy. What tag library are you using for this? - Asad On Feb 19, 2008 11:19 PM, Jeromy Evans [EMAIL PROTECTED] wrote: You

Re: [S2] IE does not refresh page

2008-02-19 Thread Jeromy Evans
new in Struts, I need help. Thanks again. Jeromy Evans - Blue Sky Minds wrote: Setting showLoadingText=false itself shouldn't affect this. Is the submit reaching your action? Is the list that's refreshed the response from the action? Or is the refresh via a topic? Or refresh by some other

Re: [S2] form not retrieving values in IE

2008-02-18 Thread Jeromy Evans
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 should I do to fix this problem in IE, here is my form

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

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

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: 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

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: s:radio theme=mytheme label=Group name=groupSelect list=groups / 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 on the tr... (which I

Re: ParametersInterceptor setting values using a String[]

2008-02-14 Thread jeromy . evans
* 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 with the method setId(Integer id

Re: Roadmap and activity

2008-02-14 Thread jeromy . evans
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 trialling Struts 2 as a replacement

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. input type=radio name=... You can simply lay theme out using HTML or css: eg. with line breaks: s:radio .../br/s:radio .../br/ with css: input['type='radio'] { display: block; } or within a table. If you're

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 s:tabbedPanel id=test /tabbledPanel 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

Re: Ajax tabbedPanel and sitemesh problem

2008-02-14 Thread Jeromy Evans
Is it possible your decorator is missing the decorator:head/ tag in its head section? daveck wrote: It works if I put s:head theme=ajax/ in the body 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

Re: problem in validating optiontransferselect element

2008-02-14 Thread Jeromy Evans
() 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
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 NumberFormat's. You could use any

Re: problem in validating optiontransferselect element

2008-02-14 Thread Jeromy Evans
. 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 levels must be selected) public void

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

2008-02-13 Thread Jeromy Evans
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 ID yourself. regards, Jeromy Evans

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
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 strange to me. On Feb 13, 2008 3:13 PM, Jeromy Evans [EMAIL PROTECTED] wrote: Your JSP below looks correct. If the date picker is on the same page

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

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

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

2008-02-13 Thread Jeromy Evans
for some 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 Minds wrote: The default type

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: s:radio name=fruitsname list=fruits / 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

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

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

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?

[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

Re: validation for s:select tag

2008-02-11 Thread Jeromy Evans
is not working for me. param name=expression![CDATA[user.country == '-1']]/param 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

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

2008-02-11 Thread Jeromy Evans
s:url/ 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

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:

Re: validation for s:select tag

2008-02-10 Thread Jeromy Evans
If your keys are just numbers, perhaps you could use the Int Validator field-validator type=int param name=min0/param message key=required.country/message /field-validator http://struts.apache.org/2.x/docs/int-validator.html Otherwise I'd try some variations of the expression. It's

Re: Struts 2 Validation issue

2008-02-09 Thread Jeromy Evans
is instantiated 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

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: mytags:guard

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

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 when forms

Re: Problem s:select in IE and Firefox

2008-02-06 Thread Jeromy Evans
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 s:select tag which behaves different in IE 6.0 and firefox. In Firefox

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-05 Thread Jeromy Evans
/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 calling ActionSupport which

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Jeromy Evans
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 does not have standard JavaBeans getter/setter methods

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)

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

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

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

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

2008-02-04 Thread Jeromy Evans
Bornow wrote: Hello Jeromy, I do have : s:head theme=simple / Also, i use Netbeans to generate respective get/set method so they are JavaBean std compliant. The issue for me unfortunately is getting the value back , it seems to lose it. :( Thanks for feedback though. Serge Jeromy Evans

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
/ interceptor-ref name=params / interceptor-ref name=conversionError / interceptor-ref name=validation / interceptor-ref name=workflow / Is it OK if my login interceptor is configured after the params interceptor? On 2/5/08, Jeromy Evans [EMAIL PROTECTED] wrote

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
'username' on 'class com.opensymphony.xwork2.ActionSupport: Error setting expression 'username' with value '[Ljava.lang.String;@10936a1' On 2/5/08, Jeromy Evans [EMAIL PROTECTED] wrote: It depends what your interceptor is trying to do... At the moment, I still think params is trying to call

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

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: s:submit

Re: [S2] Multiple buttons in a form

2008-02-03 Thread Jeromy Evans
hezjing wrote: Hi I have a form with multiple buttons, s:form namespace=/user action=updateUser method=post s:submit name=action value=resetPassword key=button.resetPassword / s:submit name=action value=delete key=button.delete / /s:form and my action class looks like the following,

Re: AjaxTag 1.3 support?

2008-02-02 Thread Jeromy Evans
work with any library that requires an XML response, except you'd use an XML result type like I previously described in this thread. I hope that helps. Struts2 is really well suited at providing non-html responses if you take the time to understand the ResultType architecture. cheers, Jeromy

Re: AjaxTag 1.3 support?

2008-02-01 Thread Jeromy Evans
://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 that matters at all). As Dave said, your

Re: preparable vs modelDriven

2008-01-31 Thread Jeromy Evans
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, Jeromy Evans

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

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: 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

Re: Pretty urls without .action

2008-01-28 Thread Jeromy Evans
://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 Http Status

Re: AJAX approach

2008-01-28 Thread Jeromy Evans
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 would like to comment you a problem I

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

Re: File Upload

2008-01-22 Thread Jeromy Evans
; if not, it doesn't work... Am I missing sth? Doing sth wrong? Jeromy Evans escribió: hmm...that's interesting. My approach would be to create a new blank struts application that just contains a file upload action. Get it to work without ajax as there still seems to be a configuration

Re: Pretty urls without .action

2008-01-22 Thread Jeromy Evans
In this case, GET http://host:8080/isp/email will execute your action. regards, Jeromy Evans jignesh.patel wrote: Hi, This is my web.xml web-app display-nameProject Name/display-name filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2

Blank action extension in root namespace causing 302 in Tomcat

2008-01-22 Thread Jeromy Evans
that causes a redirect. Related emails: http://www.nabble.com/Pretty-urls-without-.action-td14947106.html Thanks, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

Re: Pretty urls without .action

2008-01-21 Thread Jeromy Evans
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:8080/email(withour . extension) Error Page:- type Status report message

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

Re: using YUI with struts 2

2008-01-19 Thread Jeromy Evans
it took to write the custom-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

Re: Pretty urls without .action

2008-01-18 Thread Jeromy Evans
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 wrote: Yes, the constant

Re: File Upload

2008-01-18 Thread Jeromy Evans
=addPluginForm 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 like to use the ajax theme. Thanks. Jeromy Evans escribió: Are you

Re: REST Show case

2008-01-18 Thread Jeromy Evans
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: Hi Roberto, The CodeBehind plugin is probably being replaced with the Convention

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 +

Re: REST vs Original

2008-01-18 Thread Jeromy Evans
(Jan08) I can't recommend the NamedVariablePatternMatcher 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

Re: REST Show case

2008-01-17 Thread Jeromy Evans
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 setting about this anyone can give me the glue about

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

2008-01-17 Thread Jeromy Evans
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 JSF features. regards, Jeromy Evans

Re: REST Show case

2008-01-17 Thread Jeromy Evans
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, Jeromy Evans Roberto Nunnari wrote: Hi

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: Feedback: WW-2414, XSS attack is possible if using s:url ... and s:a ...

2008-01-16 Thread Jeromy Evans
Antonio Petrelli wrote: 2008/1/16, Jeromy Evans [EMAIL PROTECTED]: a href=javascript:alert('123='+(123));Link A/a HTML escaped is not equivalent: a href=javascript:alert('1amp;2gt;3='+(1amp;2gt3));Link B/a You forgot a semicolon. The correct link is: a href=javascript:alert('1amp

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
://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 components is not very rich, only have some basic function. I know there are a lot of ajax components for JSF. So

Re: Feedback: WW-2414, XSS attack is possible if using s:url ... and s:a ...

2008-01-15 Thread Jeromy Evans
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
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 JasperReports plugin. I have a reasonably

<    1   2   3   4   5   6   7   8   >