Re: Struts1 in IDE but S2
I finally went for MyEclipse for S2 because I didn't find anything else, everything else what I found was frustration in form of Eclipse plugins xD As Dave Newton said, I guess that S2 is not that popular, We have to wait for it :( 2011/10/28 Dave Newton > MyEclipse and IntelliJ both support S2, and I've seen at least one > other Eclipse S2 plugin. S2 just isn't that popular. > > Dave > > On Fri, Oct 28, 2011 at 6:03 PM, Frans Thamura wrote: > > hi all > > > > any reason, why S2 is not default feature, but S1 in almost IDE popular > > > > i am in middle of helping IBM partner to develop team technical, and > > most of them still using Struts1.. > > > > but there is not S2 in their Websphere Studio, i found also in JDeveloepr > > > > is JSF a conspiration project that kick S1 ? > > -- > > Frans Thamura (曽志胜) > > Chief of Advisory > > Meruvian. > > Integrated Hypermedia Java Solution Provider. > > > > Mobile: +628557888699 > > Blog: http://blogs.mervpolis.com/roller/flatburger (id) > > > > FB: http://www.facebook.com/meruvian > > TW: http://www.twitter.com/meruvian / @meruvian > > Website: http://www.meruvian.org > > > > "We grow because we share the same belief." > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Manolo Pájaro Santander Ingeniero de Sistemas IX Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: ajax validation with css_xhtml theme
Guess so :/ any help though? -- Manolo Pájaro Santander Ingeniero de Sistemas IX Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: ajax validation with css_xhtml theme
Thank you for answer Johannes, I have no errors but warnings in the JS Console, it tells me sth about smoothness jquery theme (I setted it once but I'm not using it anymore, I have looking thorugh all my JSP and there are no theme="smoothness" or jquerytheme="smoothness") It throws me several repeated warnings in this file Advertencia: http://localhost:8080/SGE2/struts/themes/smoothness/jquery-ui.css For example: Property 'zoom' unknown, error interpreting a value for 'filter', Property 'border-radius' unknown, property 'border-bottom-right-radius' unknown and property 'border-bottom-left-radius' unknown. All are Rejected Declaration. (Sorry y dont copy paste but my warnings are in spanish) 2011/10/18 Johannes Geppert > Is there any Error Message in the JavaScript Console? > > Johannes > > - > web: http://www.jgeppert.com > twitter: http://twitter.com/jogep > -- > View this message in context: > http://struts.1045723.n5.nabble.com/ajax-validation-with-css-xhtml-theme-tp4905398p4913082.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Manolo Pájaro Santander Ingeniero de Sistemas IX Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
ajax validation with css_xhtml theme
Hello list! I have an issue using ajax validation with a form that uses the css_xhtml theme. Simply is not working! I've checked the interceptor and the extra js files that you have to add and it is all fine, when I change to xhtml theme it works! but i dont know what is happening with the css_xhtml. even wierder, it used to work, i don't know bu suddenly it stoped working. I'm using Struts 2.2.1, Struts jquery plugin 3.1.0, and the extra js files im using are the ones in the jar: are in /struts/utils.js and /struts/css_xhtml/validation.js Some extra info: I'm working in a various-steps-form, i mean, with the next-->next-->finish button, so, i'm using the jquery plugin submit button for the submmit. I hope you guys can help me. Greetings -- Manolo Pájaro Santander Ingeniero de Sistemas IX Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: Struts 2.2.3 Date type convesrion issue
Hello Shrinivas, the problem you're having is that your textfield is not returning a date object, is returning a String, so it is looking for the setBirthday(String) as it says. I had the same problem and, at the end of the day, i had to do this: SimpleDateFormat format = new SimpleDateFormat("-MM-dd"); //change ot with your patron try{ myDate = format.parse(birthdayFromTextbox); }catch (ParseException e){} hope it helps, I didn't find any other way to go 2011/8/18 Shrinivas Parashar > Hi, > I am getting following error if my model has a field of type > java.util.Date. I am using struts 2.2.3. I have appropriate getter and > setter method for birthday. > JSP snippet: > > > java.lang.NoSuchMethodException: setBirthday([Ljava.lang.String;) >at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1226) >at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1474) >at > ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85) >at > ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162) >at > com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27) >at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245) >at ognl.ASTProperty.setValueBody(ASTProperty.java:127) >at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) >at ognl.SimpleNode.setValue(SimpleNode.java:301) >at ognl.ASTChain.setValueBody(ASTChain.java:227) >at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) >at ognl.SimpleNode.setValue(SimpleNode.java:301) >at ognl.Ognl.setValue(Ognl.java:737) > > Regards, > Shrinivas > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Manolo Pájaro Santander Ingeniero de Sistemas IX Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Validators issue
Hello list! I'm trying to use AJAX validators in my form, I have a component in my JSP like: where %{zones} is a list of objects Sge2Param, which detail attibute returns the name of each object. When I'm using Validators in all textfield fields, when it does the validation return an "Invalid field value for field "alumno.sge2ParamByZone"" message for my select component even when I'm not validating it! I think that maybe has relation the fact that the select is returning an object different than a string or another common type of objects. Any help? Any suggestions? Thank you! -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: Problem with , FreeMarker template Error
Hello guys, I'm sorry i didn's post any code of my problem, I already solved it, the name attribute was missing in my example. I went with key attribute and is already working, thanks anyway! -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Problem with , FreeMarker template Error
Hello list!! I'm having a problema with this tag, I don't know what to do :( I hope you guys could help me. As here says http://struts.apache.org/2.2.3/docs/checkboxlist.html I can use a Map object in the list attribute of a checkboxlist, When i go for it I got this FreeMarker template error: FreeMarker template error! Expression parameters.name is undefined on line 38, column 32 in template/simple/checkboxlist.ftl. The problematic instruction: -- ==> ${parameters.name?html} [on line 38, column 30 in template/simple/checkboxlist.ftl] in user-directive s.iterator [on line 25, column 5 in template/simple/checkboxlist.ftl] in include "/${parameters.templateDir}/simple/checkboxlist.ftl" [on line 25, column 1 in template/xhtml/checkboxlist.ftl] -- Java backtrace for programmers: -- freemarker.core.InvalidReferenceException: Expression parameters.name is undefined on line 38, column 32 in template/simple/checkboxlist.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.Expression.getStringValue(Expression.java:118) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.Environment.visit(Environment.java:299) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.Environment.include(Environment.java:1483) at freemarker.core.Include.accept(Include.java:169) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.Environment.process(Environment.java:190) at freemarker.template.Template.process(Template.java:237) at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:157) at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:559) at org.apache.struts2.components.UIBean.end(UIBean.java:513) at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42) at org.apache.jsp.jsp.GuardarAlumnoForm_jsp._jspx_met Even weirder, when I use a List object (because, i don't know, maybe List would work), I also get the same error! I don't know if this is a bug or I am doing something wrong. In the action class I define a Map objected implemented as HashMap, and List as ArrayList, I dont' even know what freemarker is :( Thank you for your help -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: excludeMethods parameter question
Thank u for everything! I will keep studying! :D -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: excludeMethods parameter question
I see mm so, it only acts on the action which method attribute is diferent from in the list, that's it? :D 2011/7/25 Chris Pratt > Not exactly. It would not execute for actions whose method name is input, > back or cancel. It's on the action side, not the result side. > (*Chris*) > > -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: excludeMethods parameter question
Thanks Maurizio, let me see if i got it straight. You mean that, for example: input,back,cancel won't be executed by results whose name is input, back or cancel? 2011/7/25 Maurizio Cucchiara > There are some interceptors, like validator one, which are not triggered in > case of the name of the invoked method matches one of the list element > (there is no reason to validate an input action, you don't yet obtain the > user input, so you have anything to validate). > Hope this help. > > Maurizio Cucchiara > > -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
excludeMethods parameter question
Hello list! I'm making a research about Struts2 and there are several things that I don't understand (haha), I have studied really hard and I think I'm in the righ way now, but there's a thing that i don't understand about this examples i found about interceptors, i'm talking about the parameter excludeMethods. I have seen that most of the times it has "input,back,cancel" but I don't really know what does it mean. Can u help me guys please? -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: Doubt on Struts 2 Architechture
was looking for a good interceptors reference, thank you Mitch for the book -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: JUnit in Struts
Thanks Baubak, I will give it a try! 2011/7/18 Baubak Gandomi > Hello Uday, > > Why don't you check : > http://struts.apache.org/2.x/docs/testing-actions.html > > It is a bit short, but it worked just fine for me. > > Best regards, > > Baubak > > -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026
Re: JUnit in Struts
Hello, any tool for struts 2.2.1? 2011/7/12 Udhay > Hi, > > Please help me how to perform JUnit testing in Struts 1.1 applications. > > Kindly share me any links and other information that will help me a lot. > > Thanks in advance. > > GoodWill, > Udhay > -- Manolo Pájaro Santander Ingeniero de Sistemas VIII Semestre (Actual) <> CUSOL-UAC Linux Registered User # 522026