Topic
1 reply Latest Post - ‏2012-09-21T10:20:03Z by ManindraShukla
SystemAdmin
SystemAdmin
6420 Posts
ACCEPTED ANSWER

Pinned topic AJAX and JSF : Facing problem using <hx:ajaxRefreshRequest> tag

‏2012-07-31T10:01:50Z |
Hi,

I am using below code to make ajax call. It is working fine if i test this code with ip url (ex : 10.10.10.10:10039/wps/myportal).

But When I logged in using junction url. This ajax request not able to create url with junction name ex (selfcare.com/test/wps/myportal).

<h:selectOneMenu styleClass="channelId" id="channelID"
value="#{searchPreviewBean.selectedChannel}">
<f:selectItems value="#{searchPreviewBean.customerChannel}"
id="selectItemAddress" />
<hx:behavior event="onchange" id="behavior" behaviorAction="get"
targetAction="homeAddressList"></hx:behavior>
</h:selectOneMenu>

<h:panelGroup id="homeAddressList" layout="block">
<h:selectOneMenu styleClass="programId" id="program"
value="#{searchPreviewBean.selectedProgram}">
<f:selectItems value="#{searchPreviewBean.channelProgram}"
id="programList" />
</h:selectOneMenu>
</h:panelGroup>

<hx:ajaxRefreshRequest target="homeAddressList"
id="ajaxRefreshRequestHomeAddress" params="channelID"></hx:ajaxRefreshRequest>
Updated on 2012-09-21T10:20:03Z at 2012-09-21T10:20:03Z by ManindraShukla
  • ManindraShukla
    ManindraShukla
    1 Post
    ACCEPTED ANSWER

    Re: AJAX and JSF : Facing problem using &lt;hx:ajaxRefreshRequest&gt; tag

    ‏2012-09-21T10:20:03Z  in response to SystemAdmin
    Hello ,
    I m using ---> hx:ajaxRefreshRequest of JSF 1.2
    <h:selectOneMenu id="mediaTypeAjxId" value="#{richmediaIngestWorkorderBean.workOrderValueBean.selectedMediaType }">
    <f:selectItems value="#{richmediaIngestWorkorderBean.mediaType}" />
    <hx:behavior event="onchange" id="behavior" behaviorAction="get" targetAction="getAllMediaGenre"></hx:behavior>
    </h:selectOneMenu>
    </td>
    <td ><h:outputText styleClass="labelHeading" value="#{label.genretype}"></h:outputText> <h:outputText styleClass="red" value="#{label.astreisk}"></h:outputText></td>
    <td >
    <h:panelGroup id="getAllMediaGenre">
    <h:selectOneMenu
    value="#{richmediaIngestWorkorderBean.workOrderValueBean.selectedMediaGenere }">
    <f:selectItems value="#{richmediaIngestWorkorderBean.mediaGenre}" />
    </h:selectOneMenu>
    <hx:ajaxRefreshRequest id="mediaTypeAjId" params="mediaTypeAjxId" target="getAllMediaGenre"></hx:ajaxRefreshRequest>
    </h:panelGroup>
    ===============================================================================

    and my bean :
    getting in my method
    String contentAjxId = (String) httpRequest.getSession().getAttribute("dmx_contentAjxId");
    getting contentAjxId sussesfully ..

    at the end when i m submit my page then i got a problam as
    Validation Error: Value is not valid
    Validation Error: Value is not valid
    screen :