Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
leekleiner
Post subject: JSP rendering problems  PostPosted: Jan 31, 2006 - 02:36 PM



Joined: Jan 29, 2006
Posts: 3

Hi,

I am evaluating Myeclipse for my team. I have a few problems right now (that I did not encounter with Exadel or BEA Workshop).

The JSP preview currently renders struts <html:select> <html:option> elements showing their "value" instead of what is inside the <option> tag. For example, for the JSP code below, the combo box shown has the numbers 1 and 2 in it.

<html:select property="minMax">
<html:option value="1">Use minimums & maximums</html:option>
<html:option value="2">Use fixed #</html:option>
</html:select>

What should be shown is, obviously, the text in the tags.

Also, when displaying a java value e.g. <%=Constants.PARAM_MAX%>, the JSP preview shows {Constants.PARAM_MAX} instead of the value that it contains.

Thirdly, using the <bean:message> tag does not render my text from the ApplicationResources.properties file, it renders the key I put in the bean tag, for example ???this.is.the.key???, even though that key exists in the resources file.

Are these bugs due to new JSP preview functionality or is there a way to configure these options? If they are bugs, do you know when they might be fixed?

Thanks.

Lee.
 
 View user's profile Send private message  
Reply with quote Back to top
leekleiner
Post subject:   PostPosted: Jan 31, 2006 - 02:40 PM



Joined: Jan 29, 2006
Posts: 3

My Info: Windows XP, MyEclipse 4.1 GA
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Feb 01, 2006 - 08:37 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23459

Quote:

The JSP preview currently renders struts <html:select> <html:option> elements showing their "value" instead of what is inside the <option> tag. For example, for the JSP code below, the combo box shown has the numbers 1 and 2 in it.

<html:select property="minMax">
<html:option value="1">Use minimums & maximums</html:option>
<html:option value="2">Use fixed #</html:option>
</html:select>

What should be shown is, obviously, the text in the tags.

Definately sounds like a bug, I'll file that ASAP, thanks for the heads up.

Quote:

Also, when displaying a java value e.g. <%=Constants.PARAM_MAX%>, the JSP preview shows {Constants.PARAM_MAX} instead of the value that it contains.

Got it, filing.

Quote:

Thirdly, using the <bean:message> tag does not render my text from the ApplicationResources.properties file, it renders the key I put in the bean tag, for example ???this.is.the.key???, even though that key exists in the resources file.

Filed this too. IIRC we support the rendering of JSF messages and JSTL messages but the support for bean:message got pushed back, I filed a reminder message for the designer team.


On a side note Lee I appologize this post got overlooked.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
leekleiner
Post subject: JSP Rendering bugs  PostPosted: Feb 03, 2006 - 03:50 AM



Joined: Jan 29, 2006
Posts: 3

Wow - that's a lot of very fundamental bugs - am re-considering the "MyEclipse" choice. Any idea when JSP rendering will be properly coded and tested and released (included these bug fixes)?

Thanks.

Lee.
 
 View user's profile Send private message  
Reply with quote Back to top
support-eugene
Post subject: Re: JSP rendering problems  PostPosted: Oct 23, 2006 - 06:28 AM
Moderator
Moderator


Joined: May 12, 2005
Posts: 283

leekleiner wrote:
Thirdly, using the <bean:message> tag does not render my text from the ApplicationResources.properties file, it renders the key I put in the bean tag, for example ???this.is.the.key???, even though that key exists in the resources file.


Can you provide some more information on the topic? I tried to reproduce this issue and was unable to do so.
1. My Struts config has following entry:
Code:
<message-resources parameter="com.yourcompany.struts.ApplicationResources" />

2. My com.yourcompany.struts.ApplicationResources.properties file has following value: test.test=Dotted
3. This simple JSP works as expected:
Code:

<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <body>
   <bean:message key="test.test"/>
  </body>
</html:html>

_________________
Eugene
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