Re: POJO's collection not populated when submitting form

2011-06-27 Thread Justin Robbins
at 3:53 PM, Justin Robbins wrote: > Hi folks, > > I have a POJO which has a field of type java.util.Set that is > collection of domain objects. When I submit a form to my Action, all > the POJO fields are populated with values from the form except the > field which is the collect

Re: POJO's collection not populated when submitting form

2011-06-27 Thread Justin Robbins
://stackoverflow.com/questions/6443498/pojos-collection-not-populated-when-submitting-form Many thanks for your input. On Wed, Jun 22, 2011 at 3:53 PM, Justin Robbins wrote: > Hi folks, > > I have a POJO which has a field of type java.util.Set that is > collection of domain objects. When I

POJO's collection not populated when submitting form

2011-06-22 Thread Justin Robbins
gt;From the POJO: private Set links = new HashSet(0); public Set getLinks() { return this.links; } public void setLinks(Set links) { this.links = links; } -- Regards, Justin Robbins - To unsubscribe, e-mail

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

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

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-03 Thread Justin Robbins
Util=error log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=error On Mon, May 2, 2011 at 9:27 PM, Justin Robbins wrote: > Nope, my bad.  After a full refactor I get the same error.  Below are > snippets of the new code and most recently generated error. > > Stack Trace excerpt: > 2011-

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Justin Robbins
public int getTagId() { return this.tagId; } public void setTagId(int tagId) { this.tagId = tagId; } On Mon, May 2, 2011 at 8:53 PM, Justin Robbins wrote: > I tested it just now and I do NOT get the error when I refactor the > code from the POJO on down to the JSP to use &q

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Justin Robbins
ot;? > > d. > > On Mon, May 2, 2011 at 8:32 PM, Justin Robbins > wrote: >> Anyone have any ideas on this one?  I'd be most grateful for some advice. >> >> Someone suggested I use a newer version of the ognl jar.  I was using >> "ognl-3.0.jar&qu

Re: help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Justin Robbins
t I'm still receiving the same error. Any help is greatly appreciated. On Mon, May 2, 2011 at 11:26 AM, Justin Robbins wrote: > Hi folks, > > I have a working Action and JSP form that I'm using for creating new > entities in my very basic Struts 2.2.1.1 app.  I'm trying t

help with MethodFailedException in ognl.OgnlRuntime.callAppropriateMethod

2011-05-02 Thread Justin Robbins
Hi folks, I have a working Action and JSP form that I'm using for creating new entities in my very basic Struts 2.2.1.1 app. I'm trying to modify the app to re-use the JSP form with editing of entities. I added a hidden "ID" tag and now I'm getting errors when I submit the form. Can someone plea

Re: NPE in StrutsTestCase after enabling Tiles

2011-04-29 Thread Justin Robbins
Ah, ok. So the SourceForge one is not the one I'm using then. I'm extending org.apache.struts2.StrutsTestCase in the test I'm having problems with. Thanks for your input! On Fri, Apr 29, 2011 at 1:47 PM, Dave Newton wrote: > On Fri, Apr 29, 2011 at 1:35 PM, Justin Robbin

NPE in StrutsTestCase after enabling Tiles

2011-04-29 Thread Justin Robbins
There's a tutorial page for using it with Struts 2 on struts.apache.org but the SourceForge page (http://strutstestcase.sourceforge.net/) for it hasn't been updated since Struts 1.3 Also, what's the difference between StrutsTestCase and MockStrutsTestCase -- Regards, Justin Ro