• Welcome to KonaKart Community Forum. Please login or sign up.
 

Add content from webservice to ProductDetails Page

Started by superbear, January 03, 2012, 01:55:32 pm

Previous topic - Next topic

superbear

Hey everybody,

I'm new to Konakart. I want to add some content to the product details page, with i retrieved via a webservice.

I found out how to customize the frontend template (ProductDetailsBody.jsp) to add some static content.
Now I want to add dynamic content, form my webservice.

I tought I could add my logic to ShowProductDetailsAction, but I do not know how to access the content i got (product list) from the frontend template.

I think this is more a struts question than a konakart one. Hopefully someone can help me, anyway.

Regards

superbear

Today I had a new idea, how to fix my problem.

Is it possible to add some custom methods, to the Product Manager?
If it is possible, how do I implement a custom product Manager? I only know how to implement a custom AppEngine.

Looking forward to some help

kate

Take a look at the Programming Guide section of the KonaKart User Guide.

It explains quite a few different techniques.

You may wish to specialise a manager and plug that in...  see "Pluggable Managers"

superbear

Thank you for this hint!

That was indeed what I was searching for!

superbear

But it seems like only professional partners can customize these "Pluggable Managers". I do not have any source code for the manager classes, to extend from.

ryan

You don't need the source code to extend the managers. The javadoc contains the methods of each manager.

superbear

Hey ryan,

that sounds good. I didn't know that.

Then I hope this is my last question: Whats the difference between the com.konakart.al and com.konakart.bl packages? Which one contains, what? I didn't find an explantation for these in the documentation!


superbear


superbear

As I'm extending the ProductMgr class I got an error, that the constructor

public ProductMgr(KKEngIf eng) throws java.lang.Exception

is undefined. So I added the constructor and delegated the call to the super class. But I get a error, that the super class does not have this constructor. The JavaDoc of ProductMgr tells me, that it should have this public constructor. Is the JavaDoc wrong?

superbear

Again my fault. There is a com.konakart.al.ProductMgr and a com.konakart.bl.ProductMgr.
By mistake I extended the al version instead of the bl version.

very confusing

so the bl version is the right one!