mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
fixed events
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include "Poco/WebWidgets/Form.h"
|
||||
#include "Poco/WebWidgets/WebApplication.h"
|
||||
#include "Poco/WebWidgets/RequestHandler.h"
|
||||
#include "Poco/NumberFormatter.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -131,6 +132,8 @@ void TextFieldCellRenderer::writeCellProperties(const TextFieldCell* pCell, std:
|
||||
ostr << "}"; // close listeners
|
||||
}
|
||||
|
||||
if (pOwner)
|
||||
WebApplication::instance().registerAjaxProcessor(Poco::NumberFormatter::format(pOwner->id()), const_cast<TextFieldCell*>(pCell));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -41,6 +41,7 @@
|
||||
#include "Poco/WebWidgets/ToggleButtonCell.h"
|
||||
#include "Poco/WebWidgets/ToggleButton.h"
|
||||
#include "Poco/WebWidgets/RequestHandler.h"
|
||||
#include "Poco/NumberFormatter.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -101,6 +102,10 @@ void ToggleButtonCellRenderer::renderProperties(const ToggleButtonCell* pToggleB
|
||||
{
|
||||
WebApplication::instance().registerFormProcessor(pToggleButtonCell->getOwner()->getName(), const_cast<ToggleButtonCell*>(pToggleButtonCell));
|
||||
}
|
||||
if (pButton)
|
||||
{
|
||||
WebApplication::instance().registerAjaxProcessor(Poco::NumberFormatter::format(pButton->id()), const_cast<ToggleButtonCell*>(pToggleButtonCell));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user