File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Icefaces Input binding attribute

 
syruss kumar
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Stephan Hartmann
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic