ZK Method setInputmode not found for class org.zkoss.zul.Textbox - zk

I am trying to set the HTML5 tag inputmode for the textboxes in order to have the right keyboard to showup on mobile devices but I get this error
Method setInputmode not found for class org.zkoss.zul.Textbox
when I add :
<component>
<component-name>textbox</component-name>
<extends>textbox</extends>
<property>
<property-name>inputmode</property-name>
<property-value>search</property-value>
</property>
</component>
in the lang-addon.xml
I am using Zk version 9
UPDATE :
I seem to have missread the JavaDocs for TextBox and it does not support this method.
I there anyway to have a TextBox configured to open the right keyboard on mobile device in order to be able to trigger the OnOk() event ?
Like maybe using native xmlns marker ? I tried and did not succeed...
thanks for your help !

The only component that has inputMode is org.zkoss.zhtml.Input.
Textbox doesn't support that attribute, that's why you get the error. Where do you see that textbox supports the attribute?

Related

VB6 - Disable drop into webbrowser control

Create a form with a webbrowser control.
Drag and drop a txt/html file into the webbrowser.
The file is shown into the browser.
How do I prevent that?
The WebBrowser control has a property: RegisterAsDropTarget. Set it to false.
You can get a little more info on the property (and other properties) here.
If you want to disable drag-and-drop you should be able to set AllowBrowserDrop to "False".

Bind command to hub section header click in Windows 10 Universal App

Suppose I got a hub page (HubPageView) and a couple of hub sections inside that page e.g.
<Hub Header="{Binding AppName}">
<HubSection IsHeaderInteractive="True"
Header="Section 1">
...
</HubSection>
...
</Hub>
When rendered the above shows as "Section 1 See more" and I take it that if the user taps "See more" the app is supposed to navigate to, say, Section1PageView.
I'm trying hard to follow the MVVM pattern so I'd like to bind the tap to a command (NavigateToSection1Command) instead of using the ItemClick event - how do I accomplish this?
The Hub class has a SectionHeaderClick event to which you could attach an EventTriggerBehavior and bind your Command to it.
<Page xmlns:i="using:Microsoft.Xaml.Interactivity"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
<Hub Header="{Binding AppName}">
<i:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="SectionHeaderClick">
<core:InvokeCommandAction Command="{Binding NavigateToSectionCommand}" />
</core:EventTriggerBehavior>
</i:Interaction.Behaviors>
</Hub>
</Page>
The SectionHeaderClick is the event that MS put for us to interact with the Hub Header, but the way it works will make MVVM's life harder. You see, that event passes the Section object that was clicked as an argument. You will lose that by attaching a command, as there is no built in way to pass an event argument to a command and there will be no way to tell which section the command was fired from.
That being said, I think that placing a Button or TextBlock at the HubSection's Header and attaching a EventTriggerBehavior to it`s Click event would better suit your needs.
Ps: You will have to add a Reference to the Behaviors SDK. Go to Add References > Universal Windows > Extensions, then check Behaviors SDK (XAML)

How to disable the virtual keyboard in GWT based application?

Were are developing a kiosk application in GWT and for that, we are using custom virtual keyboard and we want to disable the default virtual keyboard. Thanks in advance.
Have you try set the property inputView?
If you set, the default virtual keyboard won't show up.
Got the solution by using JSNI(native javascript) and it works perfectly, but i don't know it is the best way. I have written code such as follows.
step1:
Get an id of the active element(i.e., INPUT and type="text" element)
step2:
Then immediately call the blur() event on that element (Now the element will lost it's focus and default virtual keyboard doesn't showup)
step3:
Now again immediately call the focus() event on the same element(Note: Keyboard doesn't show up here, it just unblur that element ).
step4:
Now by using the retrieved id, enter the data into textbox through custom virtual keyboard.

Drag & Drop issues AUI

I have been trying to use Drag and Drop functionality between two lists. I got an example from the link : http://yuilibrary.com/yui/docs/dd/scroll-list.html
I have checked that all methods specified in YUI (in the link) is present for AUI too. The problem is that the drag event works perfectly but drop event does not work. The drag:drophit event does not get activated.
I am using Liferay 6.1.2 Ga3. Did anybody face this issue before? If yes, can you please provide me some clues on it?
Thank you,

how to add/create new gestures in oracle jdeveloper 11.1.2.3?

edited:
I am new to Oracle Jdeveloper 11.1.2.3, can any one please tell me, how can I use the gestures created in gesture builder application (in emulator) in my own application ?
I found this link [ http://www.hascode.com/2010/05/creating-a-simple-gesture-app-with-android/ ] relating to what I am trying but I am not able to use it or implement it in Jdeveloper.
also can I run the code in the above link in eclipse & export it to Jdeveloper & use it there ?
please guide me on this...
===========================================================================
What I am trying, is to get some action done in applications by using different gestures other than swipe-right, swipe-left, swipe-down, swipe-up & tap-hold gestures which are already present in software (setPropertyListener - type attribute).
for example if I make a cross mark gesture on list item then it should get cancelled or if I make a tick mark gesture on list item then it should be accepted.
so, is there any way by which I can add new gestures to the application ?
You can add an amx:actionListener tag to the component that needs to support a gesture and set the type attribute on it.
Example here: http://lucbors.blogspot.com/2013/02/adf-mobile-implementing-pull-to-refresh.html