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. What

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 help;

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: LABEL class=label for=user_zip_cityCity:/LABEL/TD TDINPUT id=user_zip_city size=40 value=Edwardsville name=user.zip.city /TD/TRTRTD

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 s:div... renders as: div

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: This

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

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! Do

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: s:url id=zipUrl value=http://localhost:8080/dsms/ZipCode.action; /

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread stanlick
!-- %%% -- !-- AJAX Mappings -- !-- %%% -- action name=ZipCode class=zipAjaxAction result/pages/ajaxGoods.jsp/result /action === /pages/ajaxGoods.jsp source code s:textfield name=user.zip.city

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?* package name=stan namespace=/stan extends=struts-default action name=stan1 class=stan.Stan1Action result/WEB-INF/jsp/stan/stan1.jsp/result /action

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 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 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,

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? DIV id=zipDiv showError=true listenTopics=zipEnteredTopic href=http://localhost:8080/dsms/ZipCode.action; formId=registerForm

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 trtd 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

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 s:div.../

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 blasted

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 head is

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Dave Newton
--- Dave Newton [EMAIL PROTECTED] wrote: Forgot to mention that s:autocompleter.../ 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,

Re: Need more comprehensive AJAX Implementation Instructions

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

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 == s:form action=register method=post id=registerForm

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
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 appreciated. Thanks

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: s:form action=register

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 results

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-11 Thread Ian Roughley
user@struts.apache.org To Struts Users Mailing List user@struts.apache.org 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 like to handle the asynchronous call

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread Adam Ruggles
Subject Re: Need more comprehensive AJAX Implementation Instructions --- [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

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 s:form s2 tag DOES NOT generate a HTML form tag. This was in response to your comment Also, is counter-intuitive for html users that a s:form actually renders a table, instead of

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 s: tags 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 s:url tag to get the AJAX support to work as designed. I tried a

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread stanlick
@struts.apache.org To Struts Users Mailing List user@struts.apache.org 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 like to handle the asynchronous

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

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-10 Thread Ian Roughley
in order to determine which template is rendered. Dave Newton [EMAIL PROTECTED] 09/03/2007 18:40 Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: Need more comprehensive AJAX Implementation Instructions

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-10 Thread stanlick
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 like to handle the asynchronous call. It looks like any other Action. (BTW, Tiles is supported in S2 via the Tiles

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-10 Thread Musachy Barroso
List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org 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 like to handle

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 form tag in there somewhere, otherwise I don't see how it would work. I think he's suggesting

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

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 If I

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

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

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

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 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 abpicol
the struts.view.jsp code. Dave Newton [EMAIL PROTECTED] 09/03/2007 18:40 Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: Need more comprehensive AJAX Implementation Instructions --- [EMAIL PROTECTED] wrote

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 div and span ?