Re: Need help with SummerNote editor

2019-06-17 Thread Martin Grigorov
Hi,

On Sun, Jun 16, 2019 at 4:44 PM Dan Haywood 
wrote:

> 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.
>

Could it be that there is some zIndex related failure here ?
At https://wb8.teliclab.info/summernote I can see that the element with CSS
selector .note-editor .note-dropzone has z-index: 100.
Maybe Isis's dialog uses a bigger value and this "hides" the editor.
Check with the browser Dev Tools.

Regards,
Martin

> >
> > > 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: 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: Need help with SummerNote editor

2019-06-11 Thread Jayesh Prajapati
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
>


Need help with SummerNote editor

2019-06-06 Thread Jayesh Prajapati
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