Re: repo.incode.cloud down

2019-06-16 Thread Dan Haywood
fyi, https://repo.incode.cloud is now configured.  It only holds interim
builds of Apache Isis framework, and the Incode Platform.



On Wed, 15 May 2019 at 09:23, itsupport 
wrote:

> Unsubscribe
>
>
> -Original Message-
> From: Brian K 
> Sent: 14 May 2019 18:23
> To: users@isis.apache.org
> Subject: Re: repo.incode.cloud down
>
> Maven was checking this repository before the others, so the build took a
> long time while it timed out for every artifact.  It was faster when I set
> the `skip.incode-cloud-maven` property.  I'm not sure what artifacts are
> lacking when I get the latest from the other repositories. I did notice
> that the javax.xml.ws package was not included in the web deployment when
> it was built against 2.0.0-M2. I am currently building against
> 2.0.0-M3-SNAPSHOT.
>
> Thanks!
>
> On Mon, May 13, 2019 at 1:25 PM Dan Haywood 
> wrote:
>
> > Apologies, I'm in the process of recommissioning it.
> > In the meantime, we have an alternative, repo.incode.work, you might
> > want to try that.
> >
> > Which artifacts is mvn attempting to download?
> >
> >
> > On Mon, 13 May 2019, 21:37 Brian K,  wrote:
> >
> > > https://check-host.net/check-report/a8dce74kc54
> > >
> > > Is this host supposed to be up?  I'm having to work in offline mode
> > > or
> > set
> > > maven property skip.incode-cloud-maven .
> > >
> > > -Brian
> > >
> >
> This message is confidential and intended solely for the use of the
> individual/s to whom it is addressed. If you are not the intended
> recipient, be advised that you have received this message in error and that
> any use, dissemination, forwarding, printing, or copying of this message is
> strictly prohibited. If you have received this message in error please
> notify the sender by replying to this message. Vital Pet Trade Specialist
> is a trading name used by Vital Pet Group Ltd. For Terms of Business and
> further details about Vital Pet Trade Specialist please visit
> www.vitalpetproducts.co.uk.
>


Re: Need help with SummerNote editor

2019-06-16 Thread Dan Haywood
Hi Jayesh,

I'm afraid this module broke in the upgrade from Wicket 6.x to Wicket 7.x,
which was in Isis v15.x I believe.  We haven't had the need to fix it
outselves since.

You could go back to an earlier version of our archetype and see if you can
get it working, that might give you some clues as to what's missing.

The component itself uses the approach documented in the Wicket user guide
[1].  NB: I've quoted the 1.16.2 version because the 1.17.x version has a
formatting error.

HTH
Dan




[1]
http://isis.apache.org/versions/1.16.2/guides/ugvw/ugvw.html#_ugvw_extending_replacing-page-elements



On Tue, 11 Jun 2019 at 21:04, Jayesh Prajapati  wrote:

> Hi,
>
> It will be great if someone can share link to a github repo where
> summernote is working. I will use it as reference.
>
> Thanks,
> Jayesh
>
> On Thu, Jun 6, 2019 at 9:53 PM Jayesh Prajapati 
> wrote:
>
> > Hi,
> >
> > I used quickstart archetype to create project using Apache Isis v1.16.2.
> > This quickstart project by default include many modules and wicket
> > components. Today I tried to make use of SummernoteEditor annotation on
> one
> > of the parameter of "Update" Mixin action. See below code snippet -
> >
> > --START
> > :
> > @Mixin
> > public class WithNameAndDescription_update {
> >
> > private final WithNameAndDescription entity;
> >
> > public WithNameAndDescription_update(WithNameAndDescription entity) {
> > this.entity = entity;
> > }
> >
> > @ActionLayout(
> > describedAs = "Update name and description"
> > )
> > @Action(semantics = SemanticsOf.IDEMPOTENT)
> > public WithNameAndDescription $$(
> > @Parameter(optionality = Optionality.MANDATORY, maxLength =
> > WithName.MAX_LEN)
> > @ParameterLayout(named = "Name", describedAs = "Name of this entity")
> > final String name,
> >
> > @Parameter(optionality = Optionality.OPTIONAL, maxLength =
> > WithDescription.MAX_LEN)
> > @ParameterLayout(named = "Description", labelPosition =
> LabelPosition.TOP,
> > multiLine = 4, describedAs = "Description of this entity")
> > @SummernoteEditor(height = 100, maxHeight = 300)
> > final String description
> > ) {
> > entity.setName(name);
> > entity.setDescription(description);
> > return entity;
> > }
> > :
> > --END
> >
> > When user click on "Update" button for a Category it shows popup however
> > in this dialog there is no summernote editor.
> >
> > This project is at location -> [1]
> > I check the settings as per page -> [2]
> >
> > Any idea what am I missing here?!
> >
> > Thanks,
> > Jayesh
> > [1] - https://github.com/Jayeshecs/statements
> > [2] -
> > http://platform.incode.org/modules/wkt/summernote/wkt-summernote.html
> >
>


Re: Authentication via social media

2019-06-16 Thread Dan Haywood
HI Jayesh,
There aren't any specific plans, because we are focusing on the work to get
the framework re-platformed on top of Spring Boot.

That said,
a) our integration is with Shiro, so if Shiro supports pac4j then in theory
it ought to be possible to configure it to use pac4j ... but look into the
Shiro notes
b) I have a memory that Andi (Huber) might have done some work in pac4j, so
he might chip in.  Andi, anything to add?

Thx
Dan


On Sat, 15 Jun 2019 at 18:58, Jayesh Prajapati  wrote:

> Hi,
>
> I want to understand if there is support for authentication using
> social media authenticator?
>
> If yes, is there a repo where I can find relevant implementation?
>
> If no is there a plan to provide relevant support via shiro plugin pac4j
> [1] ?
>
> Thanks,
> Jayesh
>
> [1] - https://github.com/bujiio/buji-pac4j/blob/master/README.md
>


Re: Warning a user based on input on action invocation

2019-06-16 Thread Dan Haywood
Cleaning up ... I've raised
https://issues.apache.org/jira/browse/ISIS-2122 for
this idea.

On Fri, 23 Nov 2018 at 20:43, Andi Huber  wrote:

> You can solve this by adding a boolean parameter to the action, not as
> pretty as a yellobackground advise, but at least works with what we already
> have:
>
> import org.apache.isis.applib.annotation.Action;
> import org.apache.isis.applib.annotation.Mixin;
> import org.apache.isis.applib.annotation.ParameterLayout;
>
> import lombok.RequiredArgsConstructor;
>
> @Mixin @RequiredArgsConstructor
> public class SimpleObject_advice {
>
> private final SimpleObject holder;
>
> @Action
> public SimpleObject $$(
> @ParameterLayout(named="input") String input,
> @ParameterLayout(named="do it anyway") boolean doItAnyway) {
>
> // some action here
> return holder;
> }
>
> public String validate$$(String input, boolean doItAnyway) {
> if(doItAnyway) {
> return null;
> }
> return "not good, here's my advice to you ...";
> }
> }
>
> Cheers, Andi
>
> On 2018/11/23 15:46:26, Sander Ginn  wrote:
> > Hi,
> >
> > We’ve had a number of support requests relating to new users of our
> application that are not yet fully familiar with their business process.
> > We do not wish to invalidate input as many business rules are not
> clearly defined in a ‘correct/incorrect’ fashion, with many exceptions and
> special cases.
> >
> > As a middle ground, I would like to propose an extension of the
> metamodel with a support method similar to validateXxx(), which renders the
> familiar dialog and warning message underneath the input field with another
> colour (yellow, probably) but does not block the user from completing the
> action.
> >
> > Does anyone else consider this to be a useful addition, and if so, what
> would be a good method prefix? My first thought was warnXxx(), but that
> does not make a lot of sense syntactically; after all, we aren’t warning
> the action in question (as opposed to validate/hide/disableXxx()) but the
> user instead.
> >
> > Best
> > Sander Ginn
>