Details
-
New Feature
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
1.1.4-SNAPSHOT
-
None
-
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="#
"/>
<h:outputLabel for="input2" value="Input2: "/><h:inputTextarea id="input2" value="#
"/>
</s:dhtmlAddable>
<s:dhtmlAdd elementId="panel2" insertPointId="ip2" value="insert new"/>
<h:form>
<s:dhtmlInsertPoint id="ip2"/>
<h:commandButton value="let's go" action="#
" style="clear:both;float:left"/>
</h:form>