• Welcome to KonaKart Community Forum. Please login or sign up.
 
June 17, 2025, 09:13:43 am

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - rula

76
Programming of KonaKart / Re: extend contactUs
June 20, 2008, 06:21:45 am
Hi julie,

after many attempts I found a way to run the konakart webapps in one eclipse java project.
I have installed konakart in a project folder of the eclipse workspace.
For the custom folder I made 5 different src folders and added all jars of the 3 webapps to the buildpath. Now I can edit, run and build konakart in eclipse. Thanks.

regards, rula
77
Programming of KonaKart / Re: extend contactUs
June 19, 2008, 08:59:53 am
Hi julie,

thank you,
with this changes I will go over struts actions,
with others I will use own api calls.

By the way, your engine customization framework is super and I hope I can apply it correct soon.
I have a practical problem with running and synchronising of the 3 webapps of konakart in one eclipse project. Are there any practical guides to effective handle the whole customization process in a ide project?

regards, rula
78
Programming of KonaKart / extend contactUs
June 19, 2008, 07:46:57 am
Hi konakarts,

this is a newnie question about a simple customization in the contactUs page.
I have red the docs about customization and engine customization.
I will extend the contactUs page with a simple email form.
I think this have nothing to do with the engine apis a though I make my changes in custom/appn/src.
I add a ContactUs form, ContactUsSubmit action, extend struts-config, tiles-defs, validation, messages and contactUs.
Is this the right way for such a simple customization in the contactUs page?

regards, rula
79
Hi julie,

thank you,
this works:
kkAppEng.nav.set(getResources(request).getMessage(getLocale(request), "header.productfeatures"), request);

I searched for a cvs-view to show how com.konakart.al.Contants.java is implemented, but only found client-doc.
Can everybody view the cvs repository and if true, how can I access it?

regards, rula
80
Hi Julie,

I want to add ProductFeatures.jsp. All seems to be right but in the breadcrumb-navigation there is a problem with the Translation of the new Entry.

It seems it needs a new Constant for a correct navigation entry, but I can't edit com.kanakart.al.Constants.

In the end of the new action ProductFeatures.java:
/kkAppEng.nav.set(Constants.shippingandreturns, request);
kkAppEng.nav.set("productfeatures", request);
return mapping.findForward("ProductFeatures");

And in the messages.properties:
header.productfeatures=Product Features
productfeatures=Product Features

There is something missing for a correct breadcrumb navigation entry.

regards, rula
81
Hi ryan,

I searched and found:

There are two ways to create definitions in tiles:
1.with a configuration-file (tiles-defs.xml)
2.with the tiles-tags form the tiles-taglib in a jsp-file (layout.jsp)

By the second way, it should be possible to create dynamic layouts, alike with styles.
I have no experience with this way, because the configuration-file is good for me to use.

But I think, this could be one way to do this.

I thought, for customers it could be interesting to change the complete view (style and layout) to show the possibilities, like in your demo-version, but it's not a must, when it is too fiddly.

Do you know how to use jsp-variables in css-files to create dynamic styles?
Tomcat don't parses a *.css-file to evaluate the variables for the styles.

regards, rula
82
Hi Heidi,

in MainLayout.jsp I have done this:
<link type="text/css" rel="stylesheet" href="styles/skin_style.css" />
<jsp:useBean id="cal" class="java.util.GregorianCalendar"/>
<link type="text/css" rel="stylesheet" href="styles/tile<%=cal.get(GregorianCalendar.MINUTE)%4+1%>.css"/>

in skin_style.css I have done this:
/* @import 'tile1.css'; */

Now the style rotates every minute between 4 different styles.

I want to rotate the complete view, (style and layout). Layout is fixed in tiles-def.xml by main.layout.
How can I change these main-layout-definition dynamic in the tiles-plugin from struts?

regards, rula
83
Hi Heidi,

aha cron,

1.I will switch the css-import dynamic in the jsp (MainLayout.jsp):

<link type="text/css" rel="stylesheet" href="styles/skin_style.css" />

or
2.I will switch the css-import dynamic in the css (skin_style.css):

/* Import the tile style */
@import 'tile1.css';

I guess, that I could use jsp-tags in css-files, but I'm not sure

It must be a entry in the web.xml like this,

   <mime-mapping>
      <extension>css</extension>
      <mime-type>text/jsp</mime-type>
   </mime-mapping>

that the *.css is parsed by the jsp-engine and so ...
I don't know further.
regards, rula
84
Hi KonaKarts,

I saw the news of version2.2.6 in your demo. Wow, super features
The skin-rotation in this demo seems to be very practical for demos.

Please, could anybody disclose the mystery of dynamic ccs-imports.
It seems to me, that I only have to change the tiles.css in the @import of the *.css.

I searched the web and can't find a solution for jsp (server side)
I have seen *.ccs as *.jsp, maybe this could be the way, but where could I find more about this?
Help would be fine.

regards, rula






85
Configuration of KonaKart / Re: different formats
June 06, 2008, 07:28:19 am
Hi ryan,

I used jstl in the jsp to format the date according the locale:

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt";   prefix="fmt" %>

<fmt:message var="dateFormat" key="date.format"/>
<fmt:formatDate var="birthDate" value="${cust.birthDate.time}" pattern="${dateFormat}"/>

Now parsing and formating for dates works.

regards, rula
86
Configuration of KonaKart / Re: jstl-tags
June 05, 2008, 09:52:38 pm
Hi KonaKarts,

solution from

Developer Forums
JavaServer Pages (JSP) and JSTL - JSTL variable access problem - HELP

To retain backwards compatibility with web applications. EL is disabled in certain cases. JSP spec section 3.3.2
Try putting this web directive on your page:
<%@ page isELIgnored="false"%>

Check your web.xml file - if the DTD is less than version 2.4 and you haven't specified EL handling in web.xml or the page directive, EL is disabled by default.
Your web.xml file should start with this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">

regards, rula
87
Configuration of KonaKart / jstl-tags
June 05, 2008, 05:20:46 pm
Hi KonaKarts,

I have a problem with jstl. The tags don't work - expressions not evaluated

I use:
jstl.jar1.1.2
standard1.1.2
in konakart/lib

c.tdl
in konakart/WEB-INF

<taglib>
    <taglib-uri>/tags/c</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
in konakart/WEB-INF/web.xm

<%@ taglib uri="/tags/c" prefix="c" %>
<c:set var="test" value="rula"/>
<c:out value="${test}"/>
in konakart/WEB-INF/jsp/test.jsp

and I get
${test}
in the view

Where is the problem, please help!?

regards, rula
88
Configuration of KonaKart / Re: different formats
June 05, 2008, 02:37:03 pm
Hi ryan,

I replaced:

SimpleDateFormat sdf = new SimpleDateFormat(Constants.dateTemplate);

by:
String dateFormat = getResources(request).getMessage(getLocale(request), "date.format");
SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);

and it works!

The parseing in the action is correct,
the formating in the jsp in incorrect.

I can't use:
value="<%=kkEng.getDateAsString(cust.getBirthDate())%>"
because this methode works also with the const.dateFormatTemplate

Are there any KonaKart-Tags for this work?

regards, rula


89
Configuration of KonaKart / Re: different formats
June 05, 2008, 09:15:53 am
Hi KonaKards,

I used struts-validator with 3 formsets and according format-pattern:
default formset
en_GB formset
de_DE formset

The struts-validation of the input-values is correct,
the selection of the message-catalog in not correct.

debugger:
05-Jun 10:09:27 DEBUG (?:execute:?) Locale set from application = en_GB

action:
05-Jun 10:10:29 DEBUG (?:execute:?) request.getLocale(): de_DE
05-Jun 10:10:29 DEBUG (?:execute:?) Constants.dateTemplate: dd.MM.yyyy

Why this, I switch the language to en_GB and the request-locale is de_DE.
Is this okay!?

(Sorry, I have to answer later, thanks)

regards, rula

90
Configuration of KonaKart / different formats
June 05, 2008, 08:29:50 am
Hi KonaKarts,

I can't use different date-formats for en_GB and de_DE:

in Messages_en_GB:
date.format=dd/MM/yyyy

in Messages_de_DE:
date.format=dd.MM.yyyy

in debugger:
05-Jun 09:15:00 DEBUG (?:execute:?) Locale set from application = en_GB
05-Jun 09:16:01 DEBUG (?:execute:?) Constants.dateTemplate: dd.MM.yyyy

in stack-trace:
Exception Name = java.text.ParseException
Exception Message = Unparseable date: "01/01/2000"
Exception Stack Trace =
at java.text.DateFormat.parse(Unknown Source)
at com.konakart.actions.CustomerRegistrationSubmitAction.execute(Unknown Source)

After validation this exception occurs!
Why has been the false date-pattern (Constants.dateTemplate: dd.MM.yyyy) for this locale(en_GB) selected?

regards, rula