10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 10-9 Adding a button to change user statusFirst we will add a I’m Away button and a text field for the status description tothe page. To accomplish this, we will add the lines in Example 10-2 to the fileView.JSP after the table tag.Example 10-2 Code for I’m Away buttonWith this modification, a button and editable text field is added to the portlet.When the user clicks on the I’m Away button, the user’s status is changed toAway and their status description will display the text they entered in the textfield.Next, we add the functional code (Example 10-3 on page 291) to define the clickevent of the button by implementing the changeMyStatusToAway function.290 <strong>Lotus</strong> <strong>Instant</strong> <strong>Messaging</strong>/<strong>Web</strong> <strong>Conferencing</strong> (Sametime): Building Sametime-Enabled Applications

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!