litesoft
Diff Revisions
135
vs
137
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/UiView.java
|
@@ -220,8 +220,8 @@ |
220 |
220 |
|
|
221 |
221 |
|
protected <T extends IViewObject<T>> ButtonBase createSubmitNextButton( VoDataProvider<T> pDataProvider, FormBinder<T> pFormBinder, ViewDef pNavigateToOnSuccess ) |
222 |
222 |
|
{ |
223 |
|
- |
return new NextButton( pNavigateToOnSuccess, // |
224 |
|
- |
createCommitClickHandler( pDataProvider, pFormBinder, pNavigateToOnSuccess, null ) ); |
|
223 |
+ |
return NextButton.justButtonFactory( pNavigateToOnSuccess ). // |
|
224 |
+ |
add( createCommitClickHandler( pDataProvider, pFormBinder, pNavigateToOnSuccess, null ) ).create(); |
225 |
225 |
|
} |
226 |
226 |
|
|
227 |
227 |
|
private <T extends IViewObject<T>> ClickHandler createCommitClickHandler( final VoDataProvider<T> pDataProvider, final FormBinder<T> pFormBinder, final ViewDef pNavigateToOnSuccess, final ViewUpdatable<T> pViewUpdatable ) |