You will see the ShowAll page and the
newly added celebrity will be somewhere at the end of collection, perhaps on
page four.
Find the new celebrity and click on the last name to see the details. Depending on
how you formatted the biography, you should see something similar to this:
As you can see, all the formatting is displayed properly, and this is the reason why
we used a new component, OutputRaw in the last example. In fact, this component
is quite similar to an ordinary Output component, or even to a basic extension??”it
simply outputs whatever is given to it as a value. The difference is that both regular
output and extension encode the content that they insert into the page while
OutputRaw just inserts into the resulting HTML its value, no matter what it contains.
For instance, if the value provided by the component's binding is
bold text,
then regular output will encode angle brackets and produce the following result:
<b>bold text</b>. As a result, instead of formatted text, the page will
display the tags verbatim:
bold text. The OutputRaw however will insert
into the page what was given to it, and as a result, we'll see bold text.
Advanced Components
[ 156 ]
Security Note: Please use the OutputRaw component with caution.
Pages:
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205