Hi Boris,

I have to disagree. The implementation does not work as expected.

I have a WLineEdit which shows a selected text from a WSelectionBox. The 
first entry of the WSelectionBox means "enter a new entry" and will 
clear the contents of the WLineEdit and I expect that if the WLineEdit 
is cleared the Placeholder text is shown. But when I select item 2 or 3 
from the selection box and directly after that the new entry the old 
text will be rendered as the Placeholder text. Here is an example:

setPlaceholderText("Enter a new name");
SelectionBox items:

"New name"
"Ruppert"
"Maier"
"Test"

If I select "Maier" from the selection box the contents of the line edit 
shows the name "Maier". Then I select "New name" and the line edit will 
be cleared. But now not "Enter a new name" will be rendered in light 
grey color instead "Maier" is rendered in this placeholder color!

Regards,
Stefan

Am 18.02.2014 09:21, schrieb Nagaev Boris:
> Hey!
>
> Current javascript implementation works as expected, even if text was
> edited and cleared.
> see http://webtoolkit.eu/widgets/forms/line_text-editor
> However, I agree, HTML5 placeholder feature should be used if available.
>
> Regards,
> Boris Nagaev
>
> On Tue, Feb 18, 2014 at 11:55 AM, Stefan Ruppert <[email protected]> wrote:
>>
>> Hi,
>>
>> the current implementation of setPlaceholderText() manipulates the
>> placeholder text using some javascript code, but this does not work as
>> expected. Changing the contents of a WLineEdit and clearing it later
>> will confuse the javascript code...
>>
>> Why don't use the HTML5 placeholder attribute?
>>
>> Regards,
>> Stefan
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to