Questions tagged [viewrendering]
37 questions
0
votes
1 answer
Zend addScriptPath in postDispatch?
is it a good idea to add a script path in postDispatch of a controller? Or is the init() or preDispatch() function a better place for it?
public function postDispatch() {
$this->view->addScriptPath( path/to/scripts );
}
In fact adding a script…
0
votes
0 answers
In SpringMVC, how can I give LiteDeviceDelegatingViewResolver an order value?
In our SpringMVC based website, we want to use the LiteDeviceDelegatingViewResolver.
We already have a couple of other ViewResolvers configured and we want the LiteDeviceDelegatingViewResolver to take precedence over those.
However the…

0cd
- 1,729
- 3
- 15
- 24
0
votes
1 answer
How to retain original view after action renders different layout element
I have an action/view script that displays a table of rows, and each row is clickable: I want this action to update a particular div with more details of the row. However, when i do so, the original table is lost ( view is cleared)
How can i get an…

alfaMonkey
- 11
- 3
0
votes
1 answer
How to switch translation view render array?
In a cron controller I want to select records for sending mail and render a pdf from pdf.html view to send as attachment. In the pdf.phtml I have a translation based on translation files. Looping through the array translation should…

zef
- 649
- 1
- 7
- 22
0
votes
2 answers
Zend Action viewRenderer() is POST-ing my form
I am trying to send a parameter from the indexAction to the editAction using the viewRender function. The problem is when the editAction is called it causes my $form to think it has been posted.
public funciton indexAction(){
...
…

M1Reeder
- 692
- 2
- 7
- 22
-1
votes
1 answer
Template Inheritance doesnot work in Django
I have base.html (which is my home page). It has navbar which is in navbar.html and some sliders in base.html itself. I have created ProductList view which render context(i.e products), which is used in product_list.html to make values dynamic.
Now…

Gaurab Dawadi
- 69
- 6
-1
votes
1 answer
Should I prefer rendering layout at run time or Include it in XML layout?
I need to show a "No data found" message on many screens in my app. For that I created a separate layout with message and image; Now,I'm not sure whether I should include that layout in all other activities' layout or render this layout at runtime?…

ManishNegi
- 569
- 1
- 6
- 19