Hello,

I have been reading this posted and thought I would respond with
information about the Apache XAP project,
http://incubator.apache.org/xap (This could be taken as a solicitation,
if so, it probably is).  

One of the unique attributes about the XAP project is that is uses a XML
Markup language to display the user interface and control events.  This
make easy to integrate into server side frameworks like struts.  I have
posted a write up how integration works and uploaded a sample at
http://wiki.apache.org/incubator/xap/XAPStruts.

One other benefit of the XAP project integrated with struts would be to
use the xModify syntax to do page modification of the HTML DOM. By
outputting the xModify syntax from a struts action, you would get the in
page updating of Ajax but still control the page orchestration through
Struts. This is the best of both worlds.

Bob (Buffone)
XAP Committer

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

<s:textfield name="user.username" value="%{user.username}"

label="%{getText('user.username')}" size="40" labelposition="right" />

<s:textfield name="user.password" value="%{user.password}"

label="%{getText('user.password')}" size="40" />

<s:textfield name="user.firstName" value="%{user.firstName}"

label="%{getText('user.firstName')}" size="40" />

<s:textfield name="user.middleName" value="%{user.middleName}"

label="%{getText('user.middleName')}" size="40" />

<s:textfield name="user.lastName" value="%{user.lastName}"

label="%{getText('user.lastName')}" size="40" />

<s:textfield name="user.zip.zip" value="%{user.zip.zip}"

label="%{getText('user.zip')}" size="10"

onblur="javascript:dojo.event.topic.publish('zipEnteredTopic')" />

<s:div autoStart="false" formId="registerForm" theme="ajax"

id="zipDiv" listenTopics="zipEnteredTopic" href="%{zipUrl}" />

<s:submit value="%{getText('label.save')}" />

</s:form>

==================


<FORM id=registerForm name=register onsubmit="return true;"

action=/dsms/register.action method=post>

<TABLE class=wwFormTable>

<TBODY>

<TR>

<TD class=tdLabel>

<LABEL class=label for=registerForm_user_username>

User Name:

</LABEL>

</TD>

<TD>

<INPUT id=registerForm_user_username size=40 name=user.username>

</TD>

</TR>

<TR>

<TD class=tdLabel>

<LABEL class=label for=registerForm_user_password>

Password:

</LABEL>

</TD>

<TD>

<INPUT id=registerForm_user_password size=40 name=user.password>

</TD>

</TR>

<TR>

<TD class=tdLabel>

<LABEL class=label for=registerForm_user_firstName>

First Name:

</LABEL>

</TD>

<TD>

<INPUT id=registerForm_user_firstName size=40 name=user.firstName>

</TD>

</TR>

<TR>

<TD class=tdLabel>

<LABEL class=label for=registerForm_user_middleName>

Middle Name:

</LABEL>

</TD>

<TD>

<INPUT id=registerForm_user_middleName size=40

name=user.middleName>

</TD>

</TR>

<TR>

<TD class=tdLabel>

<LABEL class=label for=registerForm_user_lastName>

Last Name:

</LABEL>

</TD>

<TD>

<INPUT id=registerForm_user_lastName size=40 name=user.lastName>

</TD>

</TR>

<TR>

<TD class=tdLabel>

<LABEL class=label for=registerForm_user_zip_zip>

Zip Code:

</LABEL>

</TD>

<TD>

<INPUT id=registerForm_user_zip_zip

onblur="javascript:dojo.event.topic.publish('zipEnteredTopic')"

size=10 value=62025 name=user.zip.zip>

</TD>

</TR>

<DIV id=zipDiv showError="true" listenTopics="zipEnteredTopic"

href="http://localhost:8080/dsms/ZipCode.action";

formId="registerForm" autoStart="false" dojoType="struts:BindDiv">

<LABEL class=label for=user_zip_city>

City:

</LABEL>

</TD>

<TD>

<INPUT id=user_zip_city size=40 value=Edwardsville

name=user.zip.city>

</TD>

</TR>

<TR>

<TD class=tdLabel>

<LABEL class=label for=user_zip_state>

State:

</LABEL>

</TD>

<TD>

<INPUT id=user_zip_state size=2 value=IL name=user.zip.state>

</TD>

</TR>

</DIV>

<TR>

<TD colSpan=2>

<DIV align=right>

<INPUT id=registerForm_0 type=submit value=Save>

</DIV>

</TD>

</TR>

</TBODY>

</TABLE>

</FORM>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to