Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ActiveMQ

892660Oct 5 2011 — edited Oct 7 2011
Hi,

I'm trying to get ActiveMQ JMS working with Oracle CEP as an Adapter, can someone help me as I'm not sure whether I need to build an OSGI bundle application library for this.

Thanks

Comments

843844
Not sure, but shouldn't you wrap this piece of code in a4j:region?
WAQ28
Confused..
Look at the code:

<h:selectOneMenu id="symbol" value="#{user.name}" >
<f:selectItem id="b" itemLabel="Symbol" itemValue="symbol" />
<f:selectItem id="a" itemLabel="Code" itemValue="code" />
<a4j:support event="onchange" reRender="re2" />
</h:selectOneMenu>
<h:outputText id = "re2" value="#{user.name}"/>

It works fine and update the text with selected value from the menu.
But if i change the last line from output text to input, as:

<h:inputText id = "re2" value="#{user.name}"/>

Sometimes it work and sometimes not.
Strange, isn't it?
Any idea?
WAQ28
My problem has not been solved yet..
843844
Try their own forum over there at JBoss.org. The RichFaces/Ajax4jsf boys are walking over there.
losintikfos
BalusC wrote:
Not sure, but shouldn't you wrap this piece of code in a4j:region?
Sure! the code above should be wraped in a4j:region.
losintikfos
WAQ28 wrote:
Confused..
Look at the code:

<h:selectOneMenu id="symbol" value="#{user.name}" >
<f:selectItem id="b" itemLabel="Symbol" itemValue="symbol" />
<f:selectItem id="a" itemLabel="Code" itemValue="code" />
<a4j:support event="onchange" reRender="re2" />
</h:selectOneMenu>
<h:outputText id = "re2" value="#{user.name}"/>

It works fine and update the text with selected value from the menu.
But if i change the last line from output text to input, as:

<h:inputText id = "re2" value="#{user.name}"/>

Sometimes it work and sometimes not.
Strange, isn't it?
Any idea?
Implement your a4j eventListener like this;
<a4j:region selfRendered="true" ajaxListener="#{yourbean.a4jMethod}" id="text">
       <h:selectOneMenu id="symbol" value="#{user.name}" >
       <f:selectItem id="b" itemLabel="Symbol" itemValue="symbol" />
       <f:selectItem id="a" itemLabel="Code" itemValue="code" />
       <a4j:support  reRender="re2" actionListener="#{yourBean.a4jMethod}" event="onchange"/>
       </h:selectOneMenu> 
</a4j:region>
<h:outputText id = "re2" value="#{user.name}"/>
WAQ28
Thanks for the reply

....But what does the follwoing statement do and when does it executes?
ajaxListener="#{yourbean.a4jMethod}" 
losintikfos
Will suggest you do some background research on a4j. But as your question relates, ajaxListener listens to the AjaxEvent method within your bean with which you want to invoke.

For Example
*ajaxListener="#{yourbean.a4jMethod}"* Will asynchronously execute an AjaxEven method as shown below;

{code}public class yourbean{

public yourbean{ }

//AjaxEvent method
public a4jMethod(AjaxEvent arg1){
if(arg1 !=null){
//TODO
}
}
}{code}
WAQ28
then what is the use of actionListener="#{yourBean.a4jMethod}" which u defined in <a4j:support>? Which one executes first?
losintikfos
WAQ28 wrote:
then what is the use of actionListener="#{yourBean.a4jMethod}" which u defined in <a4j:support>? Which one executes first?
if you using the example as shown above, then obviously the a4j:suppot should look like this;
<a4j:support  reRender="re2"  event="onchange"/>
WAQ28
Thanks all, problem solved.
One last question. I m still confused about this ajaxRegion which you told me to use, because before that i worked with simple example in which i updated outputText without using this region. So actually where is the difference? what does this region do?
1 - 11
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 4 2011
Added on Oct 5 2011
10 comments
1,294 views