Re: TreePanel#onInitialize() is not being called from AbstractGridRow#onBeforeRender(). - WicketStuff-wicket7

2017-07-28 Thread durairaj t
Issue has been fixed by adding "*final" *in the TreeGrid initiation.

Thank you for your help Martin!



On Fri, Jul 28, 2017 at 11:41 AM, durairaj t  wrote:

> from *Component.java* ---> getFlag(FLAG_INITIALIZED) --> it returns false
>
> /**
> * Used to call {@link #onInitialize()}
> */
> final void fireInitialize()
> {
> *if (!getFlag(FLAG_INITIALIZED))*
> {
> setFlag(FLAG_INITIALIZED, true);
> setRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED, false);
> onInitialize();
> if (!getRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED))
> {
> throw new IllegalStateException(Component.class.getName() +
> " has not been properly initialized. Something in the hierarchy of " +
> getClass().getName() +
> " has not called super.onInitialize() in the override of onInitialize()
> method");
> }
> setRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED, false);
>
> getApplication().getComponentInitializationListeners().onInitialize(this);
> }
> else if (getFlag(FLAG_REMOVED))
> {
> setFlag(FLAG_REMOVED, false);
> setRequestFlag(RFLAG_ON_RE_ADD_SUPER_CALL_VERIFIED, false);
> onReAdd();
> if (!getRequestFlag(RFLAG_ON_RE_ADD_SUPER_CALL_VERIFIED))
> {
> throw new IllegalStateException(Component.class.getName() +
> " has not been properly added. Something in the hierarchy of " +
> getClass().getName() +
> " has not called super.onReAdd() in the override of onReAdd() method");
> }
> }
> }
>
> On Fri, Jul 28, 2017 at 11:33 AM, Martin Grigorov 
> wrote:
>
>> Where is this line of code ?
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Fri, Jul 28, 2017 at 6:18 PM, durairaj t 
>> wrote:
>>
>> > Thank you Martin! I will compare the entire code.
>> >
>> > beside, I found that the below code from the
>> >  Component#fireInitialize(){} returns false, it should to be true
>> to
>> > invoke the onInitialize();. any idea about this line of code, I did not
>> > understand that why it is false and what it mean.
>> >
>> > if (!getFlag(FLAG_INITIALIZED))---> it is false
>> >
>> >
>> > On Fri, Jul 28, 2017 at 10:59 AM, Martin Grigorov > >
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > It is not very clear what is broken and why.
>> > > I think the best you can do is to check what is different in your code
>> > > against the samples application for InMethodGrid -
>> > > https://github.com/wicketstuff/core/tree/wicket-
>> > 7.x/inmethod-grid-parent/
>> > > inmethod-grid-examples
>> > >
>> > > Martin Grigorov
>> > > Wicket Training and Consulting
>> > > https://twitter.com/mtgrigorov
>> > >
>> > > On Fri, Jul 28, 2017 at 5:08 PM, durairaj t 
>> > > wrote:
>> > >
>> > > > I'm upgrading wicketstuff from wicket 5 to 7, one of the TreePanel
>> > > > functionality is not working.
>> > > >
>> > > >  it was TreePanel#onBeforeRender() in wicket5 and AbstractGridRow
>> > > > #onBeforeRender().
>> > > >
>> > > > Component component = get(column.getId()); returns BaseTreeColumn
>> > object
>> > > > with the null child object  in AbstractGridRow#onRender(). it should
>> > have
>> > > > child objects[junctionLink,nodeComponent,icon].
>> > > >
>> > > >
>> > > >  any help?
>> > > >
>> > >
>> >
>>
>
>


Re: TreePanel#onInitialize() is not being called from AbstractGridRow#onBeforeRender(). - WicketStuff-wicket7

2017-07-28 Thread durairaj t
from *Component.java* ---> getFlag(FLAG_INITIALIZED) --> it returns false

/**
* Used to call {@link #onInitialize()}
*/
final void fireInitialize()
{
*if (!getFlag(FLAG_INITIALIZED))*
{
setFlag(FLAG_INITIALIZED, true);
setRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED, false);
onInitialize();
if (!getRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED))
{
throw new IllegalStateException(Component.class.getName() +
" has not been properly initialized. Something in the hierarchy of " +
getClass().getName() +
" has not called super.onInitialize() in the override of onInitialize()
method");
}
setRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED, false);

getApplication().getComponentInitializationListeners().onInitialize(this);
}
else if (getFlag(FLAG_REMOVED))
{
setFlag(FLAG_REMOVED, false);
setRequestFlag(RFLAG_ON_RE_ADD_SUPER_CALL_VERIFIED, false);
onReAdd();
if (!getRequestFlag(RFLAG_ON_RE_ADD_SUPER_CALL_VERIFIED))
{
throw new IllegalStateException(Component.class.getName() +
" has not been properly added. Something in the hierarchy of " +
getClass().getName() +
" has not called super.onReAdd() in the override of onReAdd() method");
}
}
}

On Fri, Jul 28, 2017 at 11:33 AM, Martin Grigorov 
wrote:

