render

Silverlight Not Rendering On Navigation

I'm trying to create a site that requires login. Its entirely designed in silverlight. So my first page, home.xaml loads in mysite.aspx and it basically has a login page. AFter login, the user is redirected to another page user.aspx. in that page, i've embedded another silverlight control called nav.xaml. so now when user.aspx loads...

Ruby on Rails when create method fails, render loses local variables

Hey guys I have a simple create method with some validations and whenever the create method fails due to validation errors it re-renders the 'new' action. The problem is in my new action/view I have a local variable that is established in the action and passed to a partial to render some related information to what the user is creating....

How to call a javascript post render in Rails ?

This is the facebox popup content <div class="form_container"> <% form_remote_tag :url => { :action => 'custom', :d=>params[:day], :h=>params[:hour] }, :class => 'general-form', :update => 'grid['+params[:day]+']['+params[:hour]+']', :success => 'handle_success('+params[:day]+','+params[:hour]+')' do -%> <...

When I use CAML to filter ListView, <!-- #RENDER FAILED --> was show in the ListView

Hi All When I use CAML to filter my ListView, it ok when I use this CAML: query = "<Where><Or>" + "<And>" + " <Eq>" + "<FieldRef Name=\"TagForDiscussion\"></FieldRef>" + "<Value Type=\"Text\">Tag</Value>" + "</Eq...

render :action with params

hello, I have one Class with 2 methods. The first method is called by the view with some GET parameters ( params[:page] ). I would like to save those params and send them by a render action to my second method. class exemple def first ## sql save of params[:page] render :action => "second" end def second ## ## H...

Write a custom HtmlResponseWriter JSF

Hello guys, For many internal problems that doesn't count now, We have a Servlet filter that changes all outcome that's application/xhtml+xml and rewrite to text/html;charset=UTF-8 so even using the facelets it'll work with no problem with IE 6.0. My question is on the HtmlResponseWriter, which is the component responsible for the rend...

Change view dynamically from controller - Progress bar with threading in Rails

I have a time taking task in my controller for which I want to trigger a simple progress bar/progress status in my view. In my controller I have something like threads = [] total.times do |x| Thread.new { the_time_taking_task(x) #Something here to trigger the progressbar in the view } end threads.each { |aThrea...

Design for TreeCellRenderer

I have been looking into JTree and TreeCellRenderer. It seems in general, the application (with one JTree) has only one instance of TreeCellRenderer. The application makes multiple calls to TreeCellRenderer's getTreeCellRendererComponent method to decide how each TreeCell is drawn, and such call are made in many occasions (when a cell ...

Render User Control Dynamically using Source Code

I have a user control called "MyLabel". When combined with a tagPrefix in my web.config, I would add the source code to an aspx page as follows: <sr:MyLabel ID="lblCopyright" runat="server" ResourceKey="Copyright" /> Now, instead of entering this in the aspx, I would like to keep this code string in the database, and in the codebehin...

How to force a monospaced font to render in Facebook?

I made a program that generates ASCII art from an image. I want users to be able to copy and paste that ASCII art to their wall and have it display properly. Problem: Facebook doesn't use a monospace font. Does anyone have any ideas on a workaround? ...

Will a page taking 2-3 mins to render cause a javascript 'taking too long' warning

I'm using the jQuery document ready method - $(function() If the page takes too long to render (say 2mins+), will this be the reason for the page throwing a javascript taking too long to execute error/warning? ...

DOS ASCII Animation Lagging without constant input, Turbo C compiled

Here's an oddity from the past! I'm writing an ASCII Pong game for the command prompt (Yes yes oldschool) and I'm writing to the video memory directly (Add. 0xB8000000) so I know I'm rendering quickly (As opposed to gotoxy and then printf rendering) My code works fine, the code compiles fine under Turbo C++ V1.01 BUT the animation lags...

Render not rendering right page

This might be impossible to answer since there are probably too many variables here, but I thought I'd give it a shot since I always find other answers here. I am still fairly new to rails. So, I have a bills model/controller/view. I want to create a new bill. I will be editing out the things that shouldn't matter much, but if they are ...

ASCII DOS Games, need help with Rendering methods!

I'm writing an old school ASCII DOS-Prompt game. Honestly I'm trying to emulate ZZT to learn more about this brand of game design (Even if it is antiquated) I'm doing well, got my full-screen text mode to work and I can create worlds and move around without problems BUT I cannot find a decent timing method for my renders. I know my ren...

Render_template error Integration test in Ror

hi, I just trying the integration test in ruby on rails.. I have added a file layout_links_spec.rb require 'spec_helper' describe "LayoutLinks" do it "shuld hve a homepage" do get '/' response.should render_template("pages/home") end it "shuld hve a contactpage" do get '/contact' response.should render...

GWT/GXT: Repaint/Rerender Textfield after setValue with Event

Hi all, i have a problem. I add a widget (LayoutContainer implements EventHandler) with a FormPanel with serveral TextFields with empty values. I have a working Event that should fill some values into some of that Textfields. I tried the following: @Override public void onClientSelected(ClientSelectedEvent event) { Map<String, ...

In Ruby on Rails, how to render JSON?

I tried the following to respond to AJAX and it works (in HAML): - response.content_type = "application/json" = render :text => array_data.to_json but - response.content_type = "application/json" = render :json => array_data.to_json doesn't work. I thought I could use = render :text => array_data.to_json instead of th...

C# Rendering 'player' sprite from differend class

Hello, i was wondering how could i display 'player' sprite from Player.cs class. So far everything was happening in Program.cs file, witch had 'device' for rendering. Now i want to do same but using different classes. Do i need to create device for each class to render stuff thats happening within them, or i need to somehow access the de...

How to get CakePHP to render plain text with line feeds?

I need one of my controller actions to return a list of names, on name per line, as plain text. The reason for this is so that it can be consumed by the JQuery autocomplete plugin which expects this format. Unfortunately, when the page renders, the \n characters won't render as newlines. Controller function UserController extends App...

DataGrid button - Invalid Postback or Callback

I have setup a DataGrid with a number of columns and a checkbox and column at the end of the row. I am also changing the layout of the datagrid on the OnItemCreated event which changes the layout of the datagrid by expanding the rows with the "Rowspan" attribute and remove the extra columns and controls where they are no longer required...