Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 30 20:02
    FrankHossfeld commented #611
  • Nov 30 18:22
    FrankHossfeld commented #611
  • Nov 30 18:21
    vegegoku commented #611
  • Nov 30 18:20
    FrankHossfeld commented #611
  • Nov 30 18:19
    vegegoku commented #611
  • Nov 30 18:16
    FrankHossfeld edited #611
  • Nov 30 18:14
    FrankHossfeld opened #611
  • Nov 30 18:13
    vegegoku milestoned #610
  • Nov 30 18:13
    vegegoku labeled #610
  • Nov 30 18:13
    vegegoku assigned #610
  • Nov 30 18:10
    FrankHossfeld opened #610
  • Nov 26 02:58
    josepowera starred DominoKit/domino-ui
  • Nov 25 16:42
    salashnik opened #609
  • Nov 25 06:50
    vegegoku milestoned #608
  • Nov 25 06:50
    vegegoku labeled #608
  • Nov 25 06:50
    vegegoku assigned #608
  • Nov 25 06:50
    vegegoku review_requested #608
  • Nov 24 11:05
    morettoni starred DominoKit/domino-ui
  • Nov 24 09:19
    salashnik opened #608
  • Nov 21 14:55
    lababidy starred DominoKit/domino-cli
Ahmad K. Bawaneh
@vegegoku
I use flex a lot which is easy and does the job ... for grids ..you understand the one thing you want to achieve and you build the grid for it..right?
I mean writing a component that uses grid is easy.. writing a grid component that can fit any usecase is hard
Justin Hickman
@jhickman
maybe. Mine is very general. You can set properties on the layout itself ,such as columnGap, rowGap, etc. and when adding children, you include a "GridLayoutData"
public void add(IsWidget, GridLayoutData layoutData) {
Ahmad K. Bawaneh
@vegegoku
what is the GridLayoutData?
Justin Hickman
@jhickman
the GridLayoutData is responsible for applying the individual properties
mainly a bean. It has properties such as 'columnStart', columnEnd, rowStart, rowend, area, justifySelf, alignSelf, etc
image.png
Then you have it "apply".
It works for my use case
Ahmad K. Bawaneh
@vegegoku
when I look at MDN docs I see in addition to the grid I see that those also need to be supported in such a coomponent
grid-auto-columns
grid-auto-flow
grid-auto-rows
grid-template-areas
grid-template-columns
grid-template-rows
Justin Hickman
@jhickman
yep
Ahmad K. Bawaneh
@vegegoku
What you did is actually what we do for the Rows and columns in domino, Rows and columns in domino are grids underneath
except for IE11 they fallback to old school float
but this is just a small fraction to what grids can do
Justin Hickman
@jhickman
yeah. I didn't bother with any IE support
Colin Alworth
@niloc132
its not too late for me to remove ie11 support too in that patch for gwt 2.10... (actually yes it is, until next year...)
Justin Hickman
@jhickman
of course. I was mainly wanting to use it for the template-areas
howudodat
@howudodat
what is IE11? ...just kidding of course...but it kind of makes a point about trying to keep support for it
here rows and columns as a grid
I think grids for a big layout or a main layout with responsivness is a very good idea, but flex box is excellent for smaller components and layouts.
Ahmad K. Bawaneh
@vegegoku

@/all
Domino-ui 1.0.0-RC9 have been released with the following changes :

Enhancements :

  • #591 Missing TimeHeaderFilter
  • #592 The card header class has unnecessary border while collapsed
  • #585 Carousel Slide HTMLPictureElement support
  • #532 Add "isSelected" getter in Chip
  • #578 Clearing the tree search leads to a wrong expanded tree afterwards
  • #590 Add the ability to define a custom BigDecimal construction from string values.
  • #581 fix BigDecimalBox value getting (mantissa)
  • #587 Add configuration to globaly set default collapse startegy
  • #588 Use clear methods names for adding/removing/replacing domino elements css classes

Bug fixes :

  • #593 Floating label does not float when field value is just spaces
  • #589 TextBox field-label doesn't move upon autofilling
  • #543 MultiSelect don't hide the remove icon from selected options when set read only value to true
  • #549 select value not visible due to padding-right: 40px on .select-value
  • #557 TextBox (ValueBox) validator is called twice
  • #545 Card header not visible if create with no title using create() and then setTitle() is used
  • #586 CheckBox image won't change if focused and spacebar is pressed

I would like to take this occasion to ask for your help to spread the word about domino-kit, lets together increase the adoption of dominokit around the globe.

How can you help :

  • Tell others about Dominokit, as a user of Dominokit you will know what you like about it, so let people around you know.
  • Star us on github, even though the number of stars is not a definitive indicator about the health and usefulness of a lib but more stars make it easier to convince others to try the project.
  • Social Media, Spread the word about us in social media, express your Dominokit experience, and if you can share your story and your work with Dominokit let others know.
  • Open issues and discussion on github, activity on github can bring more people to the table.
  • Ask Dominokit questions on stack overflow, let us together build a reputation for Dominokt on stack overflow.
  • Ask a question and spread the word in GWT google group, it is the place where we find most of the GWT users.

We need your help, those might be simple things to do but they have a huge effect and they help a lot.

Thank you.

Ahmad K. Bawaneh
@vegegoku
One more thing, please lets not forget that Dominokit is not just domino-ui we have a large set of tools that deserve attention too.
Ahmad K. Bawaneh
@vegegoku
@/all Unfortunately we have a regression on RC9 that for some reason I didnt hit before the release, and for that I am releasing 1.0.0-RC10 with a fix.
howudodat
@howudodat

I am trying to add a map view to my app,
added to pom.xml:

        <dependency>
            <groupId>org.dominokit</groupId>
            <artifactId>domino-ui-map-addon</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.dominokit</groupId>
            <artifactId>domino-ui-map-addon</artifactId>
            <version>1.0-SNAPSHOT</version>
            <classifier>sources</classifier>
        </dependency>

added to module.gwt.xml:

<inherits name='org.dominokit.addons.ol.OLMapAddon'/>

added to index.html:

    <link href="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v6.9.0/css/ol.css" rel="stylesheet" type="text/css">
    <script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v6.9.0/build/ol.js" type="text/javascript"></script>

mvn install produces the following error:

[INFO] --- gwt-maven-plugin:1.0.0:compile (default-compile) @ sdcp-mobile-client ---
[INFO] Compiling module com.howudodat.App
[INFO]    Tracing compile failure path for type 'ol.OLUtil'
[INFO]       [ERROR] Errors in 'jar:file:/home/peter/.m2/repository/com/github/tdesjardins/gwt-ol3/8.1.0/gwt-ol3-8.1.0.jar!/ol/OLUtil.java'
[INFO]          [ERROR] Line 93: Type mismatch: cannot convert from JsArray<T> to T[]
[INFO]    [ERROR] Aborting compile due to errors in some input files

I have not added anything to the view yet. I am not using nalu or mvc, just straight basic app

Ahmad K. Bawaneh
@vegegoku
That is supposed to be maintained by the third libraries authors..anyway it is still pointing to a verybold version of domino-ui ..will see what we can do soon. @TDesjardins
Ahmad K. Bawaneh
@vegegoku
gwt-ol3 still uses gwt 2.8.2
Frank Hossfeld
@FrankHossfeld
Mmh, there should be a version that uses 2.9.0
Ahmad K. Bawaneh
@vegegoku
yes there is ..but I am not sure if it is released
Frank Hossfeld
@FrankHossfeld
At least of GWT-ol … may be the add on is not updated.
Ahmad K. Bawaneh
@vegegoku
i found it
Frank Hossfeld
@FrankHossfeld
I think so.
Ahmad K. Bawaneh
@vegegoku
<!-- https://mvnrepository.com/artifact/com.github.tdesjardins/gwt-ol3 -->
<dependency>
    <groupId>com.github.tdesjardins</groupId>
    <artifactId>gwt-ol3</artifactId>
    <version>8.1.0-gwt2_9</version>
</dependency>
Ahmad K. Bawaneh
@vegegoku
@howudodat If you are welling to gve this a test I have fixed the depndencies and added github actions to the repository, a HEAD-SNAPSHOT is in its way ... and if you test this and it works for you we can do a release
Tino Desjardins
@TDesjardins
<!-- https://mvnrepository.com/artifact/com.github.tdesjardins/gwt-ol3 -->
<dependency>
    <groupId>com.github.tdesjardins</groupId>
    <artifactId>gwt-ol3</artifactId>
    <version>8.1.0-gwt2_9</version>
</dependency>
Yes, the last three releases of gwt-ol have a separate releases for GWT 2.9-support (version with suffix 'gwt2_9'). Actually I updated the demos and plugins when releasing but used the GWT-2.8 version I think. I think all should work fine when using the version '8.1.0-gwt2_9'. Let me know if it shouldn't work or if I can help on this!
Ahmad K. Bawaneh
@vegegoku
@TDesjardins I have updated the project, added github actions to release it but since I am runing maven enforcer plugin ..there was a dependency mix that I tried to solve, can you please give it a quick check.
Pavlo Iatsiuk
@bykka
Hi, could someone point me to the examples/documentation on how to guard some pages with login access in domino-mvp ?
Ahmad K. Bawaneh
@vegegoku
I can help and share how we do it, intellij is indexing and not lettin navigate classes
there is 2 ways to do it depends on how you need to handle things and what is your security implementation
first you can use a @RevealCondition in your presenters, in the condition you decide if the view should be revealed based on user authentication status
the other way to do it is to wrap the Token filter in a custom token filter that does the check for authentication/authorization
we use the second method

public abstract class AuthorizationProxy<V extends View> extends LoadableProxy<V> {

    @RoutingTokenFilter
    public static TokenFilter onRoutingToken(String token) {
        return AuthorizationTokenFilter.make(TokenFilter.endsWithPathFilter(token));
    }

    @StartupTokenFilter
    public static TokenFilter onStartupToken(String token) {
        return AuthorizationTokenFilter.make(TokenFilter.endsWithPathFilter(token));
    }
}
Ahmad K. Bawaneh
@vegegoku
we do this in an abstract proxy and let all proxies that need authorization extend from it
public class AuthorizationTokenFilter implements TokenFilter {

    private static final Logger LOGGER = LoggerFactory.getLogger(AuthorizationTokenFilter.class);

    private final TokenFilter tokenFilter;
    private StateHistoryToken historyToken;

    private AuthorizationTokenFilter(TokenFilter tokenFilter) {
        this.tokenFilter = tokenFilter;
    }

    public static AuthorizationTokenFilter make(TokenFilter tokenFilter){
        return new AuthorizationTokenFilter(tokenFilter);
    }

    @Override
    public boolean filter(HistoryToken token) {
        boolean filter = tokenFilter.filter(token);
        boolean authorized = isAuthorized();
        return filter && authorized;
    }

    private boolean isAuthorized() {
        return TokenAuthorizationChecker.isAuthorized(historyToken);
    }

    @Override
    public NormalizedToken normalizeToken(String rootPath, String token) {
        this.historyToken = new StateHistoryToken(rootPath, token);
        return tokenFilter.normalizeToken(rootPath, token);
    }
}
Pavlo Iatsiuk
@bykka
honestly, my application should not have any public access - all pages should be protected
Ahmad K. Bawaneh
@vegegoku
same here except the bootsrapping page here as we show system loading stuff, so the filter wrapper solution is very cheap and simple to implement
Pavlo Iatsiuk
@bykka
Thanks for the advice.
Tino Desjardins
@TDesjardins

@TDesjardins I have updated the project, added github actions to release it but since I am runing maven enforcer plugin ..there was a dependency mix that I tried to solve, can you please give it a quick check.

I will have a look in the evening. Have you updated the plugin project or also the demo app for plugin integration?

Ahmad K. Bawaneh
@vegegoku
there were few needed changes in the sample