struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Mitchell <jmitch...@apache.org>
Subject Re: svn commit: r414807 - in /struts/shale/branches/mvn_reorg/shale-apps/shale-mailreader/src/main: java/org/apache/shale/examples/mailreader/Registration.java webapp/registration.jsp
Date Fri, 16 Jun 2006 11:46:16 GMT
And with this, the shale mailreader app works perfectly.

--
James Mitchell




On Jun 16, 2006, at 7:44 AM, jmitchell@apache.org wrote:

> Author: jmitchell
> Date: Fri Jun 16 04:44:29 2006
> New Revision: 414807
>
> URL: http://svn.apache.org/viewvc?rev=414807&view=rev
> Log:
> * rename iteration to something that makes sense
> * remove call on destroy() -- this is causing the subscriptions to  
> disappear before the page displays
>     (not sure, but this might have been a bug that resulted from a  
> scope change (session -> request) with the associated backing bean)
>
>
> Modified:
>     struts/shale/branches/mvn_reorg/shale-apps/shale-mailreader/src/ 
> main/java/org/apache/shale/examples/mailreader/Registration.java
>     struts/shale/branches/mvn_reorg/shale-apps/shale-mailreader/src/ 
> main/webapp/registration.jsp
>
> Modified: struts/shale/branches/mvn_reorg/shale-apps/shale- 
> mailreader/src/main/java/org/apache/shale/examples/mailreader/ 
> Registration.java
> URL: http://svn.apache.org/viewvc/struts/shale/branches/mvn_reorg/ 
> shale-apps/shale-mailreader/src/main/java/org/apache/shale/examples/ 
> mailreader/Registration.java?rev=414807&r1=414806&r2=414807&view=diff
> ====================================================================== 
> ========
> --- struts/shale/branches/mvn_reorg/shale-apps/shale-mailreader/src/ 
> main/java/org/apache/shale/examples/mailreader/Registration.java  
> (original)
> +++ struts/shale/branches/mvn_reorg/shale-apps/shale-mailreader/src/ 
> main/java/org/apache/shale/examples/mailreader/Registration.java  
> Fri Jun 16 04:44:29 2006
> @@ -410,8 +410,8 @@
>       * would go.</p>
>       */
>      public void destroy() {
> -
> -        setSubscriptions(null);
> +    	// TODO this is causing the page not to display the  
> subscriptions
> +        //setSubscriptions(null);
>
>      }
>
>
> Modified: struts/shale/branches/mvn_reorg/shale-apps/shale- 
> mailreader/src/main/webapp/registration.jsp
> URL: http://svn.apache.org/viewvc/struts/shale/branches/mvn_reorg/ 
> shale-apps/shale-mailreader/src/main/webapp/registration.jsp? 
> rev=414807&r1=414806&r2=414807&view=diff
> ====================================================================== 
> ========
> --- struts/shale/branches/mvn_reorg/shale-apps/shale-mailreader/src/ 
> main/webapp/registration.jsp (original)
> +++ struts/shale/branches/mvn_reorg/shale-apps/shale-mailreader/src/ 
> main/webapp/registration.jsp Fri Jun 16 04:44:29 2006
> @@ -163,7 +163,7 @@
>    <h:dataTable         id="table"
>                   rendered="#{state.mode == 'EDIT'}"
>                      value="#{registration.subscriptions}"
> -                      var="current">
> +                      var="subscription">
>
>      <h:column>
>        <f:facet       name="header">
> @@ -171,7 +171,7 @@
>                      value="#{messages['heading.host']}"/>
>        </f:facet>
>        <h:outputText    id="subHost"
> -                    value="#{current.host}"/>
> +                    value="#{subscription.host}"/>
>      </h:column>
>
>      <h:column>
> @@ -180,7 +180,7 @@
>                      value="#{messages['heading.user']}"/>
>        </f:facet>
>        <h:outputText    id="subUsername"
> -                    value="#{current.username}"/>
> +                    value="#{subscription.username}"/>
>      </h:column>
>
>      <h:column>
> @@ -189,7 +189,7 @@
>                      value="#{messages['heading.type']}"/>
>        </f:facet>
>        <h:outputText    id="subType"
> -                    value="#{current.type}"/>
> +                    value="#{subscription.type}"/>
>      </h:column>
>
>      <h:column>
> @@ -198,7 +198,7 @@
>                      value="#{messages['heading.autoConnect']}"/>
>        </f:facet>
>        <h:outputText    id="subAutoConnect"
> -                    value="#{current.autoConnect}"/>
> +                    value="#{subscription.autoConnect}"/>
>      </h:column>
>
>      <h:column>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message