Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSP rendering (encoding) with Netbeans: CSS problems

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bauke.
I´ll try in Netbeans Forums too
 
Baltasar Iglesias
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic