Regex in Struts 1 tags?

2008-02-24 Thread Andy
Is there any kind of support or even a workaround to using regex in Struts 1 tags? For example, if I have a Form variable called 'description', I would like to use a logic tag in a jsp to see if the the value of that form variable starts with '001_'. Thanks.. Andy

Re: Is TilesResult compatible with Struts 1.x Tiles?

2008-02-24 Thread Ealden Escañan
On Sun, Feb 24, 2008 at 3:41 AM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/2/23, Ealden Escañan [EMAIL PROTECTED]: Is struts2-tiles-plugin compatible with Struts-Tiles? No. Use Tiles 2. At Tiles site you can find a migration guide: http://tiles.apache.org/migration/index.html

how to update text fields using ajax on making any change in master text field

2008-02-24 Thread Dibesh Shakya
Hello all, I have 3 text fields say A, B and C out of which A is a master text field whose value is distributed between remaining text fields. My requirement is if i give value say 20 to field say A then an action is called which will distribute the values between other text fields. How can i

RE: Regex in Struts 1 tags?

2008-02-24 Thread Rod Bollinger
You can use the JSTL function library to do fn:startsWith() -Rod -Original Message- From: Andy [mailto:[EMAIL PROTECTED] Sent: Sunday, February 24, 2008 03:38 To: user@struts.apache.org Subject: Regex in Struts 1 tags? Is there any kind of support or even a workaround to using regex in

Re: problem in populating Maps

2008-02-24 Thread Martin Gainty
1) its possible the link does'nt have that returned object mapped you may want to consider doing a quick test of the object beforehand with linkObject.containsValue(ReturnedObject) http://java.sun.com/javase/6/docs/api/java/util/LinkedHashMap.html#containsV alue(java.lang.Object) 2) it is quite

Re: xwork-conversion.properties

2008-02-24 Thread Adam Hardy
Hi Kedar, perhaps you could expand upon your statement. What I understand is that the conversion involves the creation of the object graph based on the incoming HTTP param-value pair (e.g. instrument.market.id=1) as follows: (1) id = new Long(1) (2) market = new Market() (3) market.setId(id)

Re: Conversation Scope?

2008-02-24 Thread Adam Hardy
Is it worth building a mechanism for conversation scope, compared to the complexity it introduces? I really dislike Spring Webflow with its conversation scope, stringent encapsulation and storage of massive amounts of data in various maps that locks away everything out of sight and makes it all

Re: problem in populating Maps

2008-02-24 Thread Dave Newton
--- Martin Gainty [EMAIL PROTECTED] wrote: 2) it is quite possible you have *may* a stale TO http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html have you considered using a factory with Timestamps/Versions to either quiesce the old TOs or somehow update old contents

Re: [S2] Doubleselect inconsistent if using 'back' button

2008-02-24 Thread sathish kumar
hi... i found the answer for prob actually,,i got confused while loading data from database to html:select / tag i.e, i had a table in my database which has 'id' and 'value'... in select tag the option should be my value and while submitting it should send the 'id' to my server. in this case,

Re: Best practices for handling code/lookup tables in Struts 2

2008-02-24 Thread Cheng Wei Lee
Looking into using Hibernate's 2nd level cache. Any tips or pitfalls? Thanks! On Sun, Feb 24, 2008 at 2:20 PM, Jeromy Evans [EMAIL PROTECTED] wrote: Cheng Wei Lee wrote: What do you'll think of writing a stateful session bean to hold these data and make it gets the data from database

struts-dojo-tags doesn't work in freemarker templates

2008-02-24 Thread aj2r
In my freemarker templates I can use struts-tags but struts-dojo-tags like sx.a are ignored. am I missing something? -- View this message in context: http://www.nabble.com/struts-dojo-tags-doesn%27t-work-in-freemarker-templates-tp15666335p15666335.html Sent from the Struts - User mailing list

Re: struts-dojo-tags doesn't work in freemarker templates

2008-02-24 Thread Dave Newton
--- aj2r [EMAIL PROTECTED] wrote: In my freemarker templates I can use struts-tags but struts-dojo-tags like sx.a are ignored. am I missing something? Did you include/define the taglib library as per [1]? Dave [1] http://struts.apache.org/2.x/docs/freemarker.html

No javascript in sx:div

2008-02-24 Thread aj2r
Time ago I noticed that javascript were removed in the pages linked by sx:div ... Parameters executeScripts and separateScripts don't solve the problem. Any idea? -- View this message in context: http://www.nabble.com/No-javascript-in-sx%3Adiv-tp15666390p15666390.html Sent from the Struts -

Re: how to avoid form's validation if the user choose cancel?

2008-02-24 Thread Juanjo Cuadrado
And in the version 1.x? 2008/1/3, xianwinwin [EMAIL PROTECTED]: YES! exactly what I needed. thanks!!! Alberto A. Flores wrote: one way I did that was by using the non-validating method point to a method (in the Action class) to have the following annotation @SkipValidation

radio widget

2008-02-24 Thread stanlick
I am having trouble addressing individual properties with radio? To be more precise, I have the following scenario: s:radio list=#attr.currQuestion.value.answers/s:radio Where answers is a Map of Long,Answer pairs. I want to set listValue to a property of the Answer, but I can't work out the

Re: struts-dojo-tags doesn't work in freemarker templates

2008-02-24 Thread aj2r
newton.dave wrote: --- aj2r [EMAIL PROTECTED] wrote: In my freemarker templates I can use struts-tags but struts-dojo-tags like sx.a are ignored. am I missing something? Did you include/define the taglib library as per [1]? Dave [1]

Re: radio widget

2008-02-24 Thread stanlick
After inspecting the freemarker template for radio, I discovered what the tag would do if you did not specify a listValue. It seems the handler is pushing the current element to the stack in the iterator, so specifying s:radio list=#attr.currQuestion.value.answers listValue=top.value.name /

Re: struts-dojo-tags doesn't work in freemarker templates

2008-02-24 Thread Dave Newton
--- aj2r [EMAIL PROTECTED] wrote: newton.dave wrote: --- aj2r [EMAIL PROTECTED] wrote: In my freemarker templates I can use struts-tags but struts-dojo-tags like sx.a are ignored. am I missing something? Did you include/define the taglib library as per [1]? Dave [1]

Re: struts-dojo-tags doesn't work in freemarker templates

2008-02-24 Thread aj2r
newton.dave wrote: Are you using S2.1 with the Dojo plugin? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yes, I'm using struts-2.1.0 with dojo-plugin

Re: Conversation Scope?

2008-02-24 Thread Ray Clough
I'm definitely going to have to watch the 'ranting'. (By the way, Adam, you have to stop grappling with SWF when you get married.) It seems to me that 'ModelDriven' is not much use without ConversationScope, because you have to manually manage the model/session interaction in all but the

Re: No javascript in sx:div

2008-02-24 Thread Jeromy Evans
aj2r wrote: Time ago I noticed that javascript were removed in the pages linked by sx:div ... Parameters executeScripts and separateScripts don't solve the problem. Any idea? It's possible that it's removed but still executed. Dojo is responsible for parsing the html, extracting the

Re: how to update text fields using ajax on making any change in master text field

2008-02-24 Thread Jeromy Evans
Dibesh Shakya wrote: Hello all, I have 3 text fields say A, B and C out of which A is a master text field whose value is distributed between remaining text fields. My requirement is if i give value say 20 to field say A then an action is called which will distribute the values between other text

Re: Conversation Scope?

2008-02-24 Thread Jeromy Evans
I hadn't noticed this was already part of the 2.1.x core and default stack: http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html. I haven't checked the code but it reads the same Ray Clough wrote: I'm definitely going to have to watch the 'ranting'. (By the way, Adam, you

Re: how to update text fields using ajax on making any change in master text field

2008-02-24 Thread Prashant Khanal
Do you mean to catch the response from server using javascript and update the textfields using javascript? The solution seems to be appropriate under circumstances when we have few fixed number of textfields. How about the condition when those text fields are the part of the row of a table and we

Re: how to update text fields using ajax on making any change in master text field

2008-02-24 Thread Jeromy Evans
Yes, I'd still use the same technique. If you don't need to use ajax, then just do a normal submit and render a new page doing all the processing on the server side. If you do want to use ajax though, it's not much effort for the javascript callback to include a for loop that updates