Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Components in a dynamic page
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
wallaby  
View profile  
 More options Jun 12 2008, 5:50 am
From: wallaby <janis.plahot...@gmail.com>
Date: Thu, 12 Jun 2008 02:50:19 -0700 (PDT)
Local: Thurs, Jun 12 2008 5:50 am
Subject: Components in a dynamic page
Dear Developers,

I'm expieriencing a problem I cannot solve. Please, help!

I have a dynamic page with an accordion in it so that users can switch
between several data forms.
I want those forms to submit using AJAX. So far so good, but I cannot
figure out the correct architecure for this part.

I want to use a component for each form in my accordion, but when I
the form is submitted, I cannot redirect back from the action to my
component and refresh the form.

Where did I go wrong? Is it correct that components submits data to an
ordinary action? How do I get back to my component?

Thank you in advance!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bert-Jan  
View profile  
 More options Jun 12 2008, 9:05 am
From: "Bert-Jan" <i...@bert-jan.com>
Date: Thu, 12 Jun 2008 15:05:17 +0200 (CEST)
Local: Thurs, Jun 12 2008 9:05 am
Subject: Re: [symfony-devs] Components in a dynamic page
You could put the include_component() in de Success template of the action
that handles the ajax request.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wallaby  
View profile  
 More options Jun 12 2008, 10:22 am
From: wallaby <janis.plahot...@gmail.com>
Date: Thu, 12 Jun 2008 07:22:30 -0700 (PDT)
Local: Thurs, Jun 12 2008 10:22 am
Subject: Re: Components in a dynamic page
Correct. I had done that.

The problem is that my controller which processes the submitted data
of the component at the end should return the same component so that
only this one, certain form is refreshed (I don't want to impact any
other parts of the screen).

However, I'm not able to do any forwards or redirects from a
controller to a component :/

I just found out that Symfony v1.1 is going to have the methods
renderPartial() and renderComponent() which is kind of what I need,
but I don't want to move to v1.1 yet.

Currently I've already created several actions with respective views
which together act like portlets and return their content without a
layout, however using the components would be much nicer I think.

Hope you guys understand where's the problem. I might be a bit
unclear :)

On Jun 12, 4:05 pm, "Bert-Jan" <i...@bert-jan.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francois Zaninotto  
View profile  
(1 user)  More options Jun 12 2008, 10:42 am
From: "Francois Zaninotto" <francois.zanino...@symfony-project.com>
Date: Thu, 12 Jun 2008 16:42:34 +0200
Local: Thurs, Jun 12 2008 10:42 am
Subject: Re: [symfony-devs] Re: Components in a dynamic page

If you want renderPartial() in a symfony 1.0 action, just add this method to
your action class:

  protected function renderPartial($templateName, $vars = null)
  {
    sfLoader::loadHelpers('Partial');
    $vars = $vars ? $vars : $this->varHolder->getAll();

    return $this->renderText(get_partial($templateName, $vars));
  }

If you want a renderComponent()... you get the idea.

Cheers,

François

2008/6/12 wallaby <janis.plahot...@gmail.com>:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wallaby  
View profile  
 More options Jun 13 2008, 4:13 am
From: wallaby <janis.plahot...@gmail.com>
Date: Fri, 13 Jun 2008 01:13:44 -0700 (PDT)
Local: Fri, Jun 13 2008 4:13 am
Subject: Re: Components in a dynamic page
Thank you very much!!!

You have saved the day!

Regards!

On Jun 12, 5:42 pm, "Francois Zaninotto" <francois.zanino...@symfony-


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google