Re: [FlexJS] List Structure

2016-12-01 Thread Carlos Rovira
Hi Alex, I forgot to respond to this email. I got the selection working with your indications. Thanks! :) Hope we could work in get rid of the extra div as we talked in the layout problems thread. 2016-11-28 7:12 GMT+01:00 Alex Harui : > Actually, I was looking at the wrong

Re: [FlexJS] List Structure

2016-11-27 Thread Alex Harui
Actually, I was looking at the wrong widgets. Adding the ItemRendererMouseController gets things working for me. On 11/27/16, 12:06 AM, "Alex Harui" wrote: > >I spent time digging into it. Because you've stripped out the CSS for the >components you are borrowing you may have

Re: [FlexJS] List Structure

2016-11-27 Thread Alex Harui
Carlos, your example is buried in a big app. Kind of makes it harder to debug. I posted a much simpler app. Does it work for you or not? I spent time digging into it. Because you've stripped out the CSS for the components you are borrowing you may have to replace some of it. I think you may

Re: [FlexJS] List Structure

2016-11-26 Thread Carlos Rovira
No errors and I build with maven so first there's a clean. I upload a commit with the list, could you build it and see it? The main difference I think I could have with other project is the excluded default CSS: -compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css

Re: [FlexJS] List Structure

2016-11-26 Thread Alex Harui
Hmm. Works for me. Make sure you've cleaned and built everything. Do you get any exceptions in the console? -Alex On 11/26/16, 4:35 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, > >I tried with

Re: [FlexJS] List Structure

2016-11-26 Thread Carlos Rovira
Hi Alex, I tried with you recent commit and selection is not working. The examples is similar to what you posted:

Re: [FlexJS] List Structure

2016-11-25 Thread Alex Harui
On 11/25/16, 10:22 AM, "Alex Harui" wrote: > > >On 11/25/16, 7:41 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > >wrote: > >>Hi Alex, >> >>I'm looking through the different components and can't

Re: [FlexJS] List Structure

2016-11-25 Thread Carlos Rovira
Ok Alex, we will see as Thanksgiving has ending. Happy ThanksGiving! :) 2016-11-25 19:22 GMT+01:00 Alex Harui : > > > On 11/25/16, 7:41 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" > > wrote: > >

Re: [FlexJS] List Structure

2016-11-25 Thread Alex Harui
On 11/25/16, 7:41 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi Alex, > >I'm looking through the different components and can't see the the way to >assign the items to the container (removing the div from

Re: [FlexJS] List Structure

2016-11-25 Thread Carlos Rovira
Hi Alex, I'm looking through the different components and can't see the the way to assign the items to the container (removing the div from DataGroup). Can you give some clue about where to look? One more thing, beads names are about "Selection" but when I tun the example nothing is

Re: [FlexJS] List Structure

2016-11-25 Thread Alex Harui
On 11/25/16, 1:49 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Thanks Alex, > >I test your code and is running :) > >About order you mention, so order matters, ok, but I think that's could be >s problem

Re: [FlexJS] List Structure

2016-11-25 Thread Carlos Rovira
Thanks Alex, I test your code and is running :) About order you mention, so order matters, ok, but I think that's could be s problem since people will get confuse since beads are pieces of code like config and is strange need to declare a bead before other. ...I use the order in CSS, but you

Re: [FlexJS] List Structure

2016-11-25 Thread Alex Harui
Looks like there were a few places where the beads should have checked the strand before the CSS. It turns out you can't just use the order of beads in the CSS. You have to know the pattern. That's why it use the term "beads" and "strand": the order matters. Also, StringItemRenderer isn't a

Re: [FlexJS] List Structure

2016-11-24 Thread Carlos Rovira
Hi Alex, I'm not capable to make a working exploded List, hope you could share with me the recipe to get it running. Those are the namespaces I have: xmlns:ui="org.apache.flex.core.*" xmlns:models="org.apache.flex.html.beads.models.*"

Re: [FlexJS] List Structure

2016-11-24 Thread Carlos Rovira
Thanks, I'm trying some things with all the info, I'll return to this thread as I get some experience from this. About UIBase, I think it should be accesible in mxml and maybe other components as well...in the meanwhile I'm trying declaring package namespaces 2016-11-24 8:19 GMT+01:00 Alex

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
On 11/23/16, 10:42 PM, "yishayw" wrote: >That was what I had in mind too, but why not extend ListBase instead of >Container? If we extends ListBase then all beads except controller and >model >can stay as they are. > ListBase is currently written to have an internal

Re: [FlexJS] List Structure

2016-11-23 Thread yishayw
That was what I had in mind too, but why not extend ListBase instead of Container? If we extends ListBase then all beads except controller and model can stay as they are. Alex Harui wrote > needed. But for now, the term "List" in the HTML.swc is being used the > same way it was in the Flex SDK.

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
On 11/23/16, 1:59 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >More over, If I put only > >it fails the same way Well, that was more of an illustration. UIBase isn't currently in the basic-manifest since

Re: [FlexJS] List Structure

2016-11-23 Thread Carlos Rovira
Hi Alex, just going through the mails, great info here Thanks. But I'm trying your example and can't make it work This: results in: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml(113): col: 13

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
On 11/23/16, 1:09 PM, "yishayw" wrote: >Alex, > >If you read my post carefully you'll see I'm suggesting to separate some >concerns that are now baked into List. Currently there's selection and >data >rendering baked into List. That's the reason Carlos couldn't just use

Re: [FlexJS] List Structure

2016-11-23 Thread yishayw
Alex, If you read my post carefully you'll see I'm suggesting to separate some concerns that are now baked into List. Currently there's selection and data rendering baked into List. That's the reason Carlos couldn't just use List as is or even extend it. I'm suggesting that List (renamed to

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
On 11/23/16, 8:58 AM, "Josh Tynjala" wrote: >> In fact, for every Basic component, we should try to prove that you can >use composition to create the very same component from a UIBase. > >This explanation and the UIBase example code that follows it is probably >good to

Re: [FlexJS] List Structure

2016-11-23 Thread Josh Tynjala
bead (defined in defaults.css) should not be > >ArraySelectionModel but new stripped down version called ArrayModel. A > >controller would not be necessary so I would remove that from > >defaults.css. > > > > > > > >List would extend DataGroup, add the said pr

Re: [FlexJS] List Structure

2016-11-23 Thread Alex Harui
; > >From: Carlos Rovira<mailto:carlos.rov...@codeoscopic.com> >Sent: Wednesday, November 23, 2016 1:07 PM >To: dev@flex.apache.org<mailto:dev@flex.apache.org> >Subject: Re: [FlexJS] List Structure > > > >Hi Alex, > >it seems the DataGroup is not a compone

RE: [FlexJS] List Structure

2016-11-23 Thread Yishay Weiss
that sound? From: Carlos Rovira<mailto:carlos.rov...@codeoscopic.com> Sent: Wednesday, November 23, 2016 1:07 PM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: Re: [FlexJS] List Structure Hi Alex, it seems the DataGroup is not a component for direct use like in old

Re: [FlexJS] List Structure

2016-11-23 Thread Carlos Rovira
Hi Alex, it seems the DataGroup is not a component for direct use like in old flex sdk, I tried to extend from it but doesn't know nothing about a dataProvider. I think I need to wrap it. There's some docs about the minimum requirements and beads needed? I think what we need is exactly the

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
Hi Alex, That would be ok, but I would like to provide data in flex way vía data provider, since is the way we have to populate List in Flex... Is like other components I introduce yesterday. I marked here : https://cwiki.apache.org/confluence/display/FLEX/Table+Of+Components to redactor and

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
On 11/22/16, 4:15 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >2016-11-22 22:56 GMT+01:00 Alex Harui : > >> I just remembered that there are two kinds of "lists" in HTML. There is >> the Select

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
2016-11-22 22:56 GMT+01:00 Alex Harui : > I just remembered that there are two kinds of "lists" in HTML. There is > the Select element which has a selection model, and then there is ol/ul > which has no selection model. What kind of list is MDL's list? Does it > support

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
I just remembered that there are two kinds of "lists" in HTML. There is the Select element which has a selection model, and then there is ol/ul which has no selection model. What kind of list is MDL's list? Does it support selection? IMO, ol/ul are for displaying a list of items without a

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
> Well if it were up to me, the Basic List and SimpleList will only support > the dataprovider/factory mechanism and not support setting random > children. But change itemrenderer class factory is something needed, if not we're making the list use cases restricted. > Again, I am trying to make

Re: [FlexJS] List Structure

2016-11-22 Thread piotrz
Let's say that list will be built using components LI, OL - How from the developer point of view use case of such list will look like ? something something For me it is nothing more than HTML, if SimpleList will give me: - This is the simplicity which I love and would like to see. Even if

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
Well if it were up to me, the Basic List and SimpleList will only support the dataprovider/factory mechanism and not support setting random children. Again, I am trying to make sure the Basic set does not have just-in-case code. I think you've added components that thinly wrap HTML elements so I

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
> Ugh. SimpleList got ruined in the back port from JS to AS. > > So maybe I should wait for some fix on this component? > It occurred to me though that both SimpleList and List/ListBase are going > to be oriented towards the "ItemRenderer Factory" API. In such a case, > there is a dataProvider

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
On 11/22/16, 7:43 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >I tried to extend from SimpleList, but I get the same output (ul -> div >ListDataGroup -> items) >It seems SimpleList extends Listso all

Re: [FlexJS] List Structure

2016-11-22 Thread Carlos Rovira
I tried to extend from SimpleList, but I get the same output (ul -> div ListDataGroup -> items) It seems SimpleList extends Listso all complexity is there :? 2016-11-22 15:25 GMT+01:00 Alex Harui : > IIRC There is already a SimpleList component that wraps a Select element.

Re: [FlexJS] List Structure

2016-11-22 Thread Alex Harui
IIRC There is already a SimpleList component that wraps a Select element. The List is really meant to introduce the whole custom item renderer capability. If you don't need that, just create your own thing. You may not even need a View on the JS side. My 2 cents, -Alex On 11/22/16, 4:03 AM,

RE: [FlexJS] List Structure

2016-11-22 Thread Yishay Weiss
How about extending list but not using ListView? Maybe you can have a different implementation of IListView where dataGroup references the view element? If you’re sure there’s not going to be any chrome elements (e.g. TitleBar) then it seems to me correct to not use a data group on top of the