[richfaces-issues] [JBoss JIRA] (RF-11751) inplaceInput - edit() from #{rich:component('firstNamex')}.edit(); -

Brian Leathem (Updated) (JIRA) jira-events at lists.jboss.org
Mon Dec 5 15:40:40 EST 2011


     [ https://issues.jboss.org/browse/RF-11751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-11751:
-------------------------------

    Fix Version/s: 4.2.0.Tracking


We should provide public API methods to expose the ___show()_ and ___hide()_ methods.
                
> inplaceInput - edit() from #{rich:component('firstNamex')}.edit(); - 
> ---------------------------------------------------------------------
>
>                 Key: RF-11751
>                 URL: https://issues.jboss.org/browse/RF-11751
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: Websphere 8 - RAD 8 - JSF Mojorra 2.1.4 - Spring 3.0.6 Final - Use @Inject @Named @SessionScoped as annotations - Firefox 7.0.1 - Windows 7 (6.1 sp1) - AspectJ 1.6.12 / AJDT 
>            Reporter: Jean ANDRE
>             Fix For: 4.2.0.Tracking
>
>
> We want to active the edit mode of an <rich:inplaceImput> mode by clicking on link. Our final goal is to activate all inplaceImput contained inside a form by a single click. In fact, we want to place the form in edit mode versus view mode where the fields are not editable.
>  1) The first problem is how to disable an inplaceImput component to avoid a user to edit it. Does the editEvent can be used ???
>  2) How to place all inplaceImput field in edit mode by a single click from a link or a command button
> Our experimentation shows many problem to get a success and we fail.
> In fact, the function #{rich:component('firstNamex')}.edit() where the firsNamex is the id of an inplaceImput trigger a javaScript error such as : 
> {code}
> RichFaces.$("tabbedForm:firstNamex").edit is not a function
> {code}
> Then we decided to display by an alert what is the component returned by the call and the alert seems to display list of components instead of the real component to edit !!!??? - The call is as following : onclick="alert(#{rich:component('firstNamex')});"/> and it returns the values below:
> {code}
> BaseComponent, inputBase, inputBase, inplaceInput
> {code}
> --------------------------
>    PARTIAL CODE
> --------------------------
> {code}
>   <div class="right-align">
>            <a4j:commandLink id="#{tab.id}-edit"   value="#{msg['common.command.edit']}" onclick="#{rich:component('firstNamex')}.edit(); alert(#{rich:component('firstNamex')});"/> 
>     &#160;|&#160;<a4j:commandLink id="#{tab.id}-save"   value="#{msg['common.command.save']}"/> 
>     &#160;|&#160;<a4j:commandLink id="#{tab.id}-cancel" value="#{msg['common.command.cancel']}" /> 
>   </div>
>   <!--            -->
>   <!--  THE FORM  -->
>   <!--            -->
>   <h:panelGrid columns="2" border="0" columnClasses="no-breakable" cellpadding="5" style="width:100%">
>     <h:panelGroup>
>       <!--                -->
>       <!--  LEFT PANEL    -->
>       <!--                -->
>       <h:panelGrid columns="2" border="0" columnClasses="no-breakable" cellpadding="5">
>       
>         <h:outputLabel value="#{msg['client.label.type']}" />
>         <h:selectOneListbox id="#{tab.id}-clientType" />
>         <h:outputLabel value="#{msg['client.label.firstname']}" />
>         <rich:inplaceInput id="firstNamex" value="#{client.firstName}" />
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list