Note that there are some explanatory texts on larger screens.

plurals
  1. POICEfaces: How to pass parameters from one page to another
    primarykey
    data
    text
    <p>I have this simple scenario which doesn't work: I use icefaces and i have a simple page with some inputTexts and a submit button, this button will redirect to another page that will display the values of these inputTexts... my question is how can i get the values of these inputTexts from the request and display them in another page? </p> <p>When i use the following API in the other page backbean, i get only the name of the page that holds the inputTexts:</p> <pre><code>FacesContext.getCurrentInstance().getExternalContext().getRequestMap(); </code></pre> <p>I really did spent alot of time trying to get this thing to work, so any help will be appreciated.. THx</p> <p>my page code is:</p> <pre><code>&lt;ice:form id="form1"&gt; &lt;table border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;ice:outputText value="Name"&gt;&lt;/ice:outputText&gt;&lt;br&gt;&lt;/br&gt;&lt;/td&gt; &lt;td&gt;&lt;ice:inputText id="name" value="#{newContest.name}"&gt;&lt;/ice:inputText&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;ice:outputText value="End Date"&gt;&lt;/ice:outputText&gt;&lt;/td&gt; &lt;td&gt;&lt;ice:inputText id="endDate" value="#{newContest.endDate}"&gt;&lt;/ice:inputText&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;ice:outputText value="private? (only you can see the entries)"&gt;&lt;/ice:outputText&gt;&lt;/td&gt; &lt;td&gt;&lt;ice:inputText id="private" value="#{newContest.isPublic}"&gt;&lt;/ice:inputText&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;ice:outputText value="Price"&gt;&lt;/ice:outputText&gt;&lt;/td&gt; &lt;td&gt;&lt;ice:inputText id="price" value="#{newContest.price}"&gt;&lt;/ice:inputText&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;ice:outputText value="Description"&gt;&lt;/ice:outputText&gt;&lt;/td&gt; &lt;td&gt;&lt;ice:inputTextarea id="description" value="#{newContest.description}"&gt;&lt;/ice:inputTextarea&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;br&gt;&lt;/br&gt;&lt;ice:commandButton value="proceed to payment" style="color:blue" action="#{newContest.createContest}"&gt;&lt;/ice:commandButton&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    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. This table or related slice is empty.
    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