Re: In Wicket 1.5, How to get a modified value from a Panel to Page?

2016-02-15 Thread Martin Grigorov
Honestly, I have no idea what you are talking about.
Sorry but I cannot help you.

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

On Mon, Feb 15, 2016 at 10:13 PM, durairaj t  wrote:

> Hi Martin -
>
>
>  In the below code snippet; (Line # 6) textFieldID.isModified()from the
> TestPanel object is always returning default value as "false" at run time
> in the TestWebPage, but I'm modifying the boolean value as "true" at
> runtime in the TestPanel. It should return the modified value in the
> TestWebPage.
>
> it is working in 1.4, but not in 1.5.
>
>
>
> *TestWebPage.java:*
>
> 1. TestWebPage extends WebPage{
>
> 2. TestPanel textFieldID = *new* TestPanel(“textFieldID
> ”,modelObject,arrayList1,arrayList2,0,100,this);
>
> 3.   moduleForm.addComponent(textFieldID,FlagsEnum.*enCoutiesId*, w
> ebMarkupContainer);
>
> 4. // some other code here
>
> 5. //following code returns default value always at run time.
>
> 6. textFieldID.isModified(); //
>
> 7. }
>
>
>
>
> * TestPanel.java:*
>
>
>
> 1.  TestPanel extends Panel{
>
> 2.
>
> 3.  //some other instance variables
>
> 4.
>
> 5.  private boolean isModified=false;
>
> 6.
>
> 7.  //some other code here
>
> 8.
>
> 9.  *public* *boolean* isModified() {
>
> 10. *return* modified;
>
> 11. }
>
> 12.
>
> 13. }// closing class
>
>
> Following workarounds are working only in Pages and Inner classes,
>
> 1. TestPanel.this
> 2. getPageReference()
>
>
>
>
> Thanks.
>
> On Mon, Feb 15, 2016 at 3:19 PM, Martin Grigorov 
> wrote:
>
> > Hi,
> >
> > It is not very clear what you are trying to achieve.
> > Please re-phrase.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, Feb 15, 2016 at 8:54 PM, durairaj t 
> > wrote:
> >
> > >  I'm trying to get a modified Panel object in a Page,
> > >
> > >  I tried with "TestPage.this.getPageReference().getPage();" and
> > > "TestPanel.this" both are not working.
> > >
> > > I can use Session but have to get more than a modified values.
> > >
> > > Any help?
> > >
> > > Thanks.
> > >
> >
>


Re: In Wicket 1.5, How to get a modified value from a Panel to Page?

2016-02-15 Thread durairaj t
Hi Martin -


 In the below code snippet; (Line # 6) textFieldID.isModified()from the
TestPanel object is always returning default value as "false" at run time
in the TestWebPage, but I'm modifying the boolean value as "true" at
runtime in the TestPanel. It should return the modified value in the
TestWebPage.

it is working in 1.4, but not in 1.5.



*TestWebPage.java:*

1. TestWebPage extends WebPage{

2. TestPanel textFieldID = *new* TestPanel(“textFieldID
”,modelObject,arrayList1,arrayList2,0,100,this);

3.   moduleForm.addComponent(textFieldID,FlagsEnum.*enCoutiesId*, w
ebMarkupContainer);

4. // some other code here

5. //following code returns default value always at run time.

6. textFieldID.isModified(); //

7. }




* TestPanel.java:*



1.  TestPanel extends Panel{

2.

3.  //some other instance variables

4.

5.  private boolean isModified=false;

6.

7.  //some other code here

8.

9.  *public* *boolean* isModified() {

10. *return* modified;

11. }

12.

13. }// closing class


Following workarounds are working only in Pages and Inner classes,

1. TestPanel.this
2. getPageReference()




Thanks.

On Mon, Feb 15, 2016 at 3:19 PM, Martin Grigorov 
wrote:

> Hi,
>
> It is not very clear what you are trying to achieve.
> Please re-phrase.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Feb 15, 2016 at 8:54 PM, durairaj t 
> wrote:
>
> >  I'm trying to get a modified Panel object in a Page,
> >
> >  I tried with "TestPage.this.getPageReference().getPage();" and
> > "TestPanel.this" both are not working.
> >
> > I can use Session but have to get more than a modified values.
> >
> > Any help?
> >
> > Thanks.
> >
>


Re: In Wicket 1.5, How to get a modified value from a Panel to Page?

2016-02-15 Thread Martin Grigorov
Hi,

It is not very clear what you are trying to achieve.
Please re-phrase.

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

On Mon, Feb 15, 2016 at 8:54 PM, durairaj t  wrote:

>  I'm trying to get a modified Panel object in a Page,
>
>  I tried with "TestPage.this.getPageReference().getPage();" and
> "TestPanel.this" both are not working.
>
> I can use Session but have to get more than a modified values.
>
> Any help?
>
> Thanks.
>


In Wicket 1.5, How to get a modified value from a Panel to Page?

2016-02-15 Thread durairaj t
 I'm trying to get a modified Panel object in a Page,

 I tried with "TestPage.this.getPageReference().getPage();" and
"TestPanel.this" both are not working.

I can use Session but have to get more than a modified values.

Any help?

Thanks.