Skip to content

Commit

Permalink
fix "unmappable character for encoding utf-8"
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Nov 23, 2012
1 parent 8326f88 commit b8ef73d
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import er.extensions.components.ERXStatelessComponent;


/*
/**
* @binding id - the identifier for the select button and the JavaScript variable.
* @binding useDefaultCss - If TRUE (default) it will load the default stylesheet.
* @binding showText - If TRUE (default) keeps text in the dropdown menu.
Expand All @@ -25,21 +25,19 @@
* @binding fx: An object for additional Fx options (default {'duration': 'short'}).
* @binding onShow: The dropdown menu appears.
* @binding onHide: The dropdown menu disappears.
* @binding onAttach: FancySelect just replaced the <select> DOM element.
* @binding onDetach: The <select> DOM element is back.
* @binding onAttach: FancySelect just replaced the {@code <select>} DOM element.
* @binding onDetach: The {@code <select>} DOM element is back.
* @binding list: Array of objects from which the WOPopUpButton derives its values.
* @binding item: Identifier for the elements of the list. For example, aCollege could represent an object in a colleges array.
* @binding displayString: Value to display in the selection list; for example, aCollege.name for each college object in the list.
* @binding value: For each OPTION tag within the selection, this is the ÒvalueÓ attribute (that is, <OPTION value=ÓsomeValueÓ>). You can use this binding to specify additional identifiers of each item in the menu.
* @binding value: For each OPTION tag within the selection, this is the "value" attribute (that is, {@code <OPTION value="someValue">}). You can use this binding to specify additional identifiers of each item in the menu.
* @binding selection: Object that the user chose from the selection list. For the college example, selection would be a college object.
* @binding selectedValue: Value that is used with direct actions to specify which option in the list is selected.
* @binding name: Name that uniquely identifies this element within the form. You can specify a name or let WebObjects automatically assign one at runtime.
* @binding disabled: If disabled evaluates to true, this element appears in the page but is not active. That is, selection does not contain the userÕs selection when the page is submitted.
* @binding escapeHTML: If escapeHTML evaluates to true, the string rendered by displayString is converted so that characters which would be interpreted as HTML control characters become their escaped equivalent (this is the default). Thus, if a your displayString is Òa <b>bold</b> ideaÓ, the string passed to the client browser would be Òa &lt;B&gt;bold&lt;/B&gt; ideaÓ, but it would display in the browser as Òa <b>bold</b> ideaÓ. If escapeHTML evaluates to false , WebObjects simply passes your data to the client browser Òas is.Ó In this case, the above example would display in the client browser as Òa bold ideaÓ. If you are certain that your strings have no characters in them which might be interpreted as HTML control characters, you get better performance if you set escapeHTML to false.
* @binding noSelectionString: Enables the first item to be Òempty.Ó Bind this attribute to a string (such as an empty string) that, if chosen, represents an empty selection. When this item is selected, the selection attribute is set to null.
*
* @binding disabled: If disabled evaluates to true, this element appears in the page but is not active. That is, selection does not contain the user's selection when the page is submitted.
* @binding escapeHTML: If escapeHTML evaluates to true, the string rendered by displayString is converted so that characters which would be interpreted as HTML control characters become their escaped equivalent (this is the default). Thus, if your displayString is "{@code a <b>bold</b> idea}", the string passed to the client browser would be "{@code a &lt;B&gt;bold&lt;/B&gt; idea}", but it would display in the browser as "{@code a <b>bold</b> idea}". If escapeHTML evaluates to false , WebObjects simply passes your data to the client browser "as is". In this case, the above example would display in the client browser as "a <b>bold</b> idea". If you are certain that your strings have no characters in them which might be interpreted as HTML control characters, you get better performance if you set escapeHTML to false.
* @binding noSelectionString: Enables the first item to be "empty". Bind this attribute to a string (such as an empty string) that, if chosen, represents an empty selection. When this item is selected, the selection attribute is set to null.
*/

public class MTStyledPopUpButton extends ERXStatelessComponent {

private String _id;
Expand Down

0 comments on commit b8ef73d

Please sign in to comment.