Re: Wicketstuff editable grid - 7.1.0

2016-02-26 Thread Mihir Chhaya
.runWorker(ThreadPoolExecutor.java:1145)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > > >> >> >  at java.lang.Thread.run(Thread.java:744)
> > > >> >> >
> > > >> >> > Complete stack:
> > > >> >> >
> > > >> >> > org.apache.wicket.WicketRuntimeException: Method onRequest of
> > > >> >> > interface org.apache.wicket.behavior.IBehaviorListener targeted
> > at
> > > >> >> >
> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1@47743d65
> > > on
> > > >> >> > component [EditableGridSubmitLink [Component id = save]] threw
> an
> > > >> >> > exception
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> > > >> >> >
> > > >> >> > java.lang.reflect.InvocationTargetException
> > > >> >> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > > >> >> >  at java.lang.reflect.Method.invoke(Method.java:606)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
> >
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
> > > >> >> >  at
> > > >> >> >
> > > >> >>
> > > >>
> > >
&

Re: Wicketstuff editable grid - 7.1.0

2016-02-24 Thread Martin Grigorov
pache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> > >> >> >
> > >> >> > java.lang.reflect.InvocationTargetException
> > >> >> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > >> >> >  at java.lang.reflect.Method.invoke(Method.java:606)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> > >> >> >  at
> > >> >> >
> > >> >>
> > >>
> >
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> > >> >> >
> > >> >> >
> > >> >> > On Fri, Feb 19, 2016 at 12:15 PM, Mihir Chhaya <
> > >> mihir.chh...@gmail.com>
> > >> >> > wrote:
> > >> >> >
> > >> >> > > Just realized that last two lines could be confusing: the
> > >> >> decisionCode is
> > >> >> > > the property of class PcaCodes in pcapanel, but showing up for
> > >> >> > exccodepanel
> > >> >> > > row item.
> > >> >> > >
> > >> >> > > On Fri, Feb 19, 2016 at 12:06 PM, Mihir Chhaya <
> > >> >> mihir.chh...@gmail.com>
> > >> >> > > wrote:
> > >> >> > >
> > >> >> > >> My mistake about the inmethod grid dependency. I don't know
> why
> > I
> &

Re: Wicketstuff editable grid - 7.1.0

