components

How can a JSF/ICEfaces component's parameters be updated immediately?

南笙酒味 提交于 2019-12-04 18:22:50
I have an ICEfaces web app which contains a component with a property linked to a backing bean variable. In theory, variable value is programmatically modified, and the component sees the change and updates its appearance/properties accordingly. However, it seems that the change in variable isn't "noticed" by the component until the end of the JSF cycle (which, from my basic understanding, is the render response phase ). The problem is, I have a long file-copy operation to perform, and I would like the the inputText component to show a periodic status update. However, since the component is

Get number of components in placeholder, Sitecore

99封情书 提交于 2019-12-04 18:05:30
I have a component that needs to know how many components thats currently added to the very same placeholder, this since it needs to update a value of an html-attribute based on its index within the placeholder. Is there anyway to get either the number of components thats already added to a placeholder, or to get the current-renderers index? Usually I would just use a simple for-loop and set the attribute, but since its a placeholder with components thats not an option. Thanks in advance! Try this: var placeholder = "my-placeholder"; var renderingReferences = Sitecore.Context.Item

Delphi Custom popup/dropdown, how?

天大地大妈咪最大 提交于 2019-12-04 17:44:29
I want to make a custom dropdow/popup menu with a shadow nicely beneath it. The problem is that it is not a standard menu and I need to put some components on the popup/dropdown. So basically I want a dropdown I can do whatever I want with, not being limited to simple menuitems. I want it to act like a normal popupmenu problem is where do I start. Any solutions? References? Warren P It sounds like you want a form that looks like a popup menu, but contains components. It is easier if you have a component that has an OnMouseDown event, like the TPanel shown in this sample, and you just pop up a

What is the best way to implement declarative collection rendering with Polymer?

混江龙づ霸主 提交于 2019-12-04 17:19:36
I would like to be able to render a remote collection fetched with <core-ajax> as such: <rendered-collection url="/api/items"> <custom-element value="{{ _it_ }}"></custom-element> </rendered-collection> where <rendered-collection> would look something like: <link rel="import" href="/core-ajax/core-ajax.html"> <polymer-element name="rendered-collection" attributes="url" noscript> <template> <core-ajax url="{{ url }}" response="{{ collection }}" auto handleAs="json"></core-ajax> <template repeat="{{ _it_ in collection }}"> <content><!-- cannot be used like that unfortunately --></content> <

How does the tooltip control enhance all controls on the form with a new property?

大憨熊 提交于 2019-12-04 16:52:30
When answering another question I started to wonder how I could Add new properties to all controls in a form just like the ToolTip-control does. For example I could use that to Add a "IsDirty"-flag to all textboxes just by adding the component to the form and it would handle this for every textbox. When adding the tooltip-control to the form all controls magically gets a new property "Tooltip on tooltip1" that can be set both programatically and in design view. I want to be able to do my own enhancer like that. It's an Extender Provider . 来源: https://stackoverflow.com/questions/338924/how-does

Android : how to create componentName in code using <activity-alias>

若如初见. 提交于 2019-12-04 16:42:46
I have a feature that I only want to be available only when certain conditions are met so I have this activity alias: <activity-alias android:name="share-files-text" android:targetActivity=".MyActivity" android:exported="true" android:enabled="false"> <intent-filter android:label="@string/open_with"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:mimeType="application/pdf" /> <data android:mimeType="image/*" /> <data android:mimeType="text/plain" /> <

Is it possible to tell Visual Studio not to treat a source file as a “component”? [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-12-04 16:25:44
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Is there an attribute I can add to a class so it will be edited as code, not in the designer? Class with System.ComponentModel.Component on their inheritance path are automatically treated as "components" within Visual Studio (2008), triggering a different icon for the source file: While the icon does not really matter, the changed double click behavior is really annoying: instead of opening the source code in

What does it mean by $scope=global in ATG..?

自闭症网瘾萝莉.ら 提交于 2019-12-04 16:10:28
According to the documentation, Global: Component is shared among all users. Session: Separate instances of the component are provided to each user. Is that means, for global component, there is only one instance for the whole nucleus system.. If this is true, how does it valid for components like ‘/atg/dynamo/transaction/TransactionManager’ and most of the droplets..? Because those components are used by several users at a single moment Edited: I understood the ‘TransactionManager’ behavior. According to the definition there should be single transaction manager, and he should keep transaction

Difference between a Component and a View in Aurelia (and their lifecycles)

拟墨画扇 提交于 2019-12-04 14:23:17
Could you please tell me what is difference between a component and a View in Aurelia? What are their architectures and What is the difference between their lifecycles? As a rule of thumb, the difference between a view and a component in Aurelia can be summarised as: A view in Aurelia is simply put the .html and the styling that comes with it (.scss/.less/.css) A view-model in Aurelia is the code behind it (.js/.ts class) A component is the combination between a view and view-model, and is glued together automagically by Aurelia In essence you can say that, with Aurelia, pretty much everything

Using Laravel 4's Input class outside the framework

会有一股神秘感。 提交于 2019-12-04 14:19:05
I like the way Laravel 4 handles the input, and how you can get the value via Input::get() no matter if its sent by get, post or whatever. I'm working on a project that does not use Laravel as the framework, but it will be great if i can use the Input class. Can anyone help me how can this be done? Input is, in fact, the Request class. You can require it using Composer: composer require "illuminate/http" "4.x" Require Composer autoload.php in your project: require 'vendor/autoload.php'; And use it: $input = Illuminate\Http\Request::createFromGlobals(); var_dump($input->all()); 来源: https:/