Re: Maven build and the clnt-struts package...
"Sasvata (Shash) Chatterjee" <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
Mike,
> I have run into an issue with the new build system using Maven... I
> am using struts for UI and have included the required clnt-struts
> package in my build. Everything builds great, however my /index.jsp
> is overwritten by the clnt-struts index.jsp... which contains a link
> to an app-register model.
>
> This was not a problem before, you can just get rid of the jsp's from
> clnt-struts locally, rebuild it and have it in your local repos but
> this is not a desired build procedure.
>
> Is there a way to have clnt-struts included in my project and
> disregard the jsps? If not, we might want to think about getting
> those basic "sample" jsps out of clnt-struts and into app-register
> (seems like a good place for it)
>
> Please let me know if you have any ideas on this topic,
>
Yesterday I checked in "app-personality", and moved index.jsp there
(Still need to move out authfail.jsp). The idea is that the start page
of a Keel-based webapp should be user-defined and not
framework-defined. You can simply copy app-personality, rename the
artifact in project.xml and change the look&feel to your heart's
content. I have updated several of the apps to no longer show the Keel
log/header in the JSPs. As long as you have either Sitemesh (as in
app-personality) or Tiles or some other page-decoration scheme providing
the CSS in the head section, you can make all the pages follow a certain
scheme.
NOTE: I haven't finished consolidating the JSPs and CSS quite yet, so
the pages will not look quite as pretty as before right now, but pretty
soon...good news is we only have to change one file. I am going through
and taking out hard-coded font sizes etc. everywhere I spot them, and
replacing with CSS.
I am also mulling about providing a cookie/session-based variable that
can be used in the decorator to pick a "personality" directory at run
time, that way we can have per-user/group switchable look&feel, like
"skinned" webapps. Anybody that has experience with PHP skins or is
more artistic than I, please feel free to provide some guidance on this.
Here's the type of help or definition that would help:
I am going with a "div" around a "table" around a "form". The div has a
CSS class, as does the table, and form. Each row ("tr") and cell ("td")
has a class, and cell's have "label" or "input" or "readonly" etc.
embedded in the CSS class name. I have not much experience or
understanding of this to determine what impact this will have on render
performance in the browser..suggestions welcome. Also, is it better to
have class/id on the table, row, cells...or is it better to put "span"
with a class/id around the text in the cells? Can table/row/cell
broders be controlled from CSS (particularly, border="0")? Frankly,
if somebody could volunteer to properly CSS-ize/skin-ready the JSP
pages...that would be most welcome, I am just not that artistic or
capable in this area!
Shash
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com