Hello,
is there a problem with the button width of the TwoListSelection component and Firefox 2.0.0.6 ?
The buttons don't show the whole text, instead they only show the first nine or ten characters.
Defining a buttonstyle didn't help too.
Regards
Philipp
Hello Philipp,
Unfortunately, we were unable to reproduce the problem you described. Can you please provide us with more information? Please provide us with your JSP page, and environment (application server, JSF implementation). Please also tell us what QuipuKit version you are using.
Regards,
Tatyana
Hi,
we use the Sun Java System Application Server 9 Update 1, JSF 1.2, Facelets 1.1.12, QuipuKit 1.2.1
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:q="http://teamdev.com/quipukit"
template="../template/content.xhtml">
<ui:define name="title">
<h:outputText value="testpage"></h:outputText>
</ui:define>
<ui:define name="content">
<h:form>
<q:twoListSelection value="#{errorbean.items}"
addAllText="text_too_long"
addText="text_too_long"
removeAllText="text_too_long"
removeText="text_too_long"
moveUpText="text_too_long"
moveDownText="text_too_long"
allowSorting="false">
<f:selectItem itemValue="#ff0000" itemLabel="red"></f:selectItem>
<f:selectItem itemValue="#0000ff" itemLabel="blue"></f:selectItem>
</q:twoListSelection>
</h:form>
</ui:define>
</ui:composition>
The style of the buttons is defined by
input {
border: 1px solid gray;
background-color : white;
}
In the attachment you can see what I am getting.
Regards,
Philipp
Message was edited by: Philipp Schulte-Hubbert
Hello Philipp,
We also need the content.xhtml file and full CSS that is applied to your page to reproduce the problem.
Regards,
Tatyana
Ok. This code here produces the exact same problem:
The output is also the same. No css is used, so that should be easy to reproduce.
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:q="http://teamdev.com/quipukit">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>TwoListSelection</title>
</head>
<body>
<p>
<h:form>
<q:twoListSelection value="#{errorbean.items}"
addAllText="text_too_long"
addText="text_too_long"
removeAllText="text_too_long"
removeText="text_too_long"
moveUpText="text_too_long"
moveDownText="text_too_long"
allowSorting="false">
<f:selectItem itemValue="#ff0000" itemLabel="red"></f:selectItem>
<f:selectItem itemValue="#0000ff" itemLabel="blue"></f:selectItem>
</q:twoListSelection>
</h:form>
</p>
</body>
</html>
Regards,
Philipp
Philipp,
We managed to reproduce the problem you described. It can be reproduced only under Facelets with JSF Reference Implementation 1.2. We will do our best to fix it in QuipuKit 1.3. However, there is workaround for this issue. You should specify width of the TwoListSelection buttons and declare it as important. Here is an example:
<q:twoListSelection value="#{errorbean.items}"
buttonStyle="width:100px!important;">
<f:selectItem itemValue="#ff0000" itemLabel="red"/>
<f:selectItem itemValue="#0000ff" itemLabel="blue"/>
</q:twoListSelection>
Feel free to contact us if you have any further questions.
Regards,
Tatyana
Thanks for the quick support on this.
Regards,
Philipp
Hello Philipp,
We have fixed the issue in QuipuKit 1.4.
Regards,
Tatyana