0 Replies Latest reply on Jan 25, 2010 9:44 AM by Matthias Reusch

    edit_area and forceId with richfaces

    Matthias Reusch Newbie
      Hi,

      i want use edit_area with richfaces

      therefor i need forceId (like supported by tomahawk tags)

      <script language="javascript" type="text/javascript">
      editAreaLoader.init({
          id : "resultRowForm:ta_logfile"        // textarea id
          ,syntax: "xml"            // syntax to be uses for highgliting
          ,start_highlight: true        // to display with highlight mode on start-up
      });
      </script>

          <t:inputTextarea value="#{logDataHandler.logData}" rows="50" cols="150"
              readonly="true" id="ta_logfile" forceId="ta_logfile"
              forceIdIndex="ta_logfile">
          </t:inputTextarea>

         
      here is the a4j:commandLink to call a rich:modalPanel


                      <rich:column id="resultListForm_sel3_col4" width="25px">
                          <f:facet name="header">
                              <h:outputText value="Log" />
                          </f:facet>
                          <h:outputText id="resultListForm_sel3_con4"
                              value="#{sel3.logFileId}" />
                          <a4j:commandLink ajaxSingle="true" id="editlink"
                              oncomplete="#{rich:component('editPanel')}.show()">
                              <h:graphicImage value="/images/icons/edit.gif" style="border:0" />
                              <f:setPropertyActionListener value="#{sel3}"
                                  target="#{resultListHandler.currentItem}" />
                          </a4j:commandLink>
                          <rich:toolTip for="editlink" value="Edit" />

                      </rich:column>


      ... the rich:modalPanel

                 
      <rich:modalPanel id="editPanel" autosized="true" width="450">
          <f:facet name="header">
              <h:outputText value="Edit Current Car" />
          </f:facet>
          <f:facet name="controls">
              <h:panelGroup>
                  <h:graphicImage value="/images/modal/close.png" id="hidelink"
                      styleClass="hidelink" />
                  <rich:componentControl for="editPanel" attachTo="hidelink"
                      operation="hide" event="onclick" />
              </h:panelGroup>
          </f:facet>
          <h:form>
              <rich:messages style="color:red;"></rich:messages>
              <h:panelGrid columns="1">
                  <a4j:outputPanel ajaxRendered="true">
                      <h:panelGrid columns="2">
                          <h:outputText value="Make" />
                          <h:inputText value="#{resultListHandler.currentItem.logData}" />
                      </h:panelGrid>
                      <rich:message showSummary="true" showDetail="false" for="price" />
                  </a4j:outputPanel>
                  <t:panelGroup id="doc_right_bot_head_jsf" styleClass="boxcontent">
                      <%@ include file="logfileTest.jsp"%>
                  </t:panelGroup>
              </h:panelGrid>
          </h:form>
      </rich:modalPanel>


      richfaces overrides tomahawks forceId. how can i tell richfaces using forceIds.


      thanks in advance.