| Author |
Problem in Icefaces Input binding attribute
|
syruss kumar
Ranch Hand
Joined: Jul 23, 2009
Posts: 87
|
|
Hi all,
I have developed a application using jsf and icefaces.
The probelm is i have a page where i want to show the logged username and stored that in a database.
i have created a iface page to show the users like this
how can i set this value(value="#{projectContext.user.name}") to a dbbean.userName and entered into database.
I have tried binding attribute in inputtext but its not working
Please suggest me .
|
All search starts with beginner's luck and all search ends with victor's severly tested.
|
 |
Stephan Hartmann
Greenhorn
Joined: Feb 11, 2010
Posts: 6
|
|
Hi,
first you have to declare your DBBean in faces-confiog.xml:
<managed-bean>
<managed-bean-name>dbBean</managed-bean-name>
<managed-bean-class>package.dbBean</managed-bean-class>
<managed-bean-scope>reauest</managed-bean-scope>
</managed-bean>
then you will refer the managed bean in value in your .xhtml : "#{dbBean.userName}"
.. that's it...
...the code above is a sample and not to be copied, check yourself and write yourself to avoid errors...
regards
Stephan
|
<perhaps somebody can translate this in english>
Wenn einer, der mit Mühe kaum
gekrochen ist auf einen Baum
schon meint, dass er ein Vogel wär,
so irrt sich der.
(Wilhelm Busch)
|
 |
 |
|
|
subject: Problem in Icefaces Input binding attribute
|
|
|