Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
JS Bournival
Portlet servlet mapping catch-all is killing me
14 dicembre 2011 8.54

JS Bournival

Punteggio: New Member

Messaggi: 11

Data di Iscrizione: 14 dicembre 2011

Messaggi recenti

(transparency: I am cross posting this also in the vaadin forums)

Hi, I am having a hard time dealing with a catch-all servlet mapping in one of my portlet. Maybe I do not get this right, but here's the thing:

I implemented a vaadin app as a portlet, it works just fine. At some point I needed ICEPush (a vaadin add-on) to perform IPC stuff for me. It's also working fine.

But, I happen to have a CSS file, specific to this portlet:


Unfortunately, the portal isn't serving me the said CSS. It's caught in the ICEPushServlet which is in front of everything via its catch-all mapping (/*). And this servlet needs to have it this way or it just won't work as advertised.

I don't know if I'm clear enough, but is there a way around this?

P.S. off course I >could< move my styles elsewhere, in our theme, but I'd like to figure it out.

Thank you.

Milen Dyankov
RE: Portlet servlet mapping catch-all is killing me
14 dicembre 2011 9.21

Milen Dyankov

Punteggio: Regular Member

Messaggi: 173

Data di Iscrizione: 23 settembre 2009

Messaggi recenti

I'm not sure how exactly Vaadin fits in Liferay but generally there are at least 2 ways to work around this:

1) add
to liferay-portlet.xml

2) implement/modify JSR286 serveResource method to serve the file (in case you a have a good reason to do this manually)

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!