[html-formfu] accessing and changing the attrib "content_xml" of an
element, type Block (div) with given id doesn't work
Christoph Metz
mail-lao at web.de
Fri Nov 28 09:57:14 GMT 2008
hey guys :)
i am using FormFu within the Catalyst MVC Framework. at this point i got =
a FormFu conf in apache-style with this part:
...
<elements>
type Block
id rahmen
<element>
type Block
id summe_caption
tag div
content_xml <a>Auftragssumme:</a>
</element> =
<elements>
id summe
type Text
size 40
name summe
<attributes>
autocomplete off
</attributes>
constraint SingleValue
</elements>
</elements>
...
so far so good, all elements are displayed and so on... but what if i =
want to change the "content_xml" of the Block (div) with the id =
"summe_caption"? get_field() only returns form-elements, get_element() =
returns nothing with the given id.
in detail, i tried this:
my $summe_caption =3D $form->get_element({id =3D> 'summe_caption'});
$summe_caption->content_xml('<a>foo:</a>');
but $summe_caption does not get an obj-ref by the get_element method. =
the same with. Is ther a way to change the attribs of an type Block at =
all or is it possible to insert a $var in the formfu-config, so that i =
can simply change the formfu-output, for example for indiviual caption =
of the form-fields, without using call-back subs?
thanks, lao :) =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail-lao.vcf
Type: text/x-vcard
Size: 314 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20081128/1=
6ab6e44/mail-lao.vcf
More information about the HTML-FormFu
mailing list