• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in Icefaces Input binding attribute

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic