formpanel

EXT.NET Accessing ComboBox value at server DirectEvent

此生再无相见时 提交于 2019-12-24 16:18:40
问题 I have Ext.Net MVC form that post values to DirectAction. On server side, In DirectAction CoboBox selected value is always null. public ActionResult Save() { var cmbSender = this.GetCmp<ComboBox>("cmbSender"); var senderID = cmbSender.SelectedItem.Value; } I have checked Request["cmbSender"] but it does not work <form id="form12"> @( X.TabPanel() .Items( X.FormPanel() .Title("New Job") .ID("pnlNewJob") .Layout(LayoutType.Form) .MarginSpec("5 5 5 5") .Items( X.Panel() .Border(false)

How to get the all ListBox Value on the Server Side in GWT

好久不见. 提交于 2019-12-13 18:18:35
问题 I am using GWT 3 Listbox are Add in container (verticalPanel) . container is added to formPanel. These List box has more then one value. On the server side i Have this code. ServletFileUpload upload = new ServletFileUpload(); FileItemIterator iterator = upload.getItemIterator(request); while (iterator.hasNext()) { FileItemStream item = iterator.next(); stream = item.openStream(); if (item.isFormField()) { log.warning("Got a form field: " + item.getFieldName() + item.getName() + item.); System

Form field for IP address v4 with Extjs

坚强是说给别人听的谎言 提交于 2019-12-12 10:24:02
问题 I create a form panel with Extjs 3 and i wanna create a field to put an IP address v4 like I have 4 squares to put 4 numbers. Thanks for your help 回答1: I have used Robert B. Williams version for IP field. You can change it to fit V4 IPs with just a few twinks. here is the code: /** * @class Ext.ux.form.TimeField * @extends Ext.ux.form.FieldPanel * This class creates a time field using spinners. * @license: BSD * @author: Robert B. Williams (extjs id: vtswingkid) * @constructor * Creates a new

how can i add hidden data on my formPanel in gwt

江枫思渺然 提交于 2019-12-11 16:59:44
问题 I want to pass a string parameter on my form Panel. Is it possible to add string parameter data on GWT form panel? I have servlet code that will receive passed string parameter using post, I cannot include the parameters in the link because it has large amounts of data this is my servlet code: public void doPost(HttpServletRequest request, HttpServletResponse response) { String printMode = request.getParameter("printMode"); String nodeNm = ConfigConstants.PRINTER.getValue(); String

receive data from Formpanel in gwt

耗尽温柔 提交于 2019-12-11 05:28:40
问题 I am trying to use FormPanel. oN FormPanel formPanel.setWidget(flexTable); A check box , a listBox and FileUpload is added flexTable.setWidget(4, 1,listBox); flexTable.setWidget(5, 1, fileUpload); flexTable.setWidget(6, 1, checkBox); // More Code A Servlet code is written to get the all the values which running fine only for fileUpload. How to get the value of checkBox an ListBox. protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,

Align components in the center in a Panel: EXT JS

送分小仙女□ 提交于 2019-12-06 05:57:45
问题 I am new to ext JS and I am tryin gto place 3 components in a FormPanel but I don't know ho wto align them in the center. Here is my code var durationForm = new Ext.FormPanel({ border : false, labelAlign : 'top', frame : true, bodyStyle : 'padding-left:475px;', items: [{ items: [{ rowWidth : .5, layout :'column', items:[{ columnWidth : .13, layout : 'form', items : [getNewLabel('<br/><font size="3">Duration: </font>')] },{ columnWidth : .20, layout : 'form', items : [fromDate()] },{

Send a file from server to client in GWT

五迷三道 提交于 2019-12-01 09:25:53
问题 I am using GWT. I have to download a file file from server to client . Document is in the external repository. Client sends the id of the document through a Servlet. On server side : Using this ID document is retrieved: Document document = (Document)session.getObject(docId); ContentStream contentStream = document.getContentStream(); ByteArrayInputStream inputStream = (ByteArrayInputStream) contentStream.getStream(); int c; while ((c = inputStream.read()) != -1) { System.out.print((char) c); }