began adding streaming support for view method
This commit is contained in:
parent
80fc76691f
commit
46fa7e78e7
15 changed files with 240 additions and 188 deletions
|
|
@ -134,6 +134,23 @@ sub getEditForm {
|
|||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 prepareView ( )
|
||||
|
||||
See WebGUI::Asset::prepareView() for details.
|
||||
|
||||
=cut
|
||||
|
||||
sub prepareView {
|
||||
my $self = shift;
|
||||
$self->SUPER::prepareView();
|
||||
my $template = WebGUI::Asset::Template->new($self->session, $self->get("templateId"));
|
||||
$template->prepare;
|
||||
$self->{_viewTemplate} = $template;
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub processPropertiesFromFormPost {
|
||||
my $self = shift;
|
||||
|
|
@ -227,7 +244,7 @@ sub view {
|
|||
});
|
||||
}
|
||||
$var{others_loop} = \@others;
|
||||
return $self->processTemplate(\%var,$self->getValue("templateId"));
|
||||
return $self->processTemplate(\%var,undef, $self->{_viewTemplate});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue