Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 14 07:11
    FrankHossfeld closed #265
  • May 14 07:11
    FrankHossfeld commented #265
  • May 12 04:32
    FrankHossfeld labeled #265
  • May 11 16:58
    FrankHossfeld commented #265
  • May 11 14:16
    FrankHossfeld commented #265
  • May 11 14:04
    masterdany88 commented #265
  • May 11 10:02
    FrankHossfeld commented #265
  • May 11 09:29
    masterdany88 commented #265
  • May 11 09:08
    FrankHossfeld commented #265
  • May 11 09:02
    masterdany88 commented #265
  • May 11 07:06

    FrankHossfeld on main

    update docs (compare)

  • May 10 04:51

    FrankHossfeld on gwt-2.8.2

    fix docs (compare)

  • May 10 04:50

    FrankHossfeld on main

    fix docs (compare)

  • May 09 17:26
    masterdany88 commented #265
  • May 09 17:12
    FrankHossfeld commented #265
  • May 09 16:31
    masterdany88 opened #265
  • May 03 07:59

    FrankHossfeld on main

    udpate doc (compare)

  • May 02 09:18

    FrankHossfeld on main

    fixed typo (compare)

  • May 02 09:17

    FrankHossfeld on main

    improve documentation update README.md (compare)

  • May 02 09:15

    FrankHossfeld on main

    Update README.md (compare)

Colin Alworth
@niloc132
each has its own way iirc
Daniel Korbel
@masterdany88
            <plugin>
                <groupId>net.ltgt.gwt.maven</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>${gwt-maven-plugin.version}</version>
                <inherited>false</inherited>
                <extensions>true</extensions>
                <configuration>
                    <failOnError>true</failOnError>
                    <sourceLevel>1.8</sourceLevel>
                    <launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
                    <moduleName>com.gan.ap.AP</moduleName>
                    <moduleShortName>ap</moduleShortName>
                    <jvmArgs>
                        <arg>
                            -javaagent:${settings.localRepository}/org/projectlombok/lombok/${lombok.version}/lombok-${lombok.version}.jar=ECJ
                        </arg>
                        <arg>-Xms1024m</arg>
                        <arg>-Xmx4096m</arg>
                    </jvmArgs>
                    <codeserverArgs>
                        <arg>-src</arg>
                        <arg>${project.parent.basedir}/shared/src/main/java</arg>
                    </codeserverArgs>
                    <properties>
                        <property>
                            <name>nalu.application.version</name>
                            <value>${project.version}</value>
                        </property>
                    </properties>
                </configuration>
            </plugin>
Colin Alworth
@niloc132
which goal takes <properties>?
devmode and codeserver both take that
but the compiler doesnt appear to
so i dont understand why you have that, it doesnt make any sense
Daniel Korbel
@masterdany88
properties-maven-plugin is taken by nalu
Colin Alworth
@niloc132
no, i'm talking about the <properties> you put in the gwt-maven-plugin
Daniel Korbel
@masterdany88
I am just guessing
I will try system propberteis
Colin Alworth
@niloc132
i'm telling you that your <properties> does as much as a comment there
run with -X to see what properties any goal actually uses, it almost certainly ignores that, at least according to the docs
Daniel Korbel
@masterdany88
this seems to work
                    <systemProperties>
                        <property>
                            <name>nalu.application.version</name>
                            <value>${project.version}</value>
                        </property>
                    </systemProperties>
thanks
Frank Hossfeld
@FrankHossfeld
@/all anybody out there who is using Nalu with Java 8?
Tino Desjardins
@TDesjardins
Yes!
Frank Hossfeld
@FrankHossfeld
Thaks for answering … :-)
Zach Visagie
@ruzkant
Me too
Colin Alworth
@niloc132
related, how long do you guys think you'll be using java 8 (as a rough estimate) - gwt can't support java 17 lang features until we drop java8 support...
Frank Hossfeld
@FrankHossfeld

@/all This week we released Nalu 2.10.0. There is a new feature added, that improves the way how to add an event handler to the event bus. All you need to do is to add the '@EventHandler' to the method.
For more informations, see: https://github.com/NaluKit/nalu/wiki/08.-Eventbus#event-handling

And we just add a new complex Nalu example, that uses a lot of the features, Nalu provides. And it might give you an impression how to do things in Nalu. (see: https://github.com/NaluKit/nalu-examples/tree/main/nalu-complex-app-example)

Enjoy.

Raúl Pampliega Mayoral
@RaulPampliegaMayoral
great job!
Frank Hossfeld
@FrankHossfeld
Thanks!
Tino Desjardins
@TDesjardins

related, how long do you guys think you'll be using java 8 (as a rough estimate) - gwt can't support java 17 lang features until we drop java8 support...

I see, just wanted to answer. Should not be that problem to go forward. I would rather spent effort to update the old stuff than blocking GWT to move forward.

jhillbounce
@jhillbounce
Thank you group! Exceptional experience downloading and running the GWT-OpenLayers Demo project. There were no errors - it just worked!
Daniel Korbel
@masterdany88
Hi. WIll route paraemeters work when inheritated from abstract class? I am trying it, but so far no luck.
I have abstract Controller class that have common logic about view parameter

I see that

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AcceptParameter {

  String value();

}

has no @Inheritance annotation

Daniel Korbel
@masterdany88
and this is probably it not work
Frank Hossfeld
@FrankHossfeld
What are you trying to do? Using the @AcceptParameter in an Abstract class?
Daniel Korbel
@masterdany88
I have many views with many collapsed cards in it.
I have common logic to expand/collapse those cards widget, base on view parameter in url
see
public abstract class AbstractControllerWithWidgetReveal<V extends IsComponent<?, W>, W> extends AbstractComponentController<APContext, V, W> {
    protected String view;

    public void unfoldWidget() {
        if (view != null && !view.isEmpty()) {
            IsFoldable foldableWidget = (IsFoldable) super.getComposite(view).getComponent();
            foldableWidget.unfold();
        }
    }

}
public class SettingsController extends AbstractControllerWithWidgetReveal<ISettingsComponent, HTMLElement>
        implements ISettingsComponent.Controller {

    @AcceptParameter(VIEW_PARAMETER)
    void setView(String view) {
        super.view = view;
    }

    @Override
    public void start() {
        super.unfoldWidget();
    }
}

As You can see I have to repeat in each controller this:

    @AcceptParameter(VIEW_PARAMETER)
    void setView(String view) {
        super.view = view;
    }

I could put this in abstract class, but for that @AcceptParameter would have to be inheritable, which is not done by default by java

but We need to think this through
Do You get it?
Daniel Korbel
@masterdany88
here is solution:
/*
 * Copyright (c) 2018 - 2020 - Frank Hossfeld
 *
 *  Licensed under the Apache License, Version 2.0 (the "License"); you may not
 *  use this file except in compliance with the License. You may obtain a copy of
 *  the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 *  License for the specific language governing permissions and limitations under
 *  the License.
 */

package com.github.nalukit.nalu.client.component.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * This annotation should be used to annotate methods of classes that accept one
 * String value. Nalu will use this method to inject url parameters into the class.
 *
 * <b>The name of the parameter must be a variable name from the route.</b>
 *
 * @author Frank Hossfeld
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AcceptParameter {

  String value();

}
Frank Hossfeld
@FrankHossfeld
Yeap, I am doing that all the time and it works. So I think, that’s not the problem.
Are all your controller inside the same package?
Daniel Korbel
@masterdany88
no
is this make any diffrence?
You have @AcceptParameter() in Your abstract controller?
can You share?
Frank Hossfeld
@FrankHossfeld
I am not at my computer right now
Add public to the method annotated with @AcceptParameter
Daniel Korbel
@masterdany88
make it public worked
thansk
Frank Hossfeld
@FrankHossfeld
You are welcome