[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: [jboss-user] [JBoss Tools] - Code assist in JBoss Tool HTML Editor
From: Torsten Knopp <do-not-reply () jboss ! com>
Date: 2011-08-31 10:33:56
Message-ID: 2-623968-3-11400-1314786826680.jivesbs.jivemailuser () http://community ! jboss ! org
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Torsten Knopp [http://community.jboss.org/people/TorstenKnopp] created the discussion
"Code assist in JBoss Tool HTML Editor for EL in XHTML"
To view the discussion, visit: http://community.jboss.org/message/623968#623968
--------------------------------------------------------------
Hello!
I use Eclipse 3.7 Indigo for EE-Developers with JBoss tools 3.3.0 M2 plugin and \
didn't get code assist in xhtml files for EL! I work with Apache Myfaces 2.0 \
implementation.
Here is the managedBean:
/*
* customer profile
*/
@ManagedBean
@SessionScoped
public class Customer {
private String firstName;
private String lastName;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String save() {
return "/showCustomer.xhtml";
}
}
and here is the xhtml-File:
<h:inputText id="firstName" value="#{customer.???????? }"/>
When I press Ctrl + space i get: "No JBoss JSF EL proposals"
I read in this forum:
h2. Proposals for XML/JSP/XHTML Expression Language (JSF and/or Seam EL-expressions)
Some Runtimes allow a user to use Expression Language inside the XML, JSP and XHTML \
pages. Depending on the Content Type of the page there are different regions where \
the EL-expressions can be used as:
* attribute values: in XML, JSP and XHTML files;
* part of text regions (Default Text): in XML and XHTML files.
The EL-expressions are to be surrounded either by "#{…}", or "${…}" character \
sequence. In case of absent EL closing character sequence it will be added to the \
text automatically after some of EL proposals is applied to the text.
There are two ways to invoke the CA:
* Manual: You could place cursor into a text inside a text between the EL opening and \
closing character sequences and then press Ctrl-Space key \
combination.
* Automatic: You could type one of the CA-auto start characters in inside the \
EL-expression (in a text or an attribute value region depending on the Content Type). \
The characters are ".", "[". In this case the CA for tag name proposals will be \
invoked automatically. Also the CA will be invoked automatically if you type the \
"{"-character right after the "$"-character or "#"-character.
Any idea what I'm doing wrong?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623968#623968]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; \
margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: \
1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;"> <tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" \
style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: \
6px; -webkit-border-radius: 6px;"> <tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px \
solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; \
-moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; \
-webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; \
margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag \
-->
<!-- Email clients will render the images when the message is read so any \
image -->
<!-- must be made available on a public server, so that all recipients can \
load the image. -->
<a href="http://community.jboss.org/index.jspa" style="text-decoration: \
none; color: #E1E1E1">JBoss Community</a></h1> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; \
color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; \
-moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; \
-webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: \
17px; font-weight: normal;"> Code assist in JBoss Tool HTML Editor for EL in XHTML
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/TorstenKnopp">Torsten \
Knopp</a> in <i>JBoss Tools</i> - <a \
href="http://community.jboss.org/message/623968#623968">View the full discussion</a> \
</span> <hr style="margin: 20px 0; border: none; background-color: #dadada; height: \
1px;">
<div class="jive-rendered-content"><p>Hello! </p><p style="min-height: 8pt; height: \
8pt; padding: 0px;"> </p><p>I use Eclipse 3.7 Indigo for EE-Developers with \
JBoss tools 3.3.0 M2 plugin and didn't get code assist in xhtml files for EL!</p><p>I \
work with Apache Myfaces 2.0 implementation.</p><p style="min-height: 8pt; height: \
8pt; padding: 0px;"> </p><p>Here is the managedBean:</p><p>/*</p><p> * customer \
profile</p><p> */</p><p>@ManagedBean</p><p>@SessionScoped</p><p>public class Customer \
{</p><p>    private String firstName;</p><p>    private \
String lastName;</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;"> </p><p>    public String getFirstName() \
{</p><p>        return \
firstName;</p><p>    }</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;"> </p><p>    public void setFirstName(String \
firstName) {</p><p>        this.firstName = \
firstName;</p><p>    }</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;"> </p><p>    public String getLastName() \
{</p><p>        return \
lastName;</p><p>    }</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;"> </p><p>    public void setLastName(String \
lastName) {</p><p>        this.lastName = \
lastName;</p><p>    }</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;"> </p><p>    public String save() \
{</p><p>        return \
"/showCustomer.xhtml";</p><p>    }</p><p style="min-height: 8pt; \
height: 8pt; padding: 0px;"> </p><p>}</p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;"> </p><p>and here is the xhtml-File:</p><p style="min-height: 8pt; \
height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; \
padding: 0px;"> </p><p><h:inputText id="firstName" value="#{customer.<span \
style="color: #ff0000;">????????</span> }"/></p><p style="min-height: 8pt; height: \
8pt; padding: 0px;"> </p><p>When I press Ctrl + space i get: "No JBoss JSF EL \
proposals" </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I \
read in this forum:</p><p style="min-height: 8pt; height: 8pt; padding: \
0px;"> </p><h2><span style="color: #999999;">Proposals for XML/JSP/XHTML \
Expression Language (JSF and/or Seam EL-expressions)</span></h2><p style="text-align: \
justify;"><span style="color: #999999;">Some Runtimes allow a user to use Expression \
Language inside the XML, JSP and XHTML pages. Depending on the Content Type of the \
page there are different regions where the EL-expressions can be used \
as:</span></p><ul><li><span style="color: #999999;">attribute values: in XML, JSP and \
XHTML files;</span></li><li><span style="color: #999999;">part of text regions \
(Default Text): in XML and XHTML files.</span></li></ul><p style="min-height: 8pt; \
height: 8pt; padding: 0px;"> </p><p><span style="color: #999999;">The \
EL-expressions are to be surrounded either by "#{…}", or "${…}"  \
character sequence. In case of absent EL closing character sequence it will be added \
to the text automatically after some of EL proposals is applied to the \
text.</span></p><p style="text-align: justify;"><br/><span style="color: \
#999999;">There are two ways to invoke the CA:</span></p><ul><li><span style="color: \
#999999;">Manual: You could place cursor into a text inside a text between the EL \
opening and closing character sequences and then press Ctrl-Space key \
combination.</span></li><li><span style="color: #999999;">Automatic:  You could \
type one of the CA-auto start characters in inside the EL-expression (in a text or an \
attribute value region depending on the Content Type). The characters are ".", "[". \
In this case the CA for tag name proposals will be invoked automatically. Also the CA \
will be invoked automatically if you type the "{"-character right after the \
"$"-character or "#"-character.</span></li></ul><p style="min-height: 8pt; height: \
8pt; padding: 0px;"> </p><p>Any idea what I'm doing wrong?</p><p \
style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks!</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a \
href="http://community.jboss.org/message/623968#623968">going to Community</a></p> \
<p style="margin: 0;">Start a new discussion in JBoss Tools at <a \
href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic