Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-654

clientside dynamic generation of HTML with support for EditableValueHolder

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.1.4-SNAPSHOT
    • None
    • New Component
    • None

    Description

      Hello,

      I have implemented a component that can dynammicly add HTML. You can use EditableValueHolder inside this component (even recursivly). The component generates some javascript and HTML code which does all client side stuff. I hope you will add this to tomahawk. The source is attachted, there is a sandbox example added as well (with a complex nice demonstration of recursive usage).

      • Andreas Berger

      This is how you use it inside a JSF:

      <s:dhtmlAddable id="panel2" holder="#

      {dataHolder}

      " list="#

      {dhtmlProzess.data}

      ">
      <s:dhtmlRemove value="[x]"/>
      <h:outputLabel for="input1" value="Input1: "/><h:inputText id="input1" value="#

      {dataHolder.input1}

      "/>
      <h:outputLabel for="input2" value="Input2: "/><h:inputTextarea id="input2" value="#

      {dataHolder.input2}

      "/>
      </s:dhtmlAddable>

      <s:dhtmlAdd elementId="panel2" insertPointId="ip2" value="insert new"/>

      <h:form>
      <s:dhtmlInsertPoint id="ip2"/>
      <h:commandButton value="let's go" action="#

      {dhtmlProzess.process}

      " style="clear:both;float:left"/>
      </h:form>

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--sandbox.zip
          36 kB
          Andreas Berger
        2. dhtml.patch
          155 kB
          Andreas Berger
        3. new_dhtml.patch
          147 kB
          Andreas Berger

        Activity

          People

            Unassigned Unassigned
            poison Andreas Berger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: