visual web JSF page--jsp and design out of sync

View: New views
14 Messages — Rating Filter:   Alert me  

visual web JSF page--jsp and design out of sync

by cayhorstmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a JSF visual web page, and I copy/pasted something from another page into the JSP view. Seemed faster than drag-and-drop-and-drag-and-drop-and-drag-and-drop. But now the design view doesn't show that part. Neither does the navigator window. Am I hosed? Do I need to throw away the page and redo it from scratch? Or is there a way to force synchronization?

Re: visual web JSF page--jsp and design out of sync

by FromDotNetToJava :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have experienced this exact issue when copying Visual JSF components from one page to another, whether in Design or Edit view. As a matter of fact, if you attempt to compile, the build fails! Unfortunately, your SOL. I worked around this by rebuilding the layout in the new page, dragging and dropping manually. I know, it really sucks!



cayhorstmann wrote:
I have a JSF visual web page, and I copy/pasted something from another page into the JSP view. Seemed faster than drag-and-drop-and-drag-and-drop-and-drag-and-drop. But now the design view doesn't show that part. Neither does the navigator window. Am I hosed? Do I need to throw away the page and redo it from scratch? Or is there a way to force synchronization?
Thanks,

Chris

Re: visual web JSF page--jsp and design out of sync

by cayhorstmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for confirming. It seems as if the form editor is still very much a work in progress. Here are some of the other problems that I ran into.

* When I put a style into resources/stylesheet.css and then try to add it into the styleClass field, I am sternly told that no such style exists, and the editor removes it again.
* Twice, I managed to drag my components outside the webuisf:form and then scratched my head for an hour why none of the buttons worked.
* I very much dislike that components with rendered=(some expression that it can't evaluate at design time) are not rendered. At design time, just show me everything. I just want a 2D display of my stuff, not a faithful WYSIWYG design.
* I really don't want the Rave-style backing beans with all those component bindings. I wish there was a mode where it just keeps the JSP and the design view in sync, without creating a backing bean. (Then, when making an event handler, it would have to ask me in which managed bean I want to put it.)

Are there any plans to improve the designer in 6.1?


I have experienced this exact issue when copying Visual JSF components from one page to another, whether in Design or Edit view. As a matter of fact, if you attempt to compile, the build fails! Unfortunately, your SOL. I worked around this by rebuilding the layout in the new page, dragging and dropping manually. I know, it really sucks!



cayhorstmann wrote:
I have a JSF visual web page, and I copy/pasted something from another page into the JSP view. Seemed faster than drag-and-drop-and-drag-and-drop-and-drag-and-drop. But now the design view doesn't show that part. Neither does the navigator window. Am I hosed? Do I need to throw away the page and redo it from scratch? Or is there a way to force synchronization?


Re: visual web JSF page--jsp and design out of sync

by FromDotNetToJava :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* To be honest I gave up on the Basic components and am currently using the Standard components. With the Standard components I have more control over CSS styling. To edit styles for the Basic components you will need a Theme Builder (http://blogs.sun.com/winston), which is still alittle shaky. Hopefully, this will be primetime for 6.1.
* I agree with your last point. Again, SOL.
* Beware the 'Preview in Browser' vs. true 'Debug' page rendering as the two render your pages differently. I have a thread post open for this. Have you seen a difference between the two?


Thanks for confirming. It seems as if the form editor is still very much a work in progress. Here are some of the other problems that I ran into.

* When I put a style into resources/stylesheet.css and then try to add it into the styleClass field, I am sternly told that no such style exists, and the editor removes it again.
* Twice, I managed to drag my components outside the webuisf:form and then scratched my head for an hour why none of the buttons worked.
* I very much dislike that components with rendered=(some expression that it can't evaluate at design time) are not rendered. At design time, just show me everything. I just want a 2D display of my stuff, not a faithful WYSIWYG design.
* I really don't want the Rave-style backing beans with all those component bindings. I wish there was a mode where it just keeps the JSP and the design view in sync, without creating a backing bean. (Then, when making an event handler, it would have to ask me in which managed bean I want to put it.)

Are there any plans to improve the designer in 6.1?

FromDotNetToJava wrote:
I have experienced this exact issue when copying Visual JSF components from one page to another, whether in Design or Edit view. As a matter of fact, if you attempt to compile, the build fails! Unfortunately, your SOL. I worked around this by rebuilding the layout in the new page, dragging and dropping manually. I know, it really sucks!



cayhorstmann wrote:
I have a JSF visual web page, and I copy/pasted something from another page into the JSP view. Seemed faster than drag-and-drop-and-drag-and-drop-and-drag-and-drop. But now the design view doesn't show that part. Neither does the navigator window. Am I hosed? Do I need to throw away the page and redo it from scratch? Or is there a way to force synchronization?
Thanks,

Chris

Re: visual web JSF page--jsp and design out of sync

by cayhorstmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The basic components are actually the "Woodstock" components. There is (rather paltry) documentation at https://woodstock.dev.java.net/Documentation.htm. I agree that CSS is much more of a pain with them, but I really like the way they look, and you get a bit of AJAX without much pain. This is the closest I have seen to "Swing on the Web".

The "Preview in browser" is hobbled by the fact that it can't interpret the EL expressions, and the AJAX pipeline can't work either. I guess it is ok for a quick look-see, but I have not taken it very seriously.  


* To be honest I gave up on the Basic components and am currently using the Standard components. With the Standard components I have more control over CSS styling. To edit styles for the Basic components you will need a Theme Builder (http://blogs.sun.com/winston), which is still alittle shaky. Hopefully, this will be primetime for 6.1.
* I agree with your last point. Again, SOL.
* Beware the 'Preview in Browser' vs. true 'Debug' page rendering as the two render your pages differently. I have a thread post open for this. Have you seen a difference between the two?


Re: visual web JSF page--jsp and design out of sync

by Winston Prakash :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FromDotNetToJava wrote:
I have experienced this exact issue when copying Visual JSF components from
one page to another, whether in Design or Edit view. As a matter of fact, if
you attempt to compile, the build fails! Unfortunately, your SOL. I worked
around this by rebuilding the layout in the new page, dragging and dropping
manually. I know, it really sucks!
  
Please file a bug against this at http://neteans.org/issues  visualweb -> components.
Also don't forget to look in to the IDE log file and see if there are any errors logged.
If do attach them.

- Winston
http://blogs.sun.com/winston
:-U


cayhorstmann wrote:
  
I have a JSF visual web page, and I copy/pasted something from another
page into the JSP view. Seemed faster than
drag-and-drop-and-drag-and-drop-and-drag-and-drop. But now the design view
doesn't show that part. Neither does the navigator window. Am I hosed? Do
I need to throw away the page and redo it from scratch? Or is there a way
to force synchronization? 

    


-----
Thanks,

Chris
  


Re: visual web JSF page--jsp and design out of sync

by Winston Prakash :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

cayhorstmann wrote:
Thanks for confirming. It seems as if the form editor is still very much a
work in progress. Here are some of the other problems that I ran into.

* When I put a style into resources/stylesheet.css and then try to add it
into the styleClass field, I am sternly told that no such style exists, and
the editor removes it again. 
  
Try refreshing the designer and then look for the styleclass. If still see the problem then file a bug,
* Twice, I managed to drag my components outside the webuisf:form and then
scratched my head for an hour why none of the buttons worked.
  
Please file a bug against this.
* I very much dislike that components with rendered=(some expression that it
can't evaluate at design time) are not rendered. At design time, just show
me everything. I just want a 2D display of my stuff, not a faithful WYSIWYG
design.
  
Please file a bug against this
* I really don't want the Rave-style backing beans with all those component
bindings. I wish there was a mode where it just keeps the JSP and the design
view in sync, without creating a backing bean. (Then, when making an event
handler, it would have to ask me in which managed bean I want to put it.)
  
This is already fixed for NB 6.1
http://wiki.netbeans.org/wiki/view/VW_binding_removal
http://www.netbeans.org/issues/show_bug.cgi?id=123536

- Winston
http://blogs.sun.com/winston
Are there any plans to improve the designer in 6.1?


FromDotNetToJava wrote:
  
I have experienced this exact issue when copying Visual JSF components
from one page to another, whether in Design or Edit view. As a matter of
fact, if you attempt to compile, the build fails! Unfortunately, your SOL.
I worked around this by rebuilding the layout in the new page, dragging
and dropping manually. I know, it really sucks!

:-U


cayhorstmann wrote:
    
I have a JSF visual web page, and I copy/pasted something from another
page into the JSP view. Seemed faster than
drag-and-drop-and-drag-and-drop-and-drag-and-drop. But now the design
view doesn't show that part. Neither does the navigator window. Am I
hosed? Do I need to throw away the page and redo it from scratch? Or is
there a way to force synchronization? 

      
    

  


Re: visual web JSF page--jsp and design out of sync

by autozoom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Winston,
do you know when is the NB6.1 due date?
thanks

Mauro

Winston Prakash wrote:


 
 


cayhorstmann wrote:

  Thanks for confirming. It seems as if the form editor is still very much a
work in progress. Here are some of the other problems that I ran into.

* When I put a style into resources/stylesheet.css and then try to add it
into the styleClass field, I am sternly told that no such style exists, and
the editor removes it again.
 

Try refreshing the designer and then look for the styleclass. If still
see the problem then file a bug,

  * Twice, I managed to drag my components outside the webuisf:form and then
scratched my head for an hour why none of the buttons worked.
 

Please file a bug against this.

  * I very much dislike that components with rendered=(some expression that it
can't evaluate at design time) are not rendered. At design time, just show
me everything. I just want a 2D display of my stuff, not a faithful WYSIWYG
design.
 

Please file a bug against this

  * I really don't want the Rave-style backing beans with all those component
bindings. I wish there was a mode where it just keeps the JSP and the design
view in sync, without creating a backing bean. (Then, when making an event
handler, it would have to ask me in which managed bean I want to put it.)
 

This is already fixed for NB 6.1
http://wiki.netbeans.org/wiki/view/VW_binding_removal 
http://www.netbeans.org/issues/show_bug.cgi?id=123536 

- Winston
http://blogs.sun.com/winston 

 
Are there any plans to improve the designer in 6.1?


FromDotNetToJava wrote:
 
 
    I have experienced this exact issue when copying Visual JSF components
from one page to another, whether in Design or Edit view. As a matter of
fact, if you attempt to compile, the build fails! Unfortunately, your SOL.
I worked around this by rebuilding the layout in the new page, dragging
and dropping manually. I know, it really sucks!

:-U


cayhorstmann wrote:
   
   
      I have a JSF visual web page, and I copy/pasted something from another
page into the JSP view. Seemed faster than
drag-and-drop-and-drag-and-drop-and-drag-and-drop. But now the design
view doesn't show that part. Neither does the navigator window. Am I
hosed? Do I need to throw away the page and redo it from scratch? Or is
there a way to force synchronization?

     
   
   
   
 
 
 




Re: visual web JSF page--jsp and design out of sync

by Winston Prakash :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

autozoom wrote:
Hi Winston,
do you know when is the NB6.1 due date?
thanks
  
I don't have fixed dates. But may be around Java ONE this year.
I think Mile Stone 1 may be available end of this month.

- Winston
http://blogs.sun.com/winston
Mauro


Winston Prakash wrote:
  


  
  


cayhorstmann wrote:

  Thanks for confirming. It seems as if the form editor is still very much
a
work in progress. Here are some of the other problems that I ran into.

* When I put a style into resources/stylesheet.css and then try to add it
into the styleClass field, I am sternly told that no such style exists,
and
the editor removes it again. 
  

Try refreshing the designer and then look for the styleclass. If still
see the problem then file a bug, 

  * Twice, I managed to drag my components outside the webuisf:form and
then
scratched my head for an hour why none of the buttons worked.
  

Please file a bug against this. 

  * I very much dislike that components with rendered=(some expression
that it
can't evaluate at design time) are not rendered. At design time, just show
me everything. I just want a 2D display of my stuff, not a faithful
WYSIWYG
design.
  

Please file a bug against this 

  * I really don't want the Rave-style backing beans with all those
component
bindings. I wish there was a mode where it just keeps the JSP and the
design
view in sync, without creating a backing bean. (Then, when making an event
handler, it would have to ask me in which managed bean I want to put it.)
  

This is already fixed for NB 6.1 
http://wiki.netbeans.org/wiki/view/VW_binding_removal 
http://www.netbeans.org/issues/show_bug.cgi?id=123536 

- Winston 
http://blogs.sun.com/winston 

  
Are there any plans to improve the designer in 6.1?


FromDotNetToJava wrote:
  
  
    I have experienced this exact issue when copying Visual JSF components
from one page to another, whether in Design or Edit view. As a matter of
fact, if you attempt to compile, the build fails! Unfortunately, your SOL.
I worked around this by rebuilding the layout in the new page, dragging
and dropping manually. I know, it really sucks!

:-U


cayhorstmann wrote:
    
    
      I have a JSF visual web page, and I copy/pasted something from
another
page into the JSP view. Seemed faster than
drag-and-drop-and-drag-and-drop-and-drag-and-drop. But now the design
view doesn't show that part. Neither does the navigator window. Am I
hosed? Do I need to throw away the page and redo it from scratch? Or is
there a way to force synchronization? 

      
    
    
    
  
  
  






    

  


Re: visual web JSF page--jsp and design out of sync

by cayhorstmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>>* When I put a style into resources/stylesheet.css and then try to add it
>>into the styleClass field, I am sternly told that no such style exists, and
>>the editor removes it again.
 
>Try refreshing the designer and then look for the styleclass. If still
>see the problem then file a bug,

http://www.netbeans.org/issues/show_bug.cgi?id=125242

>>* Twice, I managed to drag my components outside the webuisf:form and then
>>scratched my head for an hour why none of the buttons worked.
 
> Please file a bug against this.

http://www.netbeans.org/issues/show_bug.cgi?id=125243

>> * I very much dislike that components with rendered=(some expression that it
>>can't evaluate at design time) are not rendered. At design time, just show
>>me everything. I just want a 2D display of my stuff, not a faithful WYSIWYG
>>design.
 
> Please file a bug against this

http://www.netbeans.org/issues/show_bug.cgi?id=125245

>> * I really don't want the Rave-style backing beans with all those component
>>bindings. I wish there was a mode where it just keeps the JSP and the design
>>view in sync, without creating a backing bean. (Then, when making an event
>>handler, it would have to ask me in which managed bean I want to put it.)
 
> This is already fixed for NB 6.1
> http://wiki.netbeans.org/wiki/view/VW_binding_removal 
> http://www.netbeans.org/issues/show_bug.cgi?id=123536 

Excellent!


How can I change webuijsf: to w: in the visual web designer?

by cayhorstmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I see that in NB6.1 beta the visual web designer no longer produces component bindings by default. That is excellent. (Now if it can lose the backing page altogether, we are in business :-))

I am now much more inclined to using the visual tool, but there is another thing that irks me: the webuijsf namespace prefix. I prefer to have just w:form, not webuijsf:form.

Can I set a preference somewhere?

Thanks,

Cay



Re: How can I change webuijsf: to w: in the visual web designer?

by David Botterill-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I haven't actually tried this but you should be able to change the  
actual JSP template in "Tools->JavaServer Faces->Visual Web JSF Page".

-David

On Mar 19, 2008, at 5:20 PM, cayhorstmann wrote:

>
> I see that in NB6.1 beta the visual web designer no longer produces  
> component
> bindings by default. That is excellent. (Now if it can lose the  
> backing page
> altogether, we are in business :-))
>
> I am now much more inclined to using the visual tool, but there is  
> another
> thing that irks me: the webuijsf namespace prefix. I prefer to have  
> just
> w:form, not webuijsf:form.
>
> Can I set a preference somewhere?
>
> Thanks,
>
> Cay
>
>
>
> --
> View this message in context: http://www.nabble.com/visual-web-JSF-page--jsp-and-design-out-of-sync-tp14750202p16168375.html
> Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
>


Re: How can I change webuijsf: to w: in the visual web designer?

by Brad Mayer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, in Tools->Templates from the main IDE menu, in the Template Manager
you can select, change and add all the prepackaged file templates to
whatever extent you choose.  However, I'd recommend adding these as
separate new templates, which is done directly from the (new) project
itself (from the Online Help):

To create a new template:
In the Projects window, right-click the file you would like to turn into
a template and choose Save As Template.
In the Save As Template dialog box, select a category for the template
and click OK.

Regards,
-Brad Mayer

cayhorstmann wrote:

> I see that in NB6.1 beta the visual web designer no longer produces component
> bindings by default. That is excellent. (Now if it can lose the backing page
> altogether, we are in business :-))
>
> I am now much more inclined to using the visual tool, but there is another
> thing that irks me: the webuijsf namespace prefix. I prefer to have just
> w:form, not webuijsf:form.
>
> Can I set a preference somewhere?
>
> Thanks,
>
> Cay
>
>
>
>  


--
/**********************************************************************/

Brad Mayer
Technical Support Engineer, DPG CIS
Sun Microsystems, Inc. - Sun Developer Platforms Group

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE:  This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/***********************************************************************/

I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. » [Bill Watterson]







Re: How can I change webuijsf: to w: in the visual web designer?

by cayhorstmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks--that seems to work just fine. I changed the template and then dragged new components into the page, and they picked up my prefix. Quite impressive, actually.

Is there anyone who LIKES the webuijsf prefix?

Cheers,

Cay

Brad Mayer wrote:
Yes, in Tools->Templates from the main IDE menu, in the Template Manager
you can select, change and add all the prepackaged file templates to
whatever extent you choose.  However, I'd recommend adding these as
separate new templates, which is done directly from the (new) project
itself (from the Online Help):

To create a new template:
In the Projects window, right-click the file you would like to turn into
a template and choose Save As Template.
In the Save As Template dialog box, select a category for the template
and click OK.

Regards,
-Brad Mayer

cayhorstmann wrote:
> I see that in NB6.1 beta the visual web designer no longer produces component
> bindings by default. That is excellent. (Now if it can lose the backing page
> altogether, we are in business :-))
>
> I am now much more inclined to using the visual tool, but there is another
> thing that irks me: the webuijsf namespace prefix. I prefer to have just
> w:form, not webuijsf:form.
>
> Can I set a preference somewhere?
>
> Thanks,
>
> Cay
>
>
>
>  


--
/**********************************************************************/

Brad Mayer
Technical Support Engineer, DPG CIS
Sun Microsystems, Inc. - Sun Developer Platforms Group

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE:  This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/***********************************************************************/

I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. » [Bill Watterson]





LightInTheBox - Buy quality products at wholesale price