Now I have a question, I have created a Menu system, it is just the same as
widgetgallery.wt example. And after a submit operation, I want to clear
current widgets of main container (not including the sidebar and head/bottom
content) and display some information about success or failure, I trying to
use code like following:

void PageCreateContent::save_sms()

{

     if(validate_sms())

     {

         bool saved = db_save_message(smsReceiver_->text().value()

              , time(0)

              , smsContent_->text().value()

              , true

              );

         if(saved)

         {

              Wt::WApplication* app = wApp;

              clear();

              addWidget(new WText(tr("sparrow.create-sms"), this));

              

         }

         else

         {

         }

     }

}

 

(where PageCreateContent is derived from Wt::WContainerWidget)

But nothing changed on the page.

I also want to use enableUpdate(), but the web page is blank when startup
after using this.

 

 

Best Regards

Jiang Sanyi, SW

Shanghai, PR China

Hillyton Electronic Technology Co., Ltd.

 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to