2016-02-24 Thread Mihir Chhaya
t.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
> >> >> >  at
> >> >> >
> >> >>
> >>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
> >> >> >  at
> >> >> >
> >> >>
> >>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
> >> >> >  at
> >> >> >
> >> >>
> >>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> >> >> >  at
> >> >> >
> >> >>
> >>
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> >> >> >  at
> >> >> >
> >> >>
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> >> >> >  at
> >> >> >
> >> >>
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> >> >> >  at
> >> >> >
> >> >>
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> >> >> >
> >> >> >
> >> >> > On Fri, Feb 19, 2016 at 12:15 PM, Mihir Chhaya <
> >> mihir.chh...@gmail.com>
> >> >> > wrote:
> >> >> >
> >> >> > > Just realized that last two lines could be confusing: the
> >> >> decisionCode is
> >> >> > > the property of class PcaCodes in pcapanel, but showing up for
> >> >> > exccodepanel
> >> >> > > row item.
> >> >> > >
> >> >> > > On Fri, Feb 19, 2016 at 12:06 PM, Mihir Chhaya <
> >> >> mihir.chh...@gmail.com>
> >> >> > > wrote:
> >> >> > >
> >> >> > >> My mistake about the inmethod grid dependency. I don't know why
> I
> >> saw
> >> >> > >> compilation error in editable grid class when removed inmethod
> >> grid
> >> >> jar
> >> >> > >> from classpath.
> >> >> > >>
> >> >> > >> For debugging the respond method as your suggestion, I do see
> >> correct
> >> >> > >> class types for each rowItem (as attachment). But it fails with
> >> >> > following
> >> >> > >> error:
> >> >> > >>
> >> >> > >> Last cause: No get method defined for class: class
> >> >> > >> packagename.ExceptionalDocCode expression: decisionCode
> >> >> > >> WicketMessage: Exception in rendering component:
> >> >> > >> [EditableTextFieldCellPanel [Component id = cell]]
> >> >> > >>
> >> >> > >>
> >> >> > >> On Thu, Feb 18, 2016 at 5:06 PM, Martin Grigorov <
> >> >> mgrigo...@apache.org>
> >> >> > >> wrote:
> >> >> > >>
> >> >> > >>> On Thu, Feb 18, 2016 at 10:53 PM, Mihir Chhaya <
> >> >> mihir.chh...@gmail.com
> >> >> > >
> >> >> > >>> wrote:
> >> >> > >>>
> >> >> > >>> > Thanks, Martin.
> >> >> > >>> >
> >> >> > >>> > By writing dependency on wicket in-method grid I meant
> editable
> >> >> grid
> >> >> > >>> > inherently referring inmethod grid.
> >> >> > >>> >
> >> >> > >>>
> >> >> > >>>
> >> >> > >>>
> >> >> >
> >> >>
> >>
> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/editable-grid/pom.xml
> >> >> > >>>
> >> >> > >>>
> >> >> >
> >> >>
> >>
> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/pom.xml
> >> >> > >>> The only dependency is wicket-extensions.
> >> >> > >>> I am not sure what you mean by "inherently referring".
> >> >> > >>>
> >> >> > >>>
> >> >> > >>> >
> >> >> > >>> > I did check the Ajax url earlier and following are the values
> >> in
> >> >> > >>> rendered
> >> >> > >>> > html page for the panel.
> >> >> > >>> >
> >> >> > >>> >
> >> >> > >>> >
> >> >> > >>>
> >> >> >
> >> >>
> >>
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-pcapanel-pcacodegridForm-pcaDataTable-form-dataTable-body-rows-16-cells-6-cell-edit","c":"edit104","e":"click"});;
> >> >> > >>> >
> >> >> > >>> >
> >> >> > >>> >
> >> >> > >>>
> >> >> >
> >> >>
> >>
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-exccodepanel-excdoccodegridForm-excDataTable-form-dataTable-body-rows-10-cells-4-cell-edit","c":"edit113","e":"click"});;
> >> >> > >>> >
> >> >> > >>>
> >> >> > >>> Assuming that 'pcapanel' is 'aPanel' and 'exccodepanel' is
> >> 'bPanel'
> >> >> > >>> everything looks OK.
> >> >> > >>> Clicking on any of those cells should correctly find the
> >> respective
> >> >> > grid
> >> >> > >>> cell and execute its Ajax behavior.
> >> >> > >>> Put a breakpoint in AjaxEventBehavior#respond() and see why it
> >> finds
> >> >> > >>> ClassB.
> >> >> > >>>
> >> >> > >>>
> >> >> > >>> >
> >> >> > >>> > Thanks,
> >> >> > >>> > -Mihir.
> >> >> > >>> >
> >> >> > >>> > On Thu, Feb 18, 2016 at 3:18 PM, Martin Grigorov <
> >> >> > mgrigo...@apache.org
> >> >> > >>> >
> >> >> > >>> > wrote:
> >> >> > >>> >
> >> >> > >>> > > Hi,
> >> >> > >>> > >
> >> >> > >>> > > On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <
> >> >> > >>> mihir.chh...@gmail.com>
> >> >> > >>> > > wrote:
> >> >> > >>> > >
> >> >> > >>> > > > Hello,
> >> >> > >>> > > >
> >> >> > >>> > > > My apologies if this is not the right place to post
> >> >> wicketstuff
> >> >> > >>> related
> >> >> > >>> > > > issues. If so, then please advice me with right
> forum/link.
> >> >> > >>> > > >
> >> >> > >>> > >
> >> >> > >>> > > This is the right forum!
> >> >> > >>> > >
> >> >> > >>> > >
> >> >> > >>> > > >
> >> >> > >>> > > > I am using Wicketstuff-editable-grid-7.1.0 (with
> >> dependency on
> >> >> > >>> > > > wicketstuff-inmethod-grid-7.1.0).
> >> >> > >>> > > >
> >> >> > >>> > >
> >> >> > >>> > > Why InMethod-Grid is needed? Or you are migrating from
> >> Inmethod
> >> >> to
> >> >> > >>> > Editable
> >> >> > >>> > > ?
> >> >> > >>> > >
> >> >> > >>> > >
> >> >> > >>> > > >
> >> >> > >>> > > > *Problem:*
> >> >> > >>> > > > When two editable grids from two separate child panels
> are
> >> >> > rendered
> >> >> > >>> > into
> >> >> > >>> > > > single container (parent panel), then clicking 'Edit'
> link
> >> in
> >> >> the
> >> >> > >>> row
> >> >> > >>> > for
> >> >> > >>> > > > ClassA related editable grid throws 'No get method
> defined
> >> for
> >> >> > the
> >> >> > >>> > class'
> >> >> > >>> > > > error for ClassB property which is related to another
> >> editable
> >> >> > >>> grid.
> >> >> > >>> > > >
> >> >> > >>> > >
> >> >> > >>> > > Check what is the url for the Ajax call that is made.
> >> >> > >>> > > This should tell you why it finds ClassB instead of ClassA.
> >> >> > >>> > >
> >> >> > >>> > >
> >> >> > >>> > > >
> >> >> > >>> > > > *Requirement:*
> >> >> > >>> > > > I have a page with 4 different tabs. On one of the tabs,
> I
> >> >> want
> >> >> > to
> >> >> > >>> use
> >> >> > >>> > a
> >> >> > >>> > > > panel with two editable grids for two different static
> >> dataset
> >> >> > >>> Add/Edit
> >> >> > >>> > > > (One grid for tableA, another for tableB).
> >> >> > >>> > > >
> >> >> > >>> > > > *Efforts:*
> >> >> > >>> > > > I have created two separate panel classes as below - each
> >> with
> >> >> > >>> it's own
> >> >> > >>> > > > form and editable grid with it's own editable data
> provider
> >> >> with
> >> >> > >>> > > respective
> >> >> > >>> > > > array list of different types. The columns supplied to
> >> >> > EditableGrid
> >> >> > >>> > class
> >> >> > >>> > > > contains
> >> >> > >>> > > > EditableTextFieldPropertyColumn<ClassA, String> and
> >> <ClassB,
> >> >> > >>> String>
> >> >> > >>> > > > respectively with own properties. Please note that I have
> >> used
> >> >> > >>> distinct
> >> >> > >>> > > > markup Ids for each panel and grid components to avoid
> any
> >> >> > >>> duplication;
> >> >> > >>> > > > with setting output markup id to true.
> >> >> > >>> > > >
> >> >> > >>> > > > PanelA extends Panel{
> >> >> > >>> > > >
> >> >> > >>> > > > //Constructor
> >> >> > >>> > > > // formA with editableGridA with
> >> >> > editableDataProviderForClassA
> >> >> > >>> > > > }
> >> >> > >>> > > >
> >> >> > >>> > > > PanelB extends Panel{
> >> >> > >>> > > >
> >> >> > >>> > > > //Constructor
> >> >> > >>> > > > //formB with editableGridB with
> >> >> editableDataProviderForClassB
> >> >> > >>> using
> >> >> > >>> > > > }
> >> >> > >>> > > >
> >> >> > >>> > > > Those two panels are added into parent panel as below:
> >> >> > >>> > > >
> >> >> > >>> > > > TabbedPanel extends Panel{
> >> >> > >>> > > >
> >> >> > >>> > > >  //Constructor
> >> >> > >>> > > >  // Panel panelA = new PanelA("aPanel");
> >> >> > >>> > > >  // Panel panelB = new PanelB("bPanel");
> >> >> > >>> > > >  // add(panelA); add(panelB);
> >> >> > >>> > > > }
> >> >> > >>> > > >
> >> >> > >>> > > > As I have mentioned in the problem above; clicking on
> edit
> >> >> link
> >> >> > for
> >> >> > >>> > > classA
> >> >> > >>> > > > related grid is throwing error for classB property, which
> >> is
> >> >> > >>> associated
> >> >> > >>> > > > with different editable grid.
> >> >> > >>> > > >
> >> >> > >>> > > > Has anybody experienced similar issue? Any
> >> help/suggestions?
> >> >> > >>> > > >
> >> >> > >>> > >
> >> >> > >>> > > Everything looks OK.
> >> >> > >>> > > Check whether the url for the Ajax call after clicking on
> the
> >> >> cell
> >> >> > >>> > contains
> >> >> > >>> > > "aPanel" or "bPanel".
> >> >> > >>> > >
> >> >> > >>> > >
> >> >> > >>> > > >
> >> >> > >>> > > > Thanks,
> >> >> > >>> > > > -Mihir.
> >> >> > >>> > > >
> >> >> > >>> > >
> >> >> > >>> >
> >> >> > >>>
> >> >> > >>
> >> >> > >>
> >> >> > >
> >> >> >
> >> >>
> >> >
> >> >
> >>
> >
> >
>


Re: Wicketstuff editable grid - 7.1.0

2016-02-24 Thread Martin Grigorov
r targeted at
>> >> > org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1@47743d65 on
>> >> > component [EditableGridSubmitLink [Component id = save]] threw an
>> >> > exception
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
>> >> >
>> >> > java.lang.reflect.InvocationTargetException
>> >> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> >  at
>> >> >
>> >>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> >> >  at java.lang.reflect.Method.invoke(Method.java:606)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
>> >> >  at
>> >> >
>> >>
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
>> >> >
>> >> >
>> >> > On Fri, Feb 19, 2016 at 12:15 PM, Mihir Chhaya <
>> mihir.chh...@gmail.com>
>> >> > wrote:
>> >> >
>> >> > > Just realized that last two lines could be confusing: the
>> >> decisionCode is
>> >> > > the property of class PcaCodes in pcapanel, but showing up for
>> >> > exccodepanel
>> >> > > row item.
>> >> > >
>> >> > > On Fri, Feb 19, 2016 at 12:06 PM, Mihir Chhaya <
>> >> mihir.chh...@gmail.com>
>> >> > > wrote:
>> >> > >
>> >> > >> My mistake about the inmethod grid dependency. I don't know why I
>> saw
>> >> > >> compilation error i

Re: Wicketstuff editable grid - 7.1.0

