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
--- [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;
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
--- 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
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
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
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
--- [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; /
!-- %%% --
!-- AJAX Mappings --
!-- %%% --
action name=ZipCode class=zipAjaxAction
result/pages/ajaxGoods.jsp/result
/action
===
/pages/ajaxGoods.jsp source code
s:textfield name=user.zip.city
--- [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
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
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]
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,
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
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
--- [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.../
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
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
--- 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,
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.
--
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
-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
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
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
--- [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
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,
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
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
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
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
@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
--- [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
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
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
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
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
--- [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
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
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
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
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
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
--- [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
--- [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.
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
--- [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 ?
46 matches
Mail list logo