mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
Ticket #307: Added missing 'value' parameter to the boolean checkbox parameters from the source xml through to the webapp.
This commit is contained in:
@@ -75,7 +75,12 @@ public class ProtocolParameter {
|
||||
* The type of this field.
|
||||
*/
|
||||
private Type type;
|
||||
|
||||
|
||||
/**
|
||||
* The value of this parameter, for boolean parameters.
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* A collection of all associated parameter options.
|
||||
*/
|
||||
@@ -119,6 +124,24 @@ public class ProtocolParameter {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with this protocol parameter.
|
||||
* @return The value associated with this protocol parameter.
|
||||
*/
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value associated with this protocol parameter. The value must
|
||||
* be a human-readable string which describes accurately this parameter.
|
||||
*
|
||||
* @param value A human-readable string describing this parameter.
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the type of this parameter.
|
||||
* @return The type of this parameter.
|
||||
|
@@ -158,6 +158,7 @@ public class List extends AuthenticatingHttpServlet {
|
||||
// Boolean parameter
|
||||
case BOOLEAN:
|
||||
xml.writeAttribute("type", "boolean");
|
||||
xml.writeAttribute("value", param.getValue());
|
||||
break;
|
||||
|
||||
// Enumerated parameter
|
||||
|
@@ -40,6 +40,7 @@ public class ParamTagHandler implements TagHandler {
|
||||
|
||||
protocolParameter.setName(attributes.getValue("name"));
|
||||
protocolParameter.setTitle(attributes.getValue("title"));
|
||||
protocolParameter.setValue(attributes.getValue("value"));
|
||||
|
||||
// Parse type
|
||||
String type = attributes.getValue("type");
|
||||
|
Reference in New Issue
Block a user