cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to load resource: the server responded with a status of 404 ()

0 Kudos

During binding, I see the below code in the Binding - Demo kit.

<content>
      	<l:VerticalLayout>
          <Label class="sapUiSmallMargin" text="{i18n>address}" />
          <Text class="sapUiSmallMargin" 
                text="{/address/street}\n{/address/zip} {/address/city}\n{/address/country}"  
                width="200px" />
        </l:VerticalLayout>   
    </content>

text="{/address/street}\n{/address/zip} {/address/city}\n{/address/country}" -> This line is causing the following error.

When I code, text="{/address/street}", the application works fine. So, I believe I am doing wrong with the concatenation of the binding objects.

jorge_cabanas
Participant
0 Kudos

Hi Meghana,

Did the answer below works for you?

0 Kudos

Yes jorge_cabanas . Thank you!!!

Accepted Solutions (1)

Accepted Solutions (1)

jorge_cabanas
Participant

Hi Meghana,

This was a common issue that SAPUI5 people solved.
Just use the keyword [& # x A ;] (Together) wherever you can set a line break in an XML View. An example:

(It's not mandatory to use a width if you don't need it. It's up to you)
Documentation about the fixed issue: Text Issue

PS: It's an issue solved from version 1.56, lower version couldn't work.

Kind regards,
Jorge.

Answers (1)

Answers (1)

saurabh_vakil
Active Contributor
0 Kudos

Check SAPUI5 SDK

Check by setting the properties wrapping and renderWhitespace to true in your Text control.