Hi, I seriously doubt this can work in the way you imagine.
You'd have to write a whole new ZK based viewer (like the standard Wicket one). See the org.apache.isis.viewer.wicket.* packages (4 jars) in the Maven dependencies of the webapp. Maybe Dan is suggesting to move off Apache Isis once you are happy with your domain model, so Apache Isis is only used for prototyping? Steve On Wed, Nov 22, 2017 at 5:57 PM, SE Song <[email protected]> wrote: > I already create a repository here https://github.com/sesong11/ > ApacheIsisZK > and create ZK VM here > https://github.com/sesong11/ApacheIsisZK/blob/master/webapp/src/main/java/ > domainapp/webapp/zkvm/SampleVM.java > > Now another issue on integrating ZK, I can't Inject my repository on ZK VM, > Everything ok, excepted Injecting Service, it always null. > > The problem is ZK initiate VM using Contructor, @PostConstruct on ZK VM has > never been called. Can you please help me how to Inject service outside of > container, or guide me another possible ways > > On Wed, Nov 22, 2017 at 10:48 AM, SE Song <[email protected]> wrote: > > > I'm building an business process application, we manage staff information > > and request form such as Leave Request, OT, IT Form... > > each form mush has at least employee info, and form detail... > > > > Auto generate UI is very good idea, e.s it's testable too. But Management > > are not developer, it's very difficult to convince them about changing > > their ideas, they always ask what they want. > > They always concern about look and feel at first. > > > > I will create a repository for integrate Apache Isis and ZK framework > for > > UI, If everything go well, I will use ZK for Frontend Layer and > > Presentation Layer, > > and Apache Isis for Business Logic, Business Model and Data Layer. I also > > concern about integrating ZK VM to Isis Repository too, because ZK use > > Constructor out site container, > > so Inject Service maybe impossible or difficult. But I will try and post > > on Github > > > > On Wed, Nov 22, 2017 at 12:00 AM, Dan Haywood < > > [email protected]> wrote: > > > >> If the behaviour of the text field in particular is problematic, then > you > >> can develop and plug in a different implementation using the Wicket > >> framework. The Wicket viewer guide has details on how to do this > >> (fullcalendar2, gmap3 use this API). > >> > >> That said... > >> > >> You said your pages are form heavy, and are all view models. I wonder > >> therefore whether you are fighting the framework too much. Why are you > >> using view models rather than just surface entities? Why do your users > >> need > >> so much information on a single page - what use cases are you trying to > >> support? Where is this app on the "problem solver Vs process follower" > >> axis? > >> > >> One option for you might be to use Isis as a development environment (to > >> build a good quality domain model) but then write a custom UI, eg in ZK > on > >> top of it. Obviously this throws out one of the framework's key > features, > >> but you get full flexibility to do whatever. Or, you could use the Rest > >> api > >> to accomplish the same. > >> > >> But, I do suggest you also try to work within the constraints of the > >> framework, and see what that gives you. We know of plenty of "problem > >> solver" type apps that are out there that work well enough without lots > of > >> customisations. > >> > >> Hth, > >> Dan. > >> > >> > >> On Tue, 21 Nov 2017, 12:11 SE Song, <[email protected]> wrote: > >> > >> > Yes, I am learning about it. And another option for me is using ZK > >> > framework for UI > >> > > >> > On Tue, Nov 21, 2017 at 6:27 PM, Rade, Joerg / Kuehne + Nagel / Ham > >> GI-DP < > >> > [email protected]> wrote: > >> > > >> > > Have you considered using the RestfulObjects interface [1] yet? > >> > > > >> > > -j > >> > > [1] https://isis.apache.org/guides/ugvro/ugvro.html > >> > > > >> > > -----Ursprüngliche Nachricht----- > >> > > Von: SE Song [mailto:[email protected]] > >> > > Gesendet: Dienstag, 21. November 2017 11:28 > >> > > An: [email protected] > >> > > Betreff: Re: Customize UI behavior > >> > > > >> > > My issue isn't just scrolling, but also behavior of Textbox. If it's > >> > > possible to change it behavior from clicking and show OK Button & > >> Cancel > >> > > Button to use ajax to bind it to VM without bother user to click > >> submit. > >> > > > >> > > > >> > > > >> > > On Tue, Nov 21, 2017 at 5:18 PM, Stephen Cameron < > >> > > [email protected] > >> > > > wrote: > >> > > > >> > > > Ok, but using tabs via layout.xml is still an option. > >> > > > > >> > > > Maybe using a JAXB VM causes a full page reload? > >> > > > > >> > > > Do you have to use them? > >> > > > > >> > > > On Tue, Nov 21, 2017 at 9:13 PM, SE Song <[email protected]> > >> wrote: > >> > > > > >> > > > > It always scroll like this. > >> > > > > > >> > > > > > >> > > > > > >> > > > > On Tue, Nov 21, 2017 at 5:10 PM, SE Song <[email protected]> > >> wrote: > >> > > > > > >> > > > >> Sorry that I did not specified that I am using JAXB VM. It just > >> > > > >> submit > >> > > > to > >> > > > >> VM > >> > > > >> > >> > > > >> On Tue, Nov 21, 2017 at 4:48 PM, Stephen Cameron < > >> > > > >> [email protected]> wrote: > >> > > > >> > >> > > > >>> More details here: https://www.youtube.com/watch? > v=MxewC5Pve5k > >> > > > >>> > >> > > > >>> On Tue, Nov 21, 2017 at 8:46 PM, Stephen Cameron < > >> > > > >>> [email protected] > >> > > > >>> > wrote: > >> > > > >>> > >> > > > >>> > Have you tried using tabs via the xxx.layout.xml? > >> > > > >>> > > >> > > > >>> > My pages aren't more than one screen height and I've not had > >> the > >> > > > other > >> > > > >>> > problems that you indicate, Apache Isis doesn't submit a > form > >> in > >> > > > >>> > the > >> > > > >>> sense > >> > > > >>> > of an HTML <form> element, each click of OK submits the > >> updated > >> > > > >>> > value > >> > > > >>> to > >> > > > >>> > the database. > >> > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > > >>> > > >> > > > >>> > On Tue, Nov 21, 2017 at 8:36 PM, SE Song < > [email protected]> > >> > > wrote: > >> > > > >>> > > >> > > > >>> >> Dear All, > >> > > > >>> >> > >> > > > >>> >> After presentation Apache Isis to my manager, what he > doesn't > >> > > > >>> >> like > >> > > > is > >> > > > >>> UI, > >> > > > >>> >> Because the application which I am developing is HR System, > >> > > > >>> >> which > >> > > > has > >> > > > >>> a > >> > > > >>> >> lot > >> > > > >>> >> of form, so UX is very important for us. > >> > > > >>> >> > >> > > > >>> >> After Using Apache Isis for a while I have some problem on > UI > >> > > > >>> behavior as > >> > > > >>> >> bellow: > >> > > > >>> >> 1. When I click on the control it always scroll to top, so > if > >> > > > >>> >> my > >> > > > from > >> > > > >>> has > >> > > > >>> >> 2x of screen high, user will very difficult for input data. > >> > > > >>> >> 2. When user click on a textbox it always show "OK" and > >> "Cancel" > >> > > > >>> button, > >> > > > >>> >> OK > >> > > > >>> >> button use submit, this make my form refresh every time I > >> press > >> > > > Enter > >> > > > >>> or > >> > > > >>> >> Click "OK", so it always scroll back to top and destroy > >> another > >> > > > field > >> > > > >>> that > >> > > > >>> >> I did not submit. > >> > > > >>> >> 3. I want to change behavior of textbox from Clicking > Submit > >> to > >> > > > >>> >> use > >> > > > >>> jQuery > >> > > > >>> >> (ZK like) to send data to my VM when user Lost Focus on > >> textbox. > >> > > > >>> >> > >> > > > >>> >> Please help to guide me what should I do/learn to solve > this > >> > > > problem. > >> > > > >>> >> > >> > > > >>> >> > >> > > > >>> >> Another option for me is to integrate Apache Isis with ZK > >> > > Framework. > >> > > > >>> ZK > >> > > > >>> >> framework for implement presentation layer and fronted > layer. > >> > > > >>> >> Is > >> > > > this > >> > > > >>> >> option possible? > >> > > > >>> >> > >> > > > >>> > > >> > > > >>> > > >> > > > >>> > >> > > > >> > >> > > > >> > >> > > > > > >> > > > > >> > > > >> > > Kühne + Nagel (AG & Co.) KG > >> > > Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE > >> > > 812773878. > >> > > Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Dr. Hansjörg Rodi > >> (Vors. ), > >> > > Martin Brinkmann, Holger Ketz, Jan-Hendrik Köstergarten, Nicholas > >> Minde, > >> > > Michael Nebel, Lars Wedel, Matthias Weiner. > >> > > Persönlich haftende Gesellschafterin: Kühne & Nagel A.G., > Rechtsform: > >> > > Aktiengesellschaft nach luxemburgischem Recht, HR-Nr.: B 18745, > >> > > Geschäftsführendes Verwaltungsratsmitglied: Karl Gernandt. > >> > > Geschäftsleitung Region Zentral- und Osteuropa: Dr. Hansjörg Rodi > >> > (Vors.), > >> > > Thierry Held, Uwe Hött, Richard Huhn, Holger Ketz, Jan-Hendrik > >> > > Köstergarten, Jan Kunze, Michael Nebel, Guillaume Sauzedde, Mustafa > >> > Sener. > >> > > > >> > > Wir arbeiten ausschließlich auf Grundlage der Allgemeinen Deutschen > >> > > Spediteurbedingungen 2017 (ADSp 2017). Hinweis: Die ADSp 2017 > weichen > >> in > >> > > Ziffer 23 hinsichtlich des Haftungshöchstbetrages für Güterschäden > (§ > >> 431 > >> > > HGB) vom Gesetz ab, indem sie die Haftung bei multimodalen > Transporten > >> > > unter Einschluss einer Seebeförderung und bei unbekanntem Schadenort > >> auf > >> > 2 > >> > > SZR/kg und im Übrigen die Regelhaftung von 8,33 SZR/kg zusätzlich > auf > >> > 1,25 > >> > > Millionen Euro je Schadenfall sowie 2,5 Millionen Euro je > >> > Schadenereignis, > >> > > mindestens aber 2 SZR/kg, beschränken. Die ADSp sind auf unserer > >> Webseite > >> > > als Download erhältlich. Auf Anfrage senden wir Ihnen diese auch > gerne > >> > zu. > >> > > > >> > > >> > > > > >
