java - inject style attribute based on parameter from Action in select item on JSP -
- Get link
- X
- Other Apps
I am trying to find out the solution for hours, but still failed: (
Here's the simple Devel on my JSP:
I Like style:
But this style list is dependent on the object size which is coming from the Straps action, so it results to JSP action success I was just trying to smthg like trial injection value:
<: s: set name = "divStyle" value = "display: none;" /> & lt ; Div class = "message" style = "& lt; s: property value =" county style "/>> Hello user!
and I tried:
<: set name = "divStyle" value = "<: if test =" elementfraction_activation1 gt "and" display: none; & Lt; / S: If & gt; "/> & lt; div class =" message "style =" & lt; S: property value = "divst yale" /> "& gt; hello user!
and:
1" & gt; Display: None; & Lt; / S: if & gt; "/ & gt;" & gt; Hello USER! & Lt; / Div & gt; But it also was not working: (
Can someone give advice on how to inject them
In the & lt; s: set / & gt; snippet, you get strats tags to nest There is an error, which is an error.
In your final snippet, there is a typo: You are closing an un-opened tag with /> . < / P>
Change it
and From
1 "& gt; Display: none; Hello user!
-
Get link
-
Facebook
-
X
-
Pinterest
-
Email
-
Other Apps
Popular posts from this blog
c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -
I am trying to use the ASP.NET signal for the first time - here's what I did: created a new web Has been added to the project and the following signal R packages: I have created the following category: [Hub-name ("chat")] Public class ChatHub: Hub {Public Zero Halo () {Clients.All.hello ( ); }} and the following startup configuration: public partial class startup {public zero configuration (IAppBuilder app) {configure (app); App.MapSignalR (); }} However, whenever I navigate localhost: (port) / api / signalr / chat I get the following error: Protocol error: Unknown transport. I am running a new browser and trying different people so remove it from the API / URL, and just use the localhost: (potter) / signaller / Chat
Camel ProducerTemplate possible memory leak -
To some degree, this is a bit of a shot in the dark, but we have a process that is dramatically slow One day's course we have found that all the things running on the fuses begin to draw, but when we are running a specific process, JPPropellers are going on, I have found that the increase in magnetic usage increases over time. . Org.apache.camel.ProductTemplate.Send So my main question is, is the way in which the manufacturer product is being used here which is wrong / can this be a problem? exchange foo = new DefaultExchange (getCamelContext (), ExchangePattern.InOnly); Foo.getIn () setBody (obj). Root R = Exchange .getContext (). GetRoute ("do_something_fun"); Creator Template Template = exchange.getContext () CreateProducerTemplate (); Template.send (r.getEndpoint (), foo); Generally, you should not create a productive template on each request as described here: / P> However, because I do not have a complete picture of your application, so you can cr...
javascript - Adhering to a max length setting with jshint -
I get several recommendations to compile a maximum of 80 characters when writing javascript, e.g. Google, NPM, Node. JS, Crockford In some cases, though, I do not think how best to do this. MongoClient.connect ('mongodb: // localhost: 27017 / sampleDatabase', function (mistake, database) {if (err)} {throw error;} db = database;}); This will throw a jshint warning because it exceeds 80 characters. Now, do you choose to ignore the warning in this example, or instead choose an option for a solution like MongoClient.connect ('mongodb: // localhost: 27017 / sampleDatabase' , Function (err, database) {if (err) {throw error;} db = database;}); If you can reuse the url variable So, great option if this is a shot, as is often such a call, I would probably do something like this ... / * jslint sloppy: true, white: true, browser: True, maxlen: 80 * / / * global mongo client * / var dbarhh, db; DbErrHand = function (mistake, database) {if (err) {throw error; } ...
Comments
Post a Comment