Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
No AJAX functionality in menubar
Forum Index -> General
Author Message
sn7400


Joined: 04/09/2008 14:35:52
Messages: 11
Offline

Hello,

I set up a new web-application in myeclipse to see how the ajax takes effect with the menubar component but ajax ist rendering.
Here's the jsp file:



I modyfied the backing bean to print out som informations on the console:




When a menucell is clicked, you can see something like that on the console:

######### EVENT ########## wer hat geklickt: _id4
######### EVENT ########## welcher Wert: Window

So it fires an event but furthermore nothing happened on the page. If I change the ajax value from the menubar component form ajax="true" to ajax="false" the page is fully rendered, of course with the correct output.


The application is running on tomcat 5.5.17 and I'm using sun's RI 1.1.01


The web.xml


The faces-config.xml:

I'm just discovering the ecuiser library at this time, so I have just a trial license key and I can't imagine that this has something to do with this problem. So the question here is:

What am I doing wrong?

Greetings, Axel
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

So it fires an event but furthermore nothing happened on the page. If I change the ajax value from the menubar component form ajax="true" to ajax="false" the page is fully rendered, of course with the correct output.  


What did you expect to happen on the page? AJAX property makes the difference between full page request and component-based request. That's the purpose of ajax.
sn7400


Joined: 04/09/2008 14:35:52
Messages: 11
Offline

I expected the same effect as on your demo. If you click a menucell there the whole page is not reloading.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

You forgot to set id's on the <h:outputText>. In this way, the outputText can be found in the view, and can be updated by AJAX with the right value.


Selected Value:
<h:outputText id="output" binding="#{selectionListenerBean.selectionOutputText}"/>
 
sn7400


Joined: 04/09/2008 14:35:52
Messages: 11
Offline

Hello adina_mihai,
you are right. That's it! Now it works Thank you.

Axel
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2009 Simplica Corporation. All rights reserved.