Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » standard JSF to iceFaces
standard JSF to iceFaces [message #475967] Fri, 25 April 2008 08:36 Go to next message
Mario Charest is currently offline Mario CharestFriend
Messages: 42
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 433 times)
  • Attachment: tag_3.gif
    (Size: 0.16KB, Downloaded 404 times)
  • Attachment: tag_4.gif
    (Size: 0.16KB, Downloaded 384 times)
  • Attachment: tag_5.gif
    (Size: 0.16KB, Downloaded 395 times)
Re: standard JSF to iceFaces [message #475968 is a reply to message #475967] Fri, 25 April 2008 10:18 Go to previous messageGo to next message
Mario Charest is currently offline Mario CharestFriend
Messages: 42
Registered: July 2009
Member
Or, more simplier, I need a "editing database" iceFaces example :)


"Mario" <mzupan@vup.hr> wrote in message
news:fus56k$ehe$1@build.eclipse.org...
>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;
> }
>
> }
>
>
Re: standard JSF to iceFaces [message #475969 is a reply to message #475968] Fri, 25 April 2008 21:27 Go to previous messageGo to next message
Yury Kats is currently offline Yury KatsFriend
Messages: 104
Registered: July 2009
Senior Member
On 4/25/2008 6:18 AM, Mario wrote:
> Or, more simplier, I need a "editing database" iceFaces example :)

www.icefaces.org

And, as far as I remember, ICEfaces has its own set of Eclipse plugins for
integrating into IDE.
Re: standard JSF to iceFaces [message #475970 is a reply to message #475969] Mon, 28 April 2008 06:17 Go to previous message
Mario Charest is currently offline Mario CharestFriend
Messages: 42
Registered: July 2009
Member
"Yury Kats" <ykats@us.ibm.com> wrote in message
news:futi7t$udd$1@build.eclipse.org...
> On 4/25/2008 6:18 AM, Mario wrote:
>> Or, more simplier, I need a "editing database" iceFaces example :)
>
> www.icefaces.org
>
> And, as far as I remember, ICEfaces has its own set of Eclipse plugins for
> integrating into IDE.

I installed plugin and components works but I need to adjust this example:
http://component-showcase.icefaces.org/component-showcase/sh owcase.iface
to insert, update and delete from the derby database which I add to my
project through the DatabaseExplorer. I also got the data in a standard jsf
table, without the DataTableBase bean.
Re: standard JSF to iceFaces [message #617770 is a reply to message #475967] Fri, 25 April 2008 10:18 Go to previous message
Mario Charest is currently offline Mario CharestFriend
Messages: 42
Registered: July 2009
Member
Or, more simplier, I need a "editing database" iceFaces example :)


"Mario" <mzupan@vup.hr> wrote in message
news:fus56k$ehe$1@build.eclipse.org...
>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;
> }
>
> }
>
>
Re: standard JSF to iceFaces [message #617773 is a reply to message #475968] Fri, 25 April 2008 21:27 Go to previous message
Yury Kats is currently offline Yury KatsFriend
Messages: 104
Registered: July 2009
Senior Member
On 4/25/2008 6:18 AM, Mario wrote:
> Or, more simplier, I need a "editing database" iceFaces example :)

www.icefaces.org

And, as far as I remember, ICEfaces has its own set of Eclipse plugins for
integrating into IDE.
Re: standard JSF to iceFaces [message #617776 is a reply to message #475969] Mon, 28 April 2008 06:17 Go to previous message
Mario Charest is currently offline Mario CharestFriend
Messages: 42
Registered: July 2009
Member
"Yury Kats" <ykats@us.ibm.com> wrote in message
news:futi7t$udd$1@build.eclipse.org...
> On 4/25/2008 6:18 AM, Mario wrote:
>> Or, more simplier, I need a "editing database" iceFaces example :)
>
> www.icefaces.org
>
> And, as far as I remember, ICEfaces has its own set of Eclipse plugins for
> integrating into IDE.

I installed plugin and components works but I need to adjust this example:
http://component-showcase.icefaces.org/component-showcase/sh owcase.iface
to insert, update and delete from the derby database which I add to my
project through the DatabaseExplorer. I also got the data in a standard jsf
table, without the DataTableBase bean.
Previous Topic:standard JSF to iceFaces
Next Topic:Customizing palette in Web Page Editor
Goto Forum:
  


Current Time: Tue Apr 23 13:01:54 GMT 2024

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

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

Back to the top