2016-02-24 Thread Martin Grigorov
stCycle.processRequestAndDetach(RequestCycle.java:293)
> >> >  at
> >> >
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> >> >
> >> > java.lang.reflect.InvocationTargetException
> >> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> >  at
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >> >  at java.lang.reflect.Method.invoke(Method.java:606)
> >> >  at
> >> >
> >>
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> >> >  at
> >> >
> >>
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
> >> >  at
> >> >
> >>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
> >> >  at
> >> >
> >>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
> >> >  at
> >> >
> >>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
> >> >  at
> >> >
> >>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> >> >  at
> >> >
> >>
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> >> >  at
> >> >
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> >> >  at
> >> >
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> >> >  at
> >> >
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> >> >
> >> >
> >> > On Fri, Feb 19, 2016 at 12:15 PM, Mihir Chhaya <
> mihir.chh...@gmail.com>
> >> > wrote:
> >> >
> >> > > Just realized that last two lines could be confusing: the
> >> decisionCode is
> >> > > the property of class PcaCodes in pcapanel, but showing up for
> >> > exccodepanel
> >> > > row item.
> >> > >
> >> > > On Fri, Feb 19, 2016 at 12:06 PM, Mihir Chhaya <
> >> mihir.chh...@gmail.com>
> >> > > wrote:
> >> > >
> >> > >> My mistake about the inmethod grid dependency. I don't know why I
> saw
> >> > >> compilation error in editable grid class when removed inmethod grid
> >> jar
> >> > >> from classpath.
> >> > >>
> >> > >> For debugging the respond method as your suggestion, I do see
> correct
> >> > >> class types for each rowItem (as attachment). But it fails with
> >> > following
> >> > >> error:
> >> > >>
> >> > >> Last cause: No get method defined for class: class
> >> > >> packagename.ExceptionalDocCode expression: decisionCode
> >> > >> WicketMessage: Exception in rendering component:
> >> > >> [EditableTextFieldCellPanel [Component id = cell]]
> >> > >>
> >> > >>
> >> > >> On Thu, Feb 18, 2016 at 5:06 PM, Martin Grigorov <
> >> mgrigo...@apache.org>
> >> > >> wrote:
> >> > >>
> >> > >>> On Thu, Feb 18, 2016 at 10:53 PM, Mihir Chhaya <
> >> mihir.chh...@gmail.com
> >> > >
> >> > >>> wrote:
> >> > >>>
> >> > >>> > Thanks, Martin.
> >> > >>> >
> >> > >>> > By writing dependency on wicket in-method grid I meant editable
> >> grid
> >> > >>> > inherently referring inmethod grid.
> >> > >>> >
> >> > >>>
> >> > >>>
> >> > >>>
> >> >
> >>
> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/editable-grid/pom.xml
> >> > >>>
> >> > >>>
> >> >
> >>
> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/pom.xml
> >> > >>> The only dependency is wicket-extension

Re: Wicketstuff editable grid - 7.1.0

2016-02-24 Thread Mihir Chhaya
gt; >  at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
>> >  at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
>> >  at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
>> >  at
>> >
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
>> >
>> >
>> > On Fri, Feb 19, 2016 at 12:15 PM, Mihir Chhaya <mihir.chh...@gmail.com>
>> > wrote:
>> >
>> > > Just realized that last two lines could be confusing: the
>> decisionCode is
>> > > the property of class PcaCodes in pcapanel, but showing up for
>> > exccodepanel
>> > > row item.
>> > >
>> > > On Fri, Feb 19, 2016 at 12:06 PM, Mihir Chhaya <
>> mihir.chh...@gmail.com>
>> > > wrote:
>> > >
>> > >> My mistake about the inmethod grid dependency. I don't know why I saw
>> > >> compilation error in editable grid class when removed inmethod grid
>> jar
>> > >> from classpath.
>> > >>
>> > >> For debugging the respond method as your suggestion, I do see correct
>> > >> class types for each rowItem (as attachment). But it fails with
>> > following
>> > >> error:
>> > >>
>> > >> Last cause: No get method defined for class: class
>> > >> packagename.ExceptionalDocCode expression: decisionCode
>> > >> WicketMessage: Exception in rendering component:
>> > >> [EditableTextFieldCellPanel [Component id = cell]]
>> > >>
>> > >>
>> > >> On Thu, Feb 18, 2016 at 5:06 PM, Martin Grigorov <
>> mgrigo...@apache.org>
>> > >> wrote:
>> > >>
>> > >>> On Thu, Feb 18, 2016 at 10:53 PM, Mihir Chhaya <
>> mihir.chh...@gmail.com
>> > >
>> > >>> wrote:
>> > >>>
>> > >>> > Thanks, Martin.
>> > >>> >
>> > >>> > By writing dependency on wicket in-method grid I meant editable
>> grid
>> > >>> > inherently referring inmethod grid.
>> > >>> >
>> > >>>
>> > >>>
>> > >>>
>> >
>> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/editable-grid/pom.xml
>> > >>>
>> > >>>
>> >
>> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/pom.xml
>> > >>> The only dependency is wicket-extensions.
>> > >>> I am not sure what you mean by "inherently referring".
>> > >>>
>> > >>>
>> > >>> >
>> > >>> > I did check the Ajax url earlier and following are the values in
>> > >>> rendered
>> > >>> > html page for the panel.
>> > >>> >
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-pcapanel-pcacodegridForm-pcaDataTable-form-dataTable-body-rows-16-cells-6-cell-edit","c":"edit104","e":"click"});;
>> > >>> >
>> > >>> >
>> > >>> >
>> > >>>
>> >
>> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-exccodepanel-excdoccodegridForm-excDataTable-form-dataTable-body-rows-10-cells-4-cell-edit","c":"edit113","e":"click"});;
>> > >>> >
>> > >>>
>> > >>> Assuming that 'pcapanel' is 'aPanel' and 'exccodepanel' is 'bPanel'
>> > >>> everything looks OK.
>> > >>> Clicking on any of those cells should correctly find the respective
>> > grid
>> > >>> cell and execute its Ajax behavior.
>> > >>> Put a breakpoint in AjaxEventBehavior#respond() and see why it finds
>> > >>> ClassB.
>> > >>>
>> > >>>
>> > >>> >
>> > >>> > Thanks,
>> > >>> > -Mihir.
>> > >>> >
>> > >>> > On Thu, Feb 18, 2016 at 3:18

Re: Wicketstuff editable grid - 7.1.0

2016-02-22 Thread Mihir Chhaya
ion error in editable grid class when removed inmethod grid
> jar
> > >> from classpath.
> > >>
> > >> For debugging the respond method as your suggestion, I do see correct
> > >> class types for each rowItem (as attachment). But it fails with
> > following
> > >> error:
> > >>
> > >> Last cause: No get method defined for class: class
> > >> packagename.ExceptionalDocCode expression: decisionCode
> > >> WicketMessage: Exception in rendering component:
> > >> [EditableTextFieldCellPanel [Component id = cell]]
> > >>
> > >>
> > >> On Thu, Feb 18, 2016 at 5:06 PM, Martin Grigorov <
> mgrigo...@apache.org>
> > >> wrote:
> > >>
> > >>> On Thu, Feb 18, 2016 at 10:53 PM, Mihir Chhaya <
> mihir.chh...@gmail.com
> > >
> > >>> wrote:
> > >>>
> > >>> > Thanks, Martin.
> > >>> >
> > >>> > By writing dependency on wicket in-method grid I meant editable
> grid
> > >>> > inherently referring inmethod grid.
> > >>> >
> > >>>
> > >>>
> > >>>
> >
> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/editable-grid/pom.xml
> > >>>
> > >>>
> >
> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/pom.xml
> > >>> The only dependency is wicket-extensions.
> > >>> I am not sure what you mean by "inherently referring".
> > >>>
> > >>>
> > >>> >
> > >>> > I did check the Ajax url earlier and following are the values in
> > >>> rendered
> > >>> > html page for the panel.
> > >>> >
> > >>> >
> > >>> >
> > >>>
> >
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-pcapanel-pcacodegridForm-pcaDataTable-form-dataTable-body-rows-16-cells-6-cell-edit","c":"edit104","e":"click"});;
> > >>> >
> > >>> >
> > >>> >
> > >>>
> >
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-exccodepanel-excdoccodegridForm-excDataTable-form-dataTable-body-rows-10-cells-4-cell-edit","c":"edit113","e":"click"});;
> > >>> >
> > >>>
> > >>> Assuming that 'pcapanel' is 'aPanel' and 'exccodepanel' is 'bPanel'
> > >>> everything looks OK.
> > >>> Clicking on any of those cells should correctly find the respective
> > grid
> > >>> cell and execute its Ajax behavior.
> > >>> Put a breakpoint in AjaxEventBehavior#respond() and see why it finds
> > >>> ClassB.
> > >>>
> > >>>
> > >>> >
> > >>> > Thanks,
> > >>> > -Mihir.
> > >>> >
> > >>> > On Thu, Feb 18, 2016 at 3:18 PM, Martin Grigorov <
> > mgrigo...@apache.org
> > >>> >
> > >>> > wrote:
> > >>> >
> > >>> > > Hi,
> > >>> > >
> > >>> > > On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <
> > >>> mihir.chh...@gmail.com>
> > >>> > > wrote:
> > >>> > >
> > >>> > > > Hello,
> > >>> > > >
> > >>> > > > My apologies if this is not the right place to post wicketstuff
> > >>> related
> > >>> > > > issues. If so, then please advice me with right forum/link.
> > >>> > > >
> > >>> > >
> > >>> > > This is the right forum!
> > >>> > >
> > >>> > >
> > >>> > > >
> > >>> > > > I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
> > >>> > > > wicketstuff-inmethod-grid-7.1.0).
> > >>> > > >
> > >>> > >
> > >>> > > Why InMethod-Grid is needed? Or you are migrating from Inmethod
> to
> > >>> > Editable
> > >>> > > ?
> > >>> > >
> > >>> > >
> > >>> > > >
> > >>> > > > *Problem:*
> > >>> > > > When two editable grids from two separate child panels are
> > rendered
> > >>> > into
> > >>> > > > single container (parent panel), then clicking 'Edit' link in
> the
> > >>> row
> > >>> > for
> > >>> > > > ClassA related editable grid throws 'No get method defined for
> > the
> > >>> > class'
> > >>> > > > error for ClassB property which is related to another editable
> > >>> grid.
> > >>> > > >
> > >>> > >
> > >>> > > Check what is the url for the Ajax call that is made.
> > >>> > > This should tell you why it finds ClassB instead of ClassA.
> > >>> > >
> > >>> > >
> > >>> > > >
> > >>> > > > *Requirement:*
> > >>> > > > I have a page with 4 different tabs. On one of the tabs, I want
> > to
> > >>> use
> > >>> > a
> > >>> > > > panel with two editable grids for two different static dataset
> > >>> Add/Edit
> > >>> > > > (One grid for tableA, another for tableB).
> > >>> > > >
> > >>> > > > *Efforts:*
> > >>> > > > I have created two separate panel classes as below - each with
> > >>> it's own
> > >>> > > > form and editable grid with it's own editable data provider
> with
> > >>> > > respective
> > >>> > > > array list of different types. The columns supplied to
> > EditableGrid
> > >>> > class
> > >>> > > > contains
> > >>> > > > EditableTextFieldPropertyColumn<ClassA, String> and <ClassB,
> > >>> String>
> > >>> > > > respectively with own properties. Please note that I have used
> > >>> distinct
> > >>> > > > markup Ids for each panel and grid components to avoid any
> > >>> duplication;
> > >>> > > > with setting output markup id to true.
> > >>> > > >
> > >>> > > > PanelA extends Panel{
> > >>> > > >
> > >>> > > > //Constructor
> > >>> > > > // formA with editableGridA with
> > editableDataProviderForClassA
> > >>> > > > }
> > >>> > > >
> > >>> > > > PanelB extends Panel{
> > >>> > > >
> > >>> > > > //Constructor
> > >>> > > > //formB with editableGridB with
> editableDataProviderForClassB
> > >>> using
> > >>> > > > }
> > >>> > > >
> > >>> > > > Those two panels are added into parent panel as below:
> > >>> > > >
> > >>> > > > TabbedPanel extends Panel{
> > >>> > > >
> > >>> > > >  //Constructor
> > >>> > > >  // Panel panelA = new PanelA("aPanel");
> > >>> > > >  // Panel panelB = new PanelB("bPanel");
> > >>> > > >  // add(panelA); add(panelB);
> > >>> > > > }
> > >>> > > >
> > >>> > > > As I have mentioned in the problem above; clicking on edit link
> > for
> > >>> > > classA
> > >>> > > > related grid is throwing error for classB property, which is
> > >>> associated
> > >>> > > > with different editable grid.
> > >>> > > >
> > >>> > > > Has anybody experienced similar issue? Any help/suggestions?
> > >>> > > >
> > >>> > >
> > >>> > > Everything looks OK.
> > >>> > > Check whether the url for the Ajax call after clicking on the
> cell
> > >>> > contains
> > >>> > > "aPanel" or "bPanel".
> > >>> > >
> > >>> > >
> > >>> > > >
> > >>> > > > Thanks,
> > >>> > > > -Mihir.
> > >>> > > >
> > >>> > >
> > >>> >
> > >>>
> > >>
> > >>
> > >
> >
>


Re: Wicketstuff editable grid - 7.1.0

