<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[tutorials.de - Enterprise Java (JEE, J2EE, Spring & Co.)]]></title>
		<link>http://www.tutorials.de/</link>
		<description>Java EE, J2EE, Springframework, Guice, Application Server, Middleware,
EJB, EntityBeans, SessionBeans, JMS, JavaMail, JNDI, JSP, Servlets, etc.</description>
		<language>de</language>
		<lastBuildDate>Wed, 08 Sep 2010 23:22:41 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>30</ttl>
		<image>
			<url>http://style.tutorials.de/v10/images/misc/rss.png</url>
			<title><![CDATA[tutorials.de - Enterprise Java (JEE, J2EE, Spring & Co.)]]></title>
			<link>http://www.tutorials.de/</link>
		</image>
		<item>
			<title>Redirect aus einem Servlet funktioniert nicht!</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365985-redirect-aus-einem-servlet-funktioniert-nicht.html</link>
			<pubDate>Tue, 07 Sep 2010 08:39:12 GMT</pubDate>
			<description><![CDATA[Hallo Zusammen,  
 
bei mir funktioniert der 'forward' aus einem Servlet nicht. 
Statt 'forward' wird die Zielseite als 'response' ausgegeben.  
 
Bsp.: 
 
[IMG]http://img706.imageshack.us/img706/9100/redirect1.jpg[/IMG] 
 
Wie ihr in der Abbildung sehen könnt, besteht das Formular lidiglich aus...]]></description>
			<content:encoded><![CDATA[<div>Hallo Zusammen, <br />
<br />
bei mir funktioniert der 'forward' aus einem Servlet nicht.<br />
Statt 'forward' wird die Zielseite als 'response' ausgegeben. <br />
<br />
Bsp.:<br />
<br />
<a href="http://img706.imageshack.us/img706/9100/redirect1.jpg" target="_blank">http://img706.imageshack.us/img706/9100/redirect1.jpg</a><br />
<br />
Wie ihr in der Abbildung sehen könnt, besteht das Formular lidiglich aus einem Button. <br />
Beim Drücken des Buttons wird 'LoginServlet' aufgerunfen. <br />
Innerhalb von 'LoginServlet' wird auf 'success.jsp' weitergeleitet. Jedoch erhalte ich statt der Weiterleitung den Inhalt der 'success.jsp' als 'response'! <br />
<br />
Warum um Himmels Willen?<br />
<br />
<br />
LoginServlet<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="bbcode_code_highlight"><pre>@WebServlet(&quot;/LoginServlet&quot;)
public class LoginServlet extends HttpServlet {
&nbsp; &nbsp; 
&nbsp; &nbsp; private static final long serialVersionUID = 1L;
&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; public LoginServlet() {
&nbsp; &nbsp; &nbsp; &nbsp; super();
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
&nbsp; &nbsp; &nbsp; &nbsp; getServletConfig().getServletContext().getRequestDispatcher(&quot;/jsp/success.jsp&quot;).forward(request,response);
&nbsp; &nbsp; }
&nbsp;
}</pre></td></tr></tbody></table></code><hr />
</div> <br />
<br />
Schöne Grüße,<br />
Michael</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>stockhausen</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365985-redirect-aus-einem-servlet-funktioniert-nicht.html</guid>
		</item>
		<item>
			<title><![CDATA[JAVA EE ->GlassFish -> MS SQL]]></title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365969-java-ee-glassfish-ms-sql.html</link>
			<pubDate>Mon, 06 Sep 2010 16:31:03 GMT</pubDate>
			<description>Hallo, 
 
ich komme einfach nicht weiter... 
 
Habe mit GlassFish eine JDBC Resource (*jdbc/_mssql*)erstellt die sich mit MS SQL verbindet. Der Ping funktioniert auch. Aber danach wird das alles etwas verwirrend für mich. Wie muss ich vorgehen wenn ich mit JAVA EE jetzt auf diese JDBC-Ressource...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
ich komme einfach nicht weiter...<br />
<br />
Habe mit GlassFish eine JDBC Resource (<b>jdbc/_mssql</b>)erstellt die sich mit MS SQL verbindet. Der Ping funktioniert auch. Aber danach wird das alles etwas verwirrend für mich. Wie muss ich vorgehen wenn ich mit JAVA EE jetzt auf diese JDBC-Ressource zugreifen möchte?<br />
<br />
Gibt es ein Step by Step Tutorial oder ähnliches? Oder kann mir jemand anhand von Code-Beispielen zeigen was ich machen muss? Ich check irdenwie nichts mehr...:(<br />
<br />
Danke schonmal im Voraus.<br />
<br />
Gruß,<br />
Tyrall</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>Tyrall</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365969-java-ee-glassfish-ms-sql.html</guid>
		</item>
		<item>
			<title>Anfängerfrage: rollen definieren</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365962-anfaengerfrage-rollen-definieren.html</link>
			<pubDate>Mon, 06 Sep 2010 13:00:48 GMT</pubDate>
			<description><![CDATA[hallo, 
ich versuche seit langen die rollen für meine anwendung definieren. 
ich habe folgendes gemacht 
- in tomcat conf. in in server.xml  
 
<Context docBase="ma" path="/ma" reloadable="true" source="org.eclipse.jst.jee.server:ma"> 
	<Realm className="org.apache.catalina.realm.JDBCRealm"...]]></description>
			<content:encoded><![CDATA[<div>hallo,<br />
ich versuche seit langen die rollen für meine anwendung definieren.<br />
ich habe folgendes gemacht<br />
- in tomcat conf. in in server.xml <br />
<br />
&lt;Context docBase=&quot;ma&quot; path=&quot;/ma&quot; reloadable=&quot;true&quot; source=&quot;org.eclipse.jst.jee.server:ma&quot;&gt;<br />
	&lt;Realm className=&quot;org.apache.catalina.realm.JDBCRealm&quot;<br />
		connectionName=&quot;postgres&quot; connectionPassword=&quot;555&quot;<br />
		connectionURL=&quot;jdbc:postgresql://localhost:5432/ernportal&quot; driverName=&quot;org.postgresql.Driver&quot;<br />
		roleNameCol=&quot;rolle&quot; userCredCol=&quot;passwort&quot; userNameCol=&quot;loginname&quot;<br />
		userRoleTable=&quot;kunde&quot; userTable=&quot;kunde&quot; /&gt;<br />
&lt;/Context&gt;<br />
<br />
dann habe ich in tomcat-users.xml rollen hinzugefügt:<br />
<br />
&lt;role rolename=&quot;kunde&quot;/&gt;<br />
   &lt;role rolename=&quot;admin&quot;/&gt;<br />
  &lt;user username=&quot;admin&quot; password=&quot;passwort&quot; roles=&quot;admin&quot;/&gt;<br />
   &lt;user username=&quot;test&quot; password=&quot;aaa&quot; roles=&quot;kunde&quot;/&gt;<br />
<br />
in web.xml meiner anwendung <br />
 &lt;auth-method&gt;BASIC&lt;/auth-method&gt;<br />
  &lt;/login-config&gt;<br />
  &lt;security-constraint&gt;<br />
  &lt;web-resource-collection&gt;<br />
	 &lt;web-resource-name&gt;BenutzerAnlegen&lt;/web-resource-name&gt;<br />
	 &lt;url-pattern&gt;/NeuerBenutzer*&lt;/url-pattern&gt;<br />
	 &lt;http-method&gt;GET &lt;/http-method&gt;<br />
	&lt;http-method&gt;POST &lt;/http-method&gt;<br />
  <br />
  &lt;/web-resource-collection&gt;<br />
		&lt;auth-constraint&gt;<br />
			&lt;role-name&gt;admin&lt;/role-name&gt;<br />
			&lt;role-name&gt;kunde&lt;/role-name&gt;<br />
		&lt;/auth-constraint&gt;<br />
  &lt;/security-constraint&gt;<br />
  <br />
  <br />
    &lt;!-- Security roles referenced by this web application --&gt;<br />
    &lt;security-role&gt;<br />
      &lt;role-name&gt;admin&lt;/role-name&gt;<br />
    &lt;/security-role&gt;<br />
<br />
nach dem einloggen versuche ich zu prüfen, ob ich als kunde erkannt bin<br />
&lt;% if (request.isUserInRole(&quot;kunde&quot;)) <br />
 	System.out.println(&quot;Sehr geehrter&quot; + request.getRemoteUser());<br />
 	else <br />
	System.out.println(&quot;Sehr geehrter Gast&quot;); %&gt;<br />
aber ich bin immer nur gast.<br />
<br />
kann mir jemand sagen, was und wo ich noch anpassen soll, damit alles endlich mal funktioniert</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>Alex-B</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365962-anfaengerfrage-rollen-definieren.html</guid>
		</item>
		<item>
			<title>GWT - dynamisch Module laden (zur Laufzeit)</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365939-gwt-dynamisch-module-laden-zur-laufzeit.html</link>
			<pubDate>Sun, 05 Sep 2010 22:44:01 GMT</pubDate>
			<description><![CDATA[Hallo Freunde des GWT ;D .... 
ich hoffe ihr könnt mir bei meinem Problem weiterhelfen. 
 
Zur Aufgabe: 
Mit GWT können mehrere Module angelegt werden die beliebig oft wiederverwendet werden können. Was GWT leider nicht drauf hat, ist diese Module zur Laufzeit in ein GWT-Modul zu integrieren ->...]]></description>
			<content:encoded><![CDATA[<div>Hallo Freunde des GWT ;D ....<br />
ich hoffe ihr könnt mir bei meinem Problem weiterhelfen.<br />
<br />
Zur Aufgabe:<br />
Mit GWT können mehrere Module angelegt werden die beliebig oft wiederverwendet werden können. Was GWT leider nicht drauf hat, ist diese Module zur Laufzeit in ein GWT-Modul zu integrieren -&gt; vorkompilieren, zur Laufzeit einbinden (oder zumindest ist mir noch kein guter Weg bekannt).<br />
Ich will also ein GWT-Modul zur Laufzeit in eine laufende Applikation integrieren. Dabei soll sich das integrierte GWT-Modul auch Daten von dem laufenden holen können, also nicht einfach nur seine eigene Suppe rühren.<br />
Somit (denke ich) muss das einzubindende Modul die Main-Applikation kennen, umgekehrt jedoch nicht (um autonom zu laufen)... Das ganze soll dann natürlich beliebig erweitert werden können (0-x Module zu Laufzeit einbinden).<br />
<br />
Hat hier von euch jemand sehr gute Anhaltspunkte? Ich bin für jeden Beitrag dankbar.<br />
<br />
Vielen Dank..... Gruß Daniel</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>Daniel_D</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365939-gwt-dynamisch-module-laden-zur-laufzeit.html</guid>
		</item>
		<item>
			<title>JSF 2.0: InputText-Element vom Typ Integer belegt mir das Eingabefeld mit einer 0 vor</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365929-jsf-2-0-inputtext-element-vom-typ-integer-belegt-mir-das-eingabefeld-mit-einer-0-vor.html</link>
			<pubDate>Sun, 05 Sep 2010 15:54:51 GMT</pubDate>
			<description>Wunderschönen Guten Tag! 
 
Bin leider schon wieder am verzweifeln und weiß mir nicht anders zu helfen als nochmal hier um Hilfe zu bitten. 
 
Ich habe ein InputText-Element vom Typ Integer, dass mir beim Laden des Eingabe-Formulars das entsprechende Eingabefeld mit einer 0 vorbelegt. Dies ist aber...</description>
			<content:encoded><![CDATA[<div>Wunderschönen Guten Tag!<br />
<br />
Bin leider schon wieder am verzweifeln und weiß mir nicht anders zu helfen als nochmal hier um Hilfe zu bitten.<br />
<br />
Ich habe ein InputText-Element vom Typ Integer, dass mir beim Laden des Eingabe-Formulars das entsprechende Eingabefeld mit einer 0 vorbelegt. Dies ist aber von mir nicht erwünscht und würde das gerne unterbinden. Nur weiß ich einfach nicht wie...<br />
<br />
Vielleicht noch ein wenig Code:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML-Code:</div>
	<hr /><code class="bbcode_code"><span style="color:#000080">&lt;h:inputText id=<span style="color:#0000FF">&quot;field&quot;</span> value=<span style="color:#0000FF">&quot;#{customerBean.field}&quot;</span> converter=<span style="color:#0000FF">&quot;javax.faces.Integer&quot;</span> validator=<span style="color:#0000FF">&quot;#{validatorBean.validateField}&quot;</span> /&gt;</span></code><hr />
</div> <br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="bbcode_code_highlight"><pre>@ManagedBean(name = &quot;customerBean&quot;)
public class Customer
{
&nbsp; &nbsp;private int field;
&nbsp;
&nbsp; &nbsp;public int getfield()
&nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; return field;
&nbsp; &nbsp;}
&nbsp;
&nbsp; &nbsp;public void setfield(int field)
&nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; this.field = field;
&nbsp; &nbsp;}
}</pre></td></tr></tbody></table></code><hr />
</div> <br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="bbcode_code_highlight"><pre>@ManagedBean(name = &quot;validatorBean&quot;)
public class Validator
{
&nbsp; public void validateField(FacesContext ctx, UIComponent comp, Object inValue) throws ValidatorException
&nbsp; { &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp;int value = (Integer) inValue;
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp;if (!(value &gt;= 0 &amp;&amp; value &lt;= 100) &amp;&amp; !(value == -9))
&nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; throw new ValidatorException(new FacesMessage(&quot;Illegal entry! Legal values are: '0' to '400', '-9'.&quot;, null));
&nbsp; &nbsp; &nbsp;}
&nbsp; }
}</pre></td></tr></tbody></table></code><hr />
</div> <br />
Wenn ich nun die Seite bzw. das Formular welches das inputText-Element enthält lade, dann erhalte ich folgendes Bild:<br />
<br />
<a href="http://img155.imageshack.us/i/nullc.png/" target="_blank">[IMG=http://img155.imageshack.us/img155/9759/nullc.png][/IMG]</a><br />
<br />
Also ein Eingabefeld, das mit einer 0 vorbelegt ist. Ich weiß natürlich, dass wenn in Java eine Integer-Variable deklariert wird, diese default-mäßig mit 0 initialisiert wird. Kann ich ja auch schlecht verhindern... und genau dieser Wert wird mir dann beim Laden des Formulars auch angezeigt. Wie kann ich das verhindern?<br />
<br />
<br />
Vielen lieben Dank für jede Hilfestellung.</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>Fools</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365929-jsf-2-0-inputtext-element-vom-typ-integer-belegt-mir-das-eingabefeld-mit-einer-0-vor.html</guid>
		</item>
		<item>
			<title><![CDATA[MyFaces 1.2 & Websphere Application Server 6.1]]></title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365814-myfaces-1-2-websphere-application-server-6-1-a.html</link>
			<pubDate>Thu, 02 Sep 2010 12:24:11 GMT</pubDate>
			<description>Hallo zusammen, 
 
im Container des WAS 6.1 befindet sich eine Implementierung von JSF 1.1, was lediglich die Verwendung von MyFaces 1.1 zulässt. Ich habe es nun über den Classloader geschafft MyFaces 1.2 zu verwenden. Manche Seiten funktionieren auch, aber an manchen Stellen bekomme ich folgende...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
im Container des WAS 6.1 befindet sich eine Implementierung von JSF 1.1, was lediglich die Verwendung von MyFaces 1.1 zulässt. Ich habe es nun über den Classloader geschafft MyFaces 1.2 zu verwenden. Manche Seiten funktionieren auch, aber an manchen Stellen bekomme ich folgende Exception:<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
</pre></td><td class="bbcode_code_highlight"><pre>java.lang.NullPointerException: context
&nbsp; &nbsp; at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:927)
&nbsp; &nbsp; at javax.faces.component.UIComponentBase.getRendersChildren(UIComponentBase.java:366)
&nbsp; &nbsp; at javax.faces.component.UIComponent.encodeAll(UIComponent.java:248)
&nbsp; &nbsp; at org.apache.myfaces.application.jsp.JspViewHandlerImpl.actuallyRenderView(JspViewHandlerImpl.java:427)
&nbsp; &nbsp; at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:383)
&nbsp; &nbsp; at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
&nbsp; &nbsp; at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
&nbsp; &nbsp; at javax.faces.webapp.FacesServlet.service(FacesServlet.java:187)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1096)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
&nbsp; &nbsp; at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:285)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
&nbsp; &nbsp; at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:566)
&nbsp; &nbsp; at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
&nbsp; &nbsp; at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
&nbsp; &nbsp; at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)
&nbsp; &nbsp; at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
&nbsp; &nbsp; at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
&nbsp; &nbsp; at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
&nbsp; &nbsp; at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
&nbsp; &nbsp; at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
&nbsp; &nbsp; at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
&nbsp; &nbsp; at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
&nbsp; &nbsp; at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
&nbsp; &nbsp; at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
&nbsp; &nbsp; at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
&nbsp; &nbsp; at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
&nbsp; &nbsp; at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
&nbsp; &nbsp; at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)</pre></td></tr></tbody></table></code><hr />
</div> <br />
Da manche Seiten funktionieren gehe ich an dieser Stelle einfach mal davon aus, dass es sich um Tags innerhalb der nicht funktionierenden Seiten handelt, die dieses Problem auslösen. Hat jmd. noch 'ne andere Idee, kennt dieses Phänomen jmd., bin ich total auf dem Holzweg?<br />
<br />
Vielen Dank für Eure Antworten im Voraus.<br />
<br />
Gruß,<br />
Manu</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>ManuelHegemann</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365814-myfaces-1-2-websphere-application-server-6-1-a.html</guid>
		</item>
		<item>
			<title><![CDATA[Tiles & JSP - ohne Spring, Struts und Co.]]></title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365813-tiles-jsp-ohne-spring-struts-und-co.html</link>
			<pubDate>Thu, 02 Sep 2010 12:15:19 GMT</pubDate>
			<description>Hallo Zusammen,  
 
