[JBoss Portal] - CMS Portlet question
by ndrw_cheung
Hi, all. I'm using JBOSS portal version 2.4, JBOSS AS version 4.0.5GA. In my portal I have 2 pages - page A and page B, each containing a different instance of the CMS portlet. On page A, the instance of CMS portlet points to the content file contentA.html. On page B, the instance of CMS portlet points to the content file contentB.html. In contentB.html, it contains a link to another content file, namely contentC.html. (note : all these content*.html files are uploaded into CMS through the admin interface).
When a user goes to page B, the content in contentB.html shows up. The user then clicks on the link (which points to contentC.html), then the content in contentC.html shows up. Now the user goes to page A, contentA.html shows up. When the user now goes to page B again, contentC.html is still showing.
My question is : is there a way (be it configuration or otherwise) so that in the above scenario, after the user goes to page A and then back to page B again that contentB.html shows up instead of contentC.html?
In other words, I need the CMS portlet instance to "forget" which content file it's showing if the user goes to another page. When the user comes back to that page, then it will load the first page that the instance is pointing to.
Thanks in advance for answering.
-Andrew
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239839#4239839
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239839
16 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Re: Is this JBoss or an iBatis issue? Classpath issues...
by adrianoats@gmail.com
Hey Jaikiran, thanks a lot for your support...
Here is the code......
|
| DaoManager gerenteDB;
|
| private static void carregarBD() {
|
| try {
|
|
|
| gerenteBD = DaoManagerBuilder.buildDaoManager(Resources
| .getResourceAsReader(resource), properties);
| } catch (DaoException e) {
| e.printStackTrace();
| } catch (IOException e) {
| e.printStackTrace();
| }
| }
And here is the stack trace
| 14:12:00,280 ERROR [STDERR] java.io.IOException: Could not find resource sped/contabil/entidade/dao.xml
| 14:12:00,280 ERROR [STDERR] at com.ibatis.common.resources.Resources.getResourceAsStream(Resources.java:101)
| 14:12:00,280 ERROR [STDERR] at com.ibatis.common.resources.Resources.getResourceAsStream(Resources.java:86)
| 14:12:00,280 ERROR [STDERR] at com.ibatis.common.resources.Resources.getResourceAsReader(Resources.java:150)
| 14:12:00,280 ERROR [STDERR] at sped.contabil.entidade.ConexaoBD.carregarBD(ConexaoBD.java:186)
I found the following link https://jira.jboss.org/jira/browse/JBAS-3086
On that link, it seems that is a workaround is explained but... I didn't quite get it.
Is my doubt understandable now? If not, please ask for any detail you'd like because, I gotta admit, I have no further ideas for this problem.
Thanks a lot.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239832#4239832
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239832
16 years, 10 months