> Where is this line of code ?
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Jul 28, 2017 at 6:18 PM, durairaj t 
> wrote:
>
> > Thank you Martin! I will compare the entire code.
> >
> > beside, I found that the below code from the
> >  Component#fireInitialize(){} returns false, it should to be true to
> > invoke the onInitialize();. any idea about this line of code, I did not
> > understand that why it is false and what it mean.
> >
> > if (!getFlag(FLAG_INITIALIZED))---> it is false
> >
> >
> > On Fri, Jul 28, 2017 at 10:59 AM, Martin Grigorov 
> > wrote:
> >
> > > Hi,
> > >
> > > It is not very clear what is broken and why.
> > > I think the best you can do is to check what is different in your code
> > > against the samples application for InMethodGrid -
> > > https://github.com/wicketstuff/core/tree/wicket-
> > 7.x/inmethod-grid-parent/
> > > inmethod-grid-examples
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Fri, Jul 28, 2017 at 5:08 PM, durairaj t 
> > > wrote:
> > >
> > > > I'm upgrading wicketstuff from wicket 5 to 7, one of the TreePanel
> > > > functionality is not working.
> > > >
> > > >  it was TreePanel#onBeforeRender() in wicket5 and AbstractGridRow
> > > > #onBeforeRender().
> > > >
> > > > Component component = get(column.getId()); returns BaseTreeColumn
> > object
> > > > with the null child object  in AbstractGridRow#onRender(). it should
> > have
> > > > child objects[junctionLink,nodeComponent,icon].
> > > >
> > > >
> > > >  any help?
> > > >
> > >
> >
>


Re: TreePanel#onInitialize() is not being called from AbstractGridRow#onBeforeRender(). - WicketStuff-wicket7

2017-07-28 Thread Martin Grigorov
Where is this line of code ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Jul 28, 2017 at 6:18 PM, durairaj t  wrote:

> Thank you Martin! I will compare the entire code.
>
> beside, I found that the below code from the
>  Component#fireInitialize(){} returns false, it should to be true to
> invoke the onInitialize();. any idea about this line of code, I did not
> understand that why it is false and what it mean.
>
> if (!getFlag(FLAG_INITIALIZED))---> it is false
>
>
> On Fri, Jul 28, 2017 at 10:59 AM, Martin Grigorov 
> wrote:
>
> > Hi,
> >
> > It is not very clear what is broken and why.
> > I think the best you can do is to check what is different in your code
> > against the samples application for InMethodGrid -
> > https://github.com/wicketstuff/core/tree/wicket-
> 7.x/inmethod-grid-parent/
> > inmethod-grid-examples
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Fri, Jul 28, 2017 at 5:08 PM, durairaj t 
> > wrote:
> >
> > > I'm upgrading wicketstuff from wicket 5 to 7, one of the TreePanel
> > > functionality is not working.
> > >
> > >  it was TreePanel#onBeforeRender() in wicket5 and AbstractGridRow
> > > #onBeforeRender().
> > >
> > > Component component = get(column.getId()); returns BaseTreeColumn
> object
> > > with the null child object  in AbstractGridRow#onRender(). it should
> have
> > > child objects[junctionLink,nodeComponent,icon].
> > >
> > >
> > >  any help?
> > >
> >
>


Re: TreePanel#onInitialize() is not being called from AbstractGridRow#onBeforeRender(). - WicketStuff-wicket7

2017-07-28 Thread durairaj t
Thank you Martin! I will compare the entire code.

beside, I found that the below code from the
 Component#fireInitialize(){} returns false, it should to be true to
invoke the onInitialize();. any idea about this line of code, I did not
understand that why it is false and what it mean.

if (!getFlag(FLAG_INITIALIZED))---> it is false


On Fri, Jul 28, 2017 at 10:59 AM, Martin Grigorov 
wrote:

> Hi,
>
> It is not very clear what is broken and why.
> I think the best you can do is to check what is different in your code
> against the samples application for InMethodGrid -
> https://github.com/wicketstuff/core/tree/wicket-7.x/inmethod-grid-parent/
> inmethod-grid-examples
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Jul 28, 2017 at 5:08 PM, durairaj t 
> wrote:
>
> > I'm upgrading wicketstuff from wicket 5 to 7, one of the TreePanel
> > functionality is not working.
> >
> >  it was TreePanel#onBeforeRender() in wicket5 and AbstractGridRow
> > #onBeforeRender().
> >
> > Component component = get(column.getId()); returns BaseTreeColumn object
> > with the null child object  in AbstractGridRow#onRender(). it should have
> > child objects[junctionLink,nodeComponent,icon].
> >
> >
> >  any help?
> >
>


Re: TreePanel#onInitialize() is not being called from AbstractGridRow#onBeforeRender(). - WicketStuff-wicket7

2017-07-28 Thread Martin Grigorov
Hi,

It is not very clear what is broken and why.
I think the best you can do is to check what is different in your code
against the samples application for InMethodGrid -
https://github.com/wicketstuff/core/tree/wicket-7.x/inmethod-grid-parent/inmethod-grid-examples

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Jul 28, 2017 at 5:08 PM, durairaj t  wrote:

> I'm upgrading wicketstuff from wicket 5 to 7, one of the TreePanel
> functionality is not working.
>
>  it was TreePanel#onBeforeRender() in wicket5 and AbstractGridRow
> #onBeforeRender().
>
> Component component = get(column.getId()); returns BaseTreeColumn object
> with the null child object  in AbstractGridRow#onRender(). it should have
> child objects[junctionLink,nodeComponent,icon].
>
>
>  any help?
>