2016-02-20 Thread Martin Grigorov
arent/pom.xml
> >>> The only dependency is wicket-extensions.
> >>> I am not sure what you mean by "inherently referring".
> >>>
> >>>
> >>> >
> >>> > I did check the Ajax url earlier and following are the values in
> >>> rendered
> >>> > html page for the panel.
> >>> >
> >>> >
> >>> >
> >>>
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-pcapanel-pcacodegridForm-pcaDataTable-form-dataTable-body-rows-16-cells-6-cell-edit","c":"edit104","e":"click"});;
> >>> >
> >>> >
> >>> >
> >>>
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-exccodepanel-excdoccodegridForm-excDataTable-form-dataTable-body-rows-10-cells-4-cell-edit","c":"edit113","e":"click"});;
> >>> >
> >>>
> >>> Assuming that 'pcapanel' is 'aPanel' and 'exccodepanel' is 'bPanel'
> >>> everything looks OK.
> >>> Clicking on any of those cells should correctly find the respective
> grid
> >>> cell and execute its Ajax behavior.
> >>> Put a breakpoint in AjaxEventBehavior#respond() and see why it finds
> >>> ClassB.
> >>>
> >>>
> >>> >
> >>> > Thanks,
> >>> > -Mihir.
> >>> >
> >>> > On Thu, Feb 18, 2016 at 3:18 PM, Martin Grigorov <
> mgrigo...@apache.org
> >>> >
> >>> > wrote:
> >>> >
> >>> > > Hi,
> >>> > >
> >>> > > On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <
> >>> mihir.chh...@gmail.com>
> >>> > > wrote:
> >>> > >
> >>> > > > Hello,
> >>> > > >
> >>> > > > My apologies if this is not the right place to post wicketstuff
> >>> related
> >>> > > > issues. If so, then please advice me with right forum/link.
> >>> > > >
> >>> > >
> >>> > > This is the right forum!
> >>> > >
> >>> > >
> >>> > > >
> >>> > > > I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
> >>> > > > wicketstuff-inmethod-grid-7.1.0).
> >>> > > >
> >>> > >
> >>> > > Why InMethod-Grid is needed? Or you are migrating from Inmethod to
> >>> > Editable
> >>> > > ?
> >>> > >
> >>> > >
> >>> > > >
> >>> > > > *Problem:*
> >>> > > > When two editable grids from two separate child panels are
> rendered
> >>> > into
> >>> > > > single container (parent panel), then clicking 'Edit' link in the
> >>> row
> >>> > for
> >>> > > > ClassA related editable grid throws 'No get method defined for
> the
> >>> > class'
> >>> > > > error for ClassB property which is related to another editable
> >>> grid.
> >>> > > >
> >>> > >
> >>> > > Check what is the url for the Ajax call that is made.
> >>> > > This should tell you why it finds ClassB instead of ClassA.
> >>> > >
> >>> > >
> >>> > > >
> >>> > > > *Requirement:*
> >>> > > > I have a page with 4 different tabs. On one of the tabs, I want
> to
> >>> use
> >>> > a
> >>> > > > panel with two editable grids for two different static dataset
> >>> Add/Edit
> >>> > > > (One grid for tableA, another for tableB).
> >>> > > >
> >>> > > > *Efforts:*
> >>> > > > I have created two separate panel classes as below - each with
> >>> it's own
> >>> > > > form and editable grid with it's own editable data provider with
> >>> > > respective
> >>> > > > array list of different types. The columns supplied to
> EditableGrid
> >>> > class
> >>> > > > contains
> >>> > > > EditableTextFieldPropertyColumn<ClassA, String> and <ClassB,
> >>> String>
> >>> > > > respectively with own properties. Please note that I have used
> >>> distinct
> >>> > > > markup Ids for each panel and grid components to avoid any
> >>> duplication;
> >>> > > > with setting output markup id to true.
> >>> > > >
> >>> > > > PanelA extends Panel{
> >>> > > >
> >>> > > > //Constructor
> >>> > > > // formA with editableGridA with
> editableDataProviderForClassA
> >>> > > > }
> >>> > > >
> >>> > > > PanelB extends Panel{
> >>> > > >
> >>> > > > //Constructor
> >>> > > > //formB with editableGridB with editableDataProviderForClassB
> >>> using
> >>> > > > }
> >>> > > >
> >>> > > > Those two panels are added into parent panel as below:
> >>> > > >
> >>> > > > TabbedPanel extends Panel{
> >>> > > >
> >>> > > >  //Constructor
> >>> > > >  // Panel panelA = new PanelA("aPanel");
> >>> > > >  // Panel panelB = new PanelB("bPanel");
> >>> > > >  // add(panelA); add(panelB);
> >>> > > > }
> >>> > > >
> >>> > > > As I have mentioned in the problem above; clicking on edit link
> for
> >>> > > classA
> >>> > > > related grid is throwing error for classB property, which is
> >>> associated
> >>> > > > with different editable grid.
> >>> > > >
> >>> > > > Has anybody experienced similar issue? Any help/suggestions?
> >>> > > >
> >>> > >
> >>> > > Everything looks OK.
> >>> > > Check whether the url for the Ajax call after clicking on the cell
> >>> > contains
> >>> > > "aPanel" or "bPanel".
> >>> > >
> >>> > >
> >>> > > >
> >>> > > > Thanks,
> >>> > > > -Mihir.
> >>> > > >
> >>> > >
> >>> >
> >>>
> >>
> >>
> >
>


Re: Wicketstuff editable grid - 7.1.0

2016-02-19 Thread Mihir Chhaya
OK.
>>> Clicking on any of those cells should correctly find the respective grid
>>> cell and execute its Ajax behavior.
>>> Put a breakpoint in AjaxEventBehavior#respond() and see why it finds
>>> ClassB.
>>>
>>>
>>> >
>>> > Thanks,
>>> > -Mihir.
>>> >
>>> > On Thu, Feb 18, 2016 at 3:18 PM, Martin Grigorov <mgrigo...@apache.org
>>> >
>>> > wrote:
>>> >
>>> > > Hi,
>>> > >
>>> > > On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <
>>> mihir.chh...@gmail.com>
>>> > > wrote:
>>> > >
>>> > > > Hello,
>>> > > >
>>> > > > My apologies if this is not the right place to post wicketstuff
>>> related
>>> > > > issues. If so, then please advice me with right forum/link.
>>> > > >
>>> > >
>>> > > This is the right forum!
>>> > >
>>> > >
>>> > > >
>>> > > > I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
>>> > > > wicketstuff-inmethod-grid-7.1.0).
>>> > > >
>>> > >
>>> > > Why InMethod-Grid is needed? Or you are migrating from Inmethod to
>>> > Editable
>>> > > ?
>>> > >
>>> > >
>>> > > >
>>> > > > *Problem:*
>>> > > > When two editable grids from two separate child panels are rendered
>>> > into
>>> > > > single container (parent panel), then clicking 'Edit' link in the
>>> row
>>> > for
>>> > > > ClassA related editable grid throws 'No get method defined for the
>>> > class'
>>> > > > error for ClassB property which is related to another editable
>>> grid.
>>> > > >
>>> > >
>>> > > Check what is the url for the Ajax call that is made.
>>> > > This should tell you why it finds ClassB instead of ClassA.
>>> > >
>>> > >
>>> > > >
>>> > > > *Requirement:*
>>> > > > I have a page with 4 different tabs. On one of the tabs, I want to
>>> use
>>> > a
>>> > > > panel with two editable grids for two different static dataset
>>> Add/Edit
>>> > > > (One grid for tableA, another for tableB).
>>> > > >
>>> > > > *Efforts:*
>>> > > > I have created two separate panel classes as below - each with
>>> it's own
>>> > > > form and editable grid with it's own editable data provider with
>>> > > respective
>>> > > > array list of different types. The columns supplied to EditableGrid
>>> > class
>>> > > > contains
>>> > > > EditableTextFieldPropertyColumn<ClassA, String> and <ClassB,
>>> String>
>>> > > > respectively with own properties. Please note that I have used
>>> distinct
>>> > > > markup Ids for each panel and grid components to avoid any
>>> duplication;
>>> > > > with setting output markup id to true.
>>> > > >
>>> > > > PanelA extends Panel{
>>> > > >
>>> > > > //Constructor
>>> > > > // formA with editableGridA with editableDataProviderForClassA
>>> > > > }
>>> > > >
>>> > > > PanelB extends Panel{
>>> > > >
>>> > > > //Constructor
>>> > > > //formB with editableGridB with editableDataProviderForClassB
>>> using
>>> > > > }
>>> > > >
>>> > > > Those two panels are added into parent panel as below:
>>> > > >
>>> > > > TabbedPanel extends Panel{
>>> > > >
>>> > > >  //Constructor
>>> > > >  // Panel panelA = new PanelA("aPanel");
>>> > > >  // Panel panelB = new PanelB("bPanel");
>>> > > >  // add(panelA); add(panelB);
>>> > > > }
>>> > > >
>>> > > > As I have mentioned in the problem above; clicking on edit link for
>>> > > classA
>>> > > > related grid is throwing error for classB property, which is
>>> associated
>>> > > > with different editable grid.
>>> > > >
>>> > > > Has anybody experienced similar issue? Any help/suggestions?
>>> > > >
>>> > >
>>> > > Everything looks OK.
>>> > > Check whether the url for the Ajax call after clicking on the cell
>>> > contains
>>> > > "aPanel" or "bPanel".
>>> > >
>>> > >
>>> > > >
>>> > > > Thanks,
>>> > > > -Mihir.
>>> > > >
>>> > >
>>> >
>>>
>>
>>
>


