render

Rerendering show/hide trick with AJAX (JSF+richfaces) only work for first record in a4j:repeat

Hi! For a while now, I've been working on a JAVA-based web project, and have found this website to be very helpful on numerous occasions. So, 'got some problems of my own now - and would appreciate if you help out! Ok, so Here's the thing - I'm trying to render a list of messages, each of which consists of a message title and a message...

Rails 3 > Rendering views in rake task

Hello there, I'm stuck with a rake task that need to prepare a newsletter for Mailchimp. Using rails 2.x stuff googled I now have this code: desc "Sends newsletter to Mailchimp list" task :send_newsletter => :environment do begin # get render helpers av = ActionView::Base.new(Rails::Application::Configuration.new(Rai...

Create custom lookup field and modify rendering in list view

I want to create a custom field that behaves exactly like the Lookup field type, allowing multiple selection, except that I want to modify the rendering of the items in the lists. Each item in the list will have a button that displays the lookup options to enable / disable the desired boxes. We have created a custom field in Visual Stu...

Rendering html text in Dashcode text area

I'm loading product reviews from an xml datasource into a dashcode text area. The text includes basic html tags. When it's loaded into the text area the tags are not rendered they are just there like this: <p>Some text... etc. Is there a way to have a Dashcode text area render the html? Thanks! ...

DrawToDC fails on IE9 web browser control

I have been using the following code to get a metafile vector image for the content of IWebBrowser2 control as following: IHTMLElement* pDocBody; IHTMLDocument2* pDoc; ... ... pDoc->get_body(&pDocBody); // get body element for IHTMLDocument2 pDocBody->get_parentElement(&pEleParent); pEleParent->QueryInterface(IID_IHTMLElement2,(v...

iphone: render text vs. burn into image

This might be more of a philosophical question, but is there a compelling reason to go one way or the other when presenting text above an image: 1. Burn the text into the image on the server side and just show the image on the iphone or 2. Send the background image and the text separately to the iphone and have the iphone render the t...

Rails posting form data

Hi, I was looking at some tutorials on rails and found that people use a separate create function for saving form data. When i tried the same i was unable to repopulate the form, that is shown in the index.html.erb and is rendered by the index function. should i add a manual render command? ...

HyperLink control ends up as-is in HTML source

This is a strange one. I have a couple of hyperlinks that I use for paginating a RadGrid (next page, prev page). All works well until I decided to hide one or the other when on the first/last page. So I added the Visible attribute and set a value of true/false using a databinding expression like so: <asp:HyperLink Visible="<%#(int)DataB...

Error with custom rendering my list view..please help !

Hi, I am trying to render my listview containing names of doctors and few more details using a tablelayout component showing 4 textviews in each listview item. But I get an error while I am doing this..PLEASE HELP! I have a project deadline tomorrow. When I debug by code, the control goes till IconicAdapter() constructer, from there it ...

Asp Hyperlink's attribute cannot be changed using code behind.

I am a newbie in asp.net. I am trying to load the text and the URL into hyperlink from a database. After debugging, I found out that the value is successfully loaded into the hyperlink control, however it doesn't shows at the html code? Does anyone knows how this happened? Sorry for my bad English. If myReader2.Read Then...

Android OpenGL - ES Texture bleeding

Hello! I am writing a small app that at the moment generates a random map of textures. I am drawing this map as a 10 x 15 group of "quads" which are infact all triangle strips. I use the "map" to grab an int which I then take as the location of the texture for this square in the textureAtlas. so for example 0 is the bottom left "tile"....

I just deleted this code- why is it still rendering the photo?

http://u.neighborrow.com/users/view/4 (sorry - had the wrong link up there, i had copied a redirect by accident) <?php if (! empty($user['User']['avatar'])): ?> <img src="/images/users/<?php echo $user['User']['avatar']; ?>" width="100" /> <?php else: ?> <img src="http://gravatar.com/avatar/&lt;?= md5(strtolowe...

In Rails 3: How do I render with layout in respond_with using a custom format?

My problem is similar to the one in this question, but the opposite. http://stackoverflow.com/questions/3876891/how-do-i-specify-layout-false-in-rails-respond-with The controller is sort of a file converter. It responds to many formats. One format is supposed to render an html layout showing metadata. This format need the layout to be r...

Zend viewRenderer->setNeverRender();

Hi, I am basically trying to export from ZEND to csv as described http://stackoverflow.com/questions/1136264/export-csv-in-zend-framework and use the $this->_helper->viewRenderer->setNeverRender(); unfortunately the plugin code is still contained in the csv file. Any clue why? public function indexAction() { $this->_helper->lay...

Rails 3 global render

Is there a way to tell an entire controller to render a particular partial or text? Example: class PageNotesController < ApplicationController render :text => "Testing" def index @notes = PageNotes.all end def show @note = PageNotes.find(params[:id]) end def create @note = PageNotes.create(params[:note]) end...

Having to explicitly render :layout => 'application' in controller actions in my Rails 3 app

I am having to explicitly render :layout => 'application' in my controller actions in order to get my new rails 3 app to actually use the application.html.erb layout file. Any obvious things to look for that I am doing wrong? If I don't call the :layout option it just doesn't render the layout. I get a message like: Processing by Foo...

How to render a partial in a plugin from a plugin helper

I have a helper in my plugin test_plugin/lib/test_helper.rb: module TestHelper def test_render render 'test_plugin/test_partial' end end I have a partial test_plugin/app/views/test_plugin/_test_partial.html.erb: <p>Hello World!</p> In my application app/views/tests/index.html.erb when I do this: <%= test_render %> I get ...

iPhone Safari CSS image-background rendering bug

Hi guys, I spent lot of hours trying to figure out the following mystery that is happening on iPhone with rendering my rounded corner box. It is a simple technique where there are 3 divs and basically 3 parts of the box: top, middle and bottom. Where the middle is repeating on the y-axis and top and the bottom are absolutely positione...