updating template from template client

UI Components for JSF
Post Reply
gcameo
Posts: 63
Joined: 02 Mar 2011, 07:38

13 Mar 2011, 00:16

Is it possible to update a commandlink defined in my facelet template when an event occurs from
a component defined in a client page?

Eg, When a user successfully logs in via an ajax process, i want to update the username section but its defined in the template. is this possible?
I have tried this code below but it doesn't work

in the template, i have

Code: Select all

  <h:commandLink id="profileLink" action="/users/view"  actionListener="#{userAccountManager.viewUser}" >
      <h:outputText value="#{userAccountManager.loggedInUser.name}"></h:outputText>
</h:commandLink>
and somewhere in the client of this template I have

Code: Select all

 <p:inplace editor="true" onEditUpdate="msgs panel profileLink" saveListener="#{userAccountManager.saveUserAccountEdit}">
    <h:inputText styleClass="hs-form-fld" id="name" value="#{userAccountManager.loggedInUser.name}"/>   
 </p:inplace>
All the other components defined in the onEditUpdate attribute get updated apart from profileLink

Any ideas?

Thanks
Primefaces version: 3.0-SNAPSHOT

JSF implementation: Mojarra 2.0.4

Server: Glassfish 3.1-beta

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 43 guests