Re: Wicketstuff editable grid - 7.1.0

2016-02-19 Thread Mihir Chhaya
Just realized that last two lines could be confusing: the decisionCode is
the property of class PcaCodes in pcapanel, but showing up for exccodepanel
row item.

On Fri, Feb 19, 2016 at 12:06 PM, Mihir Chhaya <mihir.chh...@gmail.com>
wrote:

> My mistake about the inmethod grid dependency. I don't know why I saw
> compilation error in editable grid class when removed inmethod grid jar
> from classpath.
>
> For debugging the respond method as your suggestion, I do see correct
> class types for each rowItem (as attachment). But it fails with following
> error:
>
> Last cause: No get method defined for class: class
> packagename.ExceptionalDocCode expression: decisionCode
> WicketMessage: Exception in rendering component:
> [EditableTextFieldCellPanel [Component id = cell]]
>
>
> On Thu, Feb 18, 2016 at 5:06 PM, Martin Grigorov <mgrigo...@apache.org>
> wrote:
>
>> On Thu, Feb 18, 2016 at 10:53 PM, Mihir Chhaya <mihir.chh...@gmail.com>
>> wrote:
>>
>> > Thanks, Martin.
>> >
>> > By writing dependency on wicket in-method grid I meant editable grid
>> > inherently referring inmethod grid.
>> >
>>
>>
>> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/editable-grid/pom.xml
>>
>> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/pom.xml
>> The only dependency is wicket-extensions.
>> I am not sure what you mean by "inherently referring".
>>
>>
>> >
>> > I did check the Ajax url earlier and following are the values in
>> rendered
>> > html page for the panel.
>> >
>> >
>> >
>> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-pcapanel-pcacodegridForm-pcaDataTable-form-dataTable-body-rows-16-cells-6-cell-edit","c":"edit104","e":"click"});;
>> >
>> >
>> >
>> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-exccodepanel-excdoccodegridForm-excDataTable-form-dataTable-body-rows-10-cells-4-cell-edit","c":"edit113","e":"click"});;
>> >
>>
>> Assuming that 'pcapanel' is 'aPanel' and 'exccodepanel' is 'bPanel'
>> everything looks OK.
>> Clicking on any of those cells should correctly find the respective grid
>> cell and execute its Ajax behavior.
>> Put a breakpoint in AjaxEventBehavior#respond() and see why it finds
>> ClassB.
>>
>>
>> >
>> > Thanks,
>> > -Mihir.
>> >
>> > On Thu, Feb 18, 2016 at 3:18 PM, Martin Grigorov <mgrigo...@apache.org>
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <mihir.chh...@gmail.com
>> >
>> > > wrote:
>> > >
>> > > > Hello,
>> > > >
>> > > > My apologies if this is not the right place to post wicketstuff
>> related
>> > > > issues. If so, then please advice me with right forum/link.
>> > > >
>> > >
>> > > This is the right forum!
>> > >
>> > >
>> > > >
>> > > > I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
>> > > > wicketstuff-inmethod-grid-7.1.0).
>> > > >
>> > >
>> > > Why InMethod-Grid is needed? Or you are migrating from Inmethod to
>> > Editable
>> > > ?
>> > >
>> > >
>> > > >
>> > > > *Problem:*
>> > > > When two editable grids from two separate child panels are rendered
>> > into
>> > > > single container (parent panel), then clicking 'Edit' link in the
>> row
>> > for
>> > > > ClassA related editable grid throws 'No get method defined for the
>> > class'
>> > > > error for ClassB property which is related to another editable grid.
>> > > >
>> > >
>> > > Check what is the url for the Ajax call that is made.
>> > > This should tell you why it finds ClassB instead of ClassA.
>> > >
>> > >
>> > > >
>> > > > *Requirement:*
>> > > > I have a page with 4 different tabs. On one of the tabs, I want to
>> use
>> > a
>> > > > panel with two editable grids for two different static dataset
>> Add/Edit
>> > > > (One grid for tableA, another for tableB).
>> > > >
>

Re: Wicketstuff editable grid - 7.1.0

2016-02-19 Thread Mihir Chhaya
My mistake about the inmethod grid dependency. I don't know why I saw
compilation error in editable grid class when removed inmethod grid jar
from classpath.

For debugging the respond method as your suggestion, I do see correct class
types for each rowItem (as attachment). But it fails with following error:

Last cause: No get method defined for class: class
packagename.ExceptionalDocCode expression: decisionCode
WicketMessage: Exception in rendering component:
[EditableTextFieldCellPanel [Component id = cell]]


On Thu, Feb 18, 2016 at 5:06 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> On Thu, Feb 18, 2016 at 10:53 PM, Mihir Chhaya <mihir.chh...@gmail.com>
> wrote:
>
> > Thanks, Martin.
> >
> > By writing dependency on wicket in-method grid I meant editable grid
> > inherently referring inmethod grid.
> >
>
>
> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/editable-grid/pom.xml
>
> https://github.com/wicketstuff/core/blob/master/editable-grid-parent/pom.xml
> The only dependency is wicket-extensions.
> I am not sure what you mean by "inherently referring".
>
>
> >
> > I did check the Ajax url earlier and following are the values in rendered
> > html page for the panel.
> >
> >
> >
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-pcapanel-pcacodegridForm-pcaDataTable-form-dataTable-body-rows-16-cells-6-cell-edit","c":"edit104","e":"click"});;
> >
> >
> >
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-exccodepanel-excdoccodegridForm-excDataTable-form-dataTable-body-rows-10-cells-4-cell-edit","c":"edit113","e":"click"});;
> >
>
> Assuming that 'pcapanel' is 'aPanel' and 'exccodepanel' is 'bPanel'
> everything looks OK.
> Clicking on any of those cells should correctly find the respective grid
> cell and execute its Ajax behavior.
> Put a breakpoint in AjaxEventBehavior#respond() and see why it finds
> ClassB.
>
>
> >
> > Thanks,
> > -Mihir.
> >
> > On Thu, Feb 18, 2016 at 3:18 PM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > Hi,
> > >
> > > On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <mihir.chh...@gmail.com>
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > My apologies if this is not the right place to post wicketstuff
> related
> > > > issues. If so, then please advice me with right forum/link.
> > > >
> > >
> > > This is the right forum!
> > >
> > >
> > > >
> > > > I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
> > > > wicketstuff-inmethod-grid-7.1.0).
> > > >
> > >
> > > Why InMethod-Grid is needed? Or you are migrating from Inmethod to
> > Editable
> > > ?
> > >
> > >
> > > >
> > > > *Problem:*
> > > > When two editable grids from two separate child panels are rendered
> > into
> > > > single container (parent panel), then clicking 'Edit' link in the row
> > for
> > > > ClassA related editable grid throws 'No get method defined for the
> > class'
> > > > error for ClassB property which is related to another editable grid.
> > > >
> > >
> > > Check what is the url for the Ajax call that is made.
> > > This should tell you why it finds ClassB instead of ClassA.
> > >
> > >
> > > >
> > > > *Requirement:*
> > > > I have a page with 4 different tabs. On one of the tabs, I want to
> use
> > a
> > > > panel with two editable grids for two different static dataset
> Add/Edit
> > > > (One grid for tableA, another for tableB).
> > > >
> > > > *Efforts:*
> > > > I have created two separate panel classes as below - each with it's
> own
> > > > form and editable grid with it's own editable data provider with
> > > respective
> > > > array list of different types. The columns supplied to EditableGrid
> > class
> > > > contains
> > > > EditableTextFieldPropertyColumn<ClassA, String> and <ClassB, String>
> > > > respectively with own properties. Please note that I have used
> distinct
> > > > markup Ids for each panel and grid components to avoid any
> duplication;
> > > > with setting output markup id to true.
> > > &g

Re: Wicketstuff editable grid - 7.1.0

2016-02-18 Thread Martin Grigorov
On Thu, Feb 18, 2016 at 10:53 PM, Mihir Chhaya <mihir.chh...@gmail.com>
wrote:

> Thanks, Martin.
>
> By writing dependency on wicket in-method grid I meant editable grid
> inherently referring inmethod grid.
>

https://github.com/wicketstuff/core/blob/master/editable-grid-parent/editable-grid/pom.xml
https://github.com/wicketstuff/core/blob/master/editable-grid-parent/pom.xml
The only dependency is wicket-extensions.
I am not sure what you mean by "inherently referring".


>
> I did check the Ajax url earlier and following are the values in rendered
> html page for the panel.
>
>
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-pcapanel-pcacodegridForm-pcaDataTable-form-dataTable-body-rows-16-cells-6-cell-edit","c":"edit104","e":"click"});;
>
>
> Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-exccodepanel-excdoccodegridForm-excDataTable-form-dataTable-body-rows-10-cells-4-cell-edit","c":"edit113","e":"click"});;
>

Assuming that 'pcapanel' is 'aPanel' and 'exccodepanel' is 'bPanel'
everything looks OK.
Clicking on any of those cells should correctly find the respective grid
cell and execute its Ajax behavior.
Put a breakpoint in AjaxEventBehavior#respond() and see why it finds ClassB.


>
> Thanks,
> -Mihir.
>
> On Thu, Feb 18, 2016 at 3:18 PM, Martin Grigorov <mgrigo...@apache.org>
> wrote:
>
> > Hi,
> >
> > On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <mihir.chh...@gmail.com>
> > wrote:
> >
> > > Hello,
> > >
> > > My apologies if this is not the right place to post wicketstuff related
> > > issues. If so, then please advice me with right forum/link.
> > >
> >
> > This is the right forum!
> >
> >
> > >
> > > I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
> > > wicketstuff-inmethod-grid-7.1.0).
> > >
> >
> > Why InMethod-Grid is needed? Or you are migrating from Inmethod to
> Editable
> > ?
> >
> >
> > >
> > > *Problem:*
> > > When two editable grids from two separate child panels are rendered
> into
> > > single container (parent panel), then clicking 'Edit' link in the row
> for
> > > ClassA related editable grid throws 'No get method defined for the
> class'
> > > error for ClassB property which is related to another editable grid.
> > >
> >
> > Check what is the url for the Ajax call that is made.
> > This should tell you why it finds ClassB instead of ClassA.
> >
> >
> > >
> > > *Requirement:*
> > > I have a page with 4 different tabs. On one of the tabs, I want to use
> a
> > > panel with two editable grids for two different static dataset Add/Edit
> > > (One grid for tableA, another for tableB).
> > >
> > > *Efforts:*
> > > I have created two separate panel classes as below - each with it's own
> > > form and editable grid with it's own editable data provider with
> > respective
> > > array list of different types. The columns supplied to EditableGrid
> class
> > > contains
> > > EditableTextFieldPropertyColumn<ClassA, String> and <ClassB, String>
> > > respectively with own properties. Please note that I have used distinct
> > > markup Ids for each panel and grid components to avoid any duplication;
> > > with setting output markup id to true.
> > >
> > > PanelA extends Panel{
> > >
> > > //Constructor
> > > // formA with editableGridA with editableDataProviderForClassA
> > > }
> > >
> > > PanelB extends Panel{
> > >
> > > //Constructor
> > > //formB with editableGridB with editableDataProviderForClassB using
> > > }
> > >
> > > Those two panels are added into parent panel as below:
> > >
> > > TabbedPanel extends Panel{
> > >
> > >  //Constructor
> > >  // Panel panelA = new PanelA("aPanel");
> > >  // Panel panelB = new PanelB("bPanel");
> > >  // add(panelA); add(panelB);
> > > }
> > >
> > > As I have mentioned in the problem above; clicking on edit link for
> > classA
> > > related grid is throwing error for classB property, which is associated
> > > with different editable grid.
> > >
> > > Has anybody experienced similar issue? Any help/suggestions?
> > >
> >
> > Everything looks OK.
> > Check whether the url for the Ajax call after clicking on the cell
> contains
> > "aPanel" or "bPanel".
> >
> >
> > >
> > > Thanks,
> > > -Mihir.
> > >
> >
>


Re: Wicketstuff editable grid - 7.1.0

2016-02-18 Thread Mihir Chhaya
Thanks, Martin.

By writing dependency on wicket in-method grid I meant editable grid
inherently referring inmethod grid.

I did check the Ajax url earlier and following are the values in rendered
html page for the panel.

Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-pcapanel-pcacodegridForm-pcaDataTable-form-dataTable-body-rows-16-cells-6-cell-edit","c":"edit104","e":"click"});;

Wicket.Ajax.ajax({"u":"./appcontext?5-2.IBehaviorListener.0-admincontroltabs-panel-exccodepanel-excdoccodegridForm-excDataTable-form-dataTable-body-rows-10-cells-4-cell-edit","c":"edit113","e":"click"});;

Thanks,
-Mihir.

On Thu, Feb 18, 2016 at 3:18 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Hi,
>
> On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <mihir.chh...@gmail.com>
> wrote:
>
> > Hello,
> >
> > My apologies if this is not the right place to post wicketstuff related
> > issues. If so, then please advice me with right forum/link.
> >
>
> This is the right forum!
>
>
> >
> > I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
> > wicketstuff-inmethod-grid-7.1.0).
> >
>
> Why InMethod-Grid is needed? Or you are migrating from Inmethod to Editable
> ?
>
>
> >
> > *Problem:*
> > When two editable grids from two separate child panels are rendered into
> > single container (parent panel), then clicking 'Edit' link in the row for
> > ClassA related editable grid throws 'No get method defined for the class'
> > error for ClassB property which is related to another editable grid.
> >
>
> Check what is the url for the Ajax call that is made.
> This should tell you why it finds ClassB instead of ClassA.
>
>
> >
> > *Requirement:*
> > I have a page with 4 different tabs. On one of the tabs, I want to use a
> > panel with two editable grids for two different static dataset Add/Edit
> > (One grid for tableA, another for tableB).
> >
> > *Efforts:*
> > I have created two separate panel classes as below - each with it's own
> > form and editable grid with it's own editable data provider with
> respective
> > array list of different types. The columns supplied to EditableGrid class
> > contains
> > EditableTextFieldPropertyColumn<ClassA, String> and <ClassB, String>
> > respectively with own properties. Please note that I have used distinct
> > markup Ids for each panel and grid components to avoid any duplication;
> > with setting output markup id to true.
> >
> > PanelA extends Panel{
> >
> > //Constructor
> > // formA with editableGridA with editableDataProviderForClassA
> > }
> >
> > PanelB extends Panel{
> >
> > //Constructor
> > //formB with editableGridB with editableDataProviderForClassB using
> > }
> >
> > Those two panels are added into parent panel as below:
> >
> > TabbedPanel extends Panel{
> >
> >  //Constructor
> >  // Panel panelA = new PanelA("aPanel");
> >  // Panel panelB = new PanelB("bPanel");
> >  // add(panelA); add(panelB);
> > }
> >
> > As I have mentioned in the problem above; clicking on edit link for
> classA
> > related grid is throwing error for classB property, which is associated
> > with different editable grid.
> >
> > Has anybody experienced similar issue? Any help/suggestions?
> >
>
> Everything looks OK.
> Check whether the url for the Ajax call after clicking on the cell contains
> "aPanel" or "bPanel".
>
>
> >
> > Thanks,
> > -Mihir.
> >
>


Re: Wicketstuff editable grid - 7.1.0

2016-02-18 Thread Martin Grigorov
Hi,

On Wed, Feb 17, 2016 at 5:09 PM, Mihir Chhaya <mihir.chh...@gmail.com>
wrote:

> Hello,
>
> My apologies if this is not the right place to post wicketstuff related
> issues. If so, then please advice me with right forum/link.
>

This is the right forum!


>
> I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
> wicketstuff-inmethod-grid-7.1.0).
>

Why InMethod-Grid is needed? Or you are migrating from Inmethod to Editable
?


>
> *Problem:*
> When two editable grids from two separate child panels are rendered into
> single container (parent panel), then clicking 'Edit' link in the row for
> ClassA related editable grid throws 'No get method defined for the class'
> error for ClassB property which is related to another editable grid.
>

Check what is the url for the Ajax call that is made.
This should tell you why it finds ClassB instead of ClassA.


>
> *Requirement:*
> I have a page with 4 different tabs. On one of the tabs, I want to use a
> panel with two editable grids for two different static dataset Add/Edit
> (One grid for tableA, another for tableB).
>
> *Efforts:*
> I have created two separate panel classes as below - each with it's own
> form and editable grid with it's own editable data provider with respective
> array list of different types. The columns supplied to EditableGrid class
> contains
> EditableTextFieldPropertyColumn<ClassA, String> and <ClassB, String>
> respectively with own properties. Please note that I have used distinct
> markup Ids for each panel and grid components to avoid any duplication;
> with setting output markup id to true.
>
> PanelA extends Panel{
>
> //Constructor
> // formA with editableGridA with editableDataProviderForClassA
> }
>
> PanelB extends Panel{
>
> //Constructor
> //formB with editableGridB with editableDataProviderForClassB using
> }
>
> Those two panels are added into parent panel as below:
>
> TabbedPanel extends Panel{
>
>  //Constructor
>  // Panel panelA = new PanelA("aPanel");
>  // Panel panelB = new PanelB("bPanel");
>  // add(panelA); add(panelB);
> }
>
> As I have mentioned in the problem above; clicking on edit link for classA
> related grid is throwing error for classB property, which is associated
> with different editable grid.
>
> Has anybody experienced similar issue? Any help/suggestions?
>

Everything looks OK.
Check whether the url for the Ajax call after clicking on the cell contains
"aPanel" or "bPanel".


>
> Thanks,
> -Mihir.
>


Re: Wicketstuff editable grid - 7.1.0

2016-02-18 Thread Mihir Chhaya
Any suggestion, friends?

On Wed, Feb 17, 2016 at 11:09 AM, Mihir Chhaya <mihir.chh...@gmail.com>
wrote:

> Hello,
>
> My apologies if this is not the right place to post wicketstuff related
> issues. If so, then please advice me with right forum/link.
>
> I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
> wicketstuff-inmethod-grid-7.1.0).
>
> *Problem:*
> When two editable grids from two separate child panels are rendered into
> single container (parent panel), then clicking 'Edit' link in the row for
> ClassA related editable grid throws 'No get method defined for the class'
> error for ClassB property which is related to another editable grid.
>
> *Requirement:*
> I have a page with 4 different tabs. On one of the tabs, I want to use a
> panel with two editable grids for two different static dataset Add/Edit
> (One grid for tableA, another for tableB).
>
> *Efforts:*
> I have created two separate panel classes as below - each with it's own
> form and editable grid with it's own editable data provider with respective
> array list of different types. The columns supplied to EditableGrid class
> contains
> EditableTextFieldPropertyColumn<ClassA, String> and <ClassB, String>
> respectively with own properties. Please note that I have used distinct
> markup Ids for each panel and grid components to avoid any duplication;
> with setting output markup id to true.
>
> PanelA extends Panel{
>
> //Constructor
> // formA with editableGridA with editableDataProviderForClassA
> }
>
> PanelB extends Panel{
>
> //Constructor
> //formB with editableGridB with editableDataProviderForClassB using
> }
>
> Those two panels are added into parent panel as below:
>
> TabbedPanel extends Panel{
>
>  //Constructor
>  // Panel panelA = new PanelA("aPanel");
>  // Panel panelB = new PanelB("bPanel");
>  // add(panelA); add(panelB);
> }
>
> As I have mentioned in the problem above; clicking on edit link for classA
> related grid is throwing error for classB property, which is associated
> with different editable grid.
>
> Has anybody experienced similar issue? Any help/suggestions?
>
> Thanks,
> -Mihir.
>
>
>


Wicketstuff editable grid - 7.1.0

2016-02-17 Thread Mihir Chhaya
Hello,

My apologies if this is not the right place to post wicketstuff related
issues. If so, then please advice me with right forum/link.

I am using Wicketstuff-editable-grid-7.1.0 (with dependency on
wicketstuff-inmethod-grid-7.1.0).

*Problem:*
When two editable grids from two separate child panels are rendered into
single container (parent panel), then clicking 'Edit' link in the row for
ClassA related editable grid throws 'No get method defined for the class'
error for ClassB property which is related to another editable grid.

*Requirement:*
I have a page with 4 different tabs. On one of the tabs, I want to use a
panel with two editable grids for two different static dataset Add/Edit
(One grid for tableA, another for tableB).

*Efforts:*
I have created two separate panel classes as below - each with it's own
form and editable grid with it's own editable data provider with respective
array list of different types. The columns supplied to EditableGrid class
contains
EditableTextFieldPropertyColumn<ClassA, String> and <ClassB, String>
respectively with own properties. Please note that I have used distinct
markup Ids for each panel and grid components to avoid any duplication;
with setting output markup id to true.

PanelA extends Panel{

//Constructor
// formA with editableGridA with editableDataProviderForClassA
}

PanelB extends Panel{

//Constructor
//formB with editableGridB with editableDataProviderForClassB using
}

Those two panels are added into parent panel as below:

TabbedPanel extends Panel{

 //Constructor
 // Panel panelA = new PanelA("aPanel");
 // Panel panelB = new PanelB("bPanel");
 // add(panelA); add(panelB);
}

As I have mentioned in the problem above; clicking on edit link for classA
related grid is throwing error for classB property, which is associated
with different editable grid.

Has anybody experienced similar issue? Any help/suggestions?

Thanks,
-Mihir.