6 Replies Latest reply on Dec 23, 2009 5:16 PM by Rocky S

    How to assign value inside .xhtml?

    Rocky S Master

      <s:decorate id="nameDecoration" template="layout/edit.xhtml">
                      <ui:define name="label">name</ui:define>
                      <h:inputText id="name"
                                 size="25"
                            maxlength="25"
                                value="#{holeHome.instance.name}">
                          <a:support event="onblur" reRender="nameDecoration" bypassUpdates="true" ajaxSingle="true"/>
                      </h:inputText>
                  </s:decorate>

       

      I do have already an "namefull" value with me.

      <h:outputText id="namefull" value="#{holeHome.namefull}"></h:outputText>

       

       

      Just i want to assign this "namefull" value to above inputText value "holeHome.instance.name". I know we can achieve this in javascript by using onfocus event and assign the value. So the user do not need to enter himself "fullname" and can then save.

       

      But i am not aware how this can be done here using EL expression or richfaces?