Re: Datetamepicker: problems with dojo

2009-01-05 Thread Andras Balogh
Hi, If Struts 2.0.14 still uses dojo 0.4 than the problem (and the fix) is described here: http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/firefox-3-and-struts-2-theme-ajax-render-issues#comment-17067 BR, Andras Tom Pop wrote: Hello, I have page with datetimepicker and deb

Re: Struts 2.0.12 dojo is not defined

2009-01-08 Thread Andras Balogh
Hi, I think this is the same problem with dojo 0.4: http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/firefox-3-and-struts-2-theme-ajax-render-issues#comment-17067 BR, Andras Balbo wrote: I'm trying to use a datetimepicker in my struts 2.0.16 application but "dojo is not define

Re: Injecting in Interceptors (Struts2ejb3)

2009-01-21 Thread Andras Balogh
Yes, there are 2 files (InjectEJB.java,EJB3Interceptor.java) that are visible at "Browse the Source code" or you can do an anonymous SVN checkout: svn checkout */http/*://struts2ejb3.googlecode.com/svn/trunk/ struts2ejb3-read-only BR, Andras Fernandes Celinio SGCF wrote: Hello Lukasz, Can y

sx:datetimepicker and form theme css_xhtml

2009-02-20 Thread Andras Balogh
Hi, I'm trying to use the sx:datetimepicker with Struts 2.1.6. The datetimepicker is embedded in a form with theme="css_xhtml". I did not find a way to set for the datetimepicker the theme explicitly and right now it generates a table row (tr) for the datetimepicker while other form eleme

Re: DateTimePicker FreeMarker template error!

2009-02-23 Thread Andras Balogh
Hi, You need to use the not the . BR, Andras. Ignacio de Córdoba wrote: Hi there, I am trying to use DateTimePicker with struts 2.1.2 I get the following error: ¿Any ideas? ¡Thanks! Expression parameters.pushId is undefined on line 24, column 6 in template/ajax/a-close.ftl. The problematic i

Re: [S2] json-plugin: includeProperties being ignored?

2009-03-01 Thread Andras Balogh
Hi, Try to specify the includeProperties at the definition and not at the result type. BR, Andras john.c.cartwri...@noaa.gov wrote: Hello All, I'm having trouble getting the json-plugin 0.32 to behave as I'd expected. The action is exposing a List of objects annotated as "@JSON(name="ite

Re: problems with struts and dojo

2009-03-27 Thread Andras Balogh
Hi, The problem is most probably that dojo.xhrGet is not available in the dojo version that comes with Struts 2.0.x ( dojo 0.4) You must make sure to use only dojo functions that are avail. in ver. 0.4. See here more details: http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/w

Re: executing inline scripts from ajax responses (dojo 0.4)

2009-03-30 Thread Andras Balogh
Hi, This is a little bit off-topic because it's related more to Dojo than Struts. But anyway: do you get back something in your "data" object in function load()? If you know that you are returning javascript do not send the tag (only the javascript)


Re: executing inline scripts from ajax responses (dojo 0.4)

2009-03-30 Thread Andras Balogh
Hi, You could try to use the ContentPane Widget and load the response into it however I did not try this so I'm not 100% sure if it will work. See here: http://dojotoolkit.org/book/dojo-book-0-4/part-4-more-widgets/advanced-contentpane-usage and notice the "executeScripts" property. BR, Andras

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread Andras Balogh
Hi John, I had the same problem with excludeProperties, what worked for me is to add the param to the interceptor-ref tag and NOT to the result: true .*Collection Best regards, Andras. john.c.cartwri...@noaa.gov wrote: Hello All, I'm trying to use jsonplugin 0.32 w/ struts 2.0.14

Re: Validating that two fields match?

2009-08-13 Thread Andras Balogh
Hi, I have created a validator called "SameValueValidator", this worked both client-side and server side, this was for struts2.0.x so I don't know how will work with the latest struts (and if it works with annotations). If You are interested here it is: SameValueValidator.java: ---

S2 problem with s:datetimepicker validation

2008-10-31 Thread Andras Balogh
Hi, I have encountered the following problem in Struts 2.0.11.2: I'm using the tag and I added a required validator on it. If the field is empty the client side validation is trying to call "addError" as expected but then a javascript alert shown: "do not validate:". This is happening in th

Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Andras Balogh
Hi, I think the easiest way would be to copy from struts2-core-xx.jar the validation.js based on the theme and put it in your source package folder . So example I took template/css_xhtml/validation.js from struts.jar and I modified the javascript function: function addError(e, errorText) { } H

Re: Tabbed panel performance

2008-11-18 Thread Andras Balogh
Hi, As I see you include different jspf in each tab, can you try to use the "href" attribute to load the content of each tab and see if there is a difference in the performance? See here about the "href" attribute: http://struts.apache.org/2.0.11.2/docs/tabbedpanel.html Best regards, Andras.

Re: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Andras Balogh
Hi, Only in this case is not working with the parameter "indice" or none of the parameters (in other actions) are set? Can you try to use Integer instead of int? For me it works with Integer. Best regards, Andras. - To unsubs

[S2] JSON plugin - Cyclic reference detected

2008-11-25 Thread Andras Balogh
Hi, I'm trying to return a list of Objects that are retrieved with Hibernate. In these Objects i have a lot of collections like ex: groupsCollection, bookmarksCollections etc. All of these are of type java.util.Collection. How can I tell in the excludeProperties to not to load these objects? I

Re: [S2] JSON plugin - Cyclic reference detected

2008-11-25 Thread Andras Balogh
Musachy Barroso wrote: Take a look at the docs: http://cwiki.apache.org/S2PLUGINS/json-plugin.html Hi, I have checked the docs of course before posting. Currently my config is like this: true .*Collection But the JSONWriter still goes and inspects a lot of Objects that I don't wa

Re: [S2] JSON plugin - Cyclic reference detected

2008-11-25 Thread Andras Balogh
Musachy Barroso wrote: In the result only. I just added some more debug messages to JSONWriter and it seems the excludeProperties is set only if is declared at 'interceptor-ref': true .*Collection If I declare it at 'result' than the excludeProperties will be NULL in JSONWriter.

Re: Struts2 2.0.11 problem with url and parameters

2008-11-26 Thread Andras Balogh
Hi, Can you set the log level to DEBUG to see what the interceptors say? Something like: log4j.category.com.opensymphony=DEBUG BR, Andras - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: struts-config.xml question

2008-11-28 Thread Andras Balogh
Hi, Probably the project uses also tiles and "appl-list.page" is a tiles definition. Look for an xml file that has "tiles" in his name. BR, Andras. [EMAIL PROTECTED] wrote: Hi to all, I´m new to struts and i have to reconfigure an existing struts application. I´m just looking in the stru

Re: How to append a string to a label name?

2008-12-08 Thread Andras Balogh
Hi, You need to add required="true" than Struts will add the "*" automatically. BR, Andras. taj uddin wrote: Hi, In my application, the textfield label name should be appended with "*". I tried to add the string (*) to my label name using labelSeparator attribute. In my eclipse it shows t

Re: Handling probel.

2008-12-09 Thread Andras Balogh
Hi Marc, I might be wrong if I misunderstood your question, as I understood you can run fine your app with Tomcat but not with Apache. You need to add a connector to Apache in order to forward all *.do requests to Tomcat, this can be done in many ways but probably the best is mod_jk: ht

Re: Handling probel.

2008-12-09 Thread Andras Balogh
I don't use CPanel but check on the web for CPanel servlets support: http://www.google.com/search?hl=en&q=cpanel+servlets&btnG=Search BR, Andras. Cappelletti Marc wrote: Hi Andras, Thanks for your answer, it seems that your answer matches what I've found on the web. But as far as I know, on

Re: initialise a form file

2008-12-11 Thread Andras Balogh
Hi, A HTML input of type file can't have a default value. This is a security issue. BR, Andras elyes sallem wrote: Hello, in a form, a define a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: [S2] JSON plugin - excluding properties

2008-12-17 Thread Andras Balogh
Hi, I have used the json-plugin also and as I understood it will read the excludeProperties from the interceptor-ref and not from the result: Example: true .*Collection I don't know if this is the case only when enableSMD is set to "true". BR, Andras. John Cartwright wrote: Hello All