Hey Sven,
I guess that submit button here is a wrapper to send an event to the
server rather than label. The label here is a <span>, so Wt sets
attribute correct.
2010/11/11 Knoblich Sven <[email protected]>
> Hello,
> like for a few other elements, i want to set an attribute for WLabel. For
> this i use the following code
>
> ------------C++ ----------------------
> WLabel* const pcLabel = new Wlabel( "Click me", this");
> pcLabel->setAttribute( "attribute", "test");
> pcLabel->clicked().connect( boost::bind( &MyClass::MyMethod, this));
> --------------------------------------
>
> Problem:
> After i call the html code, the attribute will not be placed within the
> correct tag <button>. It will be placed in a <span> subnode.
>
> ------------HTML ---------------------
> <button type="submit" name="signal=s2" class="Wt-wrap ">
> <span id="of" attribute="test">
> <span id="o10" style="white-space:nowrap;">
> Click me
> </span>
> </span>
> </button>
> --------------------------------------
>
> Is it possible to set a button attribute of Wlabel?
>
> Many thanks in advance,
> Sven
>
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
// Dmitriy.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest