MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ga15859
5 Post subject: New to JSF/MyEclipseIDE/tags - but experienced in JSP  PostPosted: Oct 16, 2004 - 03:53 AM
Registered Member
Registered Member


Joined: Jul 02, 2004
Posts: 1

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!!!
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Oct 16, 2004 - 03:49 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

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 Posting Guidelines 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.

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits