Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: webflow with DWR/XT?

  1. #1
    Join Date
    Dec 2006
    Location
    irving
    Posts
    119

    Default webflow with DWR/XT?

    Hi Guys,
    i am looking for best solution integrating ajax framework with webflow

    can anyone suggest which is best fit for webflow?

    is there any examples for DWR/XT with web flow?
    Last edited by indone; Mar 19th, 2007 at 04:52 PM.
    Thanks
    Venky

  2. #2
    Join Date
    Aug 2006
    Location
    Brooklyn
    Posts
    556

    Default

    For lightweight use of ajax such as refreshing parts of a page Prototype works very well. Along with Scriptaculous you can achieve some pretty good visual effects with very little Javascript code. The shippingrate sample in the webflow release has an example of something to that extent.

    regards,
    Rossen

  3. #3
    Join Date
    Dec 2006
    Location
    irving
    Posts
    119

    Default

    Thanks rossen.
    in my flow i have 3 different paginations funtionality in one jsp.
    so those 3 paginations need to have refreshing parts.
    Let me take a look and thanks for your suggestion
    Thanks
    Venky

  4. #4
    Join Date
    Jul 2006
    Location
    Rome, Italy
    Posts
    347

    Default

    Quote Originally Posted by indone View Post
    in my flow i have 3 different paginations funtionality in one jsp.
    so those 3 paginations need to have refreshing parts.
    Let me take a look and thanks for your suggestion
    I think that XT Ajax simplicity is perfect for your scenario.
    Moreoevr, it's already integrated with Prototype and Scriptaculous: https://springmodules.dev.java.net/d...ngle/#d0e11904

    Cheers,

    Sergio B.
    Sergio Bossa
    Spring Modules Team

  5. #5
    Join Date
    Dec 2006
    Location
    irving
    Posts
    119

    Default

    Thanks Sergio,
    it is working fine.
    i am using checkbox collection to display in the jsp.

    InputField checkbox = new InputField("products", "one", InputField.InputType.CHECKBOX);
    checkbox.addAttribute("checked","true");
    for check box component how can i set the label ?
    and is there any utility is there to translate the object collection to check box collection ?
    Last edited by indone; Mar 23rd, 2007 at 02:02 PM.
    Thanks
    Venky

  6. #6
    Join Date
    Jul 2006
    Location
    Rome, Italy
    Posts
    347

    Default

    Hi,

    sorry for the late reply, I've been very overloaded by work.

    Quote Originally Posted by indone View Post
    it is working fine.
    i am using checkbox collection to display in the jsp.

    InputField checkbox = new InputField("products", "one", InputField.InputType.CHECKBOX);
    checkbox.addAttribute("checked","true");
    for check box component how can i set the label ?
    and is there any utility is there to translate the object collection to check box collection?
    Talking about the label, just use a SimpleText component: https://springmodules.dev.java.net/s...impleText.html
    Talking about the utility method, there's no such a thing, sorry.

    Cheers,

    Sergio B.
    Sergio Bossa
    Spring Modules Team

  7. #7
    Join Date
    Dec 2006
    Location
    irving
    Posts
    119

    Default

    Thanks Sergio
    Thanks
    Venky

  8. #8
    Join Date
    Dec 2006
    Location
    irving
    Posts
    119

    Default

    Hi sergio,

    i am in the process of implementing pagination.i need your valuable help/suggestion for this.
    i have the display in the jsp like below. which contains a 10 rows with two column checkboxes in a table.
    how can i implement this using XT . do we need implement this code part of the handler or is there any easy way for this.

    Code:
    	<table class="highlight" border="0" cellpadding="0" cellspacing="0"
    			width="100%">
    				<tr>
    					<td><c:forEach var="products"
    						items="${bpmodel.bpinfo.products.collection}"
    						varStatus="loopStatus" begin="1" end="10">
    						<c:if test="${loopStatus.count>1}">
    							<td>
    						</c:if>
    						<spring:bind
    							path="bpmodel.bpinfo.products.collection[${loopStatus.index}].selected">
    							<input type="hidden"
    								name="_<c:out value="${status.expression}"/>" value="visible" />
    							<input type="checkbox"
    								name="<c:out value="${status.expression}"/>" value="true"
    								class="bp-payment-options"
    								<c:if test="${status.value}">checked</c:if>>
    							<span class="bp-payment-labels"> <c:out
    								value="${products.property}"></c:out></span>
    						</spring:bind>
    						<c:if test="${loopStatus.count>1}"></td>
    					</c:if>
    					<c:if test="${(loopStatus.count mod 2)==0}">
    				</tr>
    				<tr>
    					</c:if>
    					</c:forEach>
    
    				</tr>
    		</table>
    can we add (checkbox and simpletext) to one tabledata( TD)?


    i am attaching the screen shot for this. please take a look.
    Attached Images Attached Images
    Thanks
    Venky

  9. #9
    Join Date
    Jul 2006
    Location
    Rome, Italy
    Posts
    347

    Default

    Quote Originally Posted by indone View Post
    i have the display in the jsp like below. which contains a 10 rows with two column checkboxes in a table.
    how can i implement this using XT .
    If you have to display complex contents I'd suggest you to use the JspComponent: https://springmodules.dev.java.net/s...Component.html
    It let you output Jsp data via Ajax.

    Cheers,

    Sergio B.
    Sergio Bossa
    Spring Modules Team

  10. #10
    Join Date
    Dec 2006
    Location
    irving
    Posts
    119

    Default

    Thanks sergio.

    i am having problem with sending parameters via ajax function.
    the error it is saying
    missing : after property id
    [Break on this error] XT.doAjaxAction('loadKeywords',this,{'type'



    in my jsp i am calling like this. so am i missing anything?
    Code:
    <a href=javascript:XT.doAjaxAction('loadKeywords',this,{'type' : '1'})> Next</a>
    Thanks
    Venky

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •