Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
--- Dave Newton <[EMAIL PROTECTED]> wrote: > Forgot to mention that may do > what you need... I haven't played with it yet. Or not. I don't think the S2 ajax tags really cover this usecase; I think (at least for now) this issue may need to be solved with plain old JavaScript, perhaps via Dojo, p

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
Oops; an earlier msg I sent didn't make it. --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- [EMAIL PROTECTED] wrote: >> I don't see any other way of using the ajax >> support to populate some of the form fields??? > > That I'd have to think about; so far the only thing > I've come up with in my

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
Thanks "d!" I hope I didn't come off as too much of a jerk. I really do appreciate your help. Scott On 3/14/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > the ajax'd bits *do* show up, but not lined up with > all the other columns! At least now I can see the > bla

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > the ajax'd bits *do* show up, but not lined up with > all the other columns! At least now I can see the > blasted fields You may be able to tweak the JSP you are returning to make it do the right thing, say with theme="simple" etc. Heck, making the into mi

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
This is what should be rendering *but* is not! Dave, you about had it when you said to wrap the DIV in tags. When I do this, the ajax'd bits *do* show up, but not lined up with all the other columns! At least now I can see the blasted fields This generated HTML is whacky with a DIV in a F

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
Wait, now I've totally forgotten what the original problem was. If below is the generated HTML then what is rendering incorrectly? http://localhost:8080/dsms/ZipCode.action"; formId="registerForm" autoStart="false" dojoType="struts:BindDiv"> Is there no starting TR/TD? Ci

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
I have requested %{zipUrl} directly: http://localhost:8080/dsms/ZipCode.action and the resulting response is EXACTLY what I'd like included in that DIV!!! On 3/14/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I don't think there is anything about the XmlHttpObject that is not allowed by s2, howe

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
IE 6.0! It's my work laptop don't ask. Let me port this to my home desktop running the new FireFox and I'll let you know how it turns out! This is really going to suck if this has been the problem all along!!! Maybe Bruce Eckel is right? Scott On 3/14/07, Dave Newton <[EMAIL PROTECTED]>

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Adam Ruggles
I don't think there is anything about the XmlHttpObject that is not allowed by s2, however what you are expecting to happen might change. Based on your code snippet as soon as you load the page, the s2 div tag is going to request whatever %{zipUrl} is pointing to. It will render the complete

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > d. Can you show me what your action mapping looks > like for */stan1.action?* /WEB-INF/jsp/stan/stan1.jsp > As far as the missing quotes go, the only way I can > view generated source > *and* have the > content dynamically added to the DOM inc

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
/pages/ajaxGoods.jsp ===

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > This issue is obviously not a good match for your > skills. The *issue* is a great match for my skills. *You* are not. Verbatim, although I added the surrounding HTML and taglib directive: > value="http://localhost:8080/dsms/ZipCode.action"; /> > > method="post

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
Hey Adam! You might be onto something here! When a zip code is entered, the "ajax" portion %{zipUrl} is fetching the zip info from a database and populating the fields that the DIV is supposed to include in the form. I have programmed a bunch of JSP's using this technique with XmlHttpObject! D

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
d. Can you show me what your action mapping looks like for */stan1.action?* As far as the missing quotes go, the only way I can view generated source *and* have the content dynamically added to the DOM included, is to use the IE plug in that builds the HTML directly from the DOM tree. This is li

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
Just as a followup, I am still not convinced that it's legal HTML to embed a div inside a table, between table rows. Which browser you're using to retrieve the generated source would also be useful information. d. --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- [EMAIL PROTECTED] wrote: > > Thi

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
--- Adam Ruggles <[EMAIL PROTECTED]> wrote: > I think I know whats going on here. Whatever > %{zipUrl} in the DIV's > href property is pointing to is generating the bad > HTML. Possibly, but whether I use %{zipUrl} or %{#zipUrl} I still get correct HTML; my renders as: http://localhost

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Adam Ruggles
Hi Stanlick, I think I know whats going on here. Whatever %{zipUrl} in the DIV's href property is pointing to is generating the bad HTML. This part: City: State: Is what is being pulled in from your %{zipUrl}. [EMAIL PROTECTED] wrote: Hey Dave, how about *you* disregard this thread

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I'm using 2.0.6. Hopefully results aren't > "radically" different between dot releases! At some point things switched to FreeMarker; I don't recall when. It's a new project--things will change, although it seems to settle down. I'm not convinced you really want hel

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
I'm using 2.0.6. Hopefully results aren't "radically" different between dot releases! On 3/12/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > As you can see, this DIV is not well-formed, and > naturally does not rended correctly. Any help would > be appreciated. Wh

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-12 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > As you can see, this DIV is not well-formed, and > naturally does not rended correctly. Any help would > be appreciated. What version of S2 are you using? I cut-and-pasted your supplied JSP, created a dummy action and user object, and get radically different result

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-12 Thread Guillaume Carré
2007/3/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Hey all -- Here is my page source and the corresponding generated generated HTML. As you can see, this DIV is not well-formed, and naturally does not rended correctly. Any help would be appreciated. try this: ... -- Guillaume Carré

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-12 Thread stanlick
3:03 PM To: Struts Users Mailing List Subject: Re: Need more comprehensive AJAX Implementation Instructions Hey all -- Here is my page source and the corresponding generated generated HTML. As you can see, this DIV is not well-formed, and naturally does not rended correctly. Any help would be appreciat

RE: Need more comprehensive AJAX Implementation Instructions

2007-03-12 Thread Bob Buffone
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 3:03 PM To: Struts Users Mailing List Subject: Re: Need more comprehensive AJAX Implementation Instructions Hey all -- Here is my page source and the corresponding generated generated HTML

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-12 Thread stanlick
Hey all -- Here is my page source and the corresponding generated generated HTML. As you can see, this DIV is not well-formed, and naturally does not rended correctly. Any help would be appreciated. Thanks, Scott == == User N

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread Guillaume Carré
2007/3/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Seems you cannot have a tag in a tag because the generated HTML is not well-formed. Have you tried ...? With the simple theme, you're in control of the generated HTML, it doesn't generate tables. -- Guillaume Carré --

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread stanlick
You rock! Yeah, the advice was "look for the Freemarker template with the same name as your tag and simply change it to generate well-formed HTML". In all fairness, tomorrow I'll post the trivial web page that is failing. I think the reason the page does not render correctly is due to the TABLE

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Am I confused or is this support spotty at best. You are confused. Do you have a specific issue or question or just general complaints? We can't really help with those, and if you don't present any information regarding actual issues I'm not really sure what you exp

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread stanlick
ew.jsp code. >> > >> Although this would be a worthwhile documentation effort, I'm not >> convinced that it is that necessary. Each of the freemarker templates >> are named after the tag, and I have never had to look at the tags java >> code in order to determine

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread stanlick
This is awesome! I like S2 and I like AJAX. I read about how the S2 make AJAX easy. Just use the AJAX theme and dojo is masked so things work easily. I also read the docs carefully to discover that you must also use the tag to get the AJAX support to work as designed. I tried a simple examp

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread Mark Menard
On 3/11/07 2:49 PM, "Ian Roughley" <[EMAIL PROTECTED]> wrote: > No - what I said was that I would be surprised if the s2 tag > DOES NOT generate a HTML tag. This was in response to your > comment "Also, is counter-intuitive for html users that a > actually renders a table, instead of simply re

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread Adam Ruggles
er templates are named after the tag, and I have never had to look at the tags java code in order to determine which template is rendered. > > > > Dave Newton <[EMAIL PROTECTED]> > 09/03/2007 18:40 > Please respond to > "Struts Users Mailing List" > > > To

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread Ian Roughley
9/03/2007 18:40 > Please respond to > "Struts Users Mailing List" > > > To > Struts Users Mailing List > cc > > Subject > Re: Need more comprehensive AJAX Implementation Instructions > > > > > > > --- [EMAIL PROTECTED] wrote: > >>

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread Ted Husted
On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Greetings -- Is there a document that explains the interaction and design expectations when using AJAX/Dojo/S2? As I understand it, the original goal was to make using the tags as transparent as possible. For more ambitious uses of AJAX,

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-10 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Are you suggesting that maybe a FORM tag is written > if you modify the templates? > > On 3/10/07, Ian Roughley wrote: >> I haven't looked lately, but I imagine there is a >> tag in there somewhere, otherwise I don't see >> how it would work. I think he's suggest

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-10 Thread Musachy Barroso
e named after the tag, and I have never had to look at the tags java > code in order to determine which template is rendered. > > > > > > > > Dave Newton <[EMAIL PROTECTED]> > > 09/03/2007 18:40 > > Please respond to > > "Struts Users Maili

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-10 Thread stanlick
necessary. Each of the freemarker templates are named after the tag, and I have never had to look at the tags java code in order to determine which template is rendered. > > > > Dave Newton <[EMAIL PROTECTED]> > 09/03/2007 18:40 > Please respond to > "Struts

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-10 Thread Ian Roughley
dered. Dave Newton <[EMAIL PROTECTED]> 09/03/2007 18:40 Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Need more comprehensive AJAX Implementation Instructions --- [EMAIL PROTECTED] wrote: Also, I have yet to see what

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > [...] i'm imposing an obsolete html table structure > to a page. Note that "tables" are not obsolete: they're still quite useful for rendering columnar information, which is what they are designed for, even in the age of CSS. > What if I wanted to use and ? What

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread abpicol
D]> 09/03/2007 18:40 Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Need more comprehensive AJAX Implementation Instructions --- [EMAIL PROTECTED] wrote: > Also, I have yet to see what an Action class might > actually look

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Also, I have yet to see what an Action class might > actually look like to handle the asynchronous call. It looks like any other Action. (BTW, Tiles is supported in S2 via the Tiles plugin, but Tiles 2 is still a bit fluxful.) d. _

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > It looks like the S2 tags are writing HTML table > entries out without any knowledge of where the tag > might actually appear in the file. You need to read more of the documentation; this is covered in the "themes" section. Dave _

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread stanlick
If it were only that easy! Why do you suppose moving my DIV tag outside the form renders it in the browser, while including it in the form does not? It looks like the S2 tags are writing HTML table entries out without any knowledge of where the tag might actually appear in the file. I am inclu

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread stanlick
Hey Dave -- Actually it doesn't. I have it printed off and have read it several times. For one thing, the snippets of code are parts without knowledge of the whole. There is no supporting struts.xml to reveal how this bit of code might actually work in practice. Also, I have yet to see what an

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Musachy Barroso
There isn't any documentation about that, because no additional configuration is required. The ajax tags expect html (except the autcompleter who expects JSON). Actions used with the ajax tag are regular actions, unless they are going to be used with the autocompleter. regards musachy On 3/9/07,

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread Dave Newton
Does http://struts.apache.org/2.x/docs/ajax-tags.html help? --- [EMAIL PROTECTED] wrote: > Greetings -- > > Is there a document that explains the interaction > and design expectations > when using AJAX/Dojo/S2? I have finally figured out > how to make regions of > a page load asyncronously, and

Need more comprehensive AJAX Implementation Instructions

2007-03-09 Thread stanlick
Greetings -- Is there a document that explains the interaction and design expectations when using AJAX/Dojo/S2? I have finally figured out how to make regions of a page load asyncronously, and If I look at the DOM, all the elements are there. However the elements do not show up in the browser u