Changeset 17901

Show
Ignore:
Timestamp:
08/18/08 10:45:39 (3 months ago)
Author:
carlos
Message:

Fix for bug-5584:
added a new attribute to the insertTag for channels in order to indicate to not add a break line (<br clear="all">) after a channel.
It was needed to take off the <div id="schedule-grid"> from the channel (such div is where the indented and flat beta views are rendered), so the render of the grids when columns are added/removed, doesn't affect the channel.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/core/src/net/project/channel/Channel.java

    r17305 r17901  
    8484    private boolean m_actionBarOnly = false; 
    8585    private boolean m_displayActionBar = false; 
     86    /* To not add a break line after the channel. By default we will add a break.*/ 
     87    private boolean addBreak = true; 
    8688 
    8789    private final Hashtable m_includeAttributes = new Hashtable(); 
     
    305307    } 
    306308 
     309    /** 
     310     * Gets the <code>addBreak</code> attribute, which indicates whether a break is needed after the channel rendering. 
     311     * @return the <code>addBreak</code> attribute 
     312     * @since 8.5 
     313     */ 
     314    public boolean isAddBreak(){ 
     315        return this.addBreak; 
     316    } 
     317     
     318    /** 
     319     * Sets the <code>addBreak</code> attribute to indicate whether it is needed a break line after the channel 
     320     * @param addBreak the value to set into the <code>addBreak</code> attribute 
     321     * @since 8.5 
     322     */ 
     323    public void setAddBreak(boolean addBreak){ 
     324        this.addBreak = addBreak; 
     325    } 
    307326    /** 
    308327     * Sets included content to some JSP that has been transformed.  This 
  • trunk/core/src/net/project/channel/ChannelManager.java

    r17673 r17901  
    290290                        // padding between it and the next 
    291291                        isPadRequired = true; 
    292                         isAtLeastOneChannel = true; 
     292                        /* 
     293                         * There are some channels we don't want to add a break line after them. 
     294                         */ 
     295                        if(nextChannel.isAddBreak()){ 
     296                            isAtLeastOneChannel = true; 
     297                        } 
    293298                    } 
    294299                } 
  • trunk/core/src/net/project/taglibs/channel/InsertTag.java

    r15738 r17901  
    6767    private Boolean actionBarOnly = null; 
    6868    private Boolean isInIFrame = null; 
     69    private Boolean addBreak = null; /* To not add a break aftert the channel.*/ 
    6970 
    7071    /** 
     
    114115        if (actionBarOnly != null) { 
    115116            channel.setActionbarOnly(actionBarOnly.booleanValue()); 
     117        } 
     118         
     119        if(this.addBreak != null){ 
     120            channel.setAddBreak(this.addBreak.booleanValue()); 
    116121        } 
    117122 
     
    211216    public void setInIFrame(String isInIFrame) { 
    212217        this.isInIFrame = new Boolean(Conversion.toBoolean(isInIFrame)); 
     218    } 
     219     
     220    /** 
     221     * Sets the <code>addBreak</code> attribute, to indicate whether to add a break line after the channel. 
     222     * @param addBreak the value to set the <code>addBreak</code> attribute 
     223     * @since 8.5 
     224     */ 
     225    public void setAddBreak(String addBreak){ 
     226        this.addBreak = new Boolean(Conversion.toBoolean(addBreak)); 
    213227    } 
    214228 
     
    238252        isInIFrame = null; 
    239253        defaultState = null; 
     254        this.addBreak = null; 
    240255    } 
    241256 
  • trunk/core/web/META-INF/tomcat/context.xml

    r17512 r17901  
    66  <Resource name="jdbc/PnetDB" auth="Container" 
    77            type="javax.sql.DataSource" username="pnet_user" password="pnet_user" 
    8             driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:pnetdb
     8            driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:v84dev
    99            maxActive="8" maxIdle="4"/> 
    1010 
  • trunk/core/web/jsp/schedule/Main.jsp

    r17888 r17901  
    15011501    <channel:insert name="Schedule_Tasks_List" 
    15021502                    title='<%=PropertyProvider.get("prm.schedule.main.channel.schedulelist.title")%>' 
    1503                     row="0" column="0" width="100%" minimizable="false" closeable="false" 
     1503                    row="0" column="0" width="100%" minimizable="false" closeable="false" addBreak="false" 
    15041504                    include="include/taskList.jsp"> 
    15051505        <channel:button type="expand_all"/> 
     
    15181518    </channel:insert> 
    15191519</channel:channel> 
     1520<div id="schedule-grid"></div> 
    15201521</form> 
    15211522<%@ include file="/help/include_outside/footer.jsp" %> 
  • trunk/core/web/jsp/schedule/include/taskList.jsp

    r17804 r17901  
    375375</pnet-xml:transform> 
    376376<%}%> 
    377 <div id='schedule-grid'></div> 
  • trunk/core/web/jsp/taglibs/channelTags.tld

    r15492 r17901  
    138138            <rtexprvalue>true</rtexprvalue> 
    139139        </attribute> 
     140        <attribute> 
     141            <name>addBreak</name> 
     142            <required>false</required> 
     143            <rtexprvalue>true</rtexprvalue> 
     144        </attribute> 
    140145    </tag> 
    141146     
  • trunk/core/web/src/components/gridView.js

    r17883 r17901  
    394394            autoHeight: true, 
    395395            autoSizeColumns: true, 
    396             loadMask: true, 
    397             clicksToEdit:2 
     396            loadMask: true 
    398397        }); 
    399398         
  • trunk/core/web/src/indentedView.js

    r17888 r17901  
    203203                enableRowBody : true 
    204204                ,forceFit: true 
    205             } 
    206                
     205                ,emptyText: 'It is no data available to be displayed.' 
     206              } 
    207207        }); 
    208208        grid.render();