Re: submit of a loaded form via ajax won't work in IE

2007-07-07 Thread Jeromy Evans
In IE, the form that does the ajax submit can't be contained in the target div, unless you set the attribute showLoadingText="false". There's an issue in JIRA about this and it's already been resolved in a future S2 release. Basically in IE when the loading text is inserted into the DOM it ov

Re: issues with tiles with struts 2

2007-07-07 Thread Chris Pratt
Also, make sure you define the tiles result-type in your struts.xml. (*Chris*) On 7/7/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote: Hello shahab. make sure you have all the tiles libraries: struts2-tiles-plugin-2.0.8.jar ties-api-2.0.3.jar tiles-core-2.0.3.jar tiles-jsp-2.0.3.jar

Re: Params on Actions in Struts.xml

2007-07-07 Thread Chris Pratt
Awesome, thanks for the pointer. (*Chris*) On 7/7/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: Hi, http://cwiki.apache.org/WW/how-do-we-access-static-parameters-from-an-action.html Thanks, Nuwan - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: "Struts Users Mai

Re: How do I make a checkbox initially checked?

2007-07-07 Thread Nuwan Chandrasoma
Hi, If you want the check box to be checked initially you can use the tag like this: are you calling the prepare method to initialized you backing object?, according to my understanding the backing object will not be created and initiallized if you havent done in the prepare method, the fo

submit of a loaded form via ajax won't work in IE

2007-07-07 Thread beroba
Hi, i have a tag and i can load its content asynchronously via ajax. This content is a simple form that i would submit after filling its fields. Submitting works in FF but not in IE. I achieve error messages from my validator that i should fill the required fields... Here is the code how the fo

How do I make a checkbox initially checked?

2007-07-07 Thread Fred Toth
Hi again, I'm working on a form where a particular checkbox should be initially checked when the form first comes up. None of the options in s:checkbox seem to support this. I tried to have my backing object initialized with the particular Boolean set to true, but struts doesn't seem to actual

Re: How to control the display of Struts2 tags like s:textfield

2007-07-07 Thread Laurie Harper
Hubert Hers wrote: Hi, Could anyone tell me how to use CSS styles in Struts2 for controlling the display of labels, input elements, buttons etc. (s:textfield, s:button, )? I can control the display of the key attribute using cssStyle or cssClass, but did not find a way to do the same with th

Re: issues with tiles with struts 2

2007-07-07 Thread Roberto Nunnari
Hello shahab. make sure you have all the tiles libraries: struts2-tiles-plugin-2.0.8.jar ties-api-2.0.3.jar tiles-core-2.0.3.jar tiles-jsp-2.0.3.jar then make sure your action's package extends tiles-default hope that helps. -- Robi shahab wrote: Hi: I need some help with using tiles 2 wit

Re: Can freemarker use OGNL null value handling?

2007-07-07 Thread Fred Toth
Thanks. That was it! I must have been through the doc a dozen times, but I missed the '$' vs '%' issue. Thanks again. Fred Dale Newfield wrote: Fred Toth wrote: To be more specific: In jsp, you can do this: This works even when user doesn't exist because of the OGNL null value handling.

issues with tiles with struts 2

2007-07-07 Thread shahab
Hi: I need some help with using tiles 2 with Struts 2. I have configured tiles servlet in web.xml as follows - (i am using Spring listener) tiles org.apache.tiles.web.startup.TilesServlet org.apache.tiles.impl.BasicTilesContaine

Re: Can freemarker use OGNL null value handling?

2007-07-07 Thread Dale Newfield
Fred Toth wrote: To be more specific: In jsp, you can do this: This works even when user doesn't exist because of the OGNL null value handling. If you use ${}, you're not using ognl, but rather el. Try replacing your $'s with %'s. -Dale ---

Re: Can freemarker use OGNL null value handling?

2007-07-07 Thread Musachy Barroso
If I'm not wrong (big if there :) ), that ${user.firstName} is evaluated as a FreeMarker expression (not a JSTL one), and FreeMarker is sensitive about nulls: http://freemarker.sourceforge.net/docs/app_faq.html#faq_picky_about_missing_vars either use %{user.firstName}, or FreeMarker null operato

Can freemarker use OGNL null value handling?

2007-07-07 Thread Fred Toth
Hi, I'm a big fan of struts2 and freemarker, but I'm just now getting around to using the struts2 UI tags in freemarker. It appears that "automatic null value handling" feature of struts2 is not available from freemarker? To be more specific: In jsp, you can do this: This works even when

Re: Params on Actions in Struts.xml

2007-07-07 Thread Nuwan Chandrasoma
Hi, http://cwiki.apache.org/WW/how-do-we-access-static-parameters-from-an-action.html Thanks, Nuwan - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, July 07, 2007 6:49 AM Subject: Params on Actions in Struts.xml After lo