Why bindings do not work?

Dracontis
<textbox  id="nextTitleTextbox" readonly="true" value="@bind(ivm.inventory.successorTitleName)" />
<button   id="nextTitleButton" label="..." mold="trendy" onClick="@command('chooseFormerOrSuccessor', isFormer = false)"/>
<a        id="nextTitleHrefView" href="/inventory_new.do?method=edit&amp;docUID=${ivm.inventory.successorTitleName}">view</a>
<a        id="nextTitleHrefHistory" href="javascript:showRenamingHistory(${ivm.inventory.successorTitleName},${ivm.inventory.successorTitleName})">history</a>

The problem is in 'a' tags. Textbox and buttons works fine, but links in 'a' tags do not catch information from binding, so link there looks like /inventory_new.do?method=edit&amp;docUID=. I really don't understand what's wrong here, because I tried a lot of combination and something similar is working on other pages. Where is mistake in this binding?

I even tried to put string from zscript

<zscript>
        String successorTitleHref = "/inventory_new.do?method=edit&amp;docUID=" + ivm.inventory.successorTitleName;
</zscript>

But got exception:

Typed variable declaration : Class or variable not found: ivm.inventory.replacementTitleName.

Also, it's supported controls, that locates in separate file, and every control adding with use derective.

Aaron Digulla

Binding in ZK has nothing to do with variable replacement. @bind() doesn't mean you can use ${...}. The two are completely separate concepts even though both are called "EL Expression" in the manual. But binding EL Expression and ZUML EL Expressions are two different things.

To allow access to ivm in a zscript, you need to define this variable somewhere in the script. One way is to instantiate it:

IVM ivm = new IVM();

or you can use a custom variable resolver.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Angular bindings in href work but src bindings do not?

From Dev

Do twoway bindings work on iOS?

From Dev

Do twoway bindings work on iOS?

From Dev

WPF Commands - Bindings don't work, direct calls do. Why?

From Dev

Why bindings don't work with animations?

From Dev

OData Collection Parameter bindings ... do they actually work?

From Dev

Key bindings do not work in emacs scheme mode

From Dev

With compiled bindings (x:bind), why do I have to call Bindings.Update()?

From Dev

Why Angular's reactive form bindings do not require @Input?

From Dev

Why do ^ and $ not work as expected?

From Dev

Java Bindings: BindBidirectional not work

From Dev

Why are my bindings blocked?

From Dev

Why future example do not work?

From Dev

Why my lambdas do not work?

From Dev

Why getElementsByClassName do not work in Mozilla?

From Dev

understanding do notation and bindings

From Dev

How do I make vim-style key bindings work on tmux using set-window-option?

From Dev

How do I make vim-style key bindings work on tmux using set-window-option?

From Dev

Do groovy bindings exist for a class?

From Dev

Why trigger and click do not work in this case?

From Dev

Why do removeContent(), removeChild(), and detach() not work?

From Dev

why do both methods of inputting string work?

From Dev

Why do my inner joins not work

From Dev

Why do operators not work in C++-CLI?

From Dev

Why do designated initializers work in C++?

From Dev

Why do these statements work differently in JavaScript?

From Dev

Why do JUnit DataPoints methods not work for primitives?

From Dev

Why do neural networks work so well?

From Dev

ReactiveUI - why do these {Binding }s work?

Related Related

HotTag

Archive