Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You try using and render your table by yourself.</p> <p>Here is my sample. Modify it according to your requirement. I used JSF 2.0</p> <pre><code>&lt;h:form id="nextPage"&gt; &lt;table&gt; &lt;ui:repeat var="row" value="#{shoppingCartMB.shoppingItems}"&gt; &lt;tr onclick="clickedMe('#{row.productId}');"&gt; &lt;td&gt;#{row.productId}&lt;/td&gt; &lt;/tr&gt; &lt;/ui:repeat&gt; &lt;/table&gt; &lt;script&gt; function clickedMe(id) { // Please modify following URL base on ur requirment.. // Following is just for sample.. location.href="#{request.contextPath}/product/" + id; } &lt;/script&gt; &lt;/h:form&gt; </code></pre> <p>Here is some of pretty-config.xml</p> <pre><code>&lt;url-mapping id="productMB-loadProductDetail"&gt; &lt;pattern value="/product/#{ productMB.productId }" /&gt; &lt;view-id value="/pages/product-detail.jsf" /&gt; &lt;action&gt;#{productMB.loadProductDetail}&lt;/action&gt; &lt;/url-mapping&gt; </code></pre> <p>There inside productMB (managed bean) 's loadProductDetail() , you put another redirect(..).</p> <p>Something like this..</p> <pre><code>response.sendRedirect(request.getContextPath() + "/product-info"); </code></pre> <p>in pretty config again..</p> <p>You have to put config for above url..</p> <pre><code>&lt;url-mapping id="product-info"&gt; &lt;pattern value="/product-info" /&gt; &lt;view-id value="/pages/product-info.jsf" /&gt; &lt;/url-mapping&gt; </code></pre> <p>In my app, I did something like that to hide some URL.</p> <p>Hope this help.</p> <p>Here is my sample source code and my understanding.. I uploaded in zip file to 4shared.com <a href="http://www.4shared.com/zip/ctPZ4Dbj/URL_Hidding.html" rel="nofollow">http://www.4shared.com/zip/ctPZ4Dbj/URL_Hidding.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload