This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Icefaces Input binding attribute

 
syruss kumar
Ranch Hand
Posts: 104
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic