[gatein-issues] [JBoss JIRA] (GTNPORTAL-2218) No difference between the two selectbox: objectId is always null on UIFormSelectBox
Hai Nguyen (Assigned) (JIRA)
jira-events at lists.jboss.org
Tue Oct 25 05:16:46 EDT 2011
[ https://issues.jboss.org/browse/GTNPORTAL-2218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hai Nguyen reassigned GTNPORTAL-2218:
-------------------------------------
Assignee: Hai Nguyen
> No difference between the two selectbox: objectId is always null on UIFormSelectBox
> -----------------------------------------------------------------------------------
>
> Key: GTNPORTAL-2218
> URL: https://issues.jboss.org/browse/GTNPORTAL-2218
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Trong Tran
> Assignee: Hai Nguyen
> Labels: portal-s63, synced
> Fix For: 3.2.0-M02
>
>
> on org.exoplatform.webui.form.UIFormSelectBox
> the object id is always null on onchange event due to
> {code:java}
> protected String renderOnChangeEvent(UIForm uiForm) throws Exception
> {
> return uiForm.event(onchange_, (String)null);
> }
> {code}
> we must use this implementation
> {code:java}
> protected String renderOnChangeEvent(UIForm uiForm) throws Exception
> {
> return uiForm.event(onchange_, (String)getId());
> }
> {code}
> To reproduce this problem:
> # we have added two select box from The Form Generator Portlet
> h5.( Groups --> Form Generator on the Administration bar)
> # we add two select box
> # we add this property "onchange=true" to this line
> {code}
> String[] select_1FieldName = ["jcrPath=/node/exo:fg_p_select_1", "defaultValues=item 1", "", "options=item 1,item 2", "onchange=true"];
> {code}
> # You can use the FireBug to see that there is no difference between the two selectBox as we can see here:
> *The first*:
> {code:xml}
> <select onchange="javascript:eXo.webui.UIForm.submitEvent('4ab67916-d73a-4f2d-8450-d005c07329b2#UIDocumentForm','Onchange','&objectId=null')" name="/node/Select 1" class="selectbox">
> <option value="item 1">item 1</option>
> <option value="item 2">item 2</option>
> </select>
> {code}
> *The Second*
> {code:xml}
> <select onchange="javascript:eXo.webui.UIForm.submitEvent('4ab67916-d73a-4f2d-8450-d005c07329b2#UIDocumentForm','Onchange','&objectId=null')" name="/node/Select 2" class="selectbox">
> <option value="item 1">item 1</option>
> <option value="item 2">item 2</option>
> </select>
> {code}
> # And we note that *objectId=null*
--
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 gatein-issues
mailing list