• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?


  • Subject: Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?
  • From: Ricardo Parada <email@hidden>
  • Date: Tue, 19 May 2009 11:19:07 -0700

Ok... to be a bit more specific, do the following:

1) Add an <wo:AjaxSubmitButton functionName="ajaxSubmitAndUpdate" updateContainerID="GroupSelection"/>
2) Add a <wo:form> wrapping your input element and the ajax submit button suggested in (1) above
3) Then set your AjaxSelectionList onchange binding to "ajaxSubmitAndUpdate()" --- You did say the onchange binding was working right?  If so then I think this should work.  ;-)



On May 19, 2009, at 1:22 PM, Ricardo J. Parada wrote:

Disclaimer: I have not used AjaxSelectionList  :-)

I looked briefely at the example in AjaxExample.  If you examine the HTML in the browser you'll notice that this is a <div> wrapping an unordered list <ul>.  Then you'll find a hidden text field which I believe is generated by AjaxSelectionList to  store the input as you click on an item.

And so I think you need a <wo:form> wrapping your stuff.

However, the next thing to check I think is make sure the form is submitted and then your update container is refreshed.

For that you may want to use AjaxSubmitButton with a functionName binding so that instead of a submit button you get a function you can call to submit the form and update the container.



On May 19, 2009, at 12:08 PM, Gustavo Adolfo Pizano wrote:

Hello, indeed I checked the examples...   what I want is something similar to the toggle row..  but not a WORepetition, but a AjaxSelectionList, so once I click ion a item in the list, the updater will "update" without the need to push any "submit" buttom..

but in the example its kinda confusing..


G
On May 19, 2009, at 6:06 PM, Mark Gowdy wrote:

Hi,

I recently starting using the Wonder Ajax stuff, and this is my (limited understanding) solution to your problem.

I think you need an AjaxSubmitButton in the  form somewhere:
<wo:AjaxSubmitButton functionName = "GroupSelectionUpdate" updateContainerID = "GroupSelection" action = "$someActionInJava"/>

I am probably wrong (there is probably some other form magic to consider), this is all new to me.

Have a closer look at AjaxExamples2 app with Wonder, that is how I am learning this stuff.

Mark

On 19 May 2009, at 16:43, Gustavo Adolfo Pizano wrote:

Hello Dave.

Well... im home now.. but this is what I remember I have written... oh well let me see if I can access the work's computer from home....
...
...

Ok got it...

This is what I have.

<div id="container">
		<div id="main" style = "float:left">

		  	 	 <webobject name = "GroupList">
					<li>
						<wo:WOString value = "$itemGroup.cn"/>
					</li>
			    </webobject>

		</div>
		<div>
		Esto deberia actualizarce:
		  <wo:AjaxUpdateContainer id="GroupSelection">
			 <wo:WOString value="$selectedGroup.cn" />
		 </wo:AjaxUpdateContainer>
		</div>

		<!-- /main -->
	</div>


and in the WOD:

GroupList: AjaxSelectionList {
	elementName="ul";
	list = groups;
	item = itemGroup;
	selection = selectedGroup;
	onchange = "return actionPerformed()";
	id = "list";
}

the JS on the oncahnge binding, has the follwoing:

<script>
		function actionPerformed(){
			alert('asdgsad');
			GroupSelectionUpdate();
		}
	</script>

the alert in fact its being fired.. but.. the UpdateContainer doesn't update.

I want to be able to select an item in the list and then show the details of that item without making a page reload.. (well that why ajax is there for no)?


Thanks

Gustavo



On May 19, 2009, at 3:45 PM, David Avendasora wrote:

Hey Gustavo,

Can you paste the WebObject tag parameters here for both the AjaxSelectionList and the AjaxUpdateContainer? I'm having a hard time visualizing how they are setup.

Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:

Hello.

I have an AjaxSelecitonList, with the data I need to show, now I have an AjaxUpdateContainer with id "GroupSelection" also. but  when I click and item in the list the container doesnt update.. I tried then to set the binding onselect = "return actionOnList();" and in that method I called the GroupSelectionUpdate() method that it's auto-generated, ( I read it in the wiki), but still nothing happens.

What I want to achieve is to selec an item in the AjaxList, and the in the UpdateContainer show the information related to that item.
I have check  the Examples, but when I try to apply them into my app there is no success
..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep going :P... not but seriously .. what am I missing, am I that blidn to don't see the things?


Thanks

Gustavo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?
      • From: Gustavo Adolfo Pizano <email@hidden>
  • Prev by Date: Re: [MEETING] Last Minute Reminder, WO-NOVA TONIGHT at 6:30 PM
  • Next by Date: Re: Java Monitor 5.2.4 with WO 5.4.3 Applications
  • Previous by thread: Re: Modifying Properties for an EOF JDBC-connection
  • Next by thread: Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?
  • Index(es):
    • Date
    • Thread