ich habe ein Problem mit Tiles. Ich möchte gerne Tiles bei meinem JSP-Projekt einsetzten. Hier kommt weder Spring, Struts, JSF usw. zum Einsatz. 
Zurzeit funktioniert Tiles überhaupt nicht. 
 
Ich habe ein einfaches Beispiel erstellt, welches mein Projektszenario wiederspiegelt....</description>
			<content:encoded><![CDATA[<div>Hallo Zusammen, <br />
<br />
ich habe ein Problem mit Tiles. Ich möchte gerne Tiles bei meinem JSP-Projekt einsetzten. Hier kommt weder Spring, Struts, JSF usw. zum Einsatz.<br />
Zurzeit funktioniert Tiles überhaupt nicht.<br />
<br />
Ich habe ein einfaches Beispiel erstellt, welches mein Projektszenario wiederspiegelt.<br />
<br />
Teils sollte kommt in diesem Beispiel an zwei Stellen zum Einsatz:<br />
1. Ganz am Anfang, wenn index.jsp aufgerufen wird. Hier sollte gleich auf default.jsp weitergeleitet werden.<br />
<i>&lt;c:redirect url=&quot;default&quot;/&gt;</i><br />
<br />
2. Innahalb von default.jsp befindet sich ein der Link <i>&lt;a href=&quot;show&quot;&gt;Show String Page&lt;/a&gt;</i>.<br />
Wenn der Link angeklickt wird, sollte zunächst das Servlet &quot;<i>MyServlet</i>&quot; aufgerunfen werden und anschließend auf show.jsp weitergeleitet werden.<br />
Innerhalb von show.jsp sollte das in <i>MyServlet </i>generierte String (Hello World) angezeigt.  <br />
<br />
<br />
Anders gesagt:<br />
Die Weiterleitung innerhalb von index.jsp funktioniert nicht. <br />
Die Weiterleitung innerhalb des Servlets funktioniert nicht.<br />
<br />
Würde mich über ein paar Antworten sehr freuen!<br />
<br />
Beste Grüße,<br />
Michael<br />
<br />
Eclipse Projekt: <b><a href="http://depositfiles.com/files/lhfq2hw1b" target="_blank">http://depositfiles.com/files/lhfq2hw1b</a></b><br />
<br />
<br />
<b>web.xml</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
</pre></td><td class="bbcode_code_highlight"><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ASCII&quot;?&gt;
&lt;web-app xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
&nbsp; &nbsp; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:web=&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;
&nbsp; &nbsp; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd&quot;
&nbsp; &nbsp; version=&quot;3.0&quot;&gt;
&nbsp;
&nbsp; &nbsp; &lt;display-name&gt;JspAndTiles&lt;/display-name&gt;
&nbsp;
&nbsp; &nbsp; &lt;welcome-file-list&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
&nbsp; &nbsp; &lt;/welcome-file-list&gt;
&nbsp;
&nbsp; &lt;servlet&gt;
&nbsp; &nbsp; &lt;description&gt;&lt;/description&gt;
&nbsp; &nbsp; &lt;display-name&gt;MyServlet&lt;/display-name&gt;
&nbsp; &nbsp; &lt;servlet-name&gt;MyServlet&lt;/servlet-name&gt;
&nbsp; &nbsp; &lt;servlet-class&gt;de.servlet.MyServlet&lt;/servlet-class&gt;
&nbsp; &nbsp; &lt;load-on-startup&gt;200&lt;/load-on-startup&gt;
&nbsp; &lt;/servlet&gt;
&nbsp; &lt;servlet-mapping&gt;
&nbsp; &nbsp; &lt;servlet-name&gt;MyServlet&lt;/servlet-name&gt;
&nbsp; &nbsp; &lt;url-pattern&gt;/MyServlet&lt;/url-pattern&gt;
&nbsp; &lt;/servlet-mapping&gt;
&nbsp;
&nbsp;
&nbsp; &lt;servlet&gt;
&nbsp; &nbsp; &lt;servlet-name&gt;action&lt;/servlet-name&gt;
&nbsp; &nbsp; &lt;servlet-class&gt;org.apache.struts.tiles.TilesServlet&lt;/servlet-class&gt;
&nbsp; &nbsp; &lt;init-param&gt;
&nbsp; &nbsp; &nbsp; &lt;param-name&gt;definitions-config&lt;/param-name&gt;
&nbsp; &nbsp; &nbsp; &lt;param-value&gt;/WEB-INF/tiles-defs.xml&lt;/param-value&gt;
&nbsp; &nbsp; &lt;/init-param&gt;
&nbsp; &nbsp; &lt;init-param&gt;
&nbsp; &nbsp; &nbsp; &lt;param-name&gt;org.apache.tiles.definition.digester.DigesterDefinitionsReader.PARSER_VALIDATE&lt;/param-name&gt;
&nbsp; &nbsp; &nbsp; &lt;param-value&gt;true&lt;/param-value&gt;
&nbsp; &nbsp; &lt;/init-param&gt;
&nbsp; &lt;/servlet&gt;
&nbsp; 
&lt;/web-app&gt;</pre></td></tr></tbody></table></code><hr />
</div> <br />
<br />
<b>tiles-defs.xml</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="bbcode_code_highlight"><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; ?&gt;
&nbsp;
&lt;!DOCTYPE tiles-definitions PUBLIC
&nbsp; &nbsp; &nbsp; &quot;-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN&quot;
&nbsp; &nbsp; &nbsp; &quot;http://tiles.apache.org/dtds/tiles-config_2_0.dtd&quot;&gt;
&nbsp;
&lt;tiles-definitions&gt;
&nbsp;
&nbsp; &nbsp; &lt;definition name=&quot;default&quot; template=&quot;/jsp/template.jsp&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;put-attribute name=&quot;header&quot; value=&quot;/jsp/header.jsp&quot; /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;put-attribute name=&quot;content&quot; value=&quot;/jsp/default.jsp&quot; /&gt; &nbsp; 
&nbsp; &nbsp; &lt;/definition&gt; &nbsp; 
&nbsp; &nbsp; 
&nbsp; &nbsp; &lt;!-- show screen --&gt;
&nbsp; &nbsp; &lt;definition name=&quot;show&quot; extends=&quot;default&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;put-attribute name=&quot;content&quot; value=&quot;/jsp/show.jsp&quot; /&gt;
&nbsp; &nbsp; &lt;/definition&gt;
&nbsp; &nbsp; 
&lt;/tiles-definitions&gt;</pre></td></tr></tbody></table></code><hr />
</div> <br />
<b>template.jsp</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="bbcode_code_highlight"><pre>&lt;%@ include file=&quot;/jsp/taglibs.jsp&quot; %&gt;
&lt;%@ taglib prefix=&quot;tiles&quot; uri=&quot;http://tiles.apache.org/tags-tiles&quot; %&gt;
&nbsp;
&lt;html&gt;
&nbsp; &nbsp; &lt;head&gt;
&nbsp; &nbsp; &nbsp; &lt;title&gt;JSP and Tiles example&lt;/title&gt;
&nbsp; &nbsp; &lt;/head&gt;
&nbsp; &nbsp; &lt;body&gt;
&nbsp; &nbsp; &lt;div id=&quot;container&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;header&quot;&gt;&lt;tiles:insertAttribute name=&quot;header&quot;/&gt;&lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;content&quot;&gt;&lt;tiles:insertAttribute name=&quot;content&quot;/&gt;&lt;/div&gt;
&nbsp; &nbsp; &lt;/div&gt; &nbsp;
&nbsp; &nbsp; &lt;/body&gt;
&lt;/html&gt;</pre></td></tr></tbody></table></code><hr />
</div> <br />
<br />
<b>index.jsp</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
</pre></td><td class="bbcode_code_highlight"><pre>&lt;%@ include file=&quot;/jsp/taglibs.jsp&quot; %&gt;
&nbsp;
&lt;c:redirect url=&quot;default&quot;/&gt;</pre></td></tr></tbody></table></code><hr />
</div> <br />
<br />
<b>default.jsp</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>&lt;a href=&quot;show&quot;&gt;Show String Page&lt;/a&gt;</pre></td></tr></tbody></table></code><hr />
</div> <br />
<br />
<b>MyServlet</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
</pre></td><td class="bbcode_code_highlight"><pre>package de.servlet;
&nbsp;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
&nbsp;
/**
&nbsp;* Servlet implementation class MyServlet
&nbsp;*/
@WebServlet(&quot;/MyServlet&quot;)
public class MyServlet extends HttpServlet {
&nbsp; &nbsp; private static final long serialVersionUID = 1L;
&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; /**
&nbsp; &nbsp; &nbsp;* @see HttpServlet#HttpServlet()
&nbsp; &nbsp; &nbsp;*/
&nbsp; &nbsp; public MyServlet() {
&nbsp; &nbsp; &nbsp; &nbsp; super();
&nbsp; &nbsp; &nbsp; &nbsp; // TODO Auto-generated constructor stub
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; /**
&nbsp; &nbsp; &nbsp;* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
&nbsp; &nbsp; &nbsp;*/
&nbsp; &nbsp; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
&nbsp; &nbsp; &nbsp; &nbsp; request.setAttribute(&quot;myString&quot;, &quot;Hello World!&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; getServletConfig().getServletContext().getRequestDispatcher(&quot;show&quot;).forward(request,response);&nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; /**
&nbsp; &nbsp; &nbsp;* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
&nbsp; &nbsp; &nbsp;*/
&nbsp; &nbsp; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
&nbsp; &nbsp; &nbsp; &nbsp; // TODO Auto-generated method stub
&nbsp; &nbsp; }
&nbsp;
}</pre></td></tr></tbody></table></code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>stockhausen</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365813-tiles-jsp-ohne-spring-struts-und-co.html</guid>
		</item>
		<item>
			<title>JSF 2.0: Validierung von Eingabedaten</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365789-jsf-2-0-validierung-von-eingabedaten.html</link>
			<pubDate>Wed, 01 Sep 2010 21:16:16 GMT</pubDate>
			<description><![CDATA[Hallo! 
 
Ich habe ein Eingabefeld, dass Zahlenwerte zwischen "0" und "400" entgegen nehmen darf, zusätzlich aber auch den Wert "-9". Alle anderen Werte sind nicht erlaubt. 
 
Ich weiß, dass JSF 2.0 sog. Standardvalidatoren besitzt. Z. B. ist mit 
 
<div class="bbcode_container"> 
               ...]]></description>
			<content:encoded><![CDATA[<div>Hallo!<br />
<br />
Ich habe ein Eingabefeld, dass Zahlenwerte zwischen &quot;0&quot; und &quot;400&quot; entgegen nehmen darf, zusätzlich aber auch den Wert &quot;-9&quot;. Alle anderen Werte sind nicht erlaubt.<br />
<br />
Ich weiß, dass JSF 2.0 sog. Standardvalidatoren besitzt. Z. B. ist mit<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
</pre></td><td class="bbcode_code_highlight"><pre>&lt;h:inputText value=&quot;#{backingBean.var1}&quot;&gt;
&nbsp; &nbsp;&lt;f:validateLongRange minimum=&quot;0&quot; maximum=&quot;400&quot; /&gt;
&lt;/h:inputText&gt;</pre></td></tr></tbody></table></code><hr />
</div> <br />
eine Überprüfung möglich, ob eine Ganzzahl in einem gewissen Bereich liegt (hier: 0 und 400).<br />
Das klappt ja schon mal einwandfrei. Doch liegt &quot;-9&quot; natürlich nicht zw. 0 und 400. :p<br />
<br />
Gibt es denn eine Möglichkeit mit Hilfe von JSF-Standardvalidatoren beides zu kombinieren, also das entsprechende Eingabefeld dahingegend zu validieren, dass es Werte zwischen &quot;0&quot; und &quot;400&quot; und eben den Wert &quot;-9&quot; annehmen kann?<br />
<br />
<br />
Ich wäre für jegliche Hilfe sehr dankbar.</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>Fools</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365789-jsf-2-0-validierung-von-eingabedaten.html</guid>
		</item>
		<item>
			<title><![CDATA[Zugriff auf .xhtml sperren [JSF]]]></title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365768-zugriff-auf-xhtml-sperren-jsf.html</link>
			<pubDate>Wed, 01 Sep 2010 13:59:11 GMT</pubDate>
			<description><![CDATA[Hallo! 
Ich habe folgendes Problem: 
Ich habe eine adminboard.jsf auf die sollen, logischerweise, nur Admins zugreifen können. 
Dies funktioniert auch schon so einigermaßen, mithilfe eines PhaseListeners, allerdings sobald irgendein Benutzer in die Adressleiste "..../pages/adminboard.xhtml"...]]></description>
			<content:encoded><![CDATA[<div>Hallo!<br />
Ich habe folgendes Problem:<br />
Ich habe eine adminboard.jsf auf die sollen, logischerweise, nur Admins zugreifen können.<br />
Dies funktioniert auch schon so einigermaßen, mithilfe eines PhaseListeners, allerdings sobald irgendein Benutzer in die Adressleiste &quot;..../pages/adminboard.xhtml&quot; eingibt, wird ihm die Seite angezeigt, wenn allerdings <br />
&quot;..../pages/adminboard.jsf&quot; eingegeben wird, funktioniert alles einwandfrei und der Benutzer wird normal weitergeleitet. <br />
<br />
MyPhaseListener:<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="bbcode_code_highlight"><pre>public class MyPhaseListener implements PhaseListener {
&nbsp;
&nbsp; &nbsp; public void afterPhase(PhaseEvent pe) {
&nbsp; &nbsp; &nbsp; &nbsp; try {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FacesContext fc = pe.getFacesContext();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UserBean currentUser = UserBean.getUserBean(fc.getExternalContext());
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String viewid = fc.getViewRoot().getViewId();
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (viewid.contains(&quot;/adminboard&quot;) &amp;&amp; !currentUser.isAdmin()) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nh.handleNavigation(fc, null, &quot;back&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; } catch (NullPointerException npe) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //do nothing
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; public void beforePhase(PhaseEvent pe) {
&nbsp; &nbsp; &nbsp; &nbsp; //do nothing
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; public PhaseId getPhaseId() {
&nbsp; &nbsp; &nbsp; &nbsp; return PhaseId.RESTORE_VIEW;
&nbsp; &nbsp; }
}</pre></td></tr></tbody></table></code><hr />
</div> <br />
UserBean:<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
</pre></td><td class="bbcode_code_highlight"><pre>public class UserBean {
&nbsp;
&nbsp; &nbsp; private String username;
&nbsp; &nbsp; private String password;
&nbsp; &nbsp; private boolean admin = false;
&nbsp; &nbsp; private boolean loggedIn = false;
&nbsp; &nbsp; private static final long ADMINISTRATION_GROUP = 1L;
&nbsp; 
&nbsp;
&nbsp; &nbsp; /**
&nbsp; &nbsp; &nbsp;* Loggt den User ein.
&nbsp; &nbsp; &nbsp;* 
&nbsp; &nbsp; &nbsp;* @return Navigationrule
&nbsp; &nbsp; &nbsp;*/
&nbsp; &nbsp; public String login() {
&nbsp; &nbsp; &nbsp; &nbsp; FacesContext context = FacesContext.getCurrentInstance();
&nbsp; &nbsp; &nbsp; &nbsp; try {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User user = DBAccess.login(username, password);
&nbsp; &nbsp; &nbsp; &nbsp; } catch (SQLException e) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return &quot;login_failed&quot;;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; if (user == null) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loggedIn = false;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return &quot;login_failed&quot;;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; loggedIn = true;
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; if (user.getUserGroup() == ADMINISTRATION_GROUP) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; admin = true;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return &quot;login_successfull&quot; ;
&nbsp; &nbsp; }
&nbsp;
....sehr sehr viele Getter/Setter Methoden....
&nbsp;
}</pre></td></tr></tbody></table></code><hr />
</div> <br />
Möglicherweise können einige von euch mir einen Lösungsansatz nennen :)<br />
lg</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>R4Z0r1337</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365768-zugriff-auf-xhtml-sperren-jsf.html</guid>
		</item>
		<item>
			<title><![CDATA[[SOA] Response von geclonten MessageContext empfangen]]></title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365673-soa-response-von-geclonten-messagecontext-empfangen.html</link>
			<pubDate>Mon, 30 Aug 2010 12:44:45 GMT</pubDate>
			<description><![CDATA[Hi, 
ich habe mir meinen eigenen SendMediator für den Apache Synapse ESB gebaut, in dem der MessageContext geclont wird und dann über den Axis2FlexibelMEPClient gesendet wird, während der original MessageContext an den nächsten Mediator weitergeleitet wird. 
<div class="bbcode_container"> 
        ...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
ich habe mir meinen eigenen SendMediator für den Apache Synapse ESB gebaut, in dem der MessageContext geclont wird und dann über den Axis2FlexibelMEPClient gesendet wird, während der original MessageContext an den nächsten Mediator weitergeleitet wird.<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
</pre></td><td class="bbcode_code_highlight"><pre>DefaultEndpoint dep = (DefaultEndpoint) ep;
String address = dep.getEndpoint().getAddress();
EndpointReference endPointRef = new EndpointReference(address);
msgCtx.setTo(endPointRef);
MessageContext newCtx = MessageHelper.cloneMessageContext(msgCtx);
Axis2FlexibleMEPClient.send(epd, newCtx);</pre></td></tr></tbody></table></code><hr />
</div> Das Senden funktioniert soweit auch, aber der Response kommt nicht an. Stattdessen erhalte ich die Fehlermeldung<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="bbcode_code_highlight"><pre>&#91;java&#93; org.apache.axis2.AxisFault: Read timed out
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203)
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
&nbsp; &nbsp; &nbsp;&#91;java&#93; &nbsp; &nbsp; at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)</pre></td></tr></tbody></table></code><hr />
</div> Wie kann ich es anstellen, dass der Response korrekt ausgeführt werden? Muss die über Aggregation gemacht werden oder reicht es den replyTo-Wert korrekt zu setzen?<br />
<br />
EDIT: Vielleicht sollte dazu gesagt werden, dass dies die einzige Stelle ist wo gesendet wird. Damit sind auch nur die Responses aus diesem Sendevorgang wichtig.<br />
<br />
Vielen Dank im Voraus an alle SOA-Experten.</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>nilstgmd</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365673-soa-response-von-geclonten-messagecontext-empfangen.html</guid>
		</item>
		<item>
			<title>JSF 2.0 - PostConstructs werden sinnlos aufgerufen</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365596-jsf-2-0-postconstructs-werden-sinnlos-aufgerufen.html</link>
			<pubDate>Sat, 28 Aug 2010 10:22:58 GMT</pubDate>
			<description>Hallo zusammen, 
 
ich bin langsam am Verzweifeln, weil ich einfach den Sinn der Aktion nicht verstehe... 
 
Mein Problem: 
 
Es werden Managedbean Methoden aufgerufen (hauptsächlich @PostConstruct), die mit der aktuellen .xhtml seite absolut nichts zu tun haben. 
 
Beispiel:</description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
ich bin langsam am Verzweifeln, weil ich einfach den Sinn der Aktion nicht verstehe...<br />
<br />
Mein Problem:<br />
<br />
Es werden Managedbean Methoden aufgerufen (hauptsächlich @PostConstruct), die mit der aktuellen .xhtml seite absolut nichts zu tun haben.<br />
<br />
Beispiel:<br />
<br />
<b>AddUrl.xhtml</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="bbcode_code_highlight"><pre>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
&nbsp; &nbsp; &nbsp; xmlns:h=&quot;http://java.sun.com/jsf/html&quot;
&nbsp; &nbsp; &nbsp; xmlns:f=&quot;http://java.sun.com/jsf/core&quot;
&nbsp; &nbsp; &nbsp; xmlns:ui=&quot;http://java.sun.com/jsf/facelets&quot;
&nbsp; &nbsp; &nbsp; xmlns:p=&quot;http://primefaces.prime.com.tr/ui&quot;&gt;
&nbsp; &nbsp; &lt;h:body&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;categories&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;c-corner-left&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;c-corner-right&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;indent&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:form id=&quot;urlForm&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;posturlbox&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:inputText value=&quot;#{addUrlBean.userUrl}&quot; styleClass=&quot;posturlinput&quot; id=&quot;url&quot; onclick=&quot;this.value = ''&quot; /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p:commandButton styleClass=&quot;button&quot; action=&quot;#{addUrlBean.addVideo}&quot; value=&quot;#{msg.send}&quot; style=&quot;float: left;&quot; update=&quot;urlForm&quot; /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;addUrlMessage&quot;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p:message for=&quot;url&quot; showSummary=&quot;true&quot; showDetail=&quot;false&quot; /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/h:form&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;
&nbsp; &nbsp; &lt;/h:body&gt;
&lt;/html&gt;</pre></td></tr></tbody></table></code><hr />
</div> <br />
<b>AddUrlManagedBean.java</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
</pre></td><td class="bbcode_code_highlight"><pre>/*
&nbsp;* To change this template, choose Tools | Templates
&nbsp;* and open the template in the editor.
&nbsp;*/
package managedBeans;
&nbsp;
import entities.UserEntity;
import infoBeans.VideoValidationInfo;
import javax.ejb.EJB;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import sessionBeans.VideoSessionBean;
&nbsp;
/**
&nbsp;*
&nbsp;* @author MasterM
&nbsp;*/
@ManagedBean(name = &quot;addUrlBean&quot;)
@ViewScoped
public class AddUrlManagedBean extends GeneralManagedBean {
&nbsp;
&nbsp; &nbsp; @EJB
&nbsp; &nbsp; VideoSessionBean videoSessionBean;
&nbsp; &nbsp; private String userUrl = &quot;YouTube URL&quot;;
&nbsp; &nbsp; @ManagedProperty(&quot;#{loginBean}&quot;)
&nbsp; &nbsp; LoginManagedBean loginMB;
&nbsp;
&nbsp; &nbsp; /** Creates a new instance of AddUrlManagedBean */
&nbsp; &nbsp; public AddUrlManagedBean() {
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; public void addVideo() {
&nbsp; &nbsp; &nbsp; &nbsp; UserEntity sessionUser = loginMB.getSessionUser();
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; if (sessionUser == null) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; informUser(FacesMessage.SEVERITY_WARN,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;log_in_or_crate_new_account&quot;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;log_in_or_crate_new_account_detail&quot;, &quot;urlForm:url&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; } else {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int validationId = videoSessionBean.validateVideo(userUrl);
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (validationId == VideoValidationInfo.VIDEO_IS_OK) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; videoSessionBean.addVideo(sessionUser, userUrl);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; informUser(FacesMessage.SEVERITY_INFO,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;video_create_success&quot;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;video_create_success_detail&quot;, &quot;urlForm:url&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (validationId == VideoValidationInfo.URL_IS_EMPTY) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; informUser(FacesMessage.SEVERITY_ERROR,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;url_is_empty&quot;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;url_is_empty_detail&quot;, &quot;urlForm:url&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (validationId == VideoValidationInfo.URL_SYNTAX_WRONG) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; informUser(FacesMessage.SEVERITY_ERROR,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;url_syntax_wrong&quot;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;url_syntax_wrong_detail&quot;, &quot;urlForm:url&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (validationId == VideoValidationInfo.VIDEO_NOT_EXIST) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; informUser(FacesMessage.SEVERITY_ERROR,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;video_not_exist&quot;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;video_not_exist_detail&quot;, &quot;urlForm:url&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (validationId == VideoValidationInfo.VIDEO_ALREADY_EXIST) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; informUser(FacesMessage.SEVERITY_ERROR,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;video_already_exist&quot;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;video_already_exist_detail&quot;, &quot;urlForm:url&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (validationId == VideoValidationInfo.VIDEO_ID_LENGTH_WRONG) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; informUser(FacesMessage.SEVERITY_ERROR,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;video_id_length_wrong&quot;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;video_id_length_wrongdetail&quot;, &quot;urlForm:url&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; userUrl = &quot;&quot;;
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; public String getUserUrl() {
&nbsp; &nbsp; &nbsp; &nbsp; return userUrl;
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; public void setUserUrl(String userUrl) {
&nbsp; &nbsp; &nbsp; &nbsp; this.userUrl = userUrl;
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; public LoginManagedBean getLoginMB() {
&nbsp; &nbsp; &nbsp; &nbsp; return loginMB;
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; public void setLoginMB(LoginManagedBean loginMB) {
&nbsp; &nbsp; &nbsp; &nbsp; this.loginMB = loginMB;
&nbsp; &nbsp; }
}</pre></td></tr></tbody></table></code><hr />
</div> <br />
Das komische...<br />
Wenn ich nun in mein CommandButton ausführe, funktioniert zwar alles, jedoch ruft es ebenfalls noch einen @PostConstruct von einer ganz anderen ManagedBean auf und zwar:<br />
<br />
<b>UserProfileVideoManagedBean.java</b><br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
</pre></td><td class="bbcode_code_highlight"><pre>/*
&nbsp;* To change this template, choose Tools | Templates
&nbsp;* and open the template in the editor.
&nbsp;*/
package managedBeans;
&nbsp;
import entities.VideoEntity;
import enums.VideoStateEnum;
import infoBeans.PagingInfo;
import java.util.List;
import javax.annotation.PostConstruct;
&nbsp;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import sessionBeans.VideoSessionBean;
import javax.faces.bean.ManagedProperty;
&nbsp;
/**
&nbsp;*
&nbsp;* @author Turk
&nbsp;*/
@ManagedBean(name = &quot;userProfileVideoBean&quot;)
@RequestScoped
public class UserProfileVideoManagedBean extends GeneralManagedBean {
&nbsp;
&nbsp; &nbsp; @EJB
&nbsp; &nbsp; VideoSessionBean videoSessionBean;
&nbsp; &nbsp; private List&lt;VideoEntity&gt; uncheckedUserVideos;
&nbsp; &nbsp; private List&lt;VideoEntity&gt; checkedUserVideos;
&nbsp; &nbsp; private List&lt;VideoEntity&gt; closedUserVideos;
&nbsp; &nbsp; private boolean existUncheckedUserVideos;
&nbsp; &nbsp; private boolean existCheckedUserVideos;
&nbsp; &nbsp; private boolean existClosedUserVideos;
&nbsp; &nbsp; private String sortBy;
&nbsp; &nbsp; @ManagedProperty(&quot;#{loginBean}&quot;)
&nbsp; &nbsp; LoginManagedBean loginMB;
&nbsp;
&nbsp; &nbsp; /** Creates a new instance of UserProfileVideoManagedBean */
&nbsp; &nbsp; public UserProfileVideoManagedBean() {
&nbsp; &nbsp; &nbsp; &nbsp; this.existCheckedUserVideos = true;
&nbsp; &nbsp; &nbsp; &nbsp; this.existClosedUserVideos = true;
&nbsp; &nbsp; &nbsp; &nbsp; this.existUncheckedUserVideos = true;
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; @PostConstruct
&nbsp; &nbsp; public void initProfilVideoState() {
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;PostConstruct: UserProfileVideoMB - RequestScoped&quot;);
&nbsp; &nbsp; &nbsp; &nbsp; try {
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Long userId = this.loginMB.getSessionUser().getId();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uncheckedUserVideos = videoSessionBean.getVideosByStateAndUser(VideoStateEnum.UNCHECKED, userId, PagingInfo.VIDEOS_START_PAGE);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (this.uncheckedUserVideos.isEmpty()) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.existUncheckedUserVideos = false;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; checkedUserVideos = videoSessionBean.getVideosByStateAndUser(VideoStateEnum.OK, userId, PagingInfo.VIDEOS_START_PAGE);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (this.checkedUserVideos.isEmpty()) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.existCheckedUserVideos = false;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; closedUserVideos = videoSessionBean.getVideosByStateAndUser(VideoStateEnum.NOT_OK, userId, PagingInfo.VIDEOS_START_PAGE);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (this.closedUserVideos.isEmpty()) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.existClosedUserVideos = false;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception e) {
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; return;
&nbsp; &nbsp; }
&nbsp;
.... und die dazugehörigen Getter-Setter
&nbsp;
}</pre></td></tr></tbody></table></code><hr />
</div> <br />
Wie kann das nur sein? Was mich zusätzlich wundert ist, dass wenn ich per navigation-rule auf eine andere Seite wechsel, er noch einmal der PostConstruct der alten ManagedBean aufruft.<br />
<br />
Es macht einfach keinen Sinn<br />
<br />
----------------------------------------------<br />
Primfaces 2.1<br />
Glassfish v3<br />
jsf 2.0<br />
Ejb 3.1<br />
JPA - Toplink<br />
Netbeans</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>NeuerUser</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365596-jsf-2-0-postconstructs-werden-sinnlos-aufgerufen.html</guid>
		</item>
		<item>
			<title>JSF Parameter aus dataTable Zeile uebergeben</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365575-jsf-parameter-aus-datatable-zeile-uebergeben.html</link>
			<pubDate>Fri, 27 Aug 2010 14:02:32 GMT</pubDate>
			<description>Hi, 
 
ich moechte in einer Zeile eines dataTable eine Methode createFoo() in meiner Backing Bean aufrufen, die einen Parameter benoetigt. Die Rueckgabe dieser Methode fuellt eine Zelle, daher ist mir mit commandLink o.ae. nicht geholfen.  
 
f:param innerhalb der h:column erscheint nicht als...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
ich moechte in einer Zeile eines dataTable eine Methode createFoo() in meiner Backing Bean aufrufen, die einen Parameter benoetigt. Die Rueckgabe dieser Methode fuellt eine Zelle, daher ist mir mit commandLink o.ae. nicht geholfen. <br />
<br />
f:param innerhalb der h:column erscheint nicht als request parameter. <br />
Wo und wie definiere ich den Parameter? <br />
<br />
Alternativ habe ich versucht den table in der Backing Bean an ein HtmlDataTable Objekt zu binden um beim Aufruf der Methode createFoo()  an den Index der Row zu gelangen, aber  der ist -1.<br />
<br />
Danke im Voraus,<br />
Babette</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>bwagner</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365575-jsf-parameter-aus-datatable-zeile-uebergeben.html</guid>
		</item>
		<item>
			<title>Error-Page in JSF-Portlet wird zwei mal dargestellt</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365532-error-page-jsf-portlet-wird-zwei-mal-dargestellt.html</link>
			<pubDate>Thu, 26 Aug 2010 15:44:42 GMT</pubDate>
			<description><![CDATA[Hallo Zusammen, 
 
ich habe eine error-page in der web.xml meines Projekts definiert die bei jeder Throwable Exception dargestellt werden muss. Jetzt wird sie 2 mal dargestellt!  
Hat jemand eine Ahnung woran es liegen könnte ?:( 
 
Anbei der code-Snippets: 
 
web.xml: 
 
<?xml version="1.0"...]]></description>
			<content:encoded><![CDATA[<div>Hallo Zusammen,<br />
<br />
ich habe eine error-page in der web.xml meines Projekts definiert die bei jeder Throwable Exception dargestellt werden muss. Jetzt wird sie 2 mal dargestellt! <br />
Hat jemand eine Ahnung woran es liegen könnte ?:(<br />
<br />
Anbei der code-Snippets:<br />
<br />
web.xml:<br />
<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;web-app version=&quot;2.5&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;<br />
 xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;&gt;<br />
 &lt;description&gt;myPortlet&lt;/description&gt;<br />
 &lt;context-param&gt;<br />
  &lt;param-name&gt;org.ajax4jsf.COMPRESS_SCRIPT&lt;/param-name&gt;<br />
  &lt;param-value&gt;false&lt;/param-value&gt;<br />
 &lt;/context-param&gt;<br />
 &lt;context-param&gt;<br />
  &lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt;<br />
  &lt;param-value&gt;.xhtml&lt;/param-value&gt;<br />
 &lt;/context-param&gt;<br />
 &lt;context-param&gt;<br />
  &lt;param-name&gt;org.ajax4jsf.VIEW_HANDLERS&lt;/param-name&gt;<br />
  &lt;param-value&gt;org.jboss.portletbridge.application.FaceletPortletViewHandler&lt;/param-value&gt;<br />
 &lt;/context-param&gt;<br />
 &lt;context-param&gt;<br />
  &lt;param-name&gt;javax.portlet.faces.renderPolicy&lt;/param-name&gt;<br />
  &lt;param-value&gt;ALWAYS_DELEGATE&lt;/param-value&gt;<br />
 &lt;/context-param&gt;<br />
 &lt;context-param&gt;<br />
  &lt;param-name&gt;org.richfaces.LoadStyleStrategy&lt;/param-name&gt;<br />
  &lt;param-value&gt;DEFAULT&lt;/param-value&gt;<br />
 &lt;/context-param&gt;<br />
 &lt;context-param&gt;<br />
  &lt;param-name&gt;org.richfaces.LoadScriptStrategy&lt;/param-name&gt;<br />
  &lt;param-value&gt;DEFAULT&lt;/param-value&gt;<br />
 &lt;/context-param&gt;<br />
 &lt;context-param&gt;<br />
  &lt;param-name&gt;org.ajax4jsf.RESOURCE_URI_PREFIX&lt;/param-name&gt;<br />
  &lt;param-value&gt;rfRes&lt;/param-value&gt;<br />
 &lt;/context-param&gt;<br />
 &lt;context-param&gt;<br />
  &lt;param-name&gt;org.richfaces.SKIN&lt;/param-name&gt;<br />
  &lt;param-value&gt;blueSky&lt;/param-value&gt;<br />
 &lt;/context-param&gt;<br />
 &lt;filter&gt;<br />
  &lt;display-name&gt;Ajax4jsf Filter&lt;/display-name&gt;<br />
  &lt;filter-name&gt;ajax4jsf&lt;/filter-name&gt;<br />
  &lt;filter-class&gt;org.ajax4jsf.Filter&lt;/filter-class&gt;<br />
 &lt;/filter&gt;<br />
 &lt;filter-mapping&gt;<br />
  &lt;filter-name&gt;ajax4jsf&lt;/filter-name&gt;<br />
  &lt;servlet-name&gt;FacesServlet&lt;/servlet-name&gt;<br />
  &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;<br />
  &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;<br />
  &lt;dispatcher&gt;INCLUDE&lt;/dispatcher&gt;<br />
 &lt;/filter-mapping&gt;<br />
 &lt;servlet&gt;<br />
  &lt;servlet-name&gt;FacesServlet&lt;/servlet-name&gt;<br />
  &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;<br />
  &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br />
 &lt;/servlet&gt;<br />
 &lt;servlet-mapping&gt;<br />
  &lt;servlet-name&gt;FacesServlet&lt;/servlet-name&gt;<br />
  &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;<br />
 &lt;/servlet-mapping&gt;<br />
<br />
<br />
 &lt;error-page&gt;<br />
  &lt;exception-type&gt;java.lang.Throwable&lt;/exception-type&gt;<br />
  &lt;location&gt;/faces/pages/error.xhtml&lt;/location&gt;<br />
 &lt;/error-page&gt;<br />
 &lt;login-config&gt;<br />
  &lt;auth-method&gt;BASIC&lt;/auth-method&gt;<br />
 &lt;/login-config&gt;<br />
&lt;/web-app&gt;</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>dreamer29</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365532-error-page-jsf-portlet-wird-zwei-mal-dargestellt.html</guid>
		</item>
		<item>
			<title>Transaktionsmanagment bei Services des Websphere Application Servers</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365486-transaktionsmanagment-bei-services-des-websphere-application-servers.html</link>
			<pubDate>Wed, 25 Aug 2010 14:24:27 GMT</pubDate>
			<description>Hallo, 
ich hab jetzt schon Ewigketen Foren durchsucht und Tante Google gefragt. Bisher noch kein Ergebnis. 
Folgendes: 
Ein Websphere Application Server (WAS) beinhaltet verschiedene Services. 
Einige der Services können untereinander kommunizieren (Anfragen senden und beantwortet bekommen). 
Nun...</description>
			<content:encoded><![CDATA[<div>Hallo,<br />
ich hab jetzt schon Ewigketen Foren durchsucht und Tante Google gefragt. Bisher noch kein Ergebnis.<br />
Folgendes:<br />
Ein Websphere Application Server (WAS) beinhaltet verschiedene Services.<br />
Einige der Services können untereinander kommunizieren (Anfragen senden und beantwortet bekommen).<br />
Nun ist es ja so, dass bei einem Aufruf der EJB-Bean eine containergestütze Transaktion aufgemacht wird, und bei erfolgreichem beenden, diese wieder geschlossen wird (andernfalls role-back).<br />
Wie ist es denn bei der Kommunikation der Services untereinander. Also ruft ein Service die lokale EJB des zweiten Services auf, wird dann für den zweiten Service auch eine Transaktion gestartet?<br />
<br />
<br />
Ist das eher so (die Bindestriche sollen die containergestütze Transaktion darstellen):<br />
Service A       Service B<br />
------------<br />
tut was<br />
ruft B auf                    |------------------<blockquote><blockquote><blockquote>| tut was</blockquote></blockquote></blockquote><blockquote><blockquote><blockquote>|------------------</blockquote></blockquote></blockquote>verarbeitet <br />
Ergebnis<br />
--------------------<br />
<br />
order so: ?<br />
Service A       Service B<br />
---------------------------------------<br />
tut was<br />
ruft B auf                    -<blockquote><blockquote><blockquote>| tut was</blockquote></blockquote></blockquote>verarbeitet <br />
Ergebnis<br />
------------------------------------------<br />
Vielen Dank im Vorraus</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>kleene0105</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365486-transaktionsmanagment-bei-services-des-websphere-application-servers.html</guid>
		</item>
		<item>
			<title>Kaputte Umlaute in Servlet (Tomcat/Linux)</title>
			<link>http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365485-kaputte-umlaute-servlet-tomcat-linux.html</link>
			<pubDate>Wed, 25 Aug 2010 14:00:21 GMT</pubDate>
			<description>Hi zusammen, 
 
ich habe ein Umlautproblem in einer Webapplikation welche auf Tomcat 5.5 laufen. 
Auf meiner Lokalen Installation werden Umlaute korrekt aungezeigt und in die Datenbank gespeichert, auf der Serverinstallation werden sie nur als ? gespeichert. 
 
Beide Webanwendungen verbinden sich...</description>
			<content:encoded><![CDATA[<div>Hi zusammen,<br />
<br />
ich habe ein Umlautproblem in einer Webapplikation welche auf Tomcat 5.5 laufen.<br />
Auf meiner Lokalen Installation werden Umlaute korrekt aungezeigt und in die Datenbank gespeichert, auf der Serverinstallation werden sie nur als ? gespeichert.<br />
<br />
Beide Webanwendungen verbinden sich auf die selbe Datenbank:<br />
- Mysql, varchar-Spalten verwenden utf8.<br />
- Verwendeter Connectionstring: jdbc:mysql://servername/foo_test?characterEncoding=utf-8&amp;amp;useUnicode=true&amp;amp;jdbcCompliantTruncation=false		<br />
<br />
Folgender http-Request kommt rein:<br />
	<a href="http://servername:8080/servlet/Import?Etwas%20wurde%20am%2025.08.2010%2010%3A16%3A50%20ge%E4ndert" target="_blank">http://servername:8080/servlet/Impor...0%20ge%E4ndert</a><br />
		<br />
Der Querystring wird im Servlet mit Hilfe von org.apache.commons.codec.net.URLCodec.URLCodec dekodiert:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
</pre></td><td class="bbcode_code_highlight"><pre>String unparsedParameters = request.getQueryString();
URLCodec codec = new URLCodec(&quot;ISO-8859-1&quot;);
result = codec.decode(unparsedParameters);</pre></td></tr></tbody></table></code><hr />
</div> 		<br />
Das Wort &quot;geändert&quot; wird im dekodierten String auf der lokalen Installation (Windows) korrektangezeigt und in die Datenbank übertragen. Bei der Linux-Installation heißt es &quot;ge?ndert&quot;. <br />
<br />
Kann mir jemand weiterhelfen?<br />
<br />
Danke.</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/"><![CDATA[Enterprise Java (JEE, J2EE, Spring & Co.)]]></category>
			<dc:creator>SOLOWK1</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/enterprise-java-jee-j2ee-spring-co/365485-kaputte-umlaute-servlet-tomcat-linux.html</guid>
		</item>
	</channel>
</rss>
