Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » standard JSF to iceFaces
standard JSF to iceFaces [message #617766] Fri, 25 April 2008 08:36
Mario Mising name is currently offline Mario Mising name
Messages: 38
Registered: July 2009
Member
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-Ecl ipseDbWebapps/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.compone nt.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;
}

}





  • Attachment: tag_2.gif
    (Size: 0.16KB, Downloaded 82 times)
  • Attachment: tag_3.gif
    (Size: 0.16KB, Downloaded 81 times)
  • Attachment: tag_4.gif
    (Size: 0.16KB, Downloaded 77 times)
  • Attachment: tag_5.gif
    (Size: 0.16KB, Downloaded 83 times)
Previous Topic:Extending the HTMLEditor with custom operations
Next Topic:standard JSF to iceFaces
Goto Forum:
  


Current Time: Wed Sep 17 11:43:47 GMT 2014

Powered by FUDForum. Page generated in 0.01539 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software