Skip to content

Commit

Permalink
temporary fix for polystring panel
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed May 9, 2019
1 parent 5d515a3 commit 0a26d33
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -68,9 +68,10 @@ protected void onInitialize(){

private void initLayout(){
setOutputMarkupId(true);

TextPanel<String> defaultValuePanel = new TextPanel<String>(ID_DEFAULT_VALUE_PANEL, Model.of(getDefaultPolyStringValue()));
//todo temporary fix
TextPanel<PolyString> defaultValuePanel = new TextPanel<PolyString>(ID_DEFAULT_VALUE_PANEL, getModel());
defaultValuePanel.setOutputMarkupId(true);
defaultValuePanel.getBaseFormComponent().setType(PolyString.class);
defaultValuePanel.getBaseFormComponent().add(new EmptyOnBlurAjaxFormUpdatingBehaviour());
defaultValuePanel.add(new VisibleBehaviour(() -> !showFullData));
add(defaultValuePanel);
Expand Down

0 comments on commit 0a26d33

Please sign in to comment.