facebook

Placement of h:view tag?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #240660 Reply

    Mork
    Participant

    Will MyEclipse let me configure where I want to put the <h:view> tag in a future version?

    Books like Core JSF put the <h:view> tag up at the top near the HTML tag.

    THis lets you set the window’s title from your properties file using a JSF tag.

    Currently, I manually move and re-arrange the tags to accomplish this.

    Is there a better way to do this or will there be a way soon???

    Thanks.

    — M

    #240703

    Scott Anderson
    Participant

    Mork,

    In MyEclipse 4.1 you’ll be able to drag the tags off the design palette in the JSP designer and drop them wherever you like. Is that what you’re looking for?

    #240718

    Mork
    Participant

    Not sure, but that sounds interesting.

    The point I was making about the f:veiw tag is that when you create a new JSP page, MyEclipse puts the f:view tag too far down in the page intermixed with all the HTML tags. So, if I want to set the page title using a properties file value, I have to move the f:view tag farther up.

    But, to move the f:view tag up, you have to mess around with the HTML tags so the tags are propoerly nested. A pain.

    What you’re describing sounds like it might be a step backwards from a wizard that sets up a new JSF (JSP) page.

    What I really would like is a way to tell MyEclipse where to put the f:view (the outer most) tag. To me what I want sounds like a configuration setting you could set by page or project.

    Thanks for your reply.

    – M

    #240789

    Greg
    Member

    Mork,

    We had this very discussion when we starting building JSF tools. We did an quick survey around the JSF world, seeing where the f:view tag usually was located in people’s examples. In the Core JSF book, the f:view would be located outside of the body, and then we would look at another JSF book, from say O’Reilly and the f:view would be located inside the <body>. So we had to decide one or the other. We decided to go with the simpler solution. Many users will be new to JSF and we felt having the f:view inside the <body> makes it more easily understood.

    However, if you would like to change the default location of the f:view tag location, I would recommand just editing the JSF template directly. Then you can place the f:view exactly where you would prefer. You can find the JSF template file located at:

    <MYECLIPSE_INSTALL_DIR>\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\Templates\JsF.jsp
    #240792

    Mork
    Participant

    OK, that’s cool.

    I hope in 4.1 I’ll be able to click a button on a form (in design mode) and be taken to a code window as in Sun’s upcoming tool.

    Also, there needs to be a way to import new components! The ones that ship with MyEclipse are too rudimentary for serious development (Sun’s environment ships with calendar, tree, and other ones).

    Plus, if I have to write my own components, then there must be a way to import them on to “some” menu within the design environment.

    If 4.1 or 5 doesn’t have this, then it’s just not competitive (feature-wise, that is).

    My feelings of using MyEclipse JSF so far is that it’s a lot like Dreamweaver. You have a “visual” environment, but you’re still left with slogging away mostly in code.

    🙁

    — <

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Placement of h:view tag?

You must be logged in to post in the forum log in