[JBoss JIRA] Created: (RF-6974) Add maxWidth attribute to rich:inplaceInput
by John Leed (JIRA)
Add maxWidth attribute to rich:inplaceInput
-------------------------------------------
Key: RF-6974
URL: https://jira.jboss.org/jira/browse/RF-6974
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.3.1
Reporter: John Leed
In situations where space is at a premium, it would nice to be able to constrain the maximum width of the rich:inplaceInput component so that large values do not disturb the layout.
I will attach screenshots of current and proposed behaviors. The proposed example (which is rough) uses the following:
<h:outputText value="To Recipients:"/>
<h:panelGroup layout="block" styleClass="clipped-inplace-select">
<rich:inplaceInput label="To Recipients" id="toRecipients" value="#{form.currentEntity.toRecipients}"
defaultLabel="Click to enter text" required="true" minInputWidth="100px">
<f:validator validatorId="com.kroger.thmm.jsf.EmailAddressList" />
</rich:inplaceInput>
</h:panelGroup>
.clipped-inplace-select {
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap;
width:125px;
}
.clipped-inplace-select .rich-inplace{
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap;
max-width:125px;
}
There is some duplication in the CSS styles to keep IE7 compatibility. I imagine you guys can do better.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (RF-6966) pickList: NPE on validation phase during ajax rerender
by Tsikhon Kuprevich (JIRA)
pickList: NPE on validation phase during ajax rerender
------------------------------------------------------
Key: RF-6966
URL: https://jira.jboss.org/jira/browse/RF-6966
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: jsp
myfaces
Reporter: Tsikhon Kuprevich
Assignee: Nick Belaevski
Priority: Critical
Rerender the component at 'jsp' test application:
javax.faces.FacesException: Exception while validating component with path : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /pages/Rich/Rich.jsp][Class: javax.faces.component.html.HtmlForm,Id: formID][Class: javax.faces.component.html.HtmlPanelGrid,Id: richGridID][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_jsp_1047952894_9][Class: javax.faces.component.UINamingContainer,Id: pickListSubviewID][Class: org.richfaces.component.html.HtmlPickList,Id: pickListID]}
at javax.faces.component.UIInput.validate(UIInput.java:420)
at javax.faces.component.UISelectMany.validate(UISelectMany.java:401)
at javax.faces.component.UIInput.processValidators(UIInput.java:185)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:726)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:726)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:726)
at javax.faces.component.UIForm.processValidators(UIForm.java:82)
at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:439)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:455)
at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.ajax4jsf.util.SelectUtils.getConvertedUISelectManyValue(SelectUtils.java:223)
at org.richfaces.renderkit.PickListRenderer.getConvertedValue(PickListRenderer.java:237)
at javax.faces.component.UISelectMany.getConvertedValue(UISelectMany.java:411)
at javax.faces.component.UIInput.validate(UIInput.java:399)
... 35 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months