Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Adding multiple pages to wizard

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am trying to add a new page to an already existing wizard. I have also added some controls to that page. But the problem is the page is getting displayed BLANK and the controls are getting displayed in
the next page. I have overridden the createBeginningPages() method.It didnt work. Then tried overriding addPages() method also. Again it didnt work. I am confused..

protected IWizardPage[] createBeginingPages() {
IWizardPage[]iPages = new IWizardPage[2];
iPages[0] = createFirstPage();
iPages[1] = createSecondPage();
return iPages;
}

When i check in debug mode, the control is going properly as expected in creating the second page and also creating the controls in that page.But.. in the output its missing..
Can someone please help in this?

Thanks
 
Sheriff
Posts: 22645
123
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What library are you using?
 
Manikandan Swaminathan
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am sorry, can you please be more clear - There are many JAR files we are using currently.Which one are you referring?

Thanks
 
Rob Spoor
Sheriff
Posts: 22645
123
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What JAR file does class IWizardPage come from?
 
Bartender
Posts: 825
5
Python Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Raghuraman Guruswamy wrote:
...
I have overridden the createBeginningPages() method.It didnt work. Then tried overriding addPages() method also. Again it didnt work. I am confused..

protected IWizardPage[] createBeginingPages() {
IWizardPage[]iPages = new IWizardPage[2];
iPages[0] = createFirstPage();
iPages[1] = createSecondPage();
return iPages;
}

...



If it's JFace IWizardPage I don't think there is a createBeginningPages() to override. And if it's WebProjectWizard class you're overriding, I think this is not a place for this topic.
 
Manikandan Swaminathan
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The class extends WebProjectWizard which inturn extends the NewProjectDataModelFacetWizard where the method createBeginingPages has been defined.
 
Do Re Mi Fa So La Tiny Ad
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic