[richfaces-issues] [JBoss JIRA] Created: (RF-6134) inplaceInput: incorrect place of Save and Cancel controls for Controls facet

Inna Shchibrya (JIRA) jira-events at lists.jboss.org
Tue Feb 10 09:44:44 EST 2009


inplaceInput: incorrect place of Save and Cancel controls for Controls facet
----------------------------------------------------------------------------

                 Key: RF-6134
                 URL: https://jira.jboss.org/jira/browse/RF-6134
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: FF-3.0, IE-6
Tomcat 6.0
sun RI 1.2.10
jsp 
            Reporter: Inna Shchibrya
            Assignee: Nick Belaevski
         Attachments: InplaceInput_controls.png

For example: 

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="2.1" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	<jsp:directive.page contentType="text/html;charset=UTF-8"
		pageEncoding="UTF-8" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
	<f:view>
		<html xmlns="http://www.w3.org/1999/xhtml">
		<body>
		<h:form id="formID">
			<f:verbatim>
				<br />
				<br />
			</f:verbatim>
	This is because such an error can easily be made at programming level, <br />
	and while invisible for the user who does not understand or cannot <br />
	acquire the source code, many of those 	
	<rich:inplaceInput defaultLabel="Click here to edit"
				showControls="true" controlsHorizontalPosition="left"
				controlsVerticalPosition="bottom" id="inplaceInputId">
				<f:facet name="controls">
					<button onclick="$('formID:inplaceInputId').component.save();"
						type="button">Save</button>
					<button onclick="$('formID:inplaceInputId').component.cancel();"
						type="button">Cancel</button>
				</f:facet>
			</rich:inplaceInput>
	 are easy to exploit. 
	 		</h:form>
		</body>
		</html>
	</f:view>
</jsp:root>

Actual result: Save and Cancel control buttons are at the left of the component.
Click on the component. --> Save and Cancel control icons are appeared.

Expected result: Save and Cancel control buttons should be at the bottom of the component.  Save and Cancel control icons shouldn't be appeared.


-- 
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

        



More information about the richfaces-issues mailing list