You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by om...@polaris.co.in on 2009/05/19 14:05:00 UTC
ajax response
Hi,
The ajax select example has a ajax-customer.htm file which displays the
response. In my case, it is displaying the name of my domain object but the
other fields are empty. I have checked that the data for
all the fields is correctly retrieved from the table. Then why doesn't it
get displayed? Can anyone help?
Regards,
V.Omprakash
Project Manager - Quark
CTOO
Chennai One, Extn: 8112
Mobile: 99406 82346
This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polaris.co.in
Re: ajax response
Posted by Bob Schellink <sa...@gmail.com>.
Hi,
omprakash.v@polaris.co.in wrote:
>
> ajax-customer.htm -----> AjaxCustomer.java
>
> The ajax-customer.htm contains the ajax response. What if I want to send
> forms as part of the response in ajax-customer.htm.
Have you tried to create a Form inside AjaxCustomer and rendering
$form inside ajax-customer.htm? It should work since the Form renders
valid XHTML content.
Initial work has been done around similar ideas at ClickClick[1]
(check out the FormDemo) but is based on JQuery Taconite instead of
Rico (which seemed to have been abandoned). Do note that ClickClick is
in its inception phase right now so things are a bit rough :)
kind regards
bob
[1]:
http://code.google.com/p/clickclick/source/browse/#svn/trunk/clickclick/jquery-examples/src/net/sf/clickclick/examples/jquery/page/ajax
[2]: http://malsup.com/jquery/taconite/
ajax response
Posted by om...@polaris.co.in.
Hi,
Anybody knows how to do this. How do I get Ajax responses to
contain forms. It looks like forms are getting created in the java files by
using $form etc in the htm files.
My pageflow looks like this:
ajax-select.htm -----> AjaxSelect.java
<includes>
ajax-select-include.htm
<registers>
ajax-customer.htm -----> AjaxCustomer.java
The ajax-customer.htm contains the ajax response. What if I want to send
forms as part of the response in ajax-customer.htm.
Regards,
V.Omprakash
Project Manager - Quark
CTOO
Chennai One, Extn: 8112
Mobile: 99406 82346
omprakash.v@polar
is.co.in
To
05/20/2009 01:34 click-user@incubator.apache.org
PM cc
Subject
Please respond to Re: ajax response
click-user@incuba
tor.apache.org
Hi,
Iam trying to use Click to provide a UI for my application. Since
I don not know how many forms will be needed, I am trying to dynamically
construct as many as are needed. I have got as far as getting the query the
user wishes to perform and its signature. How do I render the response so
it contains the right number of forms. The query signature may also have
java objects which I will have to inspect to get the field names and types
so I can create a control of the right type. Could someone please suggest
the right approach to this problem. Iam working with the ajax select
example to see if it can be modified.
Could someone who knows also enlighten me on the Rico response
type="object" and if it can be used for this problem.
Regards,
V.Omprakash
CTOO
Chennai One, Extn: 8112
Mobile: 99406 82346
This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only. If by an addressing or
transmission error this mail has been misdirected to you, you are requested
to delete this mail immediately. You are also hereby notified that any use,
any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polaris.co.in
This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polaris.co.in
Re: ajax response
Posted by om...@polaris.co.in.
Hi,
Iam trying to use Click to provide a UI for my application. Since
I don not know how many forms will be needed, I am trying to dynamically
construct as many as are needed. I have got as far as getting the query the
user wishes to perform and its signature. How do I render the response so
it contains the right number of forms. The query signature may also have
java objects which I will have to inspect to get the field names and types
so I can create a control of the right type. Could someone please suggest
the right approach to this problem. Iam working with the ajax select
example to see if it can be modified.
Could someone who knows also enlighten me on the Rico response
type="object" and if it can be used for this problem.
Regards,
V.Omprakash
CTOO
Chennai One, Extn: 8112
Mobile: 99406 82346
This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
Visit us at http://www.polaris.co.in
Re: ajax response
Posted by "Adrian A." <a....@gmail.com>.
> The ajax select example has a ajax-customer.htm file which displays the
> response. In my case, it is displaying the name of my domain object but the
> other fields are empty. I have checked that the data for
> all the fields is correctly retrieved from the table. Then why doesn't it
> get displayed?
I hope you do realize that you need to post more details about your
problem, like sample code, click/java version, server logs, browser
error messages, etc.
> Can anyone help?
1. Install FireBug in FireFox:
http://getfirebug.com/
to be able to debug/inspect Ajax requests.
2. Configure for your Click application the mode to "trace":
---------
<click-app ...>
..
<mode value="trace">
</click-app>
---------
To be able to easily follow everything that happens in your application.
If the above still does not help you finding the problem, please post
here more *concrete details* (telepathy is not our strength :) ).