clientside dynamic generation of HTML with support for EditableValueHolder
--------------------------------------------------------------------------
Key: TOMAHAWK-654
URL: http://issues.apache.org/jira/browse/TOMAHAWK-654
Project: MyFaces Tomahawk
Issue Type: New Feature
Components: New Component
Affects Versions: 1.1.5-SNAPSHOT
Reporter: Andreas Berger
Fix For: 1.1.5-SNAPSHOT
Attachments: sandbox.zip
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>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira