Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

218
Visualizações
SAPUI5 Custom Controls: svg rerendered aggregation control is not displayed

I have developed two custom controls in sapui5 which are using svg elements. The first control is the parent container which takes an aggregation of several controls that are of the second type. You could imagine a svg-control that renders several e.g. circles as its aggregation-children.

On initialization and first rendering it works nicely and the circles are shown.

When I change a property of one of the child aggregations the renderer is called again (with the updated property) and the svg circle is inputted into the DOM. The problem is that html does not display this newly rendered control.

There are two ways to get it to show:

  1. go to the element in the DOM in the Dev Tools, press "Edit as html" on the parent control, change one unimportant html-attribute and end the editing. Then html rerenders the entire svg control and the "updated" circle is displayed nicely.
  2. Tell sapui5 to rerender the parent control after a little bit of time (e.g. over the console) using the .rerender() method of the sapui5 control object.

I've tried reproducing it in a code sandbox to share it but even when copying the same code for the custom controls I was unable to do so. I'll still send you my sandbox project so you have an idea of what I was trying to explain above.

I suspect it has something to do with namespace definitions of svg elements but I can't find a solution for this. Any ideas?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda