Hello,
a use case is an application like google base
(http://base.google.de/base/processstep1offerunauth -> choose Product
as type)
So let's imagine sb. wants to edit a product. The product has a
undefined number of attributes. So you define one or more Input-Fields
inside the addable element. Now you can add as many Input Fields (eg.
for each Product-attribute) via javascript. If the user commits the
List of lets say 10 product attributes, this attributes will be stored
in the List defined in the addable element. The holder element is a
plain old Java bean which let u hold any element you which.
So if u add 2 Input Elements at the same time you need a holder bean
with to string members. The List will hold all holder elements which
are posted.
The remove element is used to remove added elements on client side, so
if the user adds 10 Attributes, but want to post only 8 of them he can
remove 2. The value on the Add and Remove Tag holds the Text of the
Link which will be rendered ;o).
Hope this helps... but please take a look at the example, this will
make it much clearer.
cheers
- Andreas
2006/9/7, Martin Marinschek <[EMAIL PROTECTED]>:
Hi Andreas,
but what's the sense of this? Rendering javascript instead of HTML
leads to what exactly?
Can't you tell us a little bit about the usecase and what's behind the
idea of the component - I think I do understand the technology (well
except for: I don't have a clue what the remove is supposed to do and
what the value on the dthmlAdd is supposed to do).
regards,
Martin
On 9/7/06, Andreas Berger <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I supplied a new patch, with relative paths inside. I think it's not
> so easy to become a contributor... but I can supply the documentation
> via patch (in case the new component(s) will be added), so a
> contributors can add it.
>
> cheers
> - Andreas
>
> 2006/9/7, Gerald Müllan <[EMAIL PROTECTED]>:
> > Andreas,
> >
> > i wanted to have a look at your patch. I was not able to apply it to
> > the local myfaces environment.
> >
> > Think there is some issue with your local disk-path.
> >
> > Apart from that, the patch includes a huge set of files. If it will be
> > contributed to myfaces, it seems to me that you have to sign a CLA and
> > document it a little bit more.
> >
> > cheers,
> >
> > Gerald
> >
> > On 9/7/06, Andreas Berger <[EMAIL PROTECTED]> wrote:
> > > Hello Martin,
> > >
> > > the component let you define some HTML/JSF artefacts like this:
> > >
> > > <s:dhtmlAddable id="panel2" holder="#{dataHolder}"
> > > list="#{dhtmlProzess.data}">
> > > <s:dhtmlRemove value="[x]"/>
> > > <h:inputText id="input1" value="#{dataHolder.input1}"/>
> > > </s:dhtmlAddable>
> > >
> > > the dhtmlAddable component will render Javascript instead of HTML.
> > >
> > > with this Tag:
> > >
> > > <s:dhtmlAdd elementId="panel2" insertPointId="ip2" value="insert new"/>
> > >
> > > you define a link wich calls the generated javascript and insert it at
> > > the specified insertpoint:
> > >
> > > <s:dhtmlInsertPoint id="ip2"/>
> > >
> > > I included also an example, so you can test it (it works ;o) ).
> > >
> > > hope this helps...
> > >
> > > - Andreas
> > >
> > > 2006/9/7, Martin Marinschek <[EMAIL PROTECTED]>:
> > > > I must confess I'm at loss at what the component does exactly. Can you
> > > > refine your explanation a bit more?
> > > >
> > > > regards,
> > > >
> > > > Martin
> > > >
> > > > On 9/6/06, Andreas Berger <[EMAIL PROTECTED]> wrote:
> > > > > Hello,
> > > > >
> > > > > last week I have posted a new component in JIRA and supplied a path.
> > > > > The link is:
> > > > >
> > > > > http://issues.apache.org/jira/browse/TOMAHAWK-654
> > > > >
> > > > > Can anyone of the submitters apply this patch to the sandbox? I'm
> > > > > going to support this component with further patches and bug fixes.
> > > > >
> > > > > cheers
> > > > > Andreas
> > > > >
> > > > > ----------------------------------------------
> > > > > The component let you dynamically add EditableValueHolders on the
> > > > > client side via javascript.
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > > http://www.irian.at
> > > >
> > > > Your JSF powerhouse -
> > > > JSF Consulting, Development and
> > > > Courses in English and German
> > > >
> > > > Professional Support for Apache MyFaces
> > > >
> > >
> >
> >
> > --
> > Gerald Müllan
> > Schelleingasse 2/11
> > 1040 Vienna, Austria
> > 0043 699 11772506
> > [EMAIL PROTECTED]
> >
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces