| Author |
Message |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 24/07/2008 12:17:37
|
xiaodanh
Joined: 09/04/2008 00:00:00
Messages: 6
Offline
|
Hi,
I am developing an application use iceface 1.7.1 with facelets implementation. we have multiple page directories under webtoot.
When using dataTable, seems like iceface adds a spacer column in between data columns referencing css-images/spacer.gif. and the path is relative to the current page directories. So by default we have to store a copy of the xmlhttp/css/rime/css-images directories under each page directory. it works but is not a good practice.
I want to change the image reference to point to an absolute directory, so I only keep one copy of the xmlhttp directory. I can't find the reference to css-images/spacer.gif in rime.css and can't find any attributes on dataTable tag let me overide it. I am able to change anywhere else that have explicit references.
Please help.
Thanks
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 24/07/2008 17:43:20
|
mark.collette

Joined: 07/02/2005 00:00:00
Messages: 1461
Offline
|
That's strange. URLs with /xmlhttp/ in them are intercepted by the Persistent Faces Servlet, so that the resources under that URL are loaded from our icefaces.jar. Are you sure that it's actually using the images you place in those directories?
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 25/07/2008 14:18:58
|
xiaodanh
Joined: 09/04/2008 00:00:00
Messages: 6
Offline
|
Thanks for the response. After seeing your comments, I did some more research and tried some more things to dig furthur into the issue.
You did prompt me to double check on that. Original, when I created the dynamic web project under eclipse, I checked the icefaces options. eclipse created the xmlhttp folders under webroot. And seems like what you said is true, it actually serving the images/css from within the icefaces.jar. I verified that by removing xmlhttp folder. Just a side comment though, we were gonna seperate all static contents and serve from http server to possibly improve performance. But doesn't seems like we can do that with the contents under xmlhttp folders.
My original issue was, I got a broken image spacer.gif on data table. Done some more testing, think I found out how this could happen. I am creating a datatable with resizable= true, framework actually create an additional column filled with spacer.gif. The reference to the image spacer.gif is relative to the page directory. When I place my page at webroot, it finds reference to xmlhttp under webroot, the page renders fine. But in my project, my page is not directly at webroot, it's in sub folders, that caused the reference to the image included my sub folder. But I don't have xmlhttp contents under my sub folder. So the image is broken. I think the code is inside the framework. When remove resizable= true on dataTable, it works fine. But we do like the resizable feature. And since our application has a lot of pages, some a secure, some are not. We do want to orgnize them better instead have all the pages in the root folder. You can reference this on the Showcase demo resizable columns page, notice the column devider is thicker.
Sorry, maybe the above is too wordy. Basicly, when you have resizable set to true on datatable, and your page is not at the webroot, you got broken image of spacer.gif.
Here is the code for dataTable:
<ice:dataTable id="iceDataTbl"
var="master"
value="#{myBean.myList}"
resizable="true"
sortColumn="#{myBean.columnName}"
sortAscending="#{myBean.descending}"
rows="#{myBean.dataScrollMode.rows}"
scrollable="#{myBean.dataScrollMode.scrollingEnabled}"
scrollHeight="250px"
columnWidths="100px,100px,100px,100px"
styleClass="dataPaginatorDataTable"
cellpadding="0"
>
Here is the broken sample url:
http://localhost:8085/MyAppWebRoot/secure/page/xmlhttp/css/xp/css-images/spacer.gif
Any help/work around are appreciated.
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 25/07/2008 19:11:29
|
mark.collette

Joined: 07/02/2005 00:00:00
Messages: 1461
Offline
|
Hopefully someone will get a chance to look into this soon.
http://jira.icefaces.org/browse/ICE-3350
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 25/07/2008 19:27:38
|
xiaodanh
Joined: 09/04/2008 00:00:00
Messages: 6
Offline
|
Thanks!
|
|
|
 |
|
|