render

A way to easily check if an element was rendered in jsf2

£可爱£侵袭症+ 提交于 2019-12-13 21:55:52
问题 I have a button that is supposed to close a modal panel and render several elements. Is there an easy way to check if an element was rendered after the button was pressed? example button: <a4j:commandButton onclick="#{rich:component('modal')}.hide();" style="background-repeat:no-repeat;width:18px;height:18px;" image="includes/images/close.gif" render=":id1 :id2"> <f:setPropertyActionListener target="#{Controller.attribute}" value="false" /> </a4j:commandButton> 回答1: I have another button that

three.js SpriteCanvasMaterial: TypeError: Cannot read property 'replace' of undefined (in render function)

与世无争的帅哥 提交于 2019-12-13 19:21:47
问题 console log info: THREE.WebGLRenderer 91dev var main3d = { scene: null, camera: null, renderer: null, init: function () { // initialize scene, camera etc. var _dotGeometry = new THREE.Geometry(); _dotGeometry.vertices.push(new THREE.Vector3(2, 4, 0)); //var _dotMaterial = new THREE.PointsMaterial({ size: 5, sizeAttenuation: false, color: 0x00ff00 }); _dotMaterial = new THREE.SpriteCanvasMaterial({ color: 0x00ff00, program: function (context) { context.beginPath(); context.arc(0, 0, 0.05, 0,

how can i render html file in node.js

感情迁移 提交于 2019-12-13 18:50:54
问题 i have tried to render html file but i got this error . i have login.html within public folder.how to render html file.thanks in advance. my server side coding var express = require('express'); var app = express(); app.configure(function(){ app.set("view options", {layout: false}); app.use(express.static(__dirname + '/public')); }); app.get('/', function(req, res) { res.render('login.html'); }); app.listen(8000) Error: Failed to lookup view "login.html" at Function.render (/home/aware/local

UWP render 3D model in a

十年热恋 提交于 2019-12-13 16:18:29
问题 I'm writing a C# Universal Windows Application that loads a model from a .obj file and I would like to render that model so that the user can rotate it and scale it. Is there a way to render it in the app? Preferably in the same window? Something like the Map control, it's wrapped inside the app but still interactive. 回答1: I found this MSDN article for Windows 8.1 phone that tells us to use PlaneProjection. <StackPanel.Projection> <PlaneProjection RotationX="-35" RotationY="-35" RotationZ="15

Mandrill: Conditional merge tags not working when rendering template

ε祈祈猫儿з 提交于 2019-12-13 15:00:22
问题 I've tried conditional merge tags(i.e something like |IF:MY_NUM!=0| ), it works as expected when sending emails. But when I try to render a template, given the same global_merge_vars and merge_vars, all the content within the IF merge tag block just remains blank. I got the rendered html code and render it with ExpressJS. Did I lose something? 来源: https://stackoverflow.com/questions/24906337/mandrill-conditional-merge-tags-not-working-when-rendering-template

In Ruby on Rails, how to render JSON?

大城市里の小女人 提交于 2019-12-13 10:25:12
问题 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 the first 2 lines at the top? 回答1: = render :json => @object (u don't need to use .to_json method) 来源: https://stackoverflow.com/questions/3367246/in-ruby-on-rails-how-to-render

Android: are images of the same size rendered differently if placed in different drawable folders?

情到浓时终转凉″ 提交于 2019-12-13 08:47:23
问题 does an image of the same pixel dimensions in drawable-hdpi render the same or different in drawable-mdpi folder? 回答1: Yes, they will render differently. Each time you provide higher density images, those images will need to have a larger size in pixels to account for the density but appear at the same size in dp. To convert dp to pixels, multiply a value in dp by the device's density multiplier. mdpi is 1.0, hdpi is 1.5, xhdpi is 2.0. Therefore 100dp in hdpi is actually 150px. An app with an

grails renderpdf plugin, how does it work?

匆匆过客 提交于 2019-12-13 08:31:27
问题 i´m trying to render PDF with renderpdf grails plugin, but their documentation is very short. i made a button in my gsp view/file <button type="button">PDF Me!</button> and ByteArrayOutputStream bytes = pdfRenderingService.render(template: "/pdfs/report", model: [data: data]) in a view for binding images <rendering:inlinePng bytes="${imageBytes}" class="some-class" /> model data is domainInstance and how do i connect the button with this renderpdf? may be i should more specify my code def

Ext js event fired or called after renderer

久未见 提交于 2019-12-13 06:19:14
问题 I have a grid column which uses the renderer function. Are the any events fired or called after this? I have tried several ones but they all get called on the whole column and they all fire before the renderer (even event afterrender) thanks in advance 回答1: afterrender only fires once when the column is laid out on the page. It is a basic ExtJS component event that almost all ExtJS components have and doesn't relate to the renderer function used for grid columns. Not totally sure what you're

GPU vs CPU render mode Adobe AIR

夙愿已清 提交于 2019-12-13 04:34:33
问题 I had the following question: BitmapData lock and unlock not working on android Now, encountering that issue, reading about render mode, I'm very confused how a script that simple fails in GPU mode,but is very fast on CPU mode. So the question is, how GPU mode works and how CPU mode works for adobe air? And why on GPU most of the stuff works better, but not that script Note: Base bitmap size should be bigger than 1400x1400 回答1: There are some limitations on GPU render mode. Adobe recommends