voyent
A little bit lost  XML
Forum Index -> Woodstock to ICEfaces Migration
Author Message
digitBoy

Joined: 16/Feb/2009 00:00:00
Messages: 1
Offline


Hello,

I am a bit lost with icefaces.

In a Woodstock web project (using Netbeans 6.5) we can use textfield components with the visual editor. After we only need to import, in the java file, the import com.sun.webui.jsf.component.TextField; and make a instance to use the function getText(); to get the text inside.

What´s about in ICEFaces? because here we have inputText components, but they are not possible to be imported in the java class.

Can anybody explain me how can i get the text inside?. I couldn´t find a simple Login example using Icefaces.

Thanks indeed.
Galilei

Joined: 27/Aug/2007 00:00:00
Messages: 14
Offline


<ice:inputText value="#{myBean.text}" ....

where text is a property in MyBean
liming.wu

Joined: 26/Oct/2004 00:00:00
Messages: 441
Offline


ICEfaces InputText is equivalent to WoodStock's TextField.
What do you mean by " they are not possible to be imported in the java class. "?

Do you mean how to get access to component in managedBean? Of course you can do component binding through binding attribute
<ice:inputText binding=
But this is not really recommended as it tightly couples UI with model. Generally we recommend to use value binding as digitBoy mentioned above
<ice:inputText value="#{myBean.text}" ....

Liming

[Email]
 
Forum Index -> Woodstock to ICEfaces Migration
Go to:   
Powered by JForum 2.1.7ice © JForum Team