[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools.jsf] Re: standard JSF to iceFaces

Or, more  simplier, I need a "editing database" iceFaces example :)


"Mario" <mzupan@xxxxxx> wrote in message 
news:fus56k$ehe$1@xxxxxxxxxxxxxxxxxxxx
>I learn jsf but already have a need to use a iceFaces paginatorTable. 
>Unfortunatelly I have a problems to use iceFaces componentsin a eclipse 
>tutorial like 
>http://www.eclipse.org/articles/article.php?file=Article-EclipseDbWebapps/index.html, 
>so I will ask you forhelp.    This is a standard jsf form:        <form 
>action="demo.jsp" method="post">
>          <table>
>            <tr>
>              <td>Your name: (optional)</td>
>           <td><input type='text' name='name' value="${name}"></td>
>            </tr>
>            <tr>
>              <td>Your comments:</td>
>           <td><textarea name='comments' rows="6" 
> cols="40">${comments}</textarea></td>
>            </tr>
>            <tr>
>              <td></td>
>           <td><input type='submit' name='action' value='Submit'>
>            </tr>
>           </table>
>        <h3>${msg}</h3>
>        </form>
> Can I use iceFaces components instead of standards jsf on a next way?For 
> example, for textarea:           <ice:inputTextarea id="TxtCmt"
>                               value="#{textFields.comments}"
>                               cols="20" rows="4"
>                               partialSubmit="true"
> 
> valueChangeListener="#{textFields.effectChangeListener}"
>                               style="width:280px;height:80px;overflow: 
> auto;" />
> Do I need a <form> or bean bellow exist instead of standard jsf form./* 
> MPL License text (see http://www.mozilla.org/MPL/) */
>
>
> package 
> org.icefaces.application.showcase.view.bean.examples.component.textEntry;
>
> import org.icefaces.application.showcase.view.bean.BaseBean;
>
> /**
> * <p>The TextFieldsBean class is the backing bean for the Text Entry
> * demonstration. It is used to store the values of the input fields.</p>
> */
> public class TextFieldsBean extends BaseBean {
>    /**
>     * The different kinds of text input fields.
>     */
>    private String name;
>    private String password;
>    private String comments;
>
>    /**
>     * Gets the name property.
>     *
>     * @return value of name property
>     */
>    public String getName() {
>        return name;
>    }
>
>    /**
>     * Sets the name property
>     *
>     * @param newValue new value of the name property
>     */
>    public void setName(String newValue) {
>        name = newValue;
>    }
>
>    /**
>     * Gets the password property.
>     *
>     * @return value of the password property
>     */
>    public String getPassword() {
>        return password;
>    }
>
>    /**
>     * Sets the password property.
>     *
>     * @param newValue new value of the password property
>     */
>    public void setPassword(String newValue) {
>        password = newValue;
>    }
>
>    /**
>     * Gets the comments property.
>     *
>     * @return value of the comments property
>     */
>    public String getComments() {
>        return comments;
>    }
>
>    /**
>     * Sets the comments property.
>     *
>     * @param newValue new value of the comments property
>     */
>    public void setComments(String newValue) {
>        comments = newValue;
>    }
>
> }
>
>