File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSP rendering (encoding) with Netbeans: CSS problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSP rendering (encoding) with Netbeans: CSS problems" Watch "JSP rendering (encoding) with Netbeans: CSS problems" New topic
Author

JSP rendering (encoding) with Netbeans: CSS problems

Baltasar Iglesias
Greenhorn

Joined: Mar 09, 2009
Posts: 3
Im using Netbeans 5.5.1. (we have to use this version in project I`m working for) and I´ve found some CSS errors in the code that Netbeans generates in render process.

I have this in my JSP:

<ui:panelLayout binding="#{Login.layoutPanel1}" id="layoutPanel1" style="border: 2px dotted gray; background-color: rgb(240, 240, 255); height: 68px; left: 400px; top: 280px; position: absolute; width: 210px;" visible="false">
<ui:staticText binding="#{Login.lblContactando}" id="lblContactando" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; left: 10px; top: 10px; position: absolute"/>
<ui:image binding="#{Login.image1}" id="image1" style="left: 50px; top: 40px; position: absolute" url="/img/progressbar.gif"/>
</ui:panelLayout>

And I get this after rendering:

<div id="form1:layoutPanel1" style="position: relative; -rave-layout: grid; border: 2px dotted gray; background-color: rgb(240, 240, 255); height: 68px; left: 400px; top: 280px; position: absolute; width: 210px;" class="hidden">
<span id="form1:lblContactando" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; left: 10px; top: 10px; position: absolute">Contactando con el servidor...</span>

</div>

Netbeans add two extra attributes in the style of layoutPanel1: position: relative; -rave-layout: grid;
If I try with any style, (with style="") I get style ="position: relative; -rave-layout: grid;"

Why? How?

Thanks in advance
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
That's apparently a feature or bug of the JSF component library used. I assume that it is Woodstock. As I don't have hands-on experience with it, I can't help you much with this. I can only tell that they have a forum at their own homepage where you could post this issue. I can also tell that this project is almost dead for roughly one year and officially abandoned since january this year. Users are suggested to migrate to RichFaces or IceFaces.
Baltasar Iglesias
Greenhorn

Joined: Mar 09, 2009
Posts: 3
Thanks Bauke.
I´ll try in Netbeans Forums too
Baltasar Iglesias
Greenhorn

Joined: Mar 09, 2009
Posts: 3
Hi there again

I´ve reported on Netbeans Forums and they tell It must be a problem with the JSF Component Library too.
But I'm not using Woodstock, I only use the Sun Web Components Design-Time Support that Netbeans adds to my project libraries by default.
All the classes I'm using are from com.sun.rave.web.ui package.

Dou you think It could be a bug on this library ?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Sorry, no idea about this library. I am only familiar with Sun JSF reference implementation and also with Apache Tomahawk component library. I can't say if it is a bug or a feature of the library in question. Read its documentation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP rendering (encoding) with Netbeans: CSS problems
 
Similar Threads
How to write an HTML file in a portlet with JSF
Unexpectedly getting exception in JSF 1.2 (Urgent)
Problem using UI:Tree
Problem using divs.
Absolute Position in IE