title: liferay-ui view selecting a row
body: <p>I'm working on a portlet for showing a list of rules, for selection.
  And I want to focus the row of content selected on my database (rules variable loaded on <code>init.jsp</code>).</p>
  
  <p>What I should do for focusing/highlighting exactly one row?</p>
  
  <p>Should I use <code>&lt;c:when</code> <code>&lt;c:otherwhise</code> for all the <code>.jsp</code>:</p>
  
  
  
  <p>I show a list of rules with this code:</p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %&gt;
  
  &lt;portlet:defineObjects /&gt;
  
  &lt;liferay-ui:search-container emptyResultsMessage="there-are-no-products" delta="5"&gt;
      &lt;liferay-ui:search-container-results&gt;
          &lt;% 
          List&lt;IRRule&gt; tempResults = ActionUtil.getRules(renderRequest);
          results = ListUtil.subList(tempResults, searchContainer.getStart(),
          searchContainer.getEnd());
  
          total = tempResults.size();
          pageContext.setAttribute("results", results);
          pageContext.setAttribute("total", total);
          %&gt;
      &lt;/liferay-ui:search-container-results&gt;
  
      &lt;liferay-ui:search-container-row
          className="com.everis.oriol.inputrules.model.IRRule"
          keyProperty="ruleId"
          modelVar="rule"&gt;
  
          &lt;liferay-ui:search-container-column-text
              name="ruleName"
              property="ruleName"
              /&gt;  
  
          &lt;liferay-ui:search-container-column-text
              name="ruleDescription"
              property="ruleDescription"
              /&gt;
  
          &lt;liferay-ui:search-container-column-jsp
              path="/row.jsp"
              align="right"
              /&gt;
  
      &lt;/liferay-ui:search-container-row&gt;
  
      &lt;liferay-ui:search-iterator /&gt;
  
  &lt;/liferay-ui:search-container&gt;
  </code></pre>
  
  <p>In the <code>init.jsp</code> file I have...</p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;% 
  long groupId = themeDisplay.getScopeGroupId();
  List&lt;IRSelect&gt; rulesPas = IRSelectLocalServiceUtil.getRule(groupId);
  
  String rules =  rulesPas.get(0).getRuleName();
  %&gt;
  </code></pre>
  
  <p>I exactly want to compare...</p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;liferay-ui:search-container-column-text
      name="ruleName"
      property="ruleName"
      /&gt;
  </code></pre>
  
  <p>with...</p>
  
  <pre class="lang-jsp prettyprint-override"><code>rules
  </code></pre>
  
  <p>Thank you for your help</p>