[flexcoders] Swing Layout Manager Equivalent in Flex 3
I have built many GUIs with Swing and two of the Swing Layout Manager Options I found most useful were Flow and Border. I have a design goal where I am creating a component that has a Data Grid under a set of control icons. If the browser window shrinks to the point the control icons can no longer be shown without scrolling I would like them to flow down to the next row and the panel or canvas they are on be doubled in height to accommodate the wrap around row of icons. I tried FlowBox but that only works if i have it double high all the time and that defeats the purpose. I suppose I could run some code in the resize event handler and if the size drops below the width of the icons, I could then double the hieght and if it grows back to wide enough I could halve the hieght. But I am lazy and was hopping there was a Swing Layout Manager equivalent. -- View this message in context: http://www.nabble.com/Swing-Layout-Manager-Equivalent-in-Flex-3-tp24634003p24634003.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Flex Library and and MXML component
Right, I hadn't added the class that was the MXML Component, so that was it. Ollie Aaron Hardy wrote: > > Right-click project --> Properties --> Flex Library Build Path --> > Select All --> OK. Make sure it rebuilds and you should be good to go. > > Aaron > > Mike Oliver wrote: >> >> >> >> I have an MXML Component Canvas that I want to put into a Flex Library >> SWC. >> >> I created a Flex Library Project with /src and /bin >> >> I added the /images folder with the image in it that the Component Canvas >> uses to /src. >> >> I added the mxml source file for the Component to the /src >> >> The /bin gets the MyLibProject.swc but the mxml component isn't inside. >> >> I am sure I am missing a step but can't find what it is. >> >> I want to use this swc in several projects as a component on other >> screens. >> >> -- >> View this message in context: >> http://www.nabble.com/Flex-Library-and-and-MXML-component-tp24233741p24233741.html >> >> <http://www.nabble.com/Flex-Library-and-and-MXML-component-tp24233741p24233741.html> >> Sent from the FlexCoders mailing list archive at Nabble.com. >> >> > > > -- View this message in context: http://www.nabble.com/Flex-Library-and-and-MXML-component-tp24233741p24234546.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Flex Library and and MXML component
I have an MXML Component Canvas that I want to put into a Flex Library SWC. I created a Flex Library Project with /src and /bin I added the /images folder with the image in it that the Component Canvas uses to /src. I added the mxml source file for the Component to the /src The /bin gets the MyLibProject.swc but the mxml component isn't inside. I am sure I am missing a step but can't find what it is. I want to use this swc in several projects as a component on other screens. -- View this message in context: http://www.nabble.com/Flex-Library-and-and-MXML-component-tp24233741p24233741.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] FlowBox Nesting
Thanks Doug, So how much was that bet? I replaced the FlobBox with FlowContainer and while yes the height did calculate properly so you were correct therebut alas it doesn't solve the problem. The new code follows but I won't upload the resulting .swf BECAUSE IT HANGS THE BROWSER, both IE and FireFox! Both running the latest Flash player 9 and on FireFox it has the debugger version of the player and that didn't get a chance to catch the error. Doug McCune wrote: > > FlowBox has a pretty serious bug having to do with how it does its height > calculation. This bug has been logged and has remained unresolved for far > too long (I say this as the main flexlib maintainer, it's basically my > laziness that has kept this from being fixed). That said, there's a second > container in FlexLib that also accomplishes the same goal, it's called > FlowContainer. It was origianlly written as part of the docking toolbar > component. It more or less does the exact same thing, but doesn't have the > problem with the height calculation. > > So I'd advise trying to use FlowContainer instead of FlowBox, I bet it > will > solve your problem. > > Doug > > On Tue, May 12, 2009 at 5:56 PM, Mike Oliver > wrote: > >> >> >> >> Yes its the flow box see attached. >> >> http://www.nabble.com/file/p23513630/ToolbarDemo.swf ToolbarDemo.swf >> >> It looks like the flow box calculates its height based on all components >> wrapping. >> >> Ollie >> >> >> Tracy Spratt-2 wrote: >> > >> > Is it the FlowBox that is causing the problem? What happens if you >> > replace >> > it with an HBox? Do you still get that space? Can you put a border or >> > background on the FlowBox to see if it is causing the layout issue? >> > >> > >> > >> > Something is confusing the layout. The space between items in a VBox >> > should >> > be only the verticalGap. >> > >> > >> > >> > Tracy Spratt, >> > >> > Lariat Services, development services available >> > >> > _ >> > >> > From: flexcoders@yahoogroups.com >> [mailto: >> flexcoders@yahoogroups.com ] On >> > Behalf Of Mike Oliver >> > Sent: Tuesday, May 12, 2009 8:13 PM >> > To: flexcoders@yahoogroups.com >> > Subject: RE: [flexcoders] FlowBox Nesting >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > I said that I tried a VBox and that did NOT give me what I want, >> > >> > Here is the mxml >> > >> > >> > >> > > > paddingRight="10" paddingTop="10" left="10"> >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > and I attached the swf and here is a screen shot. >> > >> > http://www.nabble. >> <http://www.nabble.com/file/p23513102/ToolbarDemo.swf >> > >> > com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf >> > >> > Now note that the space between the flowbox and the grid is what I want >> to >> > eliminate. >> > >> > http://www.nabble. >> > < >> http://www.nabble.com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jp >> > g> com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg >> > >> > Tracy Spratt-2 wrote: >> >> >> >> Plain old VBox will do this for you. Set the lower grid height to 100% >> >> and >> >> it should resize dynamically to fit (If the VBox has a fixed height) >> If >> >> the >> >> VBox height is not set then its container will show scrollbars >> >> >> >> >> >> >> >> Tracy Spratt, >> >> >> >> Lariat Services, development services available >> >> >> >> _ >> >> >> >> From: flexcod...@yahoogro >> <mailto:flexcoders%40yahoogroups.com> >
RE: [flexcoders] FlowBox Nesting
Yes its the flow box see attached. http://www.nabble.com/file/p23513630/ToolbarDemo.swf ToolbarDemo.swf It looks like the flow box calculates its height based on all components wrapping. Ollie Tracy Spratt-2 wrote: > > Is it the FlowBox that is causing the problem? What happens if you > replace > it with an HBox? Do you still get that space? Can you put a border or > background on the FlowBox to see if it is causing the layout issue? > > > > Something is confusing the layout. The space between items in a VBox > should > be only the verticalGap. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Mike Oliver > Sent: Tuesday, May 12, 2009 8:13 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] FlowBox Nesting > > > > > > > > > > I said that I tried a VBox and that did NOT give me what I want, > > Here is the mxml > > > > paddingRight="10" paddingTop="10" left="10"> > > > > > > > > > > > > > > > > > and I attached the swf and here is a screen shot. > > http://www.nabble. <http://www.nabble.com/file/p23513102/ToolbarDemo.swf> > com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf > > Now note that the space between the flowbox and the grid is what I want to > eliminate. > > http://www.nabble. > <http://www.nabble.com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jp > g> com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg > > Tracy Spratt-2 wrote: >> >> Plain old VBox will do this for you. Set the lower grid height to 100% >> and >> it should resize dynamically to fit (If the VBox has a fixed height) If >> the >> VBox height is not set then its container will show scrollbars >> >> >> >> Tracy Spratt, >> >> Lariat Services, development services available >> >> _ >> >> From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com] > On >> Behalf Of Mike Oliver >> Sent: Tuesday, May 12, 2009 12:55 PM >> To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com >> Subject: [flexcoders] FlowBox Nesting >> >> >> >> >> >> >> >> >> >> I am trying to create a screen with a grid and a toolbar on top of it. >> >> The problem is that the toolbar can have more user selectable controls in >> it >> than will fit on small screens. >> >> So I wanted to use the FlowBox and that works great but only if I allow >> for >> the space between the Flowbox and the grid control under it. >> >> I wanted the grid control to float under the toolbar and if the toolbar / >> flowbox gets reduced in width to wrap a control down into a second row >> the >> grid would slide down to accommodate. >> >> So I thought a flowbox with a flowbox and the grid control in it but the >> nested flowbox and grid won't fill the parent flow box with width="100%" >> >> I have tried TileList and VBox and have yet to find the combination that >> will allow the grid to float under the FlowBox. >> -- >> View this message in context: http://www.nabble. >> <http://www.nabble. > <http://www.nabble.com/FlowBox-Nesting-tp23506408p23506408.html> > com/FlowBox-Nesting-tp23506408p23506408.html> >> com/FlowBox-Nesting-tp23506408p23506408.html >> Sent from the FlexCoders mailing list archive at Nabble.com. >> >> >> >> >> > > -- > View this message in context: http://www.nabble. > <http://www.nabble.com/FlowBox-Nesting-tp23506408p23513102.html> > com/FlowBox-Nesting-tp23506408p23513102.html > Sent from the FlexCoders mailing list archive at Nabble.com. > > > > > -- View this message in context: http://www.nabble.com/FlowBox-Nesting-tp23506408p23513630.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] FlowBox Nesting
I said that I tried a VBox and that did NOT give me what I want, Here is the mxml and I attached the swf and here is a screen shot. http://www.nabble.com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf Now note that the space between the flowbox and the grid is what I want to eliminate. http://www.nabble.com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg Tracy Spratt-2 wrote: > > Plain old VBox will do this for you. Set the lower grid height to 100% > and > it should resize dynamically to fit (If the VBox has a fixed height) If > the > VBox height is not set then its container will show scrollbars > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Mike Oliver > Sent: Tuesday, May 12, 2009 12:55 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] FlowBox Nesting > > > > > > > > > > I am trying to create a screen with a grid and a toolbar on top of it. > > The problem is that the toolbar can have more user selectable controls in > it > than will fit on small screens. > > So I wanted to use the FlowBox and that works great but only if I allow > for > the space between the Flowbox and the grid control under it. > > I wanted the grid control to float under the toolbar and if the toolbar / > flowbox gets reduced in width to wrap a control down into a second row the > grid would slide down to accommodate. > > So I thought a flowbox with a flowbox and the grid control in it but the > nested flowbox and grid won't fill the parent flow box with width="100%" > > I have tried TileList and VBox and have yet to find the combination that > will allow the grid to float under the FlowBox. > -- > View this message in context: http://www.nabble. > <http://www.nabble.com/FlowBox-Nesting-tp23506408p23506408.html> > com/FlowBox-Nesting-tp23506408p23506408.html > Sent from the FlexCoders mailing list archive at Nabble.com. > > > > > -- View this message in context: http://www.nabble.com/FlowBox-Nesting-tp23506408p23513102.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] FlowBox Nesting
I am trying to create a screen with a grid and a toolbar on top of it. The problem is that the toolbar can have more user selectable controls in it than will fit on small screens. So I wanted to use the FlowBox and that works great but only if I allow for the space between the Flowbox and the grid control under it. I wanted the grid control to float under the toolbar and if the toolbar / flowbox gets reduced in width to wrap a control down into a second row the grid would slide down to accommodate. So I thought a flowbox with a flowbox and the grid control in it but the nested flowbox and grid won't fill the parent flow box with width="100%" I have tried TileList and VBox and have yet to find the combination that will allow the grid to float under the FlowBox. -- View this message in context: http://www.nabble.com/FlowBox-Nesting-tp23506408p23506408.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Tradeoffs
What are the tradeoffs between creating a flex project with the J2EE type vs None type? The J2EE type is about 10% larger from what I can tell, but the None type seems to work just fine in the browser. If we start with None type, and then add ActionScript calls to the Remote interface it seems to work just fine, but I wonder about performance. -- View this message in context: http://www.nabble.com/Tradeoffs-tp23114437p23114437.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Server Side Cache and AMF
Excellent, thanks. Ollie Seth Hodgson wrote: > > Flash Player and AIR send AMF requests in the body of HTTP POST requests. > The POST method (http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html - > section 9.5) is technically not cacheable by HTTP components (proxies, > browsers, etc.) unless the AMF endpoint explicitly enables this by setting > necessary HTTP response headers to allow caching. I think in general, AMF > endpoints do the opposite and set response headers to explicitly disallow > caching to deal with old buggy proxies that cache things they shouldn't. > > Because your Flex app is running in a stateful client, the need for > caching along the network path is reduced. Your app can hang onto data > from the server as long as you think is prudent, and it can fetch more or > refresh existing data as needed. Traditional web apps on the other hand > often end up triggering many "duplicate" requests as the user navigates > forward and back through pages, so caching along the network path is > essential to protect your servers from inadvertent DoS attacks :) > > Best, > Seth > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Mike Oliver > Sent: Sunday, January 11, 2009 4:26 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Server Side Cache and AMF > > > What are the pros and cons to using a serverside cache or proxy cache with > Flex and AMF? > > I can see a cache on a web service that is primarily a lookup service, but > don't see much if any benefit to a cache related to transactions, and for > lookup, except for really large data sets I think a client side > actionscript > object will be every bit as effective, and for really large data sets you > don't want to fetch more than you need anyway so a cache won't do much > there > either. > > I think server side cache is best for pages of information like HTML > pages, > XML documents, JSP pages where the content is keyed in the cache by the > URL > for the GET, and anything else is a waste of effort or worse due to stale > data in the cache. > > But what do I know? If I knew everything I wouldn't ask. > > -- View this message in context: http://www.nabble.com/Server-Side-Cache-and-AMF-tp21406354p21844883.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] DateField JDBC
It seems odd or even cumbersome to tie the DateField control through to a Date column in a JDBC database using the "text" property of the DateField. The format out of the DateField doesn't match the format for a JDBC date so you must reformat the "01/21/2009" to "2009-01-21". That's not so tough, but it seems odd that there isn't a method to get the right format string out of the control. The selectedDate is ok, but if you are using a REST interface, then you need to convert that to a string...shouldn't controls be created to serve the most common implementations and isn't backing a form with JDBC one of if not the most common implementation? -- View this message in context: http://www.nabble.com/DateField-JDBC-tp21593640p21593640.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Server Side Cache and AMF
What are the pros and cons to using a serverside cache or proxy cache with Flex and AMF? I can see a cache on a web service that is primarily a lookup service, but don't see much if any benefit to a cache related to transactions, and for lookup, except for really large data sets I think a client side actionscript object will be every bit as effective, and for really large data sets you don't want to fetch more than you need anyway so a cache won't do much there either. I think server side cache is best for pages of information like HTML pages, XML documents, JSP pages where the content is keyed in the cache by the URL for the GET, and anything else is a waste of effort or worse due to stale data in the cache. But what do I know? If I knew everything I wouldn't ask. -- View this message in context: http://www.nabble.com/Server-Side-Cache-and-AMF-tp21406354p21406354.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Where did my CurrentTarget go?
e.currentTarget.itemEditorInstance shows in the debugger variables one time, and not the next on the same event handler. It shows NOW but wend on a holiday vacation. I don't THINK it was the eggnog. Ollie Tracy Spratt wrote: > > How do you know it is gone, and what do you mean by "gone"? > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of Mike Oliver > Sent: Thursday, January 01, 2009 8:19 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Where did my CurrentTarget go? > > > > > I have a ComboBox as a ItemEditor and a listener > > dataGrid.addEventListener(DataGridEvent.ITEM_EDIT_END, editCellEnd); > > I was using > > e.currentTarget.itemEditorInstance.selectedItem.value > > to get at a value in the selectedItem > > now I am still getting that event, but no currentTarget element? > > what would cause it to go away? > > -- > View this message in context: > http://www.nabble.com/Where-did-my-CurrentTarget-go--tp21246831p21246831 > .html > <http://www.nabble.com/Where-did-my-CurrentTarget-go--tp21246831p2124683 > 1.html> > Sent from the FlexCoders mailing list archive at Nabble.com. > > > > > -- View this message in context: http://www.nabble.com/Where-did-my-CurrentTarget-go--tp21246831p21266783.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] itemRenderer ComboBox
Yes that's what it takes, thanks! I used an itemRenderer to set the display to the label from the lookup source for the data that was stored. Manish Jethani wrote: > > Here's what I suggest: > > /* in your item editor */ > public function get myCustomProperty():Object > { > var item:Object = selectedItem; > if (item == null) > return null; > > return item.data; > } > > > > Manish > > -- > http://manishjethani.com > > -- View this message in context: http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21266561.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] itemRenderer ComboBox
Perhaps its because it is an itemEditor, but just tried it and "value" in the editorDataField saves the label string to the Grid, not the 'data' element. Ollie Manish Jethani wrote: > > On Sat, Jan 3, 2009 at 12:16 AM, Mike Oliver > wrote: > > [snip] >> and that saves to the database, all great...however, the >> >> editorDataField="selectedItem" puts "[object Object]" into the Grid >> instead >> of the data element. >> >> I tried editorDataField="selectedItem.data" but that fails. I tried >> "value" >> and "text" but it saves the Label. >> >> So what do I put in the editorDataField to save the 'data' to the Grid >> instead of the object string or the label? > > Strange. Setting editorDataField to 'value' should work if you have a > field called 'data' in the selected item and that's the value you're > looking for. > > > http://www.adobe.com/2006/mxml"; > xmlns="*" > > > > > > > > > > > > > > Manish > > -- > http://manishjethani.com > > -- View this message in context: http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21256481.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] itemRenderer ComboBox
Ok, so the itemEditor = ComboBox with the above Override and here it is as it stands and works (up to a point). Now this works perfectly now when I click in the Cell the ComboBox opens with the selectedItem and when I select an option and exit the Cell the DataGridEvent.ITEM_EDIT_END fires and I extract the data value to insert into the parameters with parameters[dsFieldName.substr(0,dsFieldName.length-3)] = e.currentTarget.itemEditorInstance.selectedItem.data; and that saves to the database, all great...however, the editorDataField="selectedItem" puts "[object Object]" into the Grid instead of the data element. I tried editorDataField="selectedItem.data" but that fails. I tried "value" and "text" but it saves the Label. So what do I put in the editorDataField to save the 'data' to the Grid instead of the object string or the label? -- View this message in context: http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21255448.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Where did my CurrentTarget go?
I have a ComboBox as a ItemEditor and a listener dataGrid.addEventListener(DataGridEvent.ITEM_EDIT_END, editCellEnd); I was using e.currentTarget.itemEditorInstance.selectedItem.value to get at a value in the selectedItem now I am still getting that event, but no currentTarget element? what would cause it to go away? -- View this message in context: http://www.nabble.com/Where-did-my-CurrentTarget-go--tp21246831p21246831.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] itemRenderer ComboBox
Thanks, so this script would go within the Right? Manish Jethani wrote: > > On Fri, Jan 2, 2009 at 3:59 AM, Mike Oliver > wrote: > >> it looks to me like it is better to use a label function to render the >> display value and leave the combo box for itemEditor. >> >> That still leaves the question on how the ComboBox will display the >> Option >> Label when in edit mode. > > The ComboBox won't select the item based on the value of the 'text' > property, so you'll have to do the selection for it, by overriding the > data setter. > > override public function set data(value:Object):void > { > super.data = value; > > var listCursor:IViewCursor = collection.createCursor(); > do > { > if (data.med_route_oidCol == listCursor.current.text) > { > selectedItem = listCursor.current; > break; > } > } > while (listCursor.moveNext()); > } > > Manish > > -- View this message in context: http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21246607.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] itemRenderer ComboBox
it looks to me like it is better to use a label function to render the display value and leave the combo box for itemEditor. That still leaves the question on how the ComboBox will display the Option Label when in edit mode. -- View this message in context: http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21245495.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] itemRenderer ComboBox
I want to use a ComboBox as an itemRenderer and itemEditor. here is the I am using the dataGrid.addEventListener(DataGridEvent.ITEM_EDIT_END, editCellEnd); to extract the text value on the selectedItem to store in the db with e.currentTarget.itemEditorInstance.selectedItem.text But on display the value saved to the db is one of the text values above, but the itemRenderer combobox doesn't display the associated label. What am I missing? -- View this message in context: http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21243094.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] MySql timestamp column type and Flex DateField
I had to format the string from ActionScript to pass to the Value Object as follows. var eDate:Date = Event_DateCol.selectedDate; var event_Date:String = String(eDate.getFullYear()) + "-" + String(eDate.getMonth()+1) + "-" + String(eDate.getDate()) + " 00:00:00.0"; var parameters:* = { "method": "Insert", "Event_Date": event_Date,..., }; then in the VO public void setEvent_Date(String Event_Date) { if ((Event_Date != null) && (Event_Date.length() > 0)) { this.Event_Date = Timestamp.valueOf(Event_Date); } } I hope this helps someone else. Mike Oliver wrote: > > How do I tie a DateField control to a Value Object with a Timestamp column > in the database. > > -- View this message in context: http://www.nabble.com/MySql-timestamp-column-type-and-Flex-DateField-tp21196170p21209213.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] MySql timestamp column type and Flex DateField
How do I tie a DateField control to a Value Object with a Timestamp column in the database. I am getting java.lang.IllegalArgumentException: Timestamp format must be -mm-dd hh:mm:ss.f at java.sql.Timestamp.valueOf(Unknown Source) at com.corent.odicx.goms.dao.OrdersVO.setEvent_Date(OrdersVO.java:93) the DateField format string only modifies the display. the selectedDate output doesn't seem to have any methods that take a format string to format for Timestamp. I suppose I could just pull the year month and day out of the selected date and format my own string but that seems like a waste and I am basically lazy. anybody have a cool way to handle this? Ollie -- View this message in context: http://www.nabble.com/MySql-timestamp-column-type-and-Flex-DateField-tp21196170p21196170.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] PFolder vs. Folder
I cannot find documentation on the List Controls member elements folder and pfolder. I see them everywhere in the examples but noplace can I find the explanation of the difference, where would I use folder vs. pfolder and why? -- View this message in context: http://www.nabble.com/PFolder-vs.-Folder-tp21058508p21058508.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] help me settle an argument
I have a colleague that is of the opinion that SQL statements in Java Code such as DAO classes is bad practice, that the SQL statements and parameter tokens be externalized into Contants or property files. I maintain that is not only not necessary in general but given our loosely coupled service oriented architecture the classes are largely not in any sort of complex dependency so modifying code doesn't have the ripples of monolithic desktop or client server applications. So while it is true you can change the SQL statement if needed without changing the code and even change syntax if you need to change databases, how often does that happen anyway? And how often do you change the SQL without having to change the classes? I look at DAO classes from Adobe Labs and Sun Microsystems and see SQL statements in the code so I figure if it is good enough for them it is good enough for us. What say you all? -- View this message in context: http://www.nabble.com/help-me-settle-an-argument-tp20876256p20876256.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Modules and Sessions
We are planning on the following organization for an Application. Base Application this will contain a scalable application with a canvas and an Toolbar across the top. The Application will be secured by user login in a popup form window. The tool bar buttons will load modules in the canvas from separate Module WebApps for ease of Maintenance and flexibility. Before we get too far I wanted to ask this group if there are any "gotchas" in our plan? Specifically, are we correct that the user session is based on that base application and any modules that load will consistently use the user session in the base application? Are there any coding practices we need for the AMF in this model? We assume the modules and the actionscript for those modules carry the user session the same as if the module was loaded from the same root path as the Base Application, right? Just being cautious. Ollie -- View this message in context: http://www.nabble.com/Modules-and-Sessions-tp20774760p20774760.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] TabBar ViewStack
I have a TabBar controlling a ViewStack and I want the border on the view stack canvas to be hidden as it crosses under the selected tab so there is no line between the text in the tab and the canvas it controls. -- View this message in context: http://www.nabble.com/TabBar-ViewStack-tp20211166p20211166.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] TabBar Background Color
Is there a way to control/set the background of a TabBar so the selected Tab's background color matches the viewstack it controls background color? -- View this message in context: http://www.nabble.com/TabBar-Background-Color-tp20212407p20212407.html Sent from the FlexCoders mailing list archive at Nabble.com.