New to JSF/MyEclipseIDE/tags – but experienced in JSP

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #217825 Reply


    I’m sure there’s an easy answer to this question, but I haven’t been able to figure this out. Although I’ve been using JSP for years, I never had the opportunity/need to develop any tags. I am now beginning the (somewhat painful) process of coming up to speed on JSF, at the same time that I am learning MyEclipse. As such, I’m not sure if my problem is related to tags in general, the Tomcat 5 servlet container I’m using, Eclipse, MyEclipse, JSF… etc.

    I have a tag, let’s call it “MyTag”, that maps to a particular subclass of javax.faces.component.UIComponent. I have a JSF template, testing.jsp, that has this snippet in it:

    <w:MyTag maxlength=”33″/>

    When I start up the server and access testing.faces, the component renders properly, including maxlength being set to 33. However, if I then change maxlength’s value to something other than 33, the change is NOT reflected unless I bounce the app server!

    Additional debugging / logging shows that the new value of maxlength is read into the tag every time (the setter is called), but the setProperties(UIComponent component) method is only called the first time the page is accessed – hence, the component never gets the new value!

    I can only assume that there is a way to resolve this issue, but I don’t know where the problem really lies. Do I have to configure the tag or component in a special way to make it realize it needs to update? Do I need to modify web.xml to pass some special “non-production” flag to FacesServlet so it realizes the value needs to change?

    Or, perhaps even more likely, am I misunderstanding something so fundamental that the individuals who have read this far are not sure if they want to laugh or cry? 😉

    Thanks for any help!!!

    #217834 Reply

    Scott Anderson

    I’m really not the best guy to answer this one; Riyad is out for the weekend and would probably be much better. However, to tee things up for him I’ll mention that you should be using “exploded deployment” for your application to ensure that all changes get reflected when they’re made. Also, in case they help, we’ve just release a new batch of quickstart tutorials here to get you up to speed on MyEclipse quickly: http://myeclipseide.com/ContentExpress-display-ceid-67.html

    And finally, can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: New to JSF/MyEclipseIDE/tags – but experienced in JSP

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