Re: Struts 2: Does the Indexed List Example Work?

2011-05-03 Thread Joe
Dave Newton-6 wrote: > The above JSP still has parens instead of square brackets. I tried it both ways, parens last, so I only posted the one JSP. Chris Pratt: > If youvare trying to update an existing list make your Action implement > Preparable > and retrieve the existing list so you can re

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Eric Reed
When you try and convert null to a primitive type an exception will be thrown, however Struts has code to handle this so it just gives you a warning. Best solution is to default the value or make sure you supply a value for your hidden field and base your application logic on this value. Action

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Miguel
Which means: try changing your property name to something else; the tagId may already be in use. I also had a problem with a property name once. It might be useful to have a wiki page with names already in use in struts. Enviado a partir do meu HTC - Reply message - De: "Eric Reed" Da

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread jlmagc
Well, if there the field is empty, I understand that OGNL will try to match ““ to the field, so it will look for a setter that receives a String. Sent via BlackBerry from T-Mobile -Original Message- From: Justin Robbins Date: Tue, 3 May 2011 09:11:09 To: Struts Users Mailing List Reply-

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Dave Newton
Does it throw the same error if its an Integer instead of an int? Dave On May 3, 2011 9:11 AM, "Justin Robbins" wrote: > Hi Eric, > > You are pointing out the error? Here's the thing, and hopefully you > can set me straight here, I acknowledge there is no > setTagId([Ljava.lang.String;)]. After

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Justin Robbins
Hi Eric, You are pointing out the error? Here's the thing, and hopefully you can set me straight here, I acknowledge there is no setTagId([Ljava.lang.String;)]. After all, "tagId" is an integer in my POJO. Why would I have a method for it that accepts a String? I'm still getting up to speed on

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Eric Reed
Justin, Your error: > [java.lang.NoSuchMethodException: > org.robbins.flashcards.model.Tag.setTagId([Ljava.lang.String;)] <public void setTagId(int tagId) { <-- INT >this.tagId = tagId; >} Eric Reed NYS Education Department >>> Justin Robbins 5/3/2011 8:32 AM >

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Justin Robbins
Since the stack trace is at Warn level and doesn't actually seem to be breaking my code then maybe I'm best off just adjusting the log4j level higher for the Ognl related packages? # Struts OgnlUtil issues unimportant warnings log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error log4j.logger.c

Re: Integrating Struts 1.1 with JSF 2.0 Facelets

2011-05-03 Thread Eric Lentz
> By clicking the link will display respective page that was developed with JSF Facelets technology. > I am facing problem in integrating struts with JSF. > > Could anyone let me know step by step procedure for integrating Struts 1.1 > with JSF 2.0? You don't say what your problem is. As far as

Integrating Struts 1.1 with JSF 2.0 Facelets

2011-05-03 Thread praveen kumar
Hi, Right now, I have struts application that is running fine. Now I want to introduce a new link in the same application. By clicking the link will display respective page that was developed with JSF Facelets technology. I am facing problem in integrating struts with JSF. Could anyone let me

Struts 2 convention-plugin / rest-plugin

2011-05-03 Thread Stefan Magnus Landrø
Hi there, We're using the Struts 2 convention-plugin in conjunction with the rest-plugin, and are using JSON as the default content-type >From time to time, we get the following in our logs: WARN net.sf.json.JSONObject - Property 'container' has no read method. SKIPPED